Moves a resource in Enterprise Distributed Application Service (EDAS) to an existing resource group.

Note The resource group in this topic is provided by Resource Management instead of EDAS. For more information about Resource Management, visit resourcemanager.console.aliyun.com.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/resgroup/move_resource_group HTTPS|HTTP

Request parameters

Parameter Type Position Required Example Description
NewResourceGroupId String Query Yes rg-acfmwt*****g73i

The ID of the resource group to which you want to move the resource.

ResourceType String Query Yes application

The type of the resource in EDAS. Valid values:

  • application
  • cluster
ResourceId String Query No c529b696-xxxx-xxxx-xxxx-xxxxa1189993

The ID of the resource. This parameter value depends on the ResourceType value. For example, if you set ResourceType to application, specify the application ID as ResourceId.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

POST /pop/v5/resgroup/move_resource_group HTTP/1.1
Common request parameters
{
"NewResourceGroupId": "rg-acfmwt*****g73i",
"ResourceType": "application"
}

Sample success responses

XML format

<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

HttpCode Error code Error message Description
404 EntityNotExist.ResourceType The ResourceType does not exist. The error message returned because the resource type does not exist.
404 EntityNotExist.ResourceId The ResourceId does not exist. The error message returned because the resource does not exist.
404 EntityNotExist.ResourceGroup The ResourceGroup does not exist. The error message returned because the resource group does not exist.

For a list of error codes, visit the API Error Center.