gcloud alpha access-context-manager authorized-orgs create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha access-context-manager authorized-orgs create - create a new authorized organizations description
- SYNOPSIS
gcloud alpha 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
(ALPHA)Create a new authorized organizations description in agiven access policy.- EXAMPLES
- To create a new authorized organizations description:
gcloudalphaaccess-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 the
authorized_orgs_descattribute:- provide the argument
authorized_orgs_descon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--policy=POLICY- The ID of the access policy.To set the
policyattribute:- provide the argument
authorized_orgs_descon the command line witha fully specified name; - provide the argument
--policyon the command line; - set the property
access_context_manager/policy; - automatically, if the current account belongs to an organization with exactlyone access policy..
- provide the argument
- Authorized orgs desc resource - The authorized organizations description tocreate. The arguments in this group can be used to specify the attributes ofthis resource.
- REQUIRED FLAGS
--asset_type=ASSET_TYPE- The asset type of this authorized organizations description. For example,device, or credential strength.
ASSET_TYPEmust 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_DIRECTIONmust 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 helpfor details. - API REFERENCE
- This command uses the
accesscontextmanager/v1alphaAPI. The fulldocumentation for this API can be found at:https://cloud.google.com/access-context-manager/docs/reference/rest/ - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudaccess-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.