查询泳道详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
sae:DescribeSwimmingLane | get | *全部资源 * |
| 无 |
请求语法
GET /pop/v1/cas/gray/describeSwimmingLane HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
NamespaceId | string | 否 | 命名空间 ID。 | cn-beijing:test |
GroupId | long | 否 | 泳道组 ID。 | 2074 |
LaneId | long | 否 | 泳道 ID。 | 9637 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "30375C38-F4ED-4135-A0AE-5C75DC7F****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"LaneId": 9488,
"LaneName": "mse-test",
"LaneTag": {
"alicloud.service.tag": "g1"
},
"Enable": true,
"EnableRules": true,
"CanaryModel": 0,
"Apps": [
{
"AppId": "6b4c0f64-f679-4580-8105-91eac4******",
"AppName": "test",
"MseAppId": "mse-cn-53y49******",
"MseAppName": "sae-test",
"mseNamespaceId": "6733e538-d52f-48e6-91a4-192f91******"
}
],
"AppEntryRule": {
"Paths": [
"/Path"
],
"Percentage": 50,
"ConditionJoiner": "AND",
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1",
"Values": [
"g1"
]
}
],
"IndependentPercentageEnable": true,
"PercentageByPath": {
"key": 100
}
},
"MseGatewayEntryRule": {
"RouteIds": [
0
],
"Routes": [
{
"RouteId": 9504,
"RouteName": "demo\n",
"RoutePredicate": {
"PathPredicate": {
"Path": "/Path",
"Type": "Header"
}
}
}
],
"Percentage": 100,
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1"
}
],
"PercentageByRoute": {
"key": 100
},
"IndependentPercentageEnable": true,
"ConditionJoiner": "AND"
}
},
"ErrorCode": "空",
"Code": 200,
"Success": true
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
400 | MseGatewayRule.CreateFailed | Create MSE Gateway rule failed. | 创建MSE微服务网关路由失败。 |
400 | InternalApiError | An exception occurred when calling mse:%s, error message: %s. | 调用 mse:%s 接口异常,%s |
访问错误中心查看更多错误码。