All URIs are relative to https://api.au.sumologic.com/api
Method | HTTP request | Description |
---|---|---|
GetApp | Get /v1/apps/{uuid} | Get an app by UUID. |
GetAsyncInstallStatus | Get /v1/apps/install/{jobId}/status | App install job status. |
InstallApp | Post /v1/apps/{uuid}/install | Install an app by UUID. |
ListApps | Get /v1/apps | List available apps. |
App GetApp(ctx, uuid).Execute()
Get an app by UUID.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the app to retrieve.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.AppManagementApi.GetApp(context.Background(), uuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppManagementApi.GetApp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApp`: App
fmt.Fprintf(os.Stdout, "Response from `AppManagementApi.GetApp`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
uuid | string | The identifier of the app to retrieve. |
Other parameters are passed through a pointer to a apiGetAppRequest 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 GetAsyncInstallStatus(ctx, jobId).Execute()
App install job status.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
jobId := "jobId_example" // string | The identifier of the asynchronous install job.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.AppManagementApi.GetAsyncInstallStatus(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppManagementApi.GetAsyncInstallStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAsyncInstallStatus`: AsyncJobStatus
fmt.Fprintf(os.Stdout, "Response from `AppManagementApi.GetAsyncInstallStatus`: %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 install job. |
Other parameters are passed through a pointer to a apiGetAsyncInstallStatusRequest 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]
BeginAsyncJobResponse InstallApp(ctx, uuid).AppInstallRequest(appInstallRequest).Execute()
Install an app by UUID.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | UUID of the app to install.
appInstallRequest := *openapiclient.NewAppInstallRequest("Sumo Logic Configuration App", "Sumo Logic Configuration App to configure collectors and data sources", "00000000000001C8") // AppInstallRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.AppManagementApi.InstallApp(context.Background(), uuid).AppInstallRequest(appInstallRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppManagementApi.InstallApp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `InstallApp`: BeginAsyncJobResponse
fmt.Fprintf(os.Stdout, "Response from `AppManagementApi.InstallApp`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
uuid | string | UUID of the app to install. |
Other parameters are passed through a pointer to a apiInstallAppRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
appInstallRequest | AppInstallRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAppsResult ListApps(ctx).Execute()
List available apps.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.AppManagementApi.ListApps(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppManagementApi.ListApps``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListApps`: ListAppsResult
fmt.Fprintf(os.Stdout, "Response from `AppManagementApi.ListApps`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListAppsRequest 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]