Updated on 2024-04-16 GMT+08:00

Querying Supported Services

Function

You can use this API to query services supported by EPS.

URI

GET /v1.0/enterprise-projects/providers

Table 1 Query parameters

Parameter

Mandatory

Type

Description

locale

No

String

Specifies the language.

Default value: zh-cn

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

Table 2 Header

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

Table 3 Body

Parameter

Type

Description

providers

Array of ProviderResponseBody objects

Specifies cloud services.

total_count

Integer

Specifies the total cloud services supported.

Table 4 ProviderResponseBody

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.

Table 5 ResourceTypeBody

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.