Pushing a Certificate to a Service
Function
This API is used to push an SSL certificate to other Huawei Cloud service, such as Elastic Load Balance (ELB), Web Application Firewall (WAF), and Content Delivery Network (CDN).
URI
POST /v3/scm/certificates/{certificate_id}/push
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
certificate_id |
Yes |
String |
Certificate ID Minimum: 16 Maximum: 16 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the token API of IAM. The value of X-Subject-Token in the response header is the user token. Minimum: 32 Maximum: 2097152 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
target_project |
Yes |
String |
Region where the service you want to push a certificate to is deployed. Minimum: 1 Maximum: 255 |
target_service |
Yes |
String |
Service to which the certificate is pushed. Currently, certificates can only be pushed to CDN, WAF, and ELB. Minimum: 1 Maximum: 64 |
Response Parameters
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code returned for a request. Minimum: 3 Maximum: 36 |
error_msg |
String |
Error message of an error code. Minimum: 0 Maximum: 1024 |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code returned for a request. Minimum: 3 Maximum: 36 |
error_msg |
String |
Error message of an error code. Minimum: 0 Maximum: 1024 |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code returned for a request. Minimum: 3 Maximum: 36 |
error_msg |
String |
Error message of an error code. Minimum: 0 Maximum: 1024 |
Example Requests
None
Example Responses
Status code: 401
Verification failed.
{ "error_code" : "SCM.XXX", "error_msg" : "XXX" }
Status code: 403
Access denied.
{ "error_code" : "SCM.XXX", "error_msg" : "XXX" }
Status code: 500
Failed to respond the request due to an internal server error.
{ "error_code" : "SCM.XXX", "error_msg" : "XXX" }
Status Codes
Status Code |
Description |
---|---|
204 |
Normal response. |
401 |
Verification failed. |
403 |
Access denied. |
404 |
Requested page not found. |
500 |
Failed to respond the request due to an internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.