Authorize a 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 header

Request syntax

POST /pop/v5/account/authorize_res_group HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
TargetUserId String Yes test@13333********

The ID of the Ram user to be authorized.

ResourceGroupIds String No 1;2

The ID of the resource group. It is separated by ";". If this parameter is null, the resource group is disabled.

Response parameters

Element Type Example Description
Code Integer 200

The returned code.

Message String Success

The returned message.

RequestId String 57609587-DFA2-*********** Request ID.

Samples

Sample requests

POST /pop/v5/account/authorize_res_group HTTP/1.1
Common request header
{
  "TargetUserId": ""
}

Sample success responses

XML format

<RequestId>57609587-DFA2-41EC-**********</RequestId>
<Code>200</Code>
<Message>success</Message>

JSON format

{
    "RequestId": "57609587-DFA2-41EC-**********",
    "Code": "200",
    "Message": "success"
}

Error codes

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