Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.74 KB

OrganizationsApi.md

File metadata and controls

72 lines (46 loc) · 1.74 KB

Organizations

All URIs are relative to https://cockroachlabs.cloud

Method HTTP request Description
GetOrganizationInfo Get /api/v1/organization Get information about the caller's organization

GetOrganizationInfo

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

Example

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

Path Parameters

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

Other Parameters

Return type

Organization

Authorization

Bearer

HTTP request headers

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

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