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.
  • ELB: A certificate is pushed to classic ELB.
  • Enhance_ELB: A certificate is pushed to an ELB load balancer (dedicated or shared load balancer).

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": "cn-north-7_test",
                "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 code, see Error Code