All Products
Search
Document Center

Tair:ModifyResourceGroup

Last Updated:Mar 20, 2023

Changes the resource group to which an ApsaraDB for Redis instance belongs.

Operation Description

You can use resource groups to sort resources that belong to your Alibaba Cloud account into groups. This simplifies how you manage resources that belong to your Alibaba Cloud account and control access to these resources. For more information, see What is resource management?

NoteFor more information about resource group API operations, see Resource management API overview.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClientTokenstringNo

The client token that is used to ensure the idempotency of requests. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

ETnLKlblzczshOTUbOCz****
InstanceIdstringYes

The ID of the instance.

r-bp1zxszhcgatnx****
ResourceGroupIdstringYes

The ID of the resource group.

Note
  • You can call the ListResourceGroups operation or log on to the console to query the IDs of the resource groups. For more information, see View basic information about resource groups.
  • Before you modify the resource group to which an instance belongs, you can call the ListResources operation to view the resource group.
  • rg-acfmyiu4ekp****
    RegionIdstringYes

    The ID of the region where the instance is deployed.

    cn-hangzhou

    Response parameters

    ParameterTypeDescriptionExample
    object
    RequestIdstring

    The ID of the request.

    5D622714-AEDD-4609-9167-F5DDD3D1****

    Examples

    Sample success responses

    JSONformat

    {
      "RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
    }

    Error codes

    HTTP status codeError codeError message
    400ResourceGroupId.InValidThe Specified resource group id is not found.
    403ServiceAccount.NoPermissionService account has no auth to do this action。
    404EntityNotExists.ResourceThe resource does not EXIST.

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