CreateBandwidthPackage
Description
create NAT bandwidth package using CreateBandwidthPackage interface.
Request Method
POST
Request Path
/apsara/route/Vpc/CreateBandwidthPackage
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
IpCount | BODY | integer | Yes | 2 | number of public network IP in NAT bandwidth packet, value range:1~50. |
Description | BODY | string | No | bandwidth package description | NAT bandwidth package description information. 2 to 256 characters in length, which must start with a letter or Chinese, but cannot start with http:// or https://. |
Zone | BODY | string | No | cn-qingdao-env17-amtest11001-a | The available area where the NAT bandwidth package is located. when this parameter is not specified, the system will randomly assign a usable area. Description The IP on the NAT bandwidth package and the back-end ECS are not in the same zone, which does not affect their connectivity; however, when they are in the same zone, the delay can be reduced. |
ISP | BODY | string | No | BGP | currently only supports BGP. |
version | BODY | string | No | 2016-01-01 | version of api |
Name | BODY | string | No | bandwidth package name | The name of the NAT bandwidth package. It must be 2 to 128 characters in length and must start with a letter or Chinese. It can contain numbers, half-width periods (.), underscores (_), and dashes (-). But you cannot use http:// or https:// start. |
InternetChargeType | BODY | string | No | PayByBandwidth | network billing type, value: PayByTraffic: Billing by traffic. PayByBandwidth: billed by bandwidth. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Bandwidth | BODY | integer | Yes | 5 | The bandwidth of the NAT bandwidth package. Value range:5~1000, unit Mbps. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the NAT bandwidth package. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 02fb3da4-130e-11e9-8e44-001**** | client token, used to ensure the idempotence of the request. The value of this parameter is generated by the client. It must be unique between different requests. The maximum value is no more than 64 ASCII characters. |
NatGatewayId | BODY | string | Yes | ngw-7mwb327j1**** | ID of NAT gateway. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}