获取 NAT 网关列表
DescribeNatGateway 接口用于获取 NAT 网关列表。
请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
Limit | integer | 本次请求返回的数量 | 可选 | ||
Offset | integer | 本次请求返回的偏移量 | 可选 |
返回参数
参数名 |
类型 |
说明 |
示例 |
备注 |
---|---|---|---|---|
NatGateway |
complextype |
虚拟机类型定义 |
||
Total |
integer |
返回符合条件的虚拟机类型总量 |
||
Limit |
integer |
返回虚拟机类型的数量 |
||
Offset |
integer |
返回虚拟机类型的偏移量 |
参数名
|
类型
|
说明
|
示例
|
备注
|
---|---|---|---|---|
status |
complextype |
NAT 网关状态 |
||
name |
string |
NAT 网关名称 |
||
addressId |
string |
NAT 网关外网 IP 的资源id |
||
bandwidth |
integer |
NAT 网关外网 IP 的带宽 |
||
address |
string |
NAT 网关外网 IP 的 |
||
id |
string |
NAT 网关的id |
返回示例(JSON)
|
创建 NAT 网关
CreateNatGateway 接口用于创建 NAT 网关。
请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
Name | string | NAT 网关名称 | |||
AddressId | string | NAT 网关外网 IP 的资源 id | |||
Bandwidth | integer | NAT 网关外网 IP 的带宽 | |||
Description | string | NAT 网关备注、描述 | 可选 | ||
AvailabilityZoneId | string | 资源分区 | 必选 |
返回参数
参数名 |
类型 |
说明 |
示例 |
备注 |
---|---|---|---|---|
status |
complextype |
NAT 网关状态 |
||
name |
string |
NAT 网关名称 |
||
addressId |
string |
NAT 网关外网 IP 的资源id |
||
bandwidth |
integer |
NAT 网关外网 IP 的带宽 |
||
address |
string |
NAT 网关外网 IP 的 |
||
id |
string |
NAT 网关的id |
返回示例(JSON)
|
删除 NAT 网关
DeleteNatGateway 接口用于删除 NAT 网关。
请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
NatGatewayID | string | NAT 网关ID |
返回参数
参数名
|
类型
|
说明
|
示例
|
备注
|
---|---|---|---|---|
return |
bool |
返回示例(JSON)
|
获取绑定到 NAT 网关的主机列表
DescribeNatGatewayAssociatedInstance 接口用于显示 NAT 网关绑定的主机资源列表。
请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
NatGatewayID | string | NAT 网关ID |
返回参数
参数名 |
类型 |
说明 |
示例 |
备注 |
---|---|---|---|---|
status |
string |
主机状态 |
||
billingType |
string |
主机计费类型 |
||
instanceId |
string |
主机资源ID |
||
memory |
integer |
主机内存 |
||
instanceName |
string |
主机名称 |
||
cpu |
integer |
主机CPU |
返回示例(JSON)
|
云主机绑定 NAT 网关
AssociateNatGateway 接口用于将云主机绑定至 NAT 网关。
请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
NatGatewayID | string | NAT 网关ID | |||
InstanceId | string | 主机资源ID |
返回参数
参数名 |
类型 |
说明 |
示例 |
备注 |
---|---|---|---|---|
return |
bool |
返回示例(JSON)
|
云主机解绑 NAT 网关
DisassociateNatGateway 接口用于将云主机从 NAT 网关解绑。请求 URL
|
请求参数
参数名
|
类型
|
说明
|
可选值
|
示例
|
备注
|
---|---|---|---|---|---|
NatGatewayID | string | NAT 网关ID | |||
InstanceId | string | 主机资源ID |
返回参数
参数名
|
类型
|
说明
|
示例
|
备注
|
---|---|---|---|---|
return |
bool |
返回示例(JSON)
|