Changes the Transport Layer Security (TLS) policy for the forwarding rule of a website.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyTlsConfig |
The operation that you want to perform. Set the value to ModifyTlsConfig. |
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
ResourceGroupId | String | No | default |
The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group. |
Domain | String | Yes | example.aliyundoc.com |
The domain name of the website. Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
|
Config | String | Yes | null |
The details about the TLS policy. The value is a JSON string that contains the following fields:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E |
The ID of the request, which is used to locate and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyTlsConfig
&ResourceGroupId=default
&Domain=example.aliyundoc.com
&Config={"ssl_protocols":"tls1.0","ssl_ciphers":"all"}
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyTlsConfigResponse>
<RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
</ModifyTlsConfigResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}
Error codes
For a list of error codes, visit the API Error Center.