Google Cloud Platform Organizations API

Manage Google Cloud organizations. An organization is the root node in the Google Cloud resource hierarchy, typically representing a company or business entity. Organizations are tied to a Google Workspace or Cloud Identity account.

Documentation

📖
Documentation
https://cloud.google.com/compute/docs/reference/rest/v1
📖
Authentication
https://cloud.google.com/docs/authentication
📖
GettingStarted
https://cloud.google.com/compute/docs/quickstart
📖
RateLimits
https://cloud.google.com/compute/quotas
📖
Documentation
https://cloud.google.com/storage/docs/json_api
📖
Authentication
https://cloud.google.com/storage/docs/authentication
📖
GettingStarted
https://cloud.google.com/storage/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/storage/quotas
📖
Documentation
https://cloud.google.com/functions/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/functions/docs/quickstart
📖
RateLimits
https://cloud.google.com/functions/quotas
📖
Documentation
https://cloud.google.com/kubernetes-engine/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/kubernetes-engine/docs/quickstart
📖
RateLimits
https://cloud.google.com/kubernetes-engine/quotas
📖
Documentation
https://cloud.google.com/bigquery/docs/reference/rest
📖
Authentication
https://cloud.google.com/bigquery/docs/authentication
📖
GettingStarted
https://cloud.google.com/bigquery/docs/quickstarts
📖
RateLimits
https://cloud.google.com/bigquery/quotas
📖
Documentation
https://cloud.google.com/pubsub/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/pubsub/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/pubsub/quotas
📖
Documentation
https://cloud.google.com/vision/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/vision/docs/quickstart
📖
Documentation
https://cloud.google.com/vertex-ai/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/vertex-ai/docs/start/introduction-unified-platform
📖
RateLimits
https://cloud.google.com/vertex-ai/docs/quotas
📖
Documentation
https://cloud.google.com/natural-language/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/natural-language/docs/quickstarts
📖
Documentation
https://cloud.google.com/speech-to-text/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/speech-to-text/docs/quickstart
📖
Documentation
https://cloud.google.com/translate/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/translate/docs/quickstarts
📖
Documentation
https://cloud.google.com/run/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/run/docs/quickstarts
📖
RateLimits
https://cloud.google.com/run/quotas
📖
Documentation
https://cloud.google.com/sql/docs/mysql/admin-api/rest
📖
GettingStarted
https://cloud.google.com/sql/docs/mysql/quickstart
📖
RateLimits
https://cloud.google.com/sql/docs/quotas
📖
Documentation
https://cloud.google.com/spanner/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/spanner/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/spanner/quotas
📖
Documentation
https://cloud.google.com/firestore/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/firestore/docs/quickstart
📖
Documentation
https://cloud.google.com/bigtable/docs/reference/admin/rest
📖
GettingStarted
https://cloud.google.com/bigtable/docs/quickstart
📖
RateLimits
https://cloud.google.com/bigtable/quotas
📖
Documentation
https://cloud.google.com/iam/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/iam/docs/quickstart
📖
Documentation
https://cloud.google.com/dns/docs/reference/rest/v1
📖
GettingStarted
https://cloud.google.com/dns/docs/quickstart
📖
RateLimits
https://cloud.google.com/dns/quotas
📖
Documentation
https://cloud.google.com/logging/docs/reference/v2/rest
📖
GettingStarted
https://cloud.google.com/logging/docs/quickstart-sdk
📖
RateLimits
https://cloud.google.com/logging/quotas
📖
Documentation
https://cloud.google.com/monitoring/api/ref_v3/rest
📖
GettingStarted
https://cloud.google.com/monitoring/docs/quickstart
📖
RateLimits
https://cloud.google.com/monitoring/quotas
📖
Documentation
https://cloud.google.com/dataflow/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/dataflow/docs/quickstarts
📖
RateLimits
https://cloud.google.com/dataflow/quotas
📖
Documentation
https://cloud.google.com/dataproc/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/dataproc/docs/quickstarts
📖
RateLimits
https://cloud.google.com/dataproc/quotas
📖
Documentation
https://cloud.google.com/kms/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/kms/docs/quickstart
📖
Documentation
https://cloud.google.com/secret-manager/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/secret-manager/docs/quickstart
📖
RateLimits
https://cloud.google.com/secret-manager/quotas
📖
Documentation
https://cloud.google.com/artifact-registry/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/artifact-registry/docs/quickstarts
📖
Documentation
https://cloud.google.com/build/docs/api/reference/rest
📖
GettingStarted
https://cloud.google.com/build/docs/quickstart-build
📖
Documentation
https://cloud.google.com/resource-manager/reference/rest
📖
GettingStarted
https://cloud.google.com/resource-manager/docs/creating-managing-projects
📖
Documentation
https://cloud.google.com/tasks/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/tasks/docs/quickstart
📖
RateLimits
https://cloud.google.com/tasks/docs/quotas
📖
Documentation
https://cloud.google.com/scheduler/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/scheduler/docs/quickstart
📖
Documentation
https://cloud.google.com/text-to-speech/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/text-to-speech/docs/quickstart-protocol
📖
Documentation
https://cloud.google.com/api-gateway/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/api-gateway/docs/quickstart
📖
Documentation
https://cloud.google.com/workflows/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/workflows/docs/quickstart-console
📖
Documentation
https://cloud.google.com/deploy/docs/api/reference/rest
📖
GettingStarted
https://cloud.google.com/deploy/docs/quickstart
📖
Documentation
https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3-overview
📖
GettingStarted
https://cloud.google.com/dialogflow/cx/docs/quick/setup
📖
Documentation
https://cloud.google.com/sensitive-data-protection/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/sensitive-data-protection/docs/quickstart
📖
Documentation
https://cloud.google.com/memorystore/docs/redis/reference/rest
📖
GettingStarted
https://cloud.google.com/memorystore/docs/redis/quickstart

Specifications

Schemas & Data

Other Resources

🔗
Pricing
https://cloud.google.com/compute/pricing
🔗
Console
https://console.cloud.google.com/compute
🔗
SDKs
https://cloud.google.com/compute/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/compute/docs/release-notes
🔗
Pricing
https://cloud.google.com/storage/pricing
🔗
Console
https://console.cloud.google.com/storage
🔗
SDKs
https://cloud.google.com/storage/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/storage/docs/release-notes
🔗
Pricing
https://cloud.google.com/functions/pricing
🔗
Console
https://console.cloud.google.com/functions
🔗
SDKs
https://cloud.google.com/functions/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/functions/docs/release-notes
🔗
Pricing
https://cloud.google.com/kubernetes-engine/pricing
🔗
Console
https://console.cloud.google.com/kubernetes
🔗
SDKs
https://cloud.google.com/kubernetes-engine/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/kubernetes-engine/docs/release-notes
🔗
Pricing
https://cloud.google.com/bigquery/pricing
🔗
Console
https://console.cloud.google.com/bigquery
🔗
SDKs
https://cloud.google.com/bigquery/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/bigquery/docs/release-notes
🔗
Pricing
https://cloud.google.com/pubsub/pricing
🔗
Console
https://console.cloud.google.com/cloudpubsub
🔗
SDKs
https://cloud.google.com/pubsub/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/pubsub/docs/release-notes
🔗
Pricing
https://cloud.google.com/vision/pricing
🔗
Console
https://console.cloud.google.com/apis/library/vision.googleapis.com
🔗
SDKs
https://cloud.google.com/vision/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/vision/docs/release-notes
🔗
Pricing
https://cloud.google.com/vertex-ai/pricing
🔗
Console
https://console.cloud.google.com/vertex-ai
🔗
SDKs
https://cloud.google.com/vertex-ai/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/vertex-ai/docs/release-notes
🔗
Pricing
https://cloud.google.com/natural-language/pricing
🔗
Console
https://console.cloud.google.com/apis/library/language.googleapis.com
🔗
SDKs
https://cloud.google.com/natural-language/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/natural-language/docs/release-notes
🔗
Pricing
https://cloud.google.com/speech-to-text/pricing
🔗
Console
https://console.cloud.google.com/apis/library/speech.googleapis.com
🔗
SDKs
https://cloud.google.com/speech-to-text/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/speech-to-text/docs/release-notes
🔗
Pricing
https://cloud.google.com/translate/pricing
🔗
Console
https://console.cloud.google.com/apis/library/translate.googleapis.com
🔗
SDKs
https://cloud.google.com/translate/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/translate/docs/release-notes
🔗
Pricing
https://cloud.google.com/run/pricing
🔗
Console
https://console.cloud.google.com/run
🔗
SDKs
https://cloud.google.com/run/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/run/docs/release-notes
🔗
Pricing
https://cloud.google.com/sql/pricing
🔗
Console
https://console.cloud.google.com/sql
🔗
SDKs
https://cloud.google.com/sql/docs/mysql/apis
🔗
ReleaseNotes
https://cloud.google.com/sql/docs/release-notes
🔗
Pricing
https://cloud.google.com/spanner/pricing
🔗
Console
https://console.cloud.google.com/spanner
🔗
SDKs
https://cloud.google.com/spanner/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/spanner/docs/release-notes
🔗
Pricing
https://cloud.google.com/firestore/pricing
🔗
Console
https://console.cloud.google.com/firestore
🔗
SDKs
https://cloud.google.com/firestore/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/firestore/docs/release-notes
🔗
Pricing
https://cloud.google.com/bigtable/pricing
🔗
Console
https://console.cloud.google.com/bigtable
🔗
SDKs
https://cloud.google.com/bigtable/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/bigtable/docs/release-notes
🔗
Pricing
https://cloud.google.com/iam/pricing
🔗
Console
https://console.cloud.google.com/iam-admin
🔗
SDKs
https://cloud.google.com/iam/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/iam/docs/release-notes
🔗
Pricing
https://cloud.google.com/dns/pricing
🔗
Console
https://console.cloud.google.com/net-services/dns
🔗
SDKs
https://cloud.google.com/dns/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dns/docs/release-notes
🔗
Pricing
https://cloud.google.com/logging/pricing
🔗
Console
https://console.cloud.google.com/logs
🔗
SDKs
https://cloud.google.com/logging/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/logging/docs/release-notes
🔗
Pricing
https://cloud.google.com/monitoring/pricing
🔗
Console
https://console.cloud.google.com/monitoring
🔗
SDKs
https://cloud.google.com/monitoring/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/monitoring/docs/release-notes
🔗
Pricing
https://cloud.google.com/dataflow/pricing
🔗
Console
https://console.cloud.google.com/dataflow
🔗
SDKs
https://cloud.google.com/dataflow/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dataflow/docs/release-notes
🔗
Pricing
https://cloud.google.com/dataproc/pricing
🔗
Console
https://console.cloud.google.com/dataproc
🔗
SDKs
https://cloud.google.com/dataproc/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dataproc/docs/release-notes
🔗
Pricing
https://cloud.google.com/kms/pricing
🔗
Console
https://console.cloud.google.com/security/kms
🔗
SDKs
https://cloud.google.com/kms/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/kms/docs/release-notes
🔗
Pricing
https://cloud.google.com/secret-manager/pricing
🔗
Console
https://console.cloud.google.com/security/secret-manager
🔗
SDKs
https://cloud.google.com/secret-manager/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/secret-manager/docs/release-notes
🔗
Pricing
https://cloud.google.com/artifact-registry/pricing
🔗
Console
https://console.cloud.google.com/artifacts
🔗
SDKs
https://cloud.google.com/artifact-registry/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/artifact-registry/docs/release-notes
🔗
Pricing
https://cloud.google.com/build/pricing
🔗
Console
https://console.cloud.google.com/cloud-build
🔗
SDKs
https://cloud.google.com/build/docs/api/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/build/docs/release-notes
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/google-cloud-platform/refs/heads/main/json-ld/google-cloud-platform-context.jsonld
🔗
Pricing
https://cloud.google.com/resource-manager/pricing
🔗
Console
https://console.cloud.google.com/cloud-resource-manager
🔗
SDKs
https://cloud.google.com/resource-manager/docs/apis
🔗
ReleaseNotes
https://cloud.google.com/resource-manager/docs/release-notes
🔗
Pricing
https://cloud.google.com/tasks/pricing
🔗
Console
https://console.cloud.google.com/cloudtasks
🔗
SDKs
https://cloud.google.com/tasks/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/tasks/docs/release-notes
🔗
Pricing
https://cloud.google.com/scheduler/pricing
🔗
Console
https://console.cloud.google.com/cloudscheduler
🔗
SDKs
https://cloud.google.com/scheduler/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/scheduler/docs/release-notes
🔗
Pricing
https://cloud.google.com/text-to-speech/pricing
🔗
Console
https://console.cloud.google.com/apis/library/texttospeech.googleapis.com
🔗
SDKs
https://cloud.google.com/text-to-speech/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/text-to-speech/docs/release-notes
🔗
Pricing
https://cloud.google.com/api-gateway/pricing
🔗
Console
https://console.cloud.google.com/api-gateway
🔗
SDKs
https://cloud.google.com/api-gateway/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/api-gateway/docs/release-notes
🔗
Pricing
https://cloud.google.com/workflows/pricing
🔗
Console
https://console.cloud.google.com/workflows
🔗
SDKs
https://cloud.google.com/workflows/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/workflows/docs/release-notes
🔗
Pricing
https://cloud.google.com/deploy/pricing
🔗
Console
https://console.cloud.google.com/deploy
🔗
SDKs
https://cloud.google.com/deploy/docs/api
🔗
ReleaseNotes
https://cloud.google.com/deploy/docs/release-notes
🔗
Pricing
https://cloud.google.com/dialogflow/pricing
🔗
Console
https://console.cloud.google.com/apis/library/dialogflow.googleapis.com
🔗
SDKs
https://cloud.google.com/dialogflow/cx/docs/reference
🔗
ReleaseNotes
https://cloud.google.com/dialogflow/cx/docs/release-notes
🔗
Pricing
https://cloud.google.com/sensitive-data-protection/pricing
🔗
Console
https://console.cloud.google.com/security/sensitive-data-protection
🔗
SDKs
https://cloud.google.com/sensitive-data-protection/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/sensitive-data-protection/docs/release-notes
🔗
Pricing
https://cloud.google.com/memorystore/docs/redis/pricing
🔗
Console
https://console.cloud.google.com/memorystore/redis
🔗
SDKs
https://cloud.google.com/memorystore/docs/redis/apis
🔗
ReleaseNotes
https://cloud.google.com/memorystore/docs/redis/release-notes

OpenAPI Specification

google-cloud-platform-organizations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Google Cloud Platform Google Cloud Resource Manager Folders Organizations API
  description: Programmatically manage Google Cloud projects, folders, and organizations. The Cloud Resource Manager API enables you to create, read, update, and delete projects, folders, and organizations in the Google Cloud resource hierarchy. It provides the foundation for organizing and governing Google Cloud resources through a hierarchical structure of organizations, folders, and projects.
  version: v3
  termsOfService: https://cloud.google.com/terms
  contact:
    name: Google Cloud Platform
    url: https://cloud.google.com/resource-manager/
  license:
    name: Creative Commons Attribution 4.0
    url: https://creativecommons.org/licenses/by/4.0/
  x-logo:
    url: https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png
servers:
- url: https://cloudresourcemanager.googleapis.com
  description: Google Cloud Resource Manager API production endpoint
security:
- oauth2:
  - https://www.googleapis.com/auth/cloud-platform
- oauth2:
  - https://www.googleapis.com/auth/cloud-platform.read-only
tags:
- name: Organizations
  description: Manage Google Cloud organizations. An organization is the root node in the Google Cloud resource hierarchy, typically representing a company or business entity. Organizations are tied to a Google Workspace or Cloud Identity account.
paths:
  /v3/organizations/{organizationId}:
    get:
      operationId: cloudresourcemanager.organizations.get
      summary: Google Cloud Platform Get an Organization
      description: Fetches an organization resource identified by the specified resource name, such as organizations/12345. The caller must have the resourcemanager.organizations.get permission on the organization.
      tags:
      - Organizations
      parameters:
      - name: organizationId
        in: path
        description: The resource name of the organization to fetch, such as organizations/12345.
        required: true
        schema:
          type: string
        example: '500123'
      responses:
        '200':
          description: Successful response containing the organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
              examples:
                CloudresourcemanagerOrganizationsGet200Example:
                  summary: Default cloudresourcemanager.organizations.get 200 response
                  x-microcks-default: true
                  value:
                    name: Example Title
                    displayName: example_value
                    directoryCustomerId: '500123'
                    state: STATE_UNSPECIFIED
                    createTime: '2026-01-15T10:30:00Z'
                    updateTime: '2026-01-15T10:30:00Z'
                    deleteTime: '2026-01-15T10:30:00Z'
                    etag: example_value
        '401':
          description: Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsGet401Example:
                  summary: Default cloudresourcemanager.organizations.get 401 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '403':
          description: The caller does not have required permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsGet403Example:
                  summary: Default cloudresourcemanager.organizations.get 403 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '404':
          description: The specified organization was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsGet404Example:
                  summary: Default cloudresourcemanager.organizations.get 404 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v3/organizations:search:
    get:
      operationId: cloudresourcemanager.organizations.search
      summary: Google Cloud Platform Search Organizations
      description: Searches for organizations that the caller has the resourcemanager.organizations.get permission on. Organizations can be searched by domain or display name.
      tags:
      - Organizations
      parameters:
      - name: query
        in: query
        description: 'An optional query string used to filter organizations. Supported filter fields include domain and displayName. Example: domain:example.com.'
        schema:
          type: string
        example: example_value
      - name: pageSize
        in: query
        description: Maximum number of organizations to return.
        schema:
          type: integer
          format: int32
        example: 10
      - name: pageToken
        in: query
        description: Pagination token from a previous search call.
        schema:
          type: string
        example: example_value
      responses:
        '200':
          description: Successful response containing matching organizations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchOrganizationsResponse'
              examples:
                CloudresourcemanagerOrganizationsSearch200Example:
                  summary: Default cloudresourcemanager.organizations.search 200 response
                  x-microcks-default: true
                  value:
                    organizations:
                    - name: Example Title
                      displayName: example_value
                      directoryCustomerId: '500123'
                      state: STATE_UNSPECIFIED
                      createTime: '2026-01-15T10:30:00Z'
                      updateTime: '2026-01-15T10:30:00Z'
                      deleteTime: '2026-01-15T10:30:00Z'
                      etag: example_value
                    nextPageToken: example_value
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsSearch400Example:
                  summary: Default cloudresourcemanager.organizations.search 400 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '401':
          description: Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsSearch401Example:
                  summary: Default cloudresourcemanager.organizations.search 401 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v3/organizations/{resource}:getIamPolicy:
    post:
      operationId: cloudresourcemanager.organizations.getIamPolicy
      summary: Google Cloud Platform Get Organization Iam Policy
      description: Gets the access control policy for an organization resource. The caller must have the resourcemanager.organizations.getIamPolicy permission on the organization.
      tags:
      - Organizations
      parameters:
      - name: resource
        in: path
        description: The resource name of the organization.
        required: true
        schema:
          type: string
        example: example_value
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetIamPolicyRequest'
            examples:
              CloudresourcemanagerOrganizationsGetiampolicyRequestExample:
                summary: Default cloudresourcemanager.organizations.getIamPolicy request
                x-microcks-default: true
                value:
                  options:
                    requestedPolicyVersion: 10
      responses:
        '200':
          description: Successful response containing the IAM policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
              examples:
                CloudresourcemanagerOrganizationsGetiampolicy200Example:
                  summary: Default cloudresourcemanager.organizations.getIamPolicy 200 response
                  x-microcks-default: true
                  value:
                    version: 10
                    bindings:
                    - role: example_value
                      members: {}
                    etag: example_value
        '401':
          description: Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsGetiampolicy401Example:
                  summary: Default cloudresourcemanager.organizations.getIamPolicy 401 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '403':
          description: The caller does not have required permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsGetiampolicy403Example:
                  summary: Default cloudresourcemanager.organizations.getIamPolicy 403 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v3/organizations/{resource}:setIamPolicy:
    post:
      operationId: cloudresourcemanager.organizations.setIamPolicy
      summary: Google Cloud Platform Set Organization Iam Policy
      description: Sets the access control policy on an organization resource, replacing any existing policy. The caller must have the resourcemanager.organizations.setIamPolicy permission on the organization.
      tags:
      - Organizations
      parameters:
      - name: resource
        in: path
        description: The resource name of the organization.
        required: true
        schema:
          type: string
        example: example_value
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetIamPolicyRequest'
            examples:
              CloudresourcemanagerOrganizationsSetiampolicyRequestExample:
                summary: Default cloudresourcemanager.organizations.setIamPolicy request
                x-microcks-default: true
                value:
                  policy:
                    version: 10
                    bindings:
                    - {}
                    etag: example_value
                  updateMask: example_value
      responses:
        '200':
          description: Successful response containing the updated IAM policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
              examples:
                CloudresourcemanagerOrganizationsSetiampolicy200Example:
                  summary: Default cloudresourcemanager.organizations.setIamPolicy 200 response
                  x-microcks-default: true
                  value:
                    version: 10
                    bindings:
                    - role: example_value
                      members: {}
                    etag: example_value
        '400':
          description: Invalid policy data provided.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsSetiampolicy400Example:
                  summary: Default cloudresourcemanager.organizations.setIamPolicy 400 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '401':
          description: Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsSetiampolicy401Example:
                  summary: Default cloudresourcemanager.organizations.setIamPolicy 401 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
        '403':
          description: The caller does not have required permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              examples:
                CloudresourcemanagerOrganizationsSetiampolicy403Example:
                  summary: Default cloudresourcemanager.organizations.setIamPolicy 403 response
                  x-microcks-default: true
                  value:
                    code: 10
                    message: example_value
                    details:
                    - {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    GetIamPolicyRequest:
      type: object
      description: Request message for GetIamPolicy method.
      properties:
        options:
          type: object
          description: Optional options for the request.
          properties:
            requestedPolicyVersion:
              type: integer
              format: int32
              description: The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3.
          example: example_value
    Binding:
      type: object
      description: Associates members with a role.
      properties:
        role:
          type: string
          description: 'The role that is assigned to the list of members. Example: roles/resourcemanager.projectViewer.'
          examples:
          - roles/resourcemanager.projectViewer
        members:
          type: array
          description: The identities requesting access. Supports user, serviceAccount, group, and domain members.
          items:
            type: string
          examples:
          - - user:alice@example.com
            - serviceAccount:my-sa@project.iam.gserviceaccount.com
            - group:admins@example.com
            - domain:example.com
        condition:
          $ref: '#/components/schemas/Expr'
    Policy:
      type: object
      description: An Identity and Access Management (IAM) policy which specifies access controls for Google Cloud resources. A Policy is a collection of bindings that associate members with roles.
      properties:
        version:
          type: integer
          format: int32
          description: Specifies the format of the policy. Valid values are 0, 1, and 3. Version 3 supports conditional role bindings.
          example: 10
        bindings:
          type: array
          description: Associates a list of members to a role, optionally with a condition.
          items:
            $ref: '#/components/schemas/Binding'
          example: []
        etag:
          type: string
          format: byte
          description: etag is used for optimistic concurrency control to help prevent simultaneous updates of a policy from overwriting each other.
          example: example_value
    Expr:
      type: object
      description: Represents a textual expression in the Common Expression Language (CEL) syntax. Used for conditional access policies.
      properties:
        expression:
          type: string
          description: 'The CEL expression string. Example: request.time < timestamp("2024-01-01T00:00:00Z").'
          example: example_value
        title:
          type: string
          description: An optional title for the expression.
          example: Example Title
        description:
          type: string
          description: An optional description of the expression.
          example: A sample description.
        location:
          type: string
          description: An optional string indicating the location of the expression for error reporting.
          example: example_value
    SetIamPolicyRequest:
      type: object
      description: Request message for SetIamPolicy method.
      properties:
        policy:
          $ref: '#/components/schemas/Policy'
        updateMask:
          type: string
          description: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified.
          example: example_value
      required:
      - policy
    SearchOrganizationsResponse:
      type: object
      description: Response message for searching organizations.
      properties:
        organizations:
          type: array
          description: The list of organizations matching the search criteria.
          items:
            $ref: '#/components/schemas/Organization'
          example: []
        nextPageToken:
          type: string
          description: Pagination token for the next page of results.
          example: example_value
    Status:
      type: object
      description: The Status type defines a logical error model that is suitable for REST APIs. It is used to communicate error details from the API.
      properties:
        code:
          type: integer
          format: int32
          description: The status code, which should be an enum value of google.rpc.Code.
          example: 10
        message:
          type: string
          description: A developer-facing error message in English.
          example: example_value
        details:
          type: array
          description: A list of messages that carry the error details.
          items:
            type: object
            additionalProperties: true
          example: []
    Organization:
      type: object
      description: The root node in the resource hierarchy to which a particular entity's resources belong. An organization is tied to a Google Workspace or Cloud Identity account. Organizations cannot be created or deleted through the API; they are automatically provisioned when a Google Workspace or Cloud Identity account is created.
      properties:
        name:
          type: string
          description: The resource name of the organization in the form organizations/{organization_id}. Output only.
          readOnly: true
          examples:
          - organizations/987654321
        displayName:
          type: string
          description: A human-readable string that refers to the organization in the Google Cloud Console. This field is output only and derived from the associated Google Workspace or Cloud Identity account.
          readOnly: true
          examples:
          - Example Corp
        directoryCustomerId:
          type: string
          description: The unique identifier for the Google Workspace or Cloud Identity account associated with this organization. Output only.
          readOnly: true
          example: '500123'
        state:
          type: string
          description: The organization lifecycle state. Output only.
          readOnly: true
          enum:
          - STATE_UNSPECIFIED
          - ACTIVE
          - DELETE_REQUESTED
          example: STATE_UNSPECIFIED
        createTime:
          type: string
          format: date-time
          description: Timestamp when the organization was created. Output only.
          readOnly: true
          example: '2026-01-15T10:30:00Z'
        updateTime:
          type: string
          format: date-time
          description: Timestamp when the organization was last modified. Output only.
          readOnly: true
          example: '2026-01-15T10:30:00Z'
        deleteTime:
          type: string
          format: date-time
          description: Timestamp of when the delete request was sent. Output only.
          readOnly: true
          example: '2026-01-15T10:30:00Z'
        etag:
          type: string
          description: A checksum computed by the server based on the current value of the organization resource.
          readOnly: true
          example: example_value
  securitySchemes:
    oauth2:
      type: oauth2
      description: OAuth 2.0 authentication using Google Cloud service accounts or user credentials. Supports both service-to-service and end-user authentication flows.
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/cloud-platform: Full access to view and manage Google Cloud resources.
            https://www.googleapis.com/auth/cloud-platform.read-only: Read-only access to view Google Cloud resources.
    apiKey:
      type: apiKey
      name: key
      in: query
      description: API key for identifying the calling project.