Querying Cloud Services, Resources, and Regions Supported by RMS
Function
This API is used to query cloud services, resources, and regions supported by RMS.
URI
GET /v1/resource-manager/domains/{domain_id}/providers
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies the account ID. Maximum length: 36 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| offset | No | Integer | Specifies the pagination offset. Minimum value: 1 Maximum value: 1000 |
| limit | No | Integer | Specifies the maximum number of records to return. Minimum value: 1 Maximum value: 200 |
Request Parameters
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| resource_providers | Array of ResourceProviderResponse objects | Specifies the list of cloud service details. |
| total_count | Integer | Specifies the total number of cloud services supported by RMS. |
| Parameter | Type | Description |
|---|---|---|
| provider | String | Specifies the cloud service name. |
| display_name | String | Specifies the display name of the cloud service. You can set the language by configuring X-Language in the request header. |
| category_display_name | String | Specifies the display name of the cloud service category. You can set the language by configuring X-Language in the request header. |
| resource_types | Array of ResourceTypeResponse objects | Specifies the resource type list. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Specifies the resource type. |
| display_name | String | Specifies the display name of the resource type. You can set the language by configuring X-Language in the request header. |
| global | Boolean | Specifies whether the resource is a global resource. |
| regions | Array of strings | Specifies the list of supported regions. |
| console_endpoint_id | String | Specifies the endpoint ID of the console. |
| console_list_url | String | Specifies the URL of the resource list page. |
| console_detail_url | String | Specifies the URL of the resource details page. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Example Request
None
Example Response
Status code: 200
Operation succeeded.
-
2
-
[ { "provider" : "ecs", "display_name": "ECS", "category_display_name": "Computing", "resource_types" : [ { "name" : "cloudservers", "display_name": "ECS", "global" : false, "regions" : [ "cn-north-1", "cn-north-4", "cn-east-3", "cn-east-2", "cn-south-1", "cn-southwest-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "af-south-1", "la-south-2" ], "console_endpoint_id" : "ecm", "console_list_url" : "#/ecs/manager/vmList", "console_detail_url" : "#/ecs/manager/ecsDetail?instanceId={id}" } ] }, { "provider" : "vpc", "display_name": "VPC", "category_display_name": "Network", "resource_types" : [ { "name" : "vpcs", "display_name": "VPC", "global" : false, "regions" : [ "cn-north-1", "cn-north-4", "cn-east-3", "cn-east-2", "cn-south-1", "cn-southwest-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "af-south-1", "la-south-2" ], "console_endpoint_id" : "vpc", "console_list_url" : "#/vpcs", "console_detail_url" : "#/vpc/vpcmanager/vpcDetail/subnets?vpcId={id}" }, { "name" : "bandwidths", "display_name": "Shared bandwidth", "global" : false, "regions" : [ "cn-north-1", "cn-north-4", "cn-east-3", "cn-east-2", "cn-south-1", "cn-southwest-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "af-south-1", "la-south-2" ], "console_endpoint_id" : "vpc", "console_list_url" : "#/vpc/vpcmanager/shareBandwidth", "console_detail_url" : "#/vpc/vpcmanager/shareBandwidth?bandwidthId={id}" }, { "name" : "securityGroups", "display_name": "Security group", "global" : false, "regions" : [ "cn-north-1", "cn-north-4", "cn-east-3", "cn-east-2", "cn-south-1", "cn-southwest-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "af-south-1", "la-south-2" ], "console_endpoint_id" : "vpc", "console_list_url" : "#/secGroups", "console_detail_url" : "#/vpc/vpcmanager/sgDetail/sgRules?instanceId={id}" }, { "name" : "publicips", "display_name": "EIP", "global" : false, "regions" : [ "cn-north-1", "cn-north-4", "cn-east-3", "cn-east-2", "cn-south-1", "cn-southwest-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "af-south-1", "la-south-2" ], "console_endpoint_id" : "vpc", "console_list_url" : "#/vpc/vpcmanager/eips", "console_detail_url" : "#/vpc/vpcmanager/eipDetailNew?eipId={id}" } ] } ]
Status Codes
| Status Code | Description |
|---|---|
| 200 | Operation succeeded. |
| 500 | Internal server error. |
Error Codes
See Error Codes.
Last Article: Querying Resources of a Specific Type
Next Article: Querying a Resource
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.