All URIs are relative to https://api.au.sumologic.com/api
Method | HTTP request | Description |
---|---|---|
CreateFolder | Post /v2/content/folders | Create a new folder. |
GetAdminRecommendedFolderAsync | Get /v2/content/folders/adminRecommended | Schedule Admin Recommended folder job |
GetAdminRecommendedFolderAsyncResult | Get /v2/content/folders/adminRecommended/{jobId}/result | Get Admin Recommended folder job result |
GetAdminRecommendedFolderAsyncStatus | Get /v2/content/folders/adminRecommended/{jobId}/status | Get Admin Recommended folder job status |
GetFolder | Get /v2/content/folders/{id} | Get a folder. |
GetGlobalFolderAsync | Get /v2/content/folders/global | Schedule Global View job |
GetGlobalFolderAsyncResult | Get /v2/content/folders/global/{jobId}/result | Get Global View job result |
GetGlobalFolderAsyncStatus | Get /v2/content/folders/global/{jobId}/status | Get Global View job status |
GetPersonalFolder | Get /v2/content/folders/personal | Get personal folder. |
UpdateFolder | Put /v2/content/folders/{id} | Update a folder. |
Folder CreateFolder(ctx).FolderDefinition(folderDefinition).IsAdminMode(isAdminMode).Execute()
Create a new folder.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
folderDefinition := *openapiclient.NewFolderDefinition("SampleFolder", "ParentId_example") // FolderDefinition | Information about the new folder.
isAdminMode := "isAdminMode_example" // string | Set this to \"true\" if you want to perform the request as a Content Administrator. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.CreateFolder(context.Background()).FolderDefinition(folderDefinition).IsAdminMode(isAdminMode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.CreateFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateFolder`: Folder
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.CreateFolder`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateFolderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
folderDefinition | FolderDefinition | Information about the new folder. | |
isAdminMode | string | Set this to "true" if you want to perform the request as a Content Administrator. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BeginAsyncJobResponse GetAdminRecommendedFolderAsync(ctx).IsAdminMode(isAdminMode).Execute()
Schedule Admin Recommended folder job
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
isAdminMode := "isAdminMode_example" // string | Set this to \"true\" if you want to perform the request as a Content Administrator. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetAdminRecommendedFolderAsync(context.Background()).IsAdminMode(isAdminMode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetAdminRecommendedFolderAsync``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAdminRecommendedFolderAsync`: BeginAsyncJobResponse
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetAdminRecommendedFolderAsync`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetAdminRecommendedFolderAsyncRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
isAdminMode | string | Set this to "true" if you want to perform the request as a Content Administrator. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder GetAdminRecommendedFolderAsyncResult(ctx, jobId).Execute()
Get Admin Recommended folder job result
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
jobId := "jobId_example" // string | The identifier of the asynchronous Admin Recommended folder job.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetAdminRecommendedFolderAsyncResult(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetAdminRecommendedFolderAsyncResult``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAdminRecommendedFolderAsyncResult`: Folder
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetAdminRecommendedFolderAsyncResult`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The identifier of the asynchronous Admin Recommended folder job. |
Other parameters are passed through a pointer to a apiGetAdminRecommendedFolderAsyncResultRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncJobStatus GetAdminRecommendedFolderAsyncStatus(ctx, jobId).Execute()
Get Admin Recommended folder job status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
jobId := "jobId_example" // string | The identifier of the asynchronous Admin Recommended folder job.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetAdminRecommendedFolderAsyncStatus(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetAdminRecommendedFolderAsyncStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAdminRecommendedFolderAsyncStatus`: AsyncJobStatus
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetAdminRecommendedFolderAsyncStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The identifier of the asynchronous Admin Recommended folder job. |
Other parameters are passed through a pointer to a apiGetAdminRecommendedFolderAsyncStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder GetFolder(ctx, id).IsAdminMode(isAdminMode).Execute()
Get a folder.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | Identifier of the folder to fetch.
isAdminMode := "isAdminMode_example" // string | Set this to \"true\" if you want to perform the request as a Content Administrator. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetFolder(context.Background(), id).IsAdminMode(isAdminMode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFolder`: Folder
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetFolder`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Identifier of the folder to fetch. |
Other parameters are passed through a pointer to a apiGetFolderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
isAdminMode | string | Set this to "true" if you want to perform the request as a Content Administrator. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BeginAsyncJobResponse GetGlobalFolderAsync(ctx).IsAdminMode(isAdminMode).Execute()
Schedule Global View job
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
isAdminMode := "isAdminMode_example" // string | Set this to \"true\" if you want to perform the request as a Content Administrator. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetGlobalFolderAsync(context.Background()).IsAdminMode(isAdminMode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetGlobalFolderAsync``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGlobalFolderAsync`: BeginAsyncJobResponse
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetGlobalFolderAsync`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetGlobalFolderAsyncRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
isAdminMode | string | Set this to "true" if you want to perform the request as a Content Administrator. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContentList GetGlobalFolderAsyncResult(ctx, jobId).Execute()
Get Global View job result
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
jobId := "jobId_example" // string | The identifier of the asynchronous Global View job.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetGlobalFolderAsyncResult(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetGlobalFolderAsyncResult``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGlobalFolderAsyncResult`: ContentList
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetGlobalFolderAsyncResult`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The identifier of the asynchronous Global View job. |
Other parameters are passed through a pointer to a apiGetGlobalFolderAsyncResultRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncJobStatus GetGlobalFolderAsyncStatus(ctx, jobId).Execute()
Get Global View job status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
jobId := "jobId_example" // string | The identifier of the asynchronous Global View job.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetGlobalFolderAsyncStatus(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetGlobalFolderAsyncStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGlobalFolderAsyncStatus`: AsyncJobStatus
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetGlobalFolderAsyncStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The identifier of the asynchronous Global View job. |
Other parameters are passed through a pointer to a apiGetGlobalFolderAsyncStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder GetPersonalFolder(ctx).Execute()
Get personal folder.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.GetPersonalFolder(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.GetPersonalFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPersonalFolder`: Folder
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.GetPersonalFolder`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetPersonalFolderRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder UpdateFolder(ctx, id).UpdateFolderRequest(updateFolderRequest).IsAdminMode(isAdminMode).Execute()
Update a folder.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | Identifier of the folder to update.
updateFolderRequest := *openapiclient.NewUpdateFolderRequest("SampleFolder") // UpdateFolderRequest | Information to update about the folder.
isAdminMode := "isAdminMode_example" // string | Set this to \"true\" if you want to perform the request as a Content Administrator. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FolderManagementApi.UpdateFolder(context.Background(), id).UpdateFolderRequest(updateFolderRequest).IsAdminMode(isAdminMode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FolderManagementApi.UpdateFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateFolder`: Folder
fmt.Fprintf(os.Stdout, "Response from `FolderManagementApi.UpdateFolder`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Identifier of the folder to update. |
Other parameters are passed through a pointer to a apiUpdateFolderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateFolderRequest | UpdateFolderRequest | Information to update about the folder. | isAdminMode | string | Set this to "true" if you want to perform the request as a Content Administrator. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]