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

Pushing a Certificate

Function

This API is used to push an SSL certificate to other HUAWEI CLOUD services, such as Web Application Firewall (WAF) and Content Delivery Network (CDN).

This API will be discarded. You are advised to push a certificate by referring to Pushing a Certificate.

URI

  • URI format

    POST /v2/{project_id}/scm/cert/{cert_id}/push

  • Parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    cert_id

    Yes

    String

    Certificate ID.

Request

Request parameters

Parameter

Mandatory

Type

Description

service_type

Yes

String

Type of the service to which a certificate is pushed. Options:

CDN and WAF

remote_project

Yes

String

Region where the target service to which a certificate is pushed.

Response

Response parameters

Parameter

Mandatory

Type

Description

message

Yes

String

Request result.

Example

The following describes how to push a certificate to WAF in region ap-southeast-1.

  • Example request
    {
        "service_type":"WAF",
        "remote_project":"ap-southeast-1"
    }
  • Example response
    { 
        "message":"success"
    }

    or

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

Status Codes

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

Status Code

Status

Description

200

OK

Request processed successfully.

For details about error codes, see Error Codes