Modifies the certificate of a domain name.
Operation description
This operation supports modifying the certificate of a domain name that is added by using CNAME (AccessType is set to share or hybrid_cloud_cname). For domain names added in cloud native mode, call the ModifyCloudResourceCert operation to modify the certificate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyDomainCert |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to query the ID of the current WAF instance. |
waf_v2_public_cn-ww**b06 |
| Domain |
string |
Yes |
The domain name that you want to manage. |
www.example.com |
| CertId |
string |
Yes |
The ID of the certificate. |
123-cn-hangzhou |
| TLSVersion |
string |
No |
The TLS version. Valid values:
|
tlsv1 |
| CipherSuite |
string |
No |
The type of the cipher suite. Valid values:
|
1 |
| CustomCiphers |
array |
No |
The specific custom cipher suites to add. This parameter is used only when CipherSuite is set to 99. |
|
|
string |
No |
The custom cipher suite. Valid values:
|
ECDHE-ECDSA-AES256-SHA384 |
|
| EnableTLSv3 |
boolean |
No |
Specifies whether TLS 1.3 is supported. Valid values:
Note
This parameter is used only when HttpsPorts is not empty, which indicates that the domain name uses the HTTPS protocol. When TLSVersion is set to tlsv1.3, this value must be true. |
false |
| RegionId |
string |
Yes |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
03E3B4DD-2BE7-5D9D-80E8-*** |
Examples
Success response
JSON format
{
"RequestId": "03E3B4DD-2BE7-5D9D-80E8-***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Waf.Pullin.MustListenHTTPS | The domain name must listen to the HTTPS protocol. Domain:%s. | The domain name must listen to the HTTPS protocol. Domain name:%s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.