Adjust Deployment Cluster
Last Updated:2021-11-12
This interface user is used for BCC users to adjust a deployment cluster.
Request Structure POST /v{version}/instance/deployset/updateRelation HTTP/1.1 Host: bcc.bj.baidubce.com Authorization: authorization string { "instanceId":"instanceId", "deploysetIdList":[ "deploysetId" ] }
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 |
deploysetIdList | List |
Yes | RequestBody parameter | A list of deployment cluster IDs to add. |
Return a header field
There are no other special header fields except the common header field.
Request Example
POST /v2/instance/deployset/updateRelation HTTP/1.1
Host: bcc.bj.baidubce.com
ContentType: application/json
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"instanceId":"i-123456",
"deploysetIdList":[
"dset-42N1llvY",
"dset-42N1llv1"
]
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
Date: Wed, 03 Dec 2014 06:42:19 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS