Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Cloud Bastion Host (CBH)

Updated on 2025-02-25 GMT+08:00

The Organizations provides Service Control Policies (SCPs) to set access control policies.

SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU.

This section describes the elements used by IAM custom identity policies and Organizations SCPs. The elements include actions, resources, and conditions.

For details about how to use these elements to create a custom SCP, see Creating an SCP.

Actions

Actions are specific operations that are allowed or denied in an SCP.

  • The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in an SCP policy.
  • The Resource Type column indicates whether the action supports resource-level permissions.
    • You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions, and you must specify all resources ("*") in your SCP statements.
    • If this column includes a resource type, you must specify the URN in the Resource element of your statements.
    • Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.

    For details about the resource types defined by CBH, see Resources.

  • The Condition Key column includes keys that you can specify in the Condition element of an SCP policy statement.
    • If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
    • If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
    • If the Condition Key column is empty (-) for an action, the action does not support any condition keys.

    For details about the condition keys defined by CBH, see Conditions.

The following table lists the actions that you can define in SCP statements for CBH.

Table 1 Actions supported by CBH

Action

Description

Access Level

Resource Type (*: Required)

Condition Key

Alias

cbh::listAvailableZones

Grants the permission to query service AZs.

List

-

-

-

cbh::getEcsQuota

Grants the permission to obtain the ECS quota.

Read

-

-

-

cbh::getQuota

Grants the permission to query the CBH instance quotas.

Read

-

-

-

cbh::listSpecifications

Queries protection specifications.

List

-

-

-

cbh:instance:listInstances

Grants the permission to list instances.

List

instance *

-

-

cbh:instance:getInstanceStatus

Grants the permission to query the CBH status.

Read

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:startInstance

Grants the permission to start a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:stopInstance

Grants the permission to disable a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:rebootInstance

Grants the permission to restart a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:upgradeInstance

Grants the permission to upgrade a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:loginInstance

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:resetInstancePassword

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:resetInstanceLoginMethod

Grants the permission to reset the CBH instance login mode.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:deleteInstance

Grants the permission to delete a faulty CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:alterInstance

Grants the permission to change a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:createInstance

Grants the permission to create a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:RequestTag/tag-key
  • g:TagKeys
  • cbh:VpcId
  • cbh:SubnetId
  • cbh:AllowBindPublicIp

-

cbh:instance:bindInstanceEip

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:unbindInstanceEip

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:updateInstanceSecurityGroup

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh::operateAuthorization

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

Write

-

-

-

cbh::getAuthorization

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

Read

-

-

-

cbh::listTags

Grants the permission to query all tags.

List

-

-

-

cbh:instance:getInstanceTags

Grants the permission to query tags of CBH instances.

Read

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key

-

cbh:instance:countInstancesByTag

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

List

instance *

-

-

cbh:instance:listInstancesByTag

Grants the permission to search for instances by tag.

List

-

-

-

cbh:instance:operateInstanceTags

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

Tagging

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/tag-key
  • g:RequestTag/tag-key
  • g:TagKeys

-

cbh:instance:getOmUrl

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

Read

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

cbh:instance:getOmUrl

cbh:instance:rollbackInstance

Grants the permission to roll back a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

cbh:instance:upgrade

cbh:instance:migrateInstanceTraffic

Grants the permission to migrate traffic of a CBH instance.

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

cbh:instance:upgrade

cbh:instance:switchInstanceVpc

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

Write

instance *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>
  • cbh:VpcId
  • cbh:SubnetId

-

Each API of CBH usually supports one or more actions. Table 2 lists the supported actions and dependencies.

Table 2 Actions and dependencies supported by CBH APIs

API

Action

Dependencies

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

cbh::listAvailableZones

-

cbh::getEcsQuota

ecs:cloudServerFlavors:get

cbh::getQuota

-

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

cbh::listSpecifications

-

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

cbh:instance:listInstances

eps:enterpriseProjects:list

cbh:instance:getInstanceStatus

-

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

cbh:instance:startInstance

-

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

cbh:instance:stopInstance

-

cbh:instance:rebootInstance

-

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

cbh:instance:upgradeInstance

-

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

cbh:instance:loginInstance

-

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

cbh:instance:resetInstancePassword

-

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

cbh:instance:resetInstanceLoginMethod

-

DELETE /v2/{project_id}/cbs/instance

cbh:instance:deleteInstance

-

cbh:instance:alterInstance

evs:quotas:get

POST /v2/{project_id}/cbs/instance

cbh:instance:createInstance

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

cbh:instance:bindInstanceEip

-

cbh:instance:unbindInstanceEip

-

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

cbh:instance:updateInstanceSecurityGroup

vpc:ports:update

cbh::operateAuthorization

-

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

cbh::getAuthorization

-

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

cbh::listTags

-

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

cbh:instance:getInstanceTags

-

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

cbh:instance:countInstancesByTag

-

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

cbh:instance:listInstancesByTag

-

cbh:instance:operateInstanceTags

-

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

cbh:instance:bindInstanceEip

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

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

cbh:instance:unbindInstanceEip

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

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

cbh::getEcsQuota

ecs:cloudServerFlavors:get

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

cbh::getQuota

-

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

cbh:instance:getInstanceStatus

-

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

cbh:instance:rebootInstance

-

PUT /v2/{project_id}/cbs/instance

cbh:instance:alterInstance

-

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

cbh::operateAuthorization

-

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

cbh:instance:operateInstanceTags

-

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

cbh:instance:getOmUrl

-

cbh:instance:migrateInstanceTraffic

-

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

cbh:instance:rollbackInstance

-

Resources

A resource type indicates the resources that an SCP policy applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the SCP statements using that action, and the SCP applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP applies to all resources. You can also set condition keys in an SCP to define resource types.

The following table lists the resource types that you can define in SCP statements for CBH.

Table 3 Resource types supported by CBH

Resource Type

URN

instance

cbh:<region>:<account-id>:instance:<instance-id>

Conditions

A Condition element lets you specify conditions for when an SCP is in effect. It contains condition keys and operators.

  • The condition key that you specify can be a global condition key or a service-specific condition key.
    • Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, the system automatically obtains such information and authenticates users. For details, see Global Condition Keys.
    • Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, cbh:) apply only to operations of EVS. For details, see Table 4.
    • The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
  • An operator, a condition key, and a condition value constitute a complete condition statement. An SCP takes effect only when the statement meets related requirements. For supported condition operators, see Operators.

The following table lists the condition keys that you can define in SCPs for CBH. You can include these condition keys to specify conditions for when your SCP is in effect.

Table 4 Service-specific condition keys supported by CBH

Service-specific Condition Key

Type

Single-valued/Multivalued

Description

cbh:VpcId

string

Single-valued

Controls access to a bastion host based on its VPC ID.

cbh:SubnetId

string

Single-valued

Controls access to a bastion host based on its subnet ID.

cbh:AllowBindPublicIp

boolean

Single-valued

Grants the permissions to bind an EIP to a bastion host instance.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback