跳到主要内容

修改證書資訊

修改負載均衡器證書資訊。

改請求可以是POST請求,如果秘鑰內容和證書內容太長,必須要用POST請求。

請求引數

引數名引數型別是否必填引數說明
ActionString操作方法:ModifyLBPemAttributes
RegionString機房標識,取值參見地域列表
IdStringPEM ID
NameString新名字
PrivateKeyString私鑰
CertificateString證書
DescriptionString描述

返回引數

名稱型別說明
ActionString執行的操作
TaskIdString請求標識

請求示例

http://api.yunpanel.com/v2/?Action=ModifyLBPemAttributes
&Region=cn-wuxi
&Id=lbp-adads
&<公共請求引數>
{
"PrivateKey":
"-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA4SDxevI9hl+Vhb5r/rlL7qOOGpet3GOIwnm/ziotaAf2oAO0
UEHIqVx4T8TJ4SCOq9rMmQZV4uJCNEwnAKcyqlw+j1NHRrwk3n1MowRYhISvLlUK
7Pnk1QYQILgZHaf2vdXp9+JDMA8BgVBefReb1Ra8VnJMCT24hpxHyZNg2dlbtf6m
fm0e2uPt/WWbKHdyfB7MNCjrg+3Ob2WjOj5LfRjn6s3H9Auzge9ar22hzUwtycfG
fSE9e8JYv2zmrIsQHEG1h7e86UuZG/j30MSQJSukJk5yxqJor0fQjXRvGKdGqVML
G29RIRLYt4mZqzNXfTRwX4sxQQhYnCPo85hgjQIDAQABAoIBAQCJ86TloNDgqWu3
U9NbeHI2HlTyqKVqGjfwa6iEDcZbLB4NOZfhYh4y4a37u2u1nzytxFqBHqe8ascE
DF+D+5owjCVRymDjsOXUMCpkXQA+z0AfY7ep9DFEfdTEOLCiWCMvtXTTAoGBAOwO
vSzL1puShf6wC+9tONC6DDHRgW4rreqMZECChbP63t9rimFEYOeko11VplE0zIml
Hk1JCG/jnh3kXtA6ubKhLB1h/MUabF4tAKKIkmqJymkayJ4grTrtFNlTnu86aMIf
AjwgnfHvmQQcHGbd3TdYiiJa03E6seJKD1LnfgzQUYRoYX6eSBF9p75dFJ2GSTfI
jbe67Cxo5912YjzNJNtdHUM0wZkKdsfHVpaXrUYDKwMQZpP96zLx
-----END RSA PRIVATE KEY-----
",
"Certificate":
"-----BEGIN CERTIFICATE-----
adfadfvafdva
-----END CERTIFICATE-----",
"Name":"adads"
}

返回示例

{
"code": 10000,
"message": "",
"data": {
"TaskId": "bb112c20170506133720502",
"Action": "ModifyLBPemAttributes"
}
}