All URIs are relative to https://cockroachlabs.cloud
Method | HTTP request | Description |
---|---|---|
GetOrganizationInfo | Get /api/v1/organization | Get information about the caller's organization |
Organization GetOrganizationInfo(ctx).Execute()
Get information about the caller's organization
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
- ORG_MEMBER
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.OrganizationsApi.GetOrganizationInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsApi.GetOrganizationInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationInfo`: Organization
fmt.Fprintf(os.Stdout, "Response from `OrganizationsApi.GetOrganizationInfo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
- Content-Type: Not defined
- Accept: application/json