Changes the Transport Layer Security (TLS) policy for the forwarding rule of a website.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • cn-hangzhou: Chinese mainland, which indicates Anti-DDoS Pro instances
  • ap-southeast-1: outside the Chinese mainland, which indicates Anti-DDoS Premium instances
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

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:

  • ssl_protocols: the version of TLS. This field is required. Data type: string. Valid values:
    • tls1.0: TLS 1.0 and later
    • tls1.1: TLS 1.1 and later
    • tls1.2: TLS 1.2 and later
  • ssl_ciphers: the type of the cipher suite. This field is required. Data type: string. Valid values:
    • all: all cipher suites, which include strong and weak cipher suites
    • improved: enhanced cipher suites
    • strong: strong cipher suites
    • default: default cipher suites, which include only strong cipher suites

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.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"

Error codes

For a list of error codes, visit the API Error Center.