Updated on 2024-01-10 GMT+08:00

Usage

Huawei Cloud provides RESTful APIs.

REST allocates Uniform Resource Identifiers (URIs) to dispersed resources so the resources can be located. Applications on clients use unified resource locators (URLs) to access the resources.

A URL is in the format of https://Endpoint/uri.

Table 1 describes the parameters in a URL.

Table 1 URL parameters

Parameter

Description

Endpoint

The endpoint of KooGallery is mkt-euro.myhuaweicloud.com.

uri

Resource path, that is, the API access path. Obtain this value from the URI of the API, for example, v1.0/{partner_id}/billing/bill-mgr/push-usage-data.

When the user ID in the URI is partner_id, the API can be called only using the AK/SK or token of the partner (seller).

Huawei Cloud APIs use the HTTP transmission protocol and have the following restrictions:

  1. Request and response messages are encoded using UTF-8 and in the JSON format.
  2. The media type is Application/json.
  3. Optional parameters do not need to be encoded in message bodies.
  4. UTC time (including the time zone) is used in requests and responses. The format is yyyyMMdd'T'HHmmss'Z'.

    HH ranges from 0 to 23, and mm and ss range from 0 to 59.