Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 2 KB

File metadata and controls

77 lines (49 loc) · 2 KB

\InfrastructureApi

All URIs are relative to https://gateway.stackpath.com

Method HTTP request Description
GetLocations Get /monitoring/v2/stacks/{stack_id}/locations Get monitoring locations

GetLocations

V2GetLocationsResponse GetLocations(ctx, stackId).Execute()

Get monitoring locations

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
stackId string A stack ID or slug

Other Parameters

Other parameters are passed through a pointer to a apiGetLocationsRequest struct via the builder pattern

Name Type Description Notes

Return type

V2GetLocationsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]