doc-exports/docs/bms/api-ref/en-us_topic_0132973804.html
guoyanyan c311ecafe3 bms_api_0510
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-10-11 08:28:11 +00:00

16 KiB

Querying API Versions

Function

This API is used to query all available API versions of the BMS service.

URI

GET /

Request

  • Request parameters

    None

  • Example request
    1
    GET https://{BMS Endpoint}/
    

Response

  • Response parameters

    Parameter

    Type

    Description

    versions

    Array of objects

    Specifies API versions of the BMS service. For details, see Table 1.

    Table 1 versions field data structure description

    Parameter

    Type

    Description

    id

    String

    Specifies the API version ID.

    links

    Array of objects

    Specifies the API URL. For details, see Table 2.

    min_version

    String

    Specifies the earliest micro API version that is supported.

    status

    String

    Specifies the API version status.

    • CURRENT: indicates a primary version.
    • SUPPORTED: indicates an earlier version which is still supported.
    • DEPRECATED: indicates a deprecated version which may be deleted later.

    updated

    String

    Specifies the release date of an API version.

    The timestamp format is YYYY-MM-DDTHH:MM:SSZ (ISO 8601), for example, 2018-09-30T00:00:00Z.

    version

    String

    Specifies the latest micro API version that is supported.

    Table 2 links field data structure description

    Parameter

    Type

    Description

    href

    String

    Specifies the API URL.

    rel

    String

    Specifies the API URL dependency. The value can be:

    • self: resource link that contains the version number. It is used when immediate tracing is required.
    • bookmark: resource link that can be stored for a long time.
  • Example response
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    {
        "versions": [
            {
                "id": "v1",
                "links": [
                    {
                        "href": "http://bms.xxx.com/v1/",
                        "rel": "self"
                    }
                ],
                "min_version": "",
                "status": "CURRENT",
                "updated": "2018-09-30T00:00:00Z",
                "version": ""
            }
        ]
    }
    

Returned Values

Normal values

Returned Values

Description

200

The request has been successfully processed.

For details about other returned values, see Status Codes.

Error Codes

See Error Codes.