ModifyCloudResourceCert - 修改云产品接入的证书

修改云产品接入的证书。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

WAF 实例 ID。

说明

您可以通过调用 DescribeInstance 接口查看当前 WAF 实例 ID。

waf_v2_public_cn-***

ResourceProduct deprecated

string

云产品类型。取值:

  • ecs:表示 ECS 产品。

  • clb4:表示四层 CLB 产品。

  • nlb:表示 NLB 产品。

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:表示默认证书。

  • extension:表示拓展证书。

default

RegionId

string

WAF 实例所属地域。取值:

  • cn-hangzhou:表示中国内地。

  • ap-southeast-1:表示非中国内地。

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 .
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所属的云产品、端口、实例和入参的值不匹配.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情