ModifyDisksResourceGroup
1. API Description
This API is used to change the resource group of data disks.
Note
You can create several resource groups under one account to manage different resources. If calling
DescribeDisks
to query disks, you can filter the result byresourceGroupId
in the response.Batch operations are supported. The maximum number of disks in each request is 100.
Only the administrator in a team can perform this operation.
2. Input Parameters
The following request parameter list only provides API request parameters.
diskIds
Yes
Array of String
List of disk IDs. The maximum number of disks in each request is 100.
resourceGroupId
Yes
String
Resource group ID.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Move the data disk to specified resource group.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
OPERATION_FAILED_RESOURCE_GROUP_NOT_FOUND
Resource group does not exist.
404
OPERATION_FAILED_RESOURCE_NOT_FOUND
Resources not found.
Last updated