Creates a TLS policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateTLSCipherPolicy |
The operation that you want to perform. Set the value to CreateTLSCipherPolicy. |
Ciphers.N | RepeatList | Yes | AES256-SHA256 |
The supported cipher suites, which are determined by the TLS protocol version. TLSv1.0 and TLSv1.1 support the following cipher suites:
TLSv1.2 supports the following cipher suites:
TLSv1.3 supports the following cipher suites:
|
Name | String | Yes | TLSPolicy-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 (-). It must start with a letter. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the Server Load Balancer (SLB) instance is deployed. |
TLSVersions.N | RepeatList | Yes | TLSv1.0 |
The supported TLS protocol versions. Valid values: TLSv1.0, TLSv1.1, TLSv1.2, and TLSv1.3. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
The ID of the request. |
TLSCipherPolicyId | String | tc-policy****** |
The ID of the created TLS policy. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateTLSCipherPolicy
&Ciphers.1=AES256-SHA256
&Name=TLSPolicy-test*****
&RegionId=cn-hangzhou
&TLSVersions.1=TLSv1.0
&<Common request parameters>
Sample success responses
XML
format
<CreateTLSCipherPolicyResponse>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
<TLSCipherPolicyId>tc-policy******</TLSCipherPolicyId>
</CreateTLSCipherPolicyResponse>
JSON
format
{"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"TLSCipherPolicyId":"tc-policy******"}
Errors
For a list of error codes, visit the API Error Center.