为TCPSSL监听关联扩展证书。
接口说明
AssociateAdditionalCertificatesWithListener 接口属于异步接口,即系统返回一个请求 ID,但该扩展证书尚未添加成功,系统后台的添加任务仍在进行。您可以调用 ListListenerCertificates 查询扩展证书的添加状态:
当 TCPSSL 监听处于 Associating 状态时,表示扩展证书正在添加中。
当 TCPSSL 监听处于 Associated 状态时,表示扩展证书添加成功。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
nlb:AssociateAdditionalCertificatesWithListener |
update |
*LoadBalancer
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AdditionalCertificateIds |
array |
是 |
扩展证书列表。一次调用最多支持为监听关联 15 个扩展证书。 |
|
|
string |
否 |
扩展证书列表。一次调用最多支持为监听关联 15 个扩展证书。 |
123157****** |
|
| ListenerId |
string |
是 |
监听 ID。该接口仅支持输入 TCPSSL 监听 ID。 |
lsn-bpn0kn908w4nbw****@80 |
| DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
true |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
否 |
网络型负载均衡实例所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
为 TCPSSL 监听添加扩展证书。 |
||
| RequestId |
string |
请求 ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| JobId |
string |
异步任务 ID。 |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
示例
正常返回示例
JSON格式
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | SystemBusy | System is busy, please try again later. | 系统繁忙,请稍后重试 |
| 400 | OperationDenied.%s | The operation is not allowed because of %s. | 因为%s,当前操作是不允许的 |
| 400 | OperationFailed.%s | The operation failed because of %s. | 因为%操作当前API失败 |
| 400 | IncorrectStatus.%s | The status of %s [%s] is incorrect. | %s的状态不正确,不允许进行当前操作 |
| 400 | ResourceAlreadyAssociated.%s | The specified resource of %s is already associated. | 所请求的资源%s已经被关联。 |
| 400 | IncorrectStatus.listener | The status of listener [%s] is incorrect. | 监听的状态无法进行当前操作,请检查监听当前是否处于其他操作下。 |
| 400 | ResourceAlreadyAssociated.Certificate | The specified resource %s is already associated. | 资源%s已被关联。 |
| 400 | Conflict.Lock | The Lock [%s] is conflict. | 指定的资源当前存在锁冲突。 |
| 400 | OperationDenied.Protocol | The operation is not allowed because of %s. | 操作被拒绝,原因是%s。 |
| 400 | ResourceNotFound.Certificate | The specified resource %s is not found. | 资源%s不存在。 |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | 因为账号没有权限,所以鉴权失败。 |
| 404 | ResourceNotFound.%s | The specified resource of %s is not found. | 无法找到所需要使用的资源%s |
| 404 | ResourceNotFound.listener | The specified resource %s is not found. | 资源%s不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。