ImportAdmins

Updated at:

Imports one or more administrators to a specified instance. The caller must have the AliyunCCCFullAccess permission, which can be granted in the Resource Access Management (RAM) console.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

RamIdList

string

Yes

The list of UIDs of Alibaba Cloud RAM users. The value is a character string in the JSON array format and can contain up to 20 array elements.

["26972543893791****"]

Response elements

Element

Type

Description

Example

object

The response data.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID.

1CDB5C94-ACFB-59B5-85FE-C1DAF8049C63

Code

string

The response code.

OK

Message

string

The response message.

None

Data

array<object>

The data.

object

InstanceId

string

The instance ID.

ccc-test

UserId

string

The agent ID.

agent@ccc-test

RoleId

string

The role ID.

Admin@ccc-test

Extension

string

The extension number of the agent.

8021****

RamId

string

The UID of the Alibaba Cloud RAM user.

26972543893791****

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "1CDB5C94-ACFB-59B5-85FE-C1DAF8049C63",
  "Code": "OK",
  "Message": "无",
  "Data": [
    {
      "InstanceId": "ccc-test",
      "UserId": "agent@ccc-test",
      "RoleId": "Admin@ccc-test",
      "Extension": "8021****",
      "RamId": "26972543893791****"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Enumeration The parameter %s must be one of the value of enumeration %s. The parameter must be one of the enumeration values defined by the system.
400 Parameter.Maximum The parameter %s must be less than or equal to %s. The parameter must be less than or equal to the maximum value defined by the system.
400 Parameter.Minimum The parameter %s must be greater than or equal to %s. The parameter must be greater than or equal to the minimum value defined by the system.
400 Parameter.Blank The parameter %s may not be null or blank. The parameter cannot be null or a string that contains whitespace characters.
400 Parameter.Empty The parameter %s may not be null or empty. The parameter cannot be null or an empty string.
404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.