RemoveUsers

Updated at:

You can invoke RemoveUsers to delete one or more agents from a specified instance. This operation only detaches the RAM accounts from the instance and removes the agents mapped to those RAM accounts from the instance. It does not delete the RAM accounts themselves.

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

Instance ID.

ccc-test

UserIdList

string

No

A JSON-formatted string representing an array of agent IDs. Each array element is an agent ID.

["agent1@ccc-test","agent2@ccc-test"]

Force

boolean

No

Specifies whether to force delete.

true

FilePath

string

No

The ObjectKey of the OSS object containing the file with the list of users to delete.

temp/removeUsers.xlsx

NotificationEmail

string

No

Notification email address.

123@abc.com

Response elements

Element

Type

Description

Example

object

Code

string

Response code.

OK

HttpStatusCode

integer

HTTP status code.

200

Message

string

Response message.

无

RequestId

string

Request ID.

EEEE671A-3E24-4A04-81E6-6C4F5B39DF75

Params

array

Response parameters.

string

Response parameter.

无

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
  "Params": [
    "无"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Maximum The parameter %s must be less than or equal to %s.
400 Parameter.Blank The parameter %s may not be null or blank.
400 Parameter.Empty The parameter %s may not be null or empty.
404 NotExists.InstanceId The specified instance %s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.