Create IPv6 Gateway
Last Updated:2021-12-16
Description
Create an IPv6 gateway.
- You must create an IPv6 gateway in a vpc where IPv6 cidr is available.
- You can create only one IPv6 gateway in the same vpc.
- At present, the IPv6 gateway only supports the postpaid mode.
- The IPv6 gateway bandwidth value should be within the range of 1-5000.
Request Structure
POST /v{version}/IPv6Gateway?clientToken={clientToken} HTTP/1.1
Host: bcc.bd.baidubce.com
Authorization: authorization string
{
"name": name,
"vpcId": vpcId,
"bandwidthInMbps":bandwidthInMbps,
"billing": {
"paymentTiming": paymentTiming
}
}
Request Header Field
No other special header fields are available except for the public header field.
Request Parameters
Parameter Name | Type | Required? | Parameter Position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number |
clientToken | String | No | Query parameter | Idempotent Token, which is an ASCII string with a length of not more than 64 bits. For details, see Idempotency of ClientToken. |
vpcId | String | Yes | Query parameter | vpc ID |
name | String | Yes | RequestBody parameter | IPv6 gateway name |
bandwidthInMbps | int | Yes | RequestBody parameter | Bandwidth of the IPv6 public gateway released |
billing | Billing | Yes | RequestBody parameter | Billing information, which supports the postpaid mode only. |
Return Header Field
There are not other special header fields except for the public header field.
Return Parameter
Parameter Name | Type | Description |
---|---|---|
gatewayId | String | IPv6 gateway ID |
Request Example
POST /v1/IPv6Gateway HTTP/1.1
Host: bcc.bd.baidubce.com
authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2018-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-
token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
{
"vpcId":"vpc-g7cufa91auif",
"name":"IPv6Gateway",
"bandwidthInMbps":10,
"billing":{
"paymentTiming":"Postpaid"
}
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
Date: Mon, 02 Apr 2018 08:14:25 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS
{
"gatewayId":"gw-5af4eb65"
}