Help Center/ Cloud Bastion Host/ API Reference/ Permissions and Supported Actions/ Actions Supported by Policy-based Authorization
Updated on 2026-03-06 GMT+08:00

Actions Supported by Policy-based Authorization

This section describes the actions supported policy-based authorization for CBH.

Supported Actions

CBH provides system-defined policies that can be directly used in IAM. You can also create custom policies to supplement system-defined policies for more refined access control. Operations supported by policies are specific to APIs. The following table describes the actions supported by policies.

  • Permissions: statements that allow or deny specific operations on specified resources under specific conditions.
  • APIs: REST APIs that can be called in a custom policy
  • Actions: specific operations that are allowed or denied.
  • Dependencies: actions which a specific action depends on. When allowing an action for a user, you also need to allow any existing action dependencies for that user.
  • IAM projects/Enterprise projects: the authorization scope of a custom policy. A custom policy can be applied to IAM projects or enterprise projects or both. Policies that contain actions for both IAM and enterprise projects can be used and applied for both IAM and Enterprise Management. Policies that contain actions only for IAM projects can be used and applied to IAM only. Administrators can check whether an action supports IAM projects or enterprise projects in the action list. For details about the differences between IAM projects and enterprise projects, see What Are the Differences Between IAM and Enterprise Management?

Table 1 and Table 2 list the API actions supported by CBH.

Table 1 Actions Supported by IAM 3.0

Permission

API

Action

IAM Project

Enterprise Project

Querying total ECS quota

GET /v2/{project_id}/cbs/instance/ecs-quota

cbh:instance:getEcsQuota

×

Querying the AZ of a CBH instance

GET /v2/{project_id}/cbs/available-zone

cbh:instance:getAvailableZones

×

Logging in to a CBH instance

POST /v2/{project_id}/cbs/instance/login

cbh:instance:login

×

Stopping a CBH instance

POST /v2/{project_id}/cbs/instance/stop

cbh:instance:stop

×

Restarting a CBH instance

POST /v2/{project_id}/cbs/instance/reboot

cbh:instance:reboot

×

Upgrading the CBH system version

POST /v2/{project_id}/cbs/instance/upgrade

cbh:instance:upgrade

×

Changing the password of the admin user for a CBH instance

PUT /v2/{project_id}/cbs/instance/password

cbh:instance:resetPassword

×

Starting a CBH instance

POST /v2/{project_id}/cbs/instance/start

cbh:instance:start

×

Expanding a CBH instance edition

PUT /v2/{project_id}/cbs/instance

cbh:instance:alterSpec

×

Creating a CBH instance

POST /v2/{project_id}/cbs/instance

cbh:instance:create

Binding or unbinding an EIP

  • POST /v2/{project_id}/cbs/instance/{server_id}/eip/bind
  • POST /v2/{project_id}/cbs/instance/{server_id}/eip/unbind

cbh:instance:eipOperate

×

Creating a CBH agency

POST /v2/{project_id}/cbs/agency/authorization

cbh:agency:authorize

×

Querying the CBH instance list

GET /v2/{project_id}/cbs/instance/list

cbh:instance:list

×

Changing the VPC a bastion host instance belongs to

PUT /v2/{project_id}/cbs/instance/vpc

cbh:instance:switchInstanceVpc

×

Logging in to a bastion host instance as user admin

GET /v2/{project_id}/cbs/instances/{server_id}/admin-url

cbh:instance:loginInstanceAdmin

×

Changing the type of a single-node CBH instance

PUT /v2/{project_id}/cbs/instance/type

cbh:instance:changeInstanceType

×

Obtaining the operation link for an asset managed by the bastion host

GET /v2/{project_id}/cbs/instance/get-om-url

cbh:instance:getOmUrl

×

Table 2 Actions Supported by IAM 5.0

Permission

API

Action

Dependencies

IAM Project

Enterprise Project

Grants the permission to obtain the ECS quota.

GET /v2/{project_id}/cbs/instance/ecs-quota

cbh::getEcsQuota

ecs:cloudServerFlavors:get

×

Grants the permission to query the CBH instance quotas.

GET /v2/{project_id}/cbs/instance/quota

cbh::getQuota

-

×

Grants the permission to query the CBH status.

GET /v2/{project_id}/cbs/instance/{server_id}/status

cbh:instance:getInstanceStatus

-

×

Grants the permission to obtain the URLs for O&M of assets managed in CBH.

GET /v2/{project_id}/cbs/instance/get-om-url

cbh:instance:getOmUrl

-

×

Grants the permission to obtain the authorization information of the CBH service from the tenant.

GET /v2/{project_id}/cbs/agency/authorization

cbh::getAuthorization

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgencyOnProject

×

Grants the permission to query tags of CBH instances.

GET /v2/{project_id}/cbs/instance/{resource_id}/tags

cbh:instance:getInstanceTags

-

×

Grants the permission to start a CBH instance.

POST /v2/{project_id}/cbs/instance/start

cbh:instance:startInstance

-

×

Grants the permission to disable a CBH instance.

POST /v2/{project_id}/cbs/instance/stop

cbh:instance:stopInstance

-

×

Grants the permission to restart a CBH instance.

POST /v2/{project_id}/cbs/instance/reboot

cbh:instance:rebootInstance

-

×

Grants the permission to upgrade a CBH instance.

POST /v2/{project_id}/cbs/instance/upgrade

cbh:instance:upgradeInstance

-

×

Grants the permission to roll back a CBH instance.

POST /v2/{project_id}/cbs/instance/rollback

cbh:instance:rollbackInstance

-

×

Grants the permission to log in to a CBH instance as an IAM user.

POST /v2/{project_id}/cbs/instance/login

cbh:instance:loginInstance

-

×

Grants the permission to reset a password for logging in to a CBH.

PUT /v2/{project_id}/cbs/instance/password

cbh:instance:resetInstancePassword

-

×

Grant the permission to switch the VPC of the bastion host instance.

PUT /v2/{project_id}/cbs/instance/vpc

cbh:instance:switchInstanceVpc

vpc:subnets:get

×

Grants the permission to reset the CBH instance login mode.

PUT /v2/{project_id}/cbs/instance/login-method

cbh:instance:resetInstanceLoginMethod

-

×

Grants the permission to delete a faulty CBH instance.

DELETE /v2/{project_id}/cbs/instance

cbh:instance:deleteInstance

-

×

Grants the permission to change a CBH instance.

PUT /v2/{project_id}/cbs/instance

cbh:instance:alterInstance

-

×

Grants the permission to create a CBH instance.

POST /v2/{project_id}/cbs/instance

cbh:instance:createInstance

  • vpc:quotas:list
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:securityGroups:get
  • ecs:cloudServerFlavors:get

Grants the permission to bind an EIP to a CBH instance.

POST /v2/{project_id}/cbs/instance/{server_id}/eip/bind

cbh:instance:bindInstanceEip

  • eip:publicIps:list
  • eip:publicIps:update
  • eip:publicIps:get
  • eip:publicIps:associateInstance

×

Grants the permission to unbind an EIP from a CBH instance.

POST /v2/{project_id}/cbs/instance/{server_id}/eip/unbind

cbh:instance:unbindInstanceEip

  • eip:publicIps:list
  • eip:publicIps:update
  • eip:publicIps:disassociateInstance

×

Grants the permission to update the security group of a CBH instance.

PUT /v2/{project_id}/cbs/instance/{server_id}/security-groups

cbh:instance:updateInstanceSecurityGroup

  • vpc:ports:update
  • vpc:securityGroups:list

×

Grants the permission to create or cancel the agency authorization for the CBH service.

POST /v2/{project_id}/cbs/agency/authorization

cbh::operateAuthorization

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgencyOnProject
  • iam:agencies:createAgency
  • iam:agencies:deleteAgency
  • iam:permissions:grantRoleToAgencyOnProject
  • iam:permissions:revokeRoleFromAgencyOnProject

×

Grants the permission to log in to a CBH instance as user admin.

GET /v2/{project_id}/cbs/instances/{server_id}/admin-url

cbh:instance:loginInstanceAdmin

-

×

Grants the permission to modify the type of single-node CBH instances.

PUT /v2/{project_id}/cbs/instance/type

cbh:instance:changeInstanceType

  • vpc:quotas:list
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:securityGroups:get
  • ecs:cloudServerFlavors:get

×

Grants the permission to query all AZs.

GET /v2/{project_id}/cbs/available-zone

cbh::listAvailableZones

-

×

Grants the permission to query the CBH specifications.

GET /v2/{project_id}/cbs/instance/specification

cbh::listSpecifications

-

×

Grants the permission to list CBH instances.

GET /v2/{project_id}/cbs/instance/list

cbh:instance:listInstances

eps:enterpriseProjects:list

×

Grants the permission to query all tags.

GET /v2/{project_id}/cbs/instance/tags

cbh::listTags

-

×

Grants the permission to search for instances by tag.

POST /v2/{project_id}/cbs/instance/filter

cbh:instance:listInstancesByTag

-

×

Grants the permission to count the number of instances that meet the tag conditions.

POST /v2/{project_id}/cbs/instance/count

cbh:instance:countInstancesByTag

-

×

Grants the permission to operate the resource tags of the CBH instance.

POST /v2/{project_id}/cbs/instance/{resource_id}/tags/action

cbh:instance:operateInstanceTags

-

×