Unbind security group from instance
Updated at:2025-10-20
API description
Unbind security group from instance
Request structure
JSON
1PUT /v{version}/securitygroup/unbind?clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{
5 "securityGroupType" : "securityGroupType",
6 "instanceIds" : ["instanceIds"],
7 "securityGroupIds" : [ "securityGroupIds"]
8}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Parameter type | Required or not | Parameter location | Description |
|---|---|---|---|---|
| instanceIds | List |
Yes | RequestBody | List of short IDs of VMs to be unbound |
| securityGroupIds | List |
Yes | RequestBody | List of short IDs of security groups to be unbound |
| securityGroupType | String | Yes | RequestBody | Type of security groups to be unbound (enterprise/normal) |
Response headers
There are no special headers required beyond the common headers.
Response parameters
| Parameter name | Parameter type | Description |
|---|---|---|
| requestId | String | Request ID |
Request example
JSON
1PUT /v2/securitygroup/unbind HTTP/1.1
2Host: bcc.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
5{
6 "instanceIds":["i-LO8XGmwh"],
7 "securityGroupIds":["esg-ub0q1p72pbmh"],
8 "securityGroupType":"enterprise"
9}
Response example
JSON
1HTTP/1.1 200 OK
2Date: Wed, 03 Dec 2014 06:42:19 GMT
3Content-Type: application/json;charset=UTF-8
4Server: BWS
5{
6 "requestId": "c96efc10-9f0b-4500-9954-302033f33ce5"
7}
