Modifies the resource group that you specify when you activate DataWorks or purchase a DataWorks exclusive resource group.

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 parameters

Parameter Type Required Example Description
Action String Yes ChangeResourceManagerResourceGroup

The operation that you want to perform. Set the value to ChangeResourceManagerResourceGroup.

ResourceType String Yes project

The resource type. Valid values:

  • project: workspace. If you want to modify the resource group that you specify when you activate DataWorks, set the value to project.
  • tenantresourcegroup: exclusive resource group. If you want to modify the resource group that you specify when you purchase a DataWorks exclusive resource group, set the value to tenantresourcegroup.
ResourceId String Yes test_project

The ID of the resource type. Valid values:

  • If you set the ResourceType parameter to project, set this parameter to the value of ProjectIdentifier. You can call the ListProjects operation to obtain the value of ProjectIdentifier.
  • If you set the ResourceType parameter to tenantresourcegroup, set this parameter to the value of ResourceGroupType. You can call the ListResourceGroups operation to obtain the value of ResourceGroupType. Only the values 7, 8, and 9 are valid.
ResourceManagerResourceGroupId String Yes rg-bp67acfmxazb4p****

The ID of the new resource group.

Response parameters

Parameter Type Example Description
Data Boolean true

Indicates whether the resource group was successfully modified.

RequestId String 1AFAE64E-D1BE-432B-A9****

The ID of the request. You can use the ID to query logs and troubleshoot issues.

HttpStatusCode Integer 200

The HTTP status code returned.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ChangeResourceManagerResourceGroup
&ResourceType=project
&ResourceId=test_project
&ResourceManagerResourceGroupId=rg-bp67acfmxazb4p****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ChangeResourceManagerResourceGroupResponse>
    <RequestId>1AFAE64E-D1BE-432B-A9****</RequestId>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>true</Data>
    <Success>true</Success>
</ChangeResourceManagerResourceGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "1AFAE64E-D1BE-432B-A9****",
  "HttpStatusCode" : 200,
  "Data" : true,
  "Success" : true
}

Error codes

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