Moves a resource to another resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:MoveResourceGroup |
update |
LoadBalancer
ServerGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
string |
Yes |
The resource ID. |
gwlb-nrnrxwd15en27r**** |
| NewResourceGroupId |
string |
Yes |
The ID of the destination resource group. |
rg-aek253e4oit**** |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
loadbalancer |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
false |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate a token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the request as the ClientToken. The RequestId may be different for each request. |
123e4567-e89b-12d3-a456-42665544**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
78828B5C-521E-50F3-84D4-7019691D1382 |
Examples
Success response
JSON format
{
"RequestId": "78828B5C-521E-50F3-84D4-7019691D1382"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.NotExist.ResourceGroup | The operation is not allowed because of NotExist.ResourceGroup. | The operation is not allowed because of NotExist.ResourceGroup. |
| 400 | OperationDenied.StatusCheckFail.ResourceGroup | The operation is not allowed because of StatusCheckFail.ResourceGroup. | The operation is not allowed because of StatusCheckFail.ResourceGroup. |
| 404 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. | The specified resource of .LoadBalancer is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource of %s is not found. | The specified server group resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.