Changes the resource group of a resource.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/resourceGroup/change HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
NewResourceGroupId | string | Yes | The new resource group ID. | rg-acfnsjj5tgai4wi |
RegionId | string | No | The region ID. | cn-beijing |
ResourceType | string | No | The resource type. | instance |
ResourceId | string | No | The resource ID. | c-xxx |
ResourceGroupId | string | No | The resource group ID. | rg-123xxx |
Response elements
Element | Type | Description | Example |
object | |||
HttpStatusCode | integer | The HTTP status code. | 200 |
RequestId | string | The request ID. | ABCD-1234-5678-EFGH |
Success | boolean | Indicates whether the request was successful. | true |
ErrCode | string | The error code. | Instance.NotFound |
ErrMessage | string | The error message. | Failed to find instance c-123xxx |
Data | boolean | The data returned. | true |
AccessDeniedDetail | string | The details about the access denial. | None |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "ABCD-1234-5678-EFGH",
"Success": true,
"ErrCode": "Instance.NotFound",
"ErrMessage": "Failed to find instance c-123xxx",
"Data": true,
"AccessDeniedDetail": "None"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.