tcb env access get
View the access source configuration of the environment's default domain: the status of public and VPC access, plus the VPC whitelist.
Supported on Enterprise and Platform Edition packages only; the command is available since v3.9.4.
Usage
tcb env access get [options]
Parameters
| Parameter | Description |
|---|---|
-e, --env-id <envId> | Environment ID. Select interactively when omitted |
-y, --yes | Non-interactive mode; fails when -e is missing |
--json | Output JSON |
Output
| Source | Status | VPC whitelist |
|---|---|---|
| PUBLIC | OPEN / CLOSE | - |
| VPC | OPEN / CLOSE | OPEN (vpc-xxx@ap-shanghai) / CLOSE |
OPEN allows the source, CLOSE blocks it. When the VPC whitelist is CLOSE, the list is kept but does not take part in allowing access.
JSON Output
{
"data": {
"Current": [
{ "SourceType": "PUBLIC", "Action": "OPEN" },
{
"SourceType": "VPC",
"Action": "OPEN",
"VPCWhiteList": {
"Action": "OPEN",
"VPCs": [{ "UniqVpcId": "vpc-xxx", "Region": "ap-shanghai" }]
}
}
],
"RequestId": "…"
}
}
Current also contains the internal WX and WOA sources, which the table does not show.
Examples
tcb env access get -e env-xxx
tcb env access get -e env-xxx --json
Related Commands
- Modify Access Control
- Resource Configuration: view the resources configured in an environment