AssociateAdditionalCertificatesWithListener_应用型负载均衡_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

AssociateAdditionalCertificatesWithListener 接口属于异步接口,即系统返回一个请求 ID,但该扩展证书尚未添加成功,系统后台的添加任务仍在进行。您可以调用 GetListenerAttribute 查询扩展证书的添加状态:

  • 当 HTTPS 和 QUIC 监听处于 Associating 状态时,表示扩展证书正在添加中。
  • 当 HTTPS 和 QUIC 监听处于 Associated 状态时,表示扩展证书添加成功。

流控信息

请求速率为200/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
alb:AssociateAdditionalCertificatesWithListener
Create
LoadBalancer
acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

请求参数

字段名称字段详情
ListenerIdstring

监听 ID。HTTPS 和 QUIC 监听有效。

示例值:lsn-5qnirjhpt******参考取值来源:
    ListListeners
    CreateListener
Certificatesarray<object>

扩展证书列表。

子级条数 <= 15子级条数 >= 1
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:5A2CFF0E-5718-45B5-9D4D-70B3F******
DryRunboolean

是否只预检此次请求,取值:展开详情

示例值:true

返回参数

字段名称字段详情
JobIdstring

异步任务 ID。

示例值:72dcd26b-f12d-4c27-b3af-18f6aed5****
RequestIdstring

请求 ID。

示例值:365F4154-92F6-4AE4-92F8-7FF3******

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
IncorrectStatus.Listener
The status of %s [%s] is incorrect.诊断
400
OperationDenied.DefaultCertificateUsed
The operation is not allowed because of %s.诊断
400
OperationFailed.DefaultCertificateNotFound
The operation failed because of %s.诊断
400
ResourceAlreadyAssociated.Certificate
The specified resource %s is already associated.诊断
400
ResourceQuotaExceeded.LoadBalancerCertificatesNum
The quota of %s is exceeded for resource %s, usage %s/%s.诊断
400
OperationDenied.HttpListenerNotSupport
The operation is not allowed because of %s.诊断
400
InvalidParameter
Invalid parameter, please check the parameter input.诊断
400
ResourceInConfiguring.Listener
The specified resource %s is configuring, please try again later.诊断
403
Forbidden.LoadBalancer
Authentication has failed for LoadBalancer.诊断
404
ResourceNotFound.Certificate
The specified resource %s is not found.诊断
404
ResourceNotFound.Listener
The specified resource %s is not found.诊断

变更历史

变更时间变更内容概要操作
2024-01-23
变更错误码400
新增错误码403
2024-01-17
变更错误码400
变更错误码404
2020-09-29
变更请求参数Certificates

相关示例

针对服务器证书进行添加和解绑操作
2021-09-26