Updated on 2022-08-09 GMT+08:00

Querying Push Records

Function

This API is used to query the last 10 certificate push records, which are to be pushed to another HUAWEI CLOUD service.

URI

  • URI format

    GET /v2/{project_id}/scm/cert/{cert_id}/push-history

  • Parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    cert_id

    Yes

    String

    Certificate ID.

Request

Request parameters

None

Response

Response parameters

Parameter

Mandatory

Type

Description

push_history_list

Yes

Array of push_history_list objects

Push record list. For details, see Table 1.

Table 1 push_history_list

Parameter

Mandatory

Type

Description

push_time

Yes

String

Push time, in milliseconds.

push_remote_project

Yes

String

Push project.

push_service

Yes

String

Push service type.

  • WAF: A certificate is pushed to WAF.
  • CDN: A certificate is pushed to CDN.

Example

  • Example request

    None

  • Example response
    {
        "push_history_list": [
            {
                "push_time": "1556257820000",
                "push_remote_project": null,
                "push_service": "CDN"
            },
            {
                "push_time": "1556257447000",
                "push_remote_project": "ap-southeast-1",
                "push_service": "WAF"
            }
        ]
    }

    or

    { 
       "error_code": "SCM.XXXX",  
       "error_msg": "XXXX"   
     }

Status Codes

Table 2 lists the normal status code returned by the API.
Table 2 Status code

Status Code

Status

Description

200

OK

Request processed successfully.

For details about error codes, see Error Codes