Skip to main content

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​

ParameterDescription
-e, --env-id <envId>Environment ID. Select interactively when omitted
-y, --yesNon-interactive mode; fails when -e is missing
--jsonOutput JSON

Output​

SourceStatusVPC whitelist
PUBLICOPEN / CLOSE-
VPCOPEN / CLOSEOPEN (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