一键导入
gcloud-beyondcorp
BeyondCorp Enterprise (Chrome Enterprise Premium) via gcloud (`gcloud beyondcorp`). Manage Beyondcorp resources — operations, security-gateways.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
BeyondCorp Enterprise (Chrome Enterprise Premium) via gcloud (`gcloud beyondcorp`). Manage Beyondcorp resources — operations, security-gateways.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
gcloud CLI reference: 128 GCP services, all GA commands with full flags, plus the standalone bq CLI. Use for any Google Cloud / GCP command-line task — managing resources, debugging gcloud commands, auth/config/scripting — or whenever a GCP product is named (GKE, Cloud Run, BigQuery, Cloud SQL, Pub/Sub...), even without 'gcloud'.
Access Approval via gcloud (`gcloud access-approval`). Manage Access Approval requests and settings — requests, service-account, settings.
Access Context Manager (VPC Service Controls) via gcloud (`gcloud access-context-manager`). Manage Access Context Manager resources — authorized-orgs, cloud-bindings, levels, perimeters, policies, supported-services.
Managed Service for Microsoft AD via gcloud (`gcloud active-directory`). Manage Managed Microsoft AD resources — domains, operations, peerings.
Agent Registry via gcloud (`gcloud agent-registry`). Manage Agent Registry resources — agents, bindings, endpoints, mcp-servers, operations, services.
AI Platform (legacy) via gcloud (`gcloud ai-platform`). Manage AI Platform jobs and models — jobs, local, models, operations, versions.
| name | gcloud-beyondcorp |
| description | BeyondCorp Enterprise (Chrome Enterprise Premium) via gcloud (`gcloud beyondcorp`). Manage Beyondcorp resources — operations, security-gateways. |
gcloud beyondcorp manages the Security Gateway resources of Google Cloud's BeyondCorp Enterprise zero-trust access platform (now branded Chrome Enterprise Premium). A security gateway proxies and routes traffic to internal, on-premises, or external applications based on user identity, device posture, and context — without a traditional VPN. Reach for it when you need to publish private or SaaS applications behind a context-aware, identity-driven gateway. The GA surface covers two groups: security-gateways (with a nested applications subgroup) and operations.
gcloud services enable beyondcorp.googleapis.com
# Security gateways support only the global location
gcloud beyondcorp security-gateways create my-gateway \
--location=global \
--display-name="My Security Gateway"
# Create asynchronously, then poll the long-running operation
gcloud beyondcorp security-gateways create my-gateway \
--location=global \
--display-name="My Security Gateway" \
--async
gcloud beyondcorp operations list --location=global
gcloud beyondcorp security-gateways list --location=global
gcloud beyondcorp security-gateways describe my-gateway \
--location=global
# endpoint-matchers maps hostnames/ports to this application (OR logic across matchers)
gcloud beyondcorp security-gateways applications create my-app \
--security-gateway=my-gateway \
--location=global \
--display-name="My Application" \
--endpoint-matchers=hostname=myapp.internal.example.com,ports=[443]
gcloud beyondcorp security-gateways applications list \
--security-gateway=my-gateway \
--location=global
gcloud beyondcorp security-gateways applications describe my-app \
--security-gateway=my-gateway \
--location=global
gcloud beyondcorp security-gateways update my-gateway \
--location=global \
--display-name="Updated Gateway Name"
# Replace the regional data-path hubs map (key = GCP region)
gcloud beyondcorp security-gateways update my-gateway \
--location=global \
--hubs='{"us-central1": {}}'
gcloud beyondcorp security-gateways get-iam-policy my-gateway \
--location=global \
--project=my-project-id
gcloud beyondcorp security-gateways set-iam-policy my-gateway policy.json \
--location=global
gcloud beyondcorp security-gateways applications get-iam-policy my-app \
--security-gateway=my-gateway \
--location=global \
--project=my-project-id
# Dry-run first: --validate-only does not alter the resource
gcloud beyondcorp security-gateways applications delete my-app \
--security-gateway=my-gateway \
--location=global \
--validate-only
gcloud beyondcorp security-gateways applications delete my-app \
--security-gateway=my-gateway \
--location=global
gcloud beyondcorp security-gateways delete my-gateway \
--location=global
| Group | Reference file | Commands | Description |
|---|---|---|---|
operations | operations.md | describe, list | Track long-running BeyondCorp operations |
security-gateways | security-gateways.md | create, delete, describe, list, update, get-iam-policy, set-iam-policy | Manage zero-trust security gateways |
security-gateways applications | security-gateways.md | create, delete, describe, list, update, get-iam-policy, set-iam-policy | Manage applications published behind a gateway |
global. Every security-gateways and applications command requires --location=global; no other location is supported.applications command requires --security-gateway=GATEWAY in addition to --location (or a fully qualified resource name).create, update, and delete accept --async to return immediately; track progress with gcloud beyondcorp operations list --location=global and gcloud beyondcorp operations describe OPERATION --location=global.delete supports --validate-only to validate the request without altering the resource.--request-id (a valid non-zero UUID) so retries are not double-applied.--endpoint-matchers=hostname=HOST,ports=[443], or pass JSON / a YAML/JSON file for multiple matchers.security-gateways update, hubs can be set with --hubs, --update-hubs, --remove-hubs, or --clear-hubs; on applications update, endpoint matchers and upstreams each have matching --add-, --remove-, and --clear- variants.list and get-iam-policy support --filter, --limit, --sort-by, --page-size; list also supports --uri. Example:
gcloud beyondcorp security-gateways list --location=global \
--filter="displayName~prod" --format="table(name, displayName, state)"
The brand surface is broader under beta/alpha than the GA gcloud beyondcorp:
gcloud beta beyondcorp adds the connector-based architecture:
app — connections, connectors, gateways, operations (App Connectors / App Connections for routing private and on-prem traffic).client-connector (deprecated) — gateways and services for context-aware access to non-web apps.security-gateways — same surface as GA.gcloud alpha beyondcorp exposes only app (connections, connectors, operations); no security-gateways or client-connector. Alpha commands carry a "may change without notice" warning.Summary: GA = security gateways only; beta adds the App Connector model; alpha = App Connectors/Connections only.
app surface).roles/beyondcorp.* roles (admin, editor, viewer, subscriptionAdmin, subscriptionViewer).