- 区域
- 可用区
- 套餐
- 裸金属
- 虚拟机
- 专有网络
- IP子网
- 安全组
- 镜像
- 对象存储
- eip
- disk
- cloudBilling
- tasks
- loadbalancer
- [异步] 创建负载均衡POST
- [异步] 创建访问控制POST
- [异步] 删除访问控制-240527POST
- [同步] 获取访问控制列表POST
- [同步] 获取指定访问控制POST
- [同步] 更新访问控制-240606POST
- [异步] 新建负载均衡后端服务 器组POST
- [异步] 后端服务器组添加服务器POST
- [异步] 删除后端服务组-240527POST
- [异步] 删除服务器组中的服务器-240527POST
- [同步] 获取指定后端服务组列表POST
- [同步] 获取指定后端服务组POST
- [同步] 获取后端服务器POST
- [同步] 获取指定后端服务器-240531POST
- [同步] 后端服务器设置权重和端口-240527POST
- [异步] 创建负载均衡证书POST
- [异步] 删除证书-240527POST
- [同步] 获取证书列表POST
- [同步] 获取指定证书POST
- [异步] 删除负载均衡实例-240527POST
- [同步] 获取负载均衡列表POST
- [同步] 获取指定负载均衡POST
- [异步] 创建负载均衡监听POST
- [同步] 创建监听转发策略-240528POST
- [同步] 删除监听转发策略-240528POST
- [同步] 获取指定监听转发策略-240528POST
- [同步] 获取监听转发策略列表-240528POST
- [同步] 修改监听域名属性(qcloud)-250226POST
- [同步] 更新转发策略(qcloud)-250224POST
- [异步] 删除监听-240527POST
- [同步] 获取监听列表POST
- [同步] 获取指定监听POST
- [同步] 监听设置访问控制POST
- [同步] 启用监听-240527POST
- [同步] 禁用监听-240527POST
- [同步] 更新监听-240531POST
- [同步] 更新lb属性(qcloud)-250224POST
- [同步] 负载均衡绑定安全组(qcloud)-250221POST
- [同步] 启用负载均衡-240527POST
- [同步] 禁用负载均衡实例-240527POST
- [同步] 负载均衡解绑安全组(qcloud)-250221POST
- Host
- 调度器
- ceph
- 轻量云
- 用户
- 任务task发送【mq对接】POST
[同步] 创建监听转发策略-240528
开发环境
http://192.168.3.254:31299
开发环境
http://192.168.3.254:31299
POST
http://192.168.3.254:31299
loadbalancer
请求参数
Body 参数application/json
cloudCredentialInfo
object (codeup_aliyun_com_644a10bf88aef0db4b8c1edc_uci_puhui-uci_pkg_types.CloudProviderParams)
可选
accessKey
string
必需
accountId
string
可选
hypervisor
string
用于轻 量云
provider
enum<string>
可选
枚举值:
AliyunQcloudAwsHuaweiBaiduCfelCloudpodsEscrowEcloudCfelCtyunVolcEngineChinaUnionCfel
secretKey
string
必需
url
string
可选
data
object (codeup_aliyun_com_644a10bf88aef0db4b8c1edc_uci_puhui-uci_pkg_types.CreateLbListenerRuleOptions)
可选
backendGroupId
string
可选
condition
string
可选
domain
string
可选
healthCheck
string
可选
healthCheckDomain
string
可选
healthCheckFail
integer
可选
healthCheckHttpCode
string
可选
healthCheckInterval
integer
可选
healthCheckMethod
string
可选
healthCheckRise
integer
可选
healthCheckTimeout
integer
可选
healthCheckType
string
可选
healthCheckUri
string
可选
httpRequestRate
integer
可选
httpRequestRatePerSrc
integer
可选
listenerId
string
可选
loadbalancerId
string
必需
name
string
可选
path
string
可选
redirect
string
可选
redirectCode
integer
可选
redirectHost
string
可选
redirectPath
string
可选
redirectScheme
string
可选
regionId
string
必需
scheduler
string
可选
stickySessionCookieTimeout
integer
可选
示例
{
"cloudCredentialInfo": {
"accessKey": "string",
"accountId": "string",
"hypervisor": "string",
"provider": "Aliyun",
"secretKey": "string",
"url": "string"
},
"data": {
"backendGroupId": "string",
"condition": "string",
"domain": "string",
"healthCheck": "string",
"healthCheckDomain": "string",
"healthCheckFail": 0,
"healthCheckHttpCode": "string",
"healthCheckInterval": 0,
"healthCheckMethod": "string",
"healthCheckRise": 0,
"healthCheckTimeout": 0,
"healthCheckType": "string",
"healthCheckUri": "string",
"httpRequestRate": 0,
"httpRequestRatePerSrc": 0,
"listenerId": "string",
"loadbalancerId": "string",
"name": "string",
"path": "string",
"redirect": "string",
"redirectCode": 0,
"redirectHost": "string",
"redirectPath": "string",
"redirectScheme": "string",
"regionId": "string",
"scheduler": "string",
"stickySessionCookieTimeout": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.3.254:31299/api/v1/loadbalancer/listener-rule/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"cloudCredentialInfo": {
"accessKey": "string",
"accountId": "string",
"hypervisor": "string",
"provider": "Aliyun",
"secretKey": "string",
"url": "string"
},
"data": {
"backendGroupId": "string",
"condition": "string",
"domain": "string",
"healthCheck": "string",
"healthCheckDomain": "string",
"healthCheckFail": 0,
"healthCheckHttpCode": "string",
"healthCheckInterval": 0,
"healthCheckMethod": "string",
"healthCheckRise": 0,
"healthCheckTimeout": 0,
"healthCheckType": "string",
"healthCheckUri": "string",
"httpRequestRate": 0,
"httpRequestRatePerSrc": 0,
"listenerId": "string",
"loadbalancerId": "string",
"name": "string",
"path": "string",
"redirect": "string",
"redirectCode": 0,
"redirectHost": "string",
"redirectPath": "string",
"redirectScheme": "string",
"regionId": "string",
"scheduler": "string",
"stickySessionCookieTimeout": 0
}
}'
返回响应
🟢200成功
application/json
Body
content
object
可选
page
integer
可选
pageSize
integer
可选
resources
array[object (codeup_aliyun_com_644a10bf88aef0db4b8c1edc_uci_puhui-uci_pkg_model.LoadbalancerListenerRule) {21}]
返回列表数据
total
integer
可选
errorCode
string
失败 code
errorMsg
string
失败信息
msg
string
响应信息,ok
success
boolean
是否操作成功
taskId
string
任务id
taskName
string
任务名称
示例
{
"content": {
"page": 0,
"pageSize": 0,
"resources": [
{
"backendGroupId": "string",
"createdAt": "string",
"deleted": true,
"domain": "string",
"healthCheckFall": 0,
"healthCheckInterval": 0,
"healthCheckRise": 0,
"healthCheckTimeout": 0,
"httpRequestRate": 0,
"httpRequestRatePerSrc": 0,
"id": "string",
"isDefault": true,
"listenerId": "string",
"name": "string",
"path": "string",
"redirect": "string",
"redirectCode": 0,
"redirectHost": "string",
"redirectPath": "string",
"redirectScheme": "string",
"status": "string"
}
],
"total": 0
},
"errorCode": "string",
"errorMsg": "string",
"msg": "string",
"success": true,
"taskId": "string",
"taskName": "string"
}
修改于 2025-04-17 10:22:13