All Products
Search
Document Center

:ChangeResourceGroup

Last Updated:Apr 25, 2024

Modifies the resource group of a resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /resourcegroup

Request parameters

ParameterTypeRequiredDescriptionExample
projectstringNo

The project to which the resource belongs.

ali-test-project
bodyobjectNo

The request struct.

resourceTypestringNo

The type of the resource. Only PROJECT is supported. Set the value to PROJECT.

PROJECT
resourceIdstringYes

The ID of the resource.

ali-test-project
resourceGroupIdstringYes

The ID of the resource group.

rg-aek2i7nhaxifxey

Response parameters

ParameterTypeDescriptionExample
headersobject
Serverstring

The name of the server.

Content-Lengthstring

The length of the response body.

Connectionstring

Indicates whether the connection is persistent. Valid values: close: The connection is non-persistent. A new TCP connection is established for each HTTP request. keep-alive: The connection is persistent. After a TCP connection is established, the connection remains open, and no more time or bandwidth is consumed to establish new connections.

Content-Typestring

The format of the response body.

Datestring

The time when the response was returned.

x-log-requestidstring

The request ID.

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.