All URIs are relative to https://gateway.stackpath.com
| Method | HTTP request | Description |
|---|---|---|
| GetLocations | Get /monitoring/v2/stacks/{stack_id}/locations | Get monitoring locations |
V2GetLocationsResponse GetLocations(ctx, stackId).Execute()
Get monitoring locations
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
stackId := "stackId_example" // string | A stack ID or slug
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.InfrastructureApi.GetLocations(context.Background(), stackId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfrastructureApi.GetLocations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLocations`: V2GetLocationsResponse
fmt.Fprintf(os.Stdout, "Response from `InfrastructureApi.GetLocations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| stackId | string | A stack ID or slug |
Other parameters are passed through a pointer to a apiGetLocationsRequest 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]