workspace__ApplyInternet
Enable internet access for a Workspace by provisioning or reusing a NAT gateway and EIP with specified VPC, subnet, bandwidth, and billing mode.
Instructions
[WORKSPACE] 开通上网功能。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bandwidth_size": "<bandwidth_size>",
"eip_charge_mode": "<eip_charge_mode>",
"nat_spec": "<nat_spec>",
"project_id": "<project_id>",
"subnet_id": "<subnet_id>",
"vpc_id": "<vpc_id>"
},
"name": "workspace__ApplyInternet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nat_id | No | nat的id,有传则使用该NAT,否则新建。 | |
| vpc_id | Yes | vpc的id。 | |
| eip_name | No | eip名称,默认值:eip-workspace。 | eip-workspace |
| eip_type | No | EIP的类型,5_bgp(全动态BGP),5_sbgp(静态BGP),默认值:5_bgp。 | 5_bgp |
| nat_name | No | nat名称,默认值:nat-workspace。 | nat-workspace |
| nat_spec | Yes | 公网NAT网关的规格,1:小型,2:中型,3:大型,4:超大型。 | |
| subnet_id | Yes | 子网的id。 | |
| project_id | Yes | 项目ID。 | |
| bandwidth_size | Yes | 带宽大小。 | |
| eip_charge_mode | Yes | traffic(按流量计费),bandwidth(按带宽计费)。 | |
| enterprise_project_id | No | 企业项目ID,默认"0。" | 0 |