调用ListIsolationRulesOfApp接口获取应用隔离规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListIsolationRulesOfApp |
系统规定参数。取值:ListIsolationRulesOfApp。 |
Namespace | String | 是 | default |
命名空间。 |
AppName | String | 是 | ahas-demo |
应用名,若为EDAS应用,则AppName为EDAS中的App ID,可在EDAS控制台“应用管理>基本信息”中查看对应的ID。 |
PageIndex | Integer | 否 | 1 |
当前页码。 |
PageSize | Integer | 否 | 10 |
每页数据条数。 |
AhasRegionId | String | 否 | cn-hangzhou |
地域 |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=ListIsolationRulesOfApp
&AppName=ahas-demo
&Namespace=default
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListIsolationRulesOfAppResponse>
<Message>null</Message>
<RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>
<Data>
<PageIndex>1</PageIndex>
<Datas>
<RelationStrategy>0</RelationStrategy>
<Resource>handleServiceA</Resource>
<AppName>ahas-demo</AppName>
<RefResource>hanldeServiceB</RefResource>
<Namespace>default</Namespace>
<LimitOrigin>default</LimitOrigin>
<Threshold>10</Threshold>
<RuleId>123</RuleId>
<Enable>true</Enable>
</Datas>
<TotalPage>3</TotalPage>
<PageSize>10</PageSize>
<TotalCount>23</TotalCount>
</Data>
<Code>200</Code>
<Success>true</Success>
</ListIsolationRulesOfAppResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Message" : "null",
"RequestId" : "3FEEAD12-CE22-4EDE-A729-CE94EC070610",
"Data" : {
"PageIndex" : 1,
"Datas" : [ {
"RelationStrategy" : 0,
"Resource" : "handleServiceA",
"AppName" : "ahas-demo",
"RefResource" : "hanldeServiceB",
"Namespace" : "default",
"LimitOrigin" : "default",
"Threshold" : 10,
"RuleId" : 123,
"Enable" : true
} ],
"TotalPage" : 3,
"PageSize" : 10,
"TotalCount" : 23
},
"Code" : "200",
"Success" : true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IllegalArgument.Namespace | The specified Namespace is invalid. | 参数Namespace不合法 |
400 | IllegalArgument.AppName | The specified AppName is invalid. | 参数AppName不合法 |
访问错误中心查看更多错误码。