Calls the JoinResourceGroup to add an EMR resource to a resource group.

Resource is a cloud service entity created in Alibaba Cloud. The cloud resources that support resource groups E-MapReduce clusters and projects. When a cluster is added to a resource group, each ECS instance of the cluster is added to the cluster's resource group simultaneously. A resource group is a collection of infrastructure for projects, environments, or Stacks. In a resource group, you can manage all resources, monitor and run tasks, without the hassle of switching between multiple Alibaba cloud services to View resources.


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 No JoinResourceGroup

The operation that you want to perform. Valid values: JoinResourceGroup

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

ResourceGroupId String Yes rg-bp67acfmxazb4p****

The ID of the target resource group.

ResourceId String Yes C- 3652B95F654AF automatic snapshot policies *

The identifier of the resource type. For example, if the ResourceType parameter is set to cluster, the ResourceId parameter can be set to a ClusterId value.

ResourceType String Yes cluster

The type of the EMR resource. Valid values:

  • Cluster: Cluster
  • flowproject: Project

Response parameters

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

The ID of the request.


Sample requests:

http(s)://[Endpoint]/? Action=JoinResourceGroup
&ResourceGroupId=rg-bp67acfmxazb4p static website hosting *
&ResourceId=C-3652B95F654AF static website hosting *
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

HTTP status code Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request processing has failed due to an internal error. Submit a ticket.

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