Configures a Transport Layer Security (TLS) policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SetTLSCipherPolicyAttribute |
The operation that you want to perform. Set the value to SetTLSCipherPolicyAttribute. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the Classic Load Balancer (CLB) instance is deployed. You can call the DescribeRegions operation to query the most recent region list. |
TLSCipherPolicyId | String | Yes | tls-bp1lp2076qx4e******bridp |
The ID of the TLS policy. |
Name | String | Yes | tls-policy*****-test |
The name of the TLS policy. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
TaskId | String | 72dcd26b-f12d-4c27-b3af****-18f6aed5 |
The ID of the asynchronous task. |
RequestId | String | CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=SetTLSCipherPolicyAttribute
&Ciphers.1=DES-CBC3-SHA
&Name=tls-policy*****-test
&RegionId=cn-hangzhou
&TLSCipherPolicyId=tls-bp1lp2076qx4e******bridp
&TLSVersions.1=TLSv1.0
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<SetTLSCipherPolicyAttributeReaponse>
<TaskId>72dcd26b-f12d-4c27-b3af****-18f6aed5</TaskId>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
</SetTLSCipherPolicyAttributeReaponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"TaskId" : "72dcd26b-f12d-4c27-b3af****-18f6aed5",
"RequestId" : "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | MissingParam.Name | The param Name is missing. | The error message returned because the Name parameter is not specified. |
400 | MissingParam.TlsVersions | The param TlsVersions is missing. | The error message returned because the TlsVersions parameter is not specified. |
400 | MissingParam.Ciphers | The param Ciphers is missing. | The error message returned because the Ciphers parameter is not specified. |
400 | ParamDuplicateError.TlsVersions | The param TlsVersions is duplicate in request. | The error message returned because TlsVersions already exists. |
400 | ParamDuplicateError.Ciphers | The param Ciphers is duplicate in request. | The error message returned because Ciphers already exists. |
400 | TLSPolicyNoSupportVersion | The specified TLS version is not supported. | The error message returned because the specified TLS policy does not support the TLS version. |
400 | TLSPolicyNoSupportCipher | The specified TLS cipher is not supported. | The error message returned because the specified TLS policy does not support the cipher suites. |
400 | MissingParam.TLSCipherPolicyId | The param TLSCipherPolicyId is missing. | The error message returned because the TLSCipherPolicyId parameter is not specified. |
400 | TLSPolicyConfiguring | The specified TLS cipher policy is configuring. | The error message returned because the TLS policy is being modified. |
400 | TLSPolicyBeingUsed | The specified TLS cipher policy is being used. | The error message returned because the TLS policy is in use. |
400 | InvalidTLSPolicyId.NotExist | The specified TLS cipher policy does not exist. | The error message returned because the TLS policy does not exist. |
400 | TLSPolicyUnchanged | The specified TLS cipher policy is unchanged. | The error message returned because the TLS policy is not modified. |
For a list of error codes, visit the API Error Center.