Modifies the Transport Layer Security (TLS) policy configuration 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.

Config String Yes {"ssl_protocols":"tls1.0","ssl_ciphers":"all"}

Details about the TLS policy. This parameter is a JSON string. The fields in the value are described as follows:

  • ssl_protocols: the version of TLS. This field is required and must be of the STRING type. 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 and must be of the STRING type. Valid values:
    • all: all cipher suites, which contain strong and weak cipher suites
    • strong: strong cipher suites
    • default: default cipher suites, which contains only strong cipher suites
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.
RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance
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.

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

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