创建转发规则 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 返回状态码(800为成功,900为失败) 800 message String statusCode为900时的错误信息; statusCode为800时为success, 英文 success description String statusCode为900时的错误信息; statusCode为800时为成功, 中文 成功 errorCode String statusCode为900时为业务细分错误码,三段式:product.module.code; statusCode为800时为SUCCESS SUCCESS returnObj Array of Objects 返回结果 见下表 returnObj error String statusCode为900时为业务细分错误码,三段式:product.module.code; statusCode为800时为SUCCESS 表 returnObj 参数 参数类型 说明 示例 下级对象 ID String 转发规则 ID xxxx 枚举参数 无 请求示例 请求url POST /v4/elb/createrule 请求头header 无 请求体body { "clientToken": "xxxx", "regionID": "81f7728662dd11ec810800155d307d5b", "azName": "az1", "listenerID": "listener3ba2dlfbec", "description": "yacostest", "conditions": [ { "type": "servername", "serverNameConfig": { "serverName": "yacostest.com" }, "urlPathConfig": { "urlPaths": "abcd", "matchType": "PREFIX" } } ], "action": { "type": "forward", "forwardConfig": { "targetGroups": [ { "targetGroupID": "tgtd6uhtxhso", "weight": 10 } ] } } }