gcloud access-context-manager authorized-orgs create

NAME
gcloud access-context-manager authorized-orgs create - create a new authorized organizations description
SYNOPSIS
gcloud access-context-manager authorized-orgs create(AUTHORIZED_ORGS_DESC :--policy=POLICY)--asset_type=ASSET_TYPE--authorization_direction=AUTHORIZATION_DIRECTION--authorization_type=AUTHORIZATION_TYPE[--async][--orgs=[ORGS,…]][GCLOUD_WIDE_FLAG]
DESCRIPTION
Create a new authorized organizations description in a given access policy.
EXAMPLES
To create a new authorized organizations description:
gcloudaccess-context-managerauthorized-orgscreate--orgs=organizations/12345--policy=9876543
POSITIONAL ARGUMENTS
Authorized orgs desc resource - The authorized organizations description tocreate. The arguments in this group can be used to specify the attributes ofthis resource.

This must be specified.

AUTHORIZED_ORGS_DESC
ID of the authorized-orgs-desc or fully qualified identifier for theauthorized-orgs-desc.

To set theauthorized_orgs_desc attribute:

  • provide the argumentauthorized_orgs_desc on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--policy=POLICY
The ID of the access policy.To set thepolicy attribute:
  • provide the argumentauthorized_orgs_desc on the command line witha fully specified name;
  • provide the argument--policy on the command line;
  • set the propertyaccess_context_manager/policy;
  • automatically, if the current account belongs to an organization with exactlyone access policy..
REQUIRED FLAGS
--asset_type=ASSET_TYPE
The asset type of this authorized organizations description. For example,device, or credential strength.ASSET_TYPE must be oneof:asset-type-credential-strength,asset-type-device,asset-type-unspecified.
--authorization_direction=AUTHORIZATION_DIRECTION
Authorization direction of this authorization relationship. Specifies whether toallow specified organizations to evaluate this organization's traffic, or allowspecified organizations traffic to be evaluated by this org.AUTHORIZATION_DIRECTION must be one of:authorization-direction-from,authorization-direction-to,authorization-direction-unspecified.
--authorization_type=AUTHORIZATION_TYPE
The authorization type of the authorized organizations description. For example,trust, troubleshooting or logging.AUTHORIZATION_TYPEmust be one of:authorization-type-trust,authorization-type-unspecified.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--orgs=[ORGS,…]
Comma-separated list of organizations (in the following format:organizations/<organizationnumber>).
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

API REFERENCE
This command uses theaccesscontextmanager/v1 API. The fulldocumentation for this API can be found at:https://cloud.google.com/access-context-manager/docs/reference/rest/
NOTES
This variant is also available:
gcloudalphaaccess-context-managerauthorized-orgscreate

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.