AssignResourceGroup
1. API Description
This API is used to modify the resource group to which the instances belong.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name
Required
Type
Description
instanceIds
Yes
Array of String
List of instance IDs. The maximum number of instances in each request is 100.
resourceGroupId
Yes
String
Resource group ID.
3. Output Parameters
Parameter Name
Type
Description
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Move instances to the specified resource group
POST / HTTP/1.1
Host: console.harmonynetworks.net/api/v2/bmc
Content-Type: application/json
X-ZC-Action: AssignResourceGroup
<Common Request Params>
Request:
{
"instanceIds": ["instanceId1", "instanceId2"],
"resourceGroupId": "resourceGroup1"
}
Response:
{
"requestId": "T4C35327C-7B13-47B8-A815-5E5213D4A9F9",
"response": {
"requestId": "T4C35327C-7B13-47B8-A815-5E5213D4A9F9"
}
}5. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
HTTP Status Code
Error Code
Description
404
OPERATION_FAILED_RESOURCE_GROUP_NOT_FOUND
Resource group does not exist.
404
OPERATION_FAILED_RESOURCE_NOT_FOUND
Resources do not exist.
Last updated