All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
GetOrganizationSummary | Get /v1/organizations/{organization_id}/summary | Get organization usage summary |
GetOrganizationSummaryReply GetOrganizationSummary(ctx, organizationId).Execute()
Get organization usage summary
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
organizationId := "organizationId_example" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SummaryApi.GetOrganizationSummary(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SummaryApi.GetOrganizationSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationSummary`: GetOrganizationSummaryReply
fmt.Fprintf(os.Stdout, "Response from `SummaryApi.GetOrganizationSummary`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGetOrganizationSummaryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]