docs
api
Load Balance(ULB)
CreateSSL

Create SSL Certificate - CreateSSL

Overview

Create an SSL certificate, you can pass the entire Pem certificate content, or pass the certificate, private key, and CA certificate separately.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateSSL.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
SSLNamestringThe name of the SSL certificate, the default value is not empty.Yes
SSLTypestringThe type of SSL certificate added currently only supports the Pem format.No
SSLContentstringThe complete content of the SSL certificate, including the user certificate, the private key of the encryption certificate, and the CA certificate.No
UserCertstringUser's CertificateNo
PrivateKeystringPrivate Key of the Encryption CertificateNo
CaCertstringCA CertificateNo
USSLIdstringID of USSL CertificateNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
SSLIdstringId of SSL CertificateNo

Example

Request Example

https://api.surfercloud.com/?Action=CreateSSL
&Region=cn-bj2
&ProjectId=project-XXXXXX
&SSLName=new-ssl
&SSLContent=-----BEGIN&nbspRSA&nbspPRIVATE&nbspKEY-----xxx
&USSLId=usecure_ussl-XXXXXX

Response Example

{
  "Action": "CreateSSLResponse",
  "RetCode": 0,
  "SSLId": "ssl-XXXXXX"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved