创建SSL证书-CreateSSL

创建SSL证书,可以把整个 Pem 证书内容传过来,或者把证书、私钥、CA证书分别传过来

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域Yes
ProjectIdstring项目IDYes
SSLTypestring所添加的SSL证书类型,目前只支持Pem格式No
SSLNamestringSSL证书的名字,默认值为空Yes
SSLContentstringSSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书No
UserCertstring用户的证书No
PrivateKeystring加密证书的私钥No
CaCertstringCA证书No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
SSLIdstringSSL证书的IdNo

Request Example

http(s)://api.ucloud.cn/?Action=CreateSSL
&Region=cn-bj2
&ProjectId=project-xs13ik
&SSLName=new-ssl
&SSLContent=-----BEGIN RSA PRIVATE KEY-----xxx

Response Example

{
    "Action": "CreateSSLResponse",
    "SSLId": "ssl-s1v2e0",
    "RetCode": 0
}