All Products
Search
Document Center

Bastionhost:DetachMembersFromProject

Last Updated:Aug 14, 2026

Removes members from a project.

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 syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID of the bastion host.

Note

You can invoke the DescribeInstances operation to query this parameter.

bastionhost-cn-st220aw****

RegionId

string

No

The region ID of the bastion host.

Note

For the mapping between region IDs and region names, see Regions and zones.

cn-hangzhou

ProjectId

integer

Yes

The project ID.

Note

You can call the ListProjects operation to query this parameter.

3

MemberIds

string

Yes

The UIDs of the member accounts to remove.

Note

You can call the GetProject operation to query this parameter.

161****6121

Response elements

Element

Type

Description

Example

object

Schema of Response

Results

array<object>

The results of the operation call.

object

The result information of the operation call.

MemberId

string

The UID of the member accounts.

166****2258

Code

string

The result code.

200

Message

string

The result message.

success

RequestId

string

The unique request ID generated by Alibaba Cloud for this request.

45717163-334B-5955-8048-A02DAC6B3817

Examples

Success response

JSON format

{
  "Results": [
    {
      "MemberId": "166****2258",
      "Code": "200",
      "Message": "success"
    }
  ],
  "RequestId": "45717163-334B-5955-8048-A02DAC6B3817"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.