设置TLS策略。
接口说明
该功能默认不开放,建议您使用 ALB 或 NLB。特殊情况请联系销售或提交工单。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:SetTLSCipherPolicyAttribute |
update |
*TLSPolicy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
负载均衡实例地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| TLSCipherPolicyId |
string |
是 |
TLS 策略 ID。 |
tls-bp1lp2076qx4e******bridp |
| Name |
string |
是 |
TLS 策略名称。长度为 2~200 个英文或中文字符,必须以大小字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。 |
tls-policy*****-test |
| TLSVersions |
array |
是 |
支持的 TLS 协议版本。取值:TLSv1.0、TLSv1.1、TLSv1.2和TLSv1.3。 |
TLSv1.0 |
|
string |
否 |
支持的 TLS 协议版本。取值:TLSv1.0、TLSv1.1、TLSv1.2和TLSv1.3。 |
TLSv1.0 |
|
| Ciphers |
array |
是 |
支持的加密套件,具体依赖 TLSVersions 的取值。 Cipher 只要被任何一个传入的 TLSVersions 支持即可,例如选择了 TLSv1.3,那么 Cipher 列表必须包含 TLSv1.3 支持的 Cipher。 TLSv1.0 和 TLSv1.1 支持:
TLSv1.2 支持:
TLSv1.3 支持:
|
DES-CBC3-SHA |
|
string |
否 |
支持的加密套件,具体依赖 TLSVersions 的取值。 Cipher 只要被任何一个传入的 TLSVersions 支持即可,例如选择了 TLSv1.3,那么 Cipher 列表必须包含 TLSv1.3 支持的 Cipher。 TLSv1.0 和 TLSv1.1 支持:
TLSv1.2 支持:
TLSv1.3 支持:
|
ECDHE-ECDSA-AES128-SHA |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| TaskId |
string |
异步任务 ID。 |
72dcd26b-f12d-4c27-b3af****-18f6aed5 |
| RequestId |
string |
请求 ID。 |
CEF72CEB-54B6-4AE8-B225-F876******* |
示例
正常返回示例
JSON格式
{
"TaskId": "72dcd26b-f12d-4c27-b3af****-18f6aed5",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876*******"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParam.Name | The param Name is missing. | 参数Name缺失。 |
| 400 | MissingParam.TlsVersions | The param TlsVersions is missing. | 参数TlsVersions缺失。 |
| 400 | MissingParam.Ciphers | The param Ciphers is missing. | 参数Ciphers缺失。 |
| 400 | ParamDuplicateError.TlsVersions | The param TlsVersions is duplicate in request. | 参数TlsVersions重复。 |
| 400 | ParamDuplicateError.Ciphers | The param Ciphers is duplicate in request. | 参数Ciphers重复。 |
| 400 | TLSPolicyNoSupportVersion | The specified TLS version is not supported. | 当前TLSCipherPolicy不支持指定的Version。 |
| 400 | TLSPolicyNoSupportCipher | The specified TLS cipher is not supported. | 当前TLSCipherPolicy不支持指定的Cipher。 |
| 400 | MissingParam.TLSCipherPolicyId | The param TLSCipherPolicyId is missing. | 参数TLSCipherPolicyId缺失。 |
| 400 | TLSPolicyConfiguring | The specified TLS cipher policy is configuring. | 指定的TLSCipherPolicy正在变配中。 |
| 400 | TLSPolicyBeingUsed | The specified TLS cipher policy is being used. | 指定的TLSCipherPolicy正在使用中。 |
| 400 | InvalidTLSPolicyId.NotExist | The specified TLS cipher policy does not exist. | 指定的TLS策略不存在。 |
| 400 | TLSPolicyUnchanged | The specified TLS cipher policy is unchanged. | 指定的TLSCipherPolicy未变化。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。