Stay organized with collections Save and categorize content based on your preferences.
gcloud alpha access-context-manager policies create
--organization
=ORGANIZATION
--title
=TITLE
[--async
] [--scopes
=[SCOPES
,…]] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
Create a new Access Context Manager policy. An Access Context Manager policy, also known as an access policy, is a container for access levels and VPC Service Controls service perimeters.
You can optionally specify either a folder or a project as a scope of an access policy. A scoped policy only allows projects under that scope to be restricted by any service perimeters defined with that policy. The scope must be within the organization that this policy is associated with. You can specify only one folder or project as the scope for an access policy. If you don't specify a scope, then the scope extends to the entire organization and any projects within the organization can be added to service perimeters in this policy.
This command only creates an access policy. Access levels and service perimeters need to be created explicitly.
gcloud alpha access-context-manager policies create --organization=organizations/123 --title="My Policy"
To create an access policy that applies to the folder with the ID 345, run:
gcloud alpha access-context-manager policies create --organization=organizations/123 --scopes=folders/345 --title="My Folder Policy"
Only projects within this folder can be added to service perimeters within this policy.
To create an access policy that applies only to the project with the project number 567, run:
gcloud alpha access-context-manager policies create --organization=organizations/123 --scopes=projects/567 --title="My Project Policy"
--organization
=ORGANIZATION
--title
=TITLE
--async
--scopes
=[SCOPES
,…]
--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.
accesscontextmanager/v1alpha
API. The full documentation for this API can be found at: https://cloud.google.com/access-context-manager/docs/reference/rest/
gcloud access-context-manager policies create
gcloud beta access-context-manager policies create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4