All Products
Search
Document Center

Bastionhost:DetachProjectsFromProjectAuthorization

Last Updated:Aug 14, 2026

Removes projects from the scope of a project authorization. This operation can be called only when the ScopeType parameter returned by the GetProjectAuthorization operation is 2.

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 ID of the bastion host instance.

Note

You can call 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

AuthorizationId

integer

Yes

The project authorization ID.

Note

You can call the ListProjectAuthorizations operation to query this parameter.

1

ProjectIds

string

Yes

The array of project IDs to remove from the project authorization.

Note

You can call the GetProjectAuthorization operation to query this parameter.

1,2

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

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

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE

Examples

Success response

JSON format

{
  "RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.