Querying Supported Services
Function
You can use this API to query services supported by EPS.
URI
GET /v1.0/enterprise-projects/providers
Parameter | Mandatory | Type | Description |
---|---|---|---|
locale | No | String | Specifies the language. Default value: en-us |
limit | No | Integer | Default value: 10, upper limit: 200, lower limit: 1. |
offset | No | Integer | Specifies the index position. The query starts from the next data record specified by offset. The value must be a number and cannot be a negative number. The default value is 0. |
provider | No | String | Cloud service name |
Request parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | Specifies the user token. EPS is a global service. When calling the IAM API, set scope to domain. The value of X-Subject-Token in the response header is the user token. |
Response parameters
Status code: 200
Parameter | Type | Description |
---|---|---|
providers | Array of ProviderResponseBody objects | Specifies cloud services. |
total_count | Integer | Specifies the total cloud services supported. |
Parameter | Type | Description |
---|---|---|
provider | String | Cloud service name |
provider_i18n_display_name | String | Specifies the display name of the resource. You can set the language by setting the locale parameter. |
resource_types | Array of ResourceTypeBody objects | Specifies the resource type. |
Parameter | Type | Description |
---|---|---|
resource_type | String | Specifies the resource type. |
resource_type_i18n_display_name | String | Specifies the display name of the resource type. You can set the language by setting the locale parameter. |
regions | Array of strings | Specifies the supported regions. |
global | Boolean | Specifies whether the resource is a global resource. |
Example Request
Querying supported services
GET https://{Endpoint}/v1.0/enterprise-projects/providers
Example Response
Status code: 200
OK
{"providers" : [ {"provider" : "evs","provider_i18n_display_name" : "Elastic Volume Service","resource_types" : {"resource_type_i18n_display_name" : "volume","global" : false,"resource_type" : "disk","regions" : [ "regionid1" ]}} ],"total_count" : 1}
Status Code
For details, see Status Code.
Error Codes
For details, see Error Codes.
- Function
- URI
- Request parameters
- Response parameters
- Example Request
- Example Response
- Status Code
- Error Codes