Updated on 2023-12-27 GMT+08:00

Querying the API Version

Function

This API is used to query the API version of the Object Storage Migration Service.

URI

GET /v1/{project_id}/objectstorage/version

Table 1 describes the parameters in the URI.

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

version

No

Specifies the API version.

Request

Request Parameters

None.

Response

Response Parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

id

String

Specifies the API version.

links

String

Specifies the API Uniform Resource Locator (URL).

version

String

Specifies the latest supported API version number.

status

String

Specifies the version status.

updated

String

Specifies the version update time.

min_version

String

Specifies the earliest supported API version number.

Examples

Request example

GET /v1/{project_id}/objectstorage/version

Response example

{
    "versions": [
        {
            "id": "v1.0",
            "links": [
                {
                    "href": "https://oms.ap-southeast-2.myhuaweicloud.com/v1/",
                    "rel": "self"
                }
            ],
            "min_version": "",
            "status": "SUPPORTED",
            "updated": "2016-12-09T00:00:00Z",
            "version": "",
        },
        {
            "id": "v2.0",
            "links": [
                {
                    "href": "https://oms.ap-southeast-2.myhuaweicloud.com/v1/",
                    "rel": "self"
                }
            ],
            "min_version": "",
            "status": "CURRENT",
            "updated": "2016-12-09T00:00:00Z",
            "version": "",
        }
    ]
}

Status Code

For details about the status code, see Status Code.