Domain name for API request: alb.intl.tencentcloudapi.com.
Modify the properties of a custom security policy, including the policy name, TLS protocol version, and encryption suite. The modified configuration will be applied to all HTTPS listeners associated with this policy immediately.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifySecurityPolicyAttributes. |
| Version | Yes | String | Common Params. The value used for this API: 2025-10-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| SecurityPolicyId | Yes | String | Security policy ID, format: tls- followed by 8 alphanumeric characters. |
| Ciphers.N | No | Array of String | Modified encryption suite list. The encryption suite is used to negotiate the encryption algorithm between client and server. Configuration instructions:
Get available encryption suites: Note: If this parameter is not specified, the original configuration remains unchanged. |
| DryRun | No | Boolean | Whether to only execute a preflight request. Values:
|
| SecurityPolicyName | No | String | Modified security policy name, used to identify and distinguish different security policies. Naming rule:
Note: If this parameter is not specified, the original name remains unchanged. |
| TLSVersions.N | No | Array of String | List of TLS protocol versions after modification. TLS (Transport Layer Security) is used to guarantee the security of communication between clients and the load balancer. Available values:
Note:
|
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: alb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifySecurityPolicyAttributes
<Common request parameters>
{
"Ciphers": [
"TLS_AES_128_GCM_SHA256"
],
"SecurityPolicyId": "tls-t2ckydug",
"SecurityPolicyName": "test-policy2",
"TLSVersions": [
"TLSv1.1",
"TLSv1.2"
]
}
{
"Response": {
"RequestId": "3b848733-70e5-4558-ae39-4b9938eb7609"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| DryRunOperation | DryRun operation means the request will be successful, but the DryRun parameter is passed. |
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| LimitExceeded | The quota limit is exceeded. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| RegionError | Region error |
| RequestLimitExceeded | Number of requests exceeds the frequency limit. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
피드백