CloudOps Orchestration Service (OOS) common parameters are managed and maintained by Alibaba Cloud. You can use common parameters to obtain information about Alibaba Cloud regions, zones, cloud services, and endpoints.
Prerequisites
Alibaba Cloud CLI is installed and configured. If Alibaba Cloud CLI is not installed or configured, see:
If you only need to perform temporary debugging operations, you do not need to install Alibaba Cloud CLI. You can use Cloud Shell provided by Alibaba Cloud to obtain information about cloud service hosts.
Install Alibaba Cloud CLI.
Configure Alibaba Cloud CLI.
Configure parameters, such as credentials and regions, that are required to use Alibaba Cloud resources. For more information about how to configure the information, see Identity credential types.
Procedure
Obtain the information about Alibaba Cloud regions
All regions
Request command
You can run the following command on Alibaba Cloud CLI to call the
GetParametersByPathoperation and use the common parameter path to quickly query all Alibaba Cloud regions.aliyun oos GetParametersByPath --Path aliyun/services/global-infrastructure/regionsPathspecifies the path of the parameter to be obtained. In this scenario, the path is set toaliyun/services/global-infrastructure/regions, which indicates that the request obtains the information about all regions.Sample success responses
The sample responses include the region IDs and names, creation time, update time, and other information. Only some regions are displayed, such as
cn-hangzhouandcn-shanghai.
Regions supported by a service
Request command
You can run the following command on Alibaba Cloud CLI to call the
GetParametersByPathoperation and use the common parameter path to quickly query the regions supported by an Alibaba Cloud service.aliyun oos GetParametersByPath --Path aliyun/services/global-infrastructure/products/oos/regionsThe
Pathspecifies the path of the parameter to be obtained. In this scenario, the path is set toaliyun/services/global-infrastructure/products/{product_code}/regions. Set{product_code}to the code of a specific service, such asoos.Sample success responses
The sample responses include the region IDs and names, creation time, update time, and other information. Only some regions are displayed. For example, OOS is supported by
cn-hangzhouandcn-shanghai.
Query all Alibaba Cloud zones
Request command
You can run the following command on Alibaba Cloud CLI to call the
GetParametersByPathoperation and use the common parameter path to query all Alibaba Cloud zones.aliyun oos GetParametersByPath --Path aliyun/services/global-infrastructure/availability-zonesSet
Pathto the parameter path to be obtained. In this scenario, the path is set toaliyun/services/global-infrastructure/availability-zones, which indicates that the request queries all zones.Sample success responses
The sample responses include the zone IDs and names, creation time, update time, and other information. Only some zones are displayed, such as
cn-shanghai-g-alipayandcn-shanghai-x6.
Query Alibaba Cloud services
Request command
You can run the following command on Alibaba Cloud CLI to call the
GetParametersByPathoperation and use the common parameter path to query Alibaba Cloud services.aliyun oos GetParametersByPath --Path aliyun/services/global-infrastructure/productsSet
Pathto the parameter path to be obtained. In this scenario, the path is set toaliyun/services/global-infrastructure/products, which indicates that the request queries all zones.Sample success responses
The sample responses include the service IDs and names, creation time, update time, and other information. Only some cloud products are displayed, such as
OOSandECS.
Query the endpoint of a service
Request command
You can run the following command on Alibaba Cloud CLI to call the
GetParametersByPathoperation and use the common parameter path to query the endpoint of an Alibaba Cloud service.aliyun oos GetParametersByPath --Path aliyun/services/global-infrastructure/products/oos/endpointsSet
Pathto the parameter path to be obtained. In this scenario, the path is set toaliyun/services/global-infrastructure/products/{product_code}/endpoints, in which{product_code}is the code of a specific service, such asoos.Sample success responses
The sample responses include the endpoint IDs and names, creation time, update time, and other information. Only the endpoints of OOS in some regions are displayed. For example, you can obtain the endpoints of OOS in
cn-hangzhouandcn-shanghai.