Release ipv6
Last Updated:2021-11-12
- This interface is used for the BCC instance to release ipv6.
Request Structure
POST /v{version}/instance/delIpv6 HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"instanceId": instanceId
"reboot": reboot
}
Request header field
No other special header fields are available, except for common header fields.
Request Parameter
Parameter name | Type | Required? | Parameter Position | Description |
---|---|---|---|---|
version | String | Yes | URL Parameter | API version number |
instanceId | String | Yes | RequestBody parameter | Instance ID |
reboot | boolean | No | RequestBody parameter | Whether or not restart, with True indicating Restart and Null indicating Do Not Restart. |
Return a header field
There are no other special header fields except the common header field.
Return Parameter
No specific parameters are returned.
Error Code
Error Code | Error Description | HTTP status code | Explanation |
---|---|---|---|
BadRequest | request is invalid | 400 | Invalid request parameter |
NoSuchObject | The specified object is not found or resources do not exist. | 404 | Instances are not found or do not exist |
BadRequest | instance doesn't have ipv6 address | 400 | Instance does not have Ipv6 |
Vpc.DelIpv6Exception | Vpc delete ipv6 exception. | 503 | Vpc throws ipv6 exceptions |
Request Example
POST http://bcc.bj.baidubce.com/v2/instance/delIpv6
Host: bcc.bj.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"instanceId": "i-123456",
"reboot": true
}
Return Example
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS