Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

Listing API Versions

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

Function

This API is used to list all SMS API versions.

Calling Method

For details, see Calling APIs.

URI

GET /

Request

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The user token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Minimum length: 1 character

Maximum length: 16,384 characters

Response

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

versions

Array of Version objects

Lists all API versions of SMS.

Array length: 0 to 1,024 characters

Table 3 Version

Parameter

Type

Description

id

String

The API version.

Minimum length: 0 characters

Maximum length: 255 characters

links

Array of Link objects

The API link address.

Array length: 0 to 1,024 characters

status

String

The version status. SUPPORTED indicates the version is supported.

Minimum length: 0 characters

Maximum length: 255 characters

updated

String

The time when the version is updated. The format is yyyy-mm-ddThh:mm:ssZ. T is the separator between the calendar and the hourly notation of time. Z indicates the UTC. Example: 2018-09-30T00:00:00Z

Minimum length: 0 characters

Maximum length: 255 characters

Example Request

This example queries the list of supported API versions.

GET https://{endpoint}/

{
  "versions" : [ {
    "links" : [ {
      "rel" : "self",
      "href" : "https://sms.ap-southeast-1.myhuaweicloud.com/"
    } ],
    "id" : "v3",
    "updated" : "2020-09-02T17:50:00Z",
    "status" : "SUPPORTED"
  } ]
}

Example Response

Status code: 200

OK

{
  "versions" : [ {
    "links" : [ {
      "rel" : "self",
      "href" : "https://sms.ap-southeast-1.myhuaweicloud.com/"
    } ],
    "id" : "v3",
    "updated" : "2020-09-02T17:50:00Z",
    "status" : "SUPPORTED"
  } ]
}

Status Codes

Status Code

Description

200

Response returned.

Error Codes

For details, see Error Codes.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback