Modifies the resource group to which a resource belongs.
Debugging
Request headers
This operation does not have operation-specific request headers and uses only common request headers. For more information, see Common request parameters.
Request syntax
PUT /resourcegroup HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
project | String | Host | No | ali-test-project | The project to which the resource belongs. |
Object | Body | No | The request struct. | ||
resourceType | String | Body | No | PROJECT | The type of the resource. Only PROJECT is supported. Set the value to PROJECT. |
resourceId | String | Body | Yes | ali-test-project | The ID of the resource. |
resourceGroupId | String | Body | Yes | rg-ae******ey | The ID of the resource group. |
Response parameters
Parameter | Type | Example | Description |
Server | String | nginx | The name of the server. |
Content-Length | String | 0 | The length of the response body. |
Connection | String | close | Indicates whether the connection is persistent. Valid values:
|
Content-Type | String | application/json | The format of the response body. |
Date | String | Sun, 27 May 2018 08:25:04 GMT | The time when the response was returned. |
x-log-requestid | String | 5B0A6B60BB6EE39764D458B5 | The request ID. |
Examples
Sample requests
PUT /resourcegroup HTTP/1.1
Host:ali-test-project.cn-hangzhou.log.aliyuncs.com
Content-Type:application/json
{
"resourceType" : "PROJECT",
"resourceId" : "ali-test-project",
"resourceGroupId" : "rg-ae******ey"
}
Sample success responses
JSON
format
HTTP/1.1 200 OK
Error codes
For a list of error codes, see Service error codes.