修改雲端產品接入的憑證。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-waf:ModifyCloudResourceCert |
none |
*All Resource
|
無 | 無 |
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceId |
string |
是 |
WAF 執行個體 ID。 說明
您可以透過呼叫 DescribeInstance 介面查看目前 WAF 執行個體 ID。 |
waf_v2_public_cn-*** |
ResourceProduct
deprecated
|
string |
否 |
雲端產品類型。 枚舉值:
|
clb4 |
ResourceInstanceId
deprecated
|
string |
否 |
雲端產品執行個體的 ID。 |
lb-bp1*****jqnnqk5uj2p |
Port
deprecated
|
integer |
否 |
接入 WAF 的雲端產品連接埠。 |
443 |
| Certificates |
array<object> |
是 |
憑證清單。 說明
需輸入全部的憑證 ID,包含預設和全部擴充憑證 ID,提交後 WAF 會根據本次輸入的全部憑證 ID 進行比較,多出的部分新增,缺少的部分刪除,被刪除的憑證 ID,相關業務可能會受影響。 |
|
|
object |
是 |
憑證清單。 |
||
| CertificateId |
string |
是 |
憑證 ID。 |
232***-cn-hangzhou |
| AppliedType |
string |
是 |
HTTPS 通訊協定的憑證類型。 枚舉值:
|
default |
| RegionId |
string |
是 |
WAF 執行個體所屬地域。取值:
|
cn-hangzhou |
| CloudResourceId |
string |
否 |
已接入的資源 ID,雲端產品接入時由 WAF 自動產生。 說明
您可以透過 CreateCloudResource 接入資源後,查看回應中的資源 ID。 |
lb-bp*********k5uj2p-443-clb7 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
A47D2DC0-7151-51EF-BFB7-*** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A47D2DC0-7151-51EF-BFB7-***"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Waf.Pullin.CertNotExist | Certificate does not exist in SSL Certificate Center, certificate type:%s, certificate ID:%s. | 憑證在 SSL 憑證中心不存在,憑證類型:%s,憑證 ID:%s。 |
| 400 | Waf.Pullin.OnlyBeOneDefaultCert | There can be only one default certificate. | 只能有一個預設憑證。 |
| 400 | Waf.Pullin.MaxCertCountLimit | The number of selected certificate IDs exceeds the maximum number in the system. | 選擇的憑證 ID 數量,超過系統最大數。 |
| 400 | Waf.Pullin.CertExpired | Certificate expired, certificate ID:%s . | 憑證已過期,憑證 ID:%s。 |
| 400 | Waf.Pullin.CloudResourceInvalid | CloudResourceId parameter is illegal. | CloudResourceId 參數不合法。 |
| 400 | Waf.Pullin.CloudProductParamEmpty | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. | 雲端產品接入 WAF 的資源 ID 為空,或雲端產品名稱、連接埠、雲端產品執行個體等 3 個輸入參數中存在空值。 |
| 400 | Waf.Pullin.CloudProductParamNotMatch | The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match. | 雲端產品接入 WAF 的資源 ID 所屬的雲端產品、連接埠、執行個體與輸入參數的值不匹配。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。