BindSlb_Serverless 应用引擎_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.

流控信息

当前云产品API请求速率暂未透出。

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
sae:BindSlb
Create
全部资源
*

请求语法

POST /pop/v1/sam/app/slb HTTP/1.1

请求参数

字段名称字段详情
AppIdstring

需要绑定 SLB 的目标应用 ID。

示例值:0099b7be-5f5b-4512-a7fc-56049ef1****
Internetstring

绑定公网 SLB。例如:[{"port":80,"targetPort":8080,"protocol":"TCP"}],表示通过 TCP 协议,将容器的 8080 端口通过 SLB 的 80 端口暴露服务。取值说明如下:展开详情

示例值:[{"port":80,"targetPort":8080,"protocol":"TCP"}]
Intranetstring

绑定私网 SLB。例如:[{"port":80,"targetPort":8080,"protocol":"TCP"}],表示通过 TCP 协议,将容器的 8080 端口通过 SLB 的 80 端口暴露服务。取值说明如下:展开详情

示例值:[{"port":80,"targetPort":8080,"protocol":"TCP"}]
InternetSlbIdstring

使用指定的已购买的公网 SLB,支持非共享型实例。

示例值:lb-bp1tg0k6d9nqaw7l1****参考取值来源:
    DescribeApplicationSlbs
IntranetSlbIdstring

使用指定的已购买的私网 SLB,支持非共享型实例。

示例值:lb-bp1tg0k6d9nqaw7l1****参考取值来源:
    DescribeApplicationSlbs
InternetSlbChargeTypestring

公网负载均衡的计费方式。支持以下两种计费方式:展开详情

示例值:PayBySpec参考取值来源:
    DescribeApplicationSlbs
IntranetSlbChargeTypestring

内网负载均衡的计费方式。支持以下两种计费方式:展开详情

示例值:PayBySpec参考取值来源:
    DescribeApplicationSlbs

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
Messagestring

调用结果的附加信息。

示例值:success
TraceIdstring

调用链 ID,可用于精确查询调用信息。

示例值:0a98a02315955564772843261e****
Dataobject

返回结果。

ErrorCodestring

错误码。取值说明如下:展开详情

示例值:
Codestring

接口状态或 POP 错误码。取值说明如下:展开详情

示例值:200
Successboolean

绑定 SLB 是否成功。取值说明如下:展开详情

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Slb.NotFound
The SLB instance does not exist: slbId [%s]诊断
400
InvalidApplication.NotFound
The current application does not exist.诊断
400
InvalidParameter.NotEmpty
You must specify the parameter %s.诊断
400
InvalidParameter.Obviously
The specified parameter is invalid {%s}.诊断
400
SlbHttpsCert.NotConsistent
The HTTPS listening certificate for each listener must match.诊断
400
SlbHttpsCert.NotFound
You must configure the certificate before you configure HTTPS listening for the SLB instance.诊断
400
SlbListenerPort.NotAvailable
The SLB listening port is unavailable: slbId [%s], port [%s]诊断
400
SlbListenerType.Invalid
An SLB listener type error occurred. Only HTTPS and TCP are supported.诊断
400
SlbSpec.NotSupport
Shared performance SLB instances are not supported.诊断
400
SlbType.Invalid
An SLB network type error occurred.诊断
400
SSLCert.NotFound
The specified SSL certificate cannot be found.诊断
400
System.Upgrading
The system is being upgraded. Please try again later.诊断
400
Application.ChangerOrderRunning
An application change process is in progress. Please try again later.诊断
400
Application.InvalidStatus
The application status is abnormal. Please try again later.诊断
400
Application.NotDeployYet
The application has not been deployed. Please deploy it and try again.诊断
400
InvalidParam.ProtocolNotSupport
Only TCP protocol is supported.诊断
400
SLBInstanceQuota.OverQuota
The total number of SLB instances exceeds the quota. Please reduce the instances and try again.诊断
400
Slb.Tag.Not.Qualified
The current SLB instance cannot be reused because it may have been occupied by %s.诊断
400
Application.NoInstanceAvailable
No instance is available for the application. Please scale out and try again.诊断
400
SlbAppVSwitch.NotMatch
The SLB instance does not match the vSwitch of the current application.诊断
404
InvalidAppId.NotFound
The specified AppId does not exist.诊断

变更历史

变更时间变更内容概要操作
2024-08-07
新增请求参数InternetSlbChargeType
新增请求参数IntranetSlbChargeType
2022-02-25
变更错误码400

相关示例