Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 2.1 KB

SummaryApi.md

File metadata and controls

77 lines (49 loc) · 2.1 KB

\SummaryApi

All URIs are relative to https://app.koyeb.com

Method HTTP request Description
GetOrganizationSummary Get /v1/organizations/{organization_id}/summary Get organization usage summary

GetOrganizationSummary

GetOrganizationSummaryReply GetOrganizationSummary(ctx, organizationId).Execute()

Get organization usage summary

Example

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

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

Name Type Description Notes

Return type

GetOrganizationSummaryReply

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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