Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
14 KiB
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 |
|---|---|---|---|
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
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set scope to domain. The value of X-Subject-Token in the response header is the user token. |
Response
Status code: 200
Name |
Type |
Description |
|---|---|---|
providers |
Array of ProviderResponseBody objects |
Specifies cloud services. |
total_count |
Integer |
Specifies the total cloud services supported. |
Name |
Type |
Description |
|---|---|---|
provider |
String |
Cloud service name |
provider_i18n_display_name |
String |
Specifies the display name of the cloud service. You can set the language by setting the locale parameter. |
resource_types |
Array of ResourceTypeBody objects |
Specifies the resource type. |
Name |
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
{
"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.