调用ListIsolationRulesOfResource接口获取资源对应的隔离规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListIsolationRulesOfResource |
系统规定参数。取值:ListIsolationRulesOfResource。 |
AppName | String | 是 | ahas-demo |
应用名,若为EDAS应用,则AppName为EDAS中的App ID,可在EDAS控制台“应用管理>基本信息”中查看对应的ID。 |
Namespace | String | 是 | default |
命名空间 |
Resource | String | 是 | handleServiceA |
资源名 |
PageIndex | Integer | 否 | 1 |
当前页码 |
PageSize | Integer | 否 | 10 |
每页数据条数 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | 200 |
返回码 |
Data | Struct |
返回数据 |
|
Datas | Array of Datas |
隔离规则列表 |
|
AppName | String | ahas-demo |
应用名,若为EDAS应用,则AppName为EDAS中的App ID,可在EDAS控制台“应用管理>基本信息”中查看对应的ID。 |
Enable | Boolean | true |
规则是否开启 |
LimitOrigin | String | default |
来源应用 |
Namespace | String | default |
命名空间 |
RefResource | String | handleServiceB |
关联接口名、callstack入口名 |
RelationStrategy | Integer | 0 |
统计维度 |
Resource | String | handleServiceA |
资源名 |
RuleId | Long | 123 |
规则ID |
Threshold | Float | 10 |
并发数阈值 |
PageIndex | Integer | 1 |
当前页码 |
PageSize | Integer | 10 |
每页数据条数 |
TotalCount | Integer | 23 |
总数据量 |
TotalPage | Integer | 3 |
总页数 |
Message | String | null |
错误信息 |
RequestId | String | 3FEEAD12-CE22-4EDE-A729-CE94EC070610 |
请求ID |
Success | Boolean | true |
是否成功 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListIsolationRulesOfResource
&AppName=ahas-demo
&Namespace=default
&Resource=handleServiceA
&<公共请求参数>
正常返回示例
XML
格式
<ListIsolationRulesOfResourceResponse>
<Message>null</Message>
<RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>
<Data>
<TotalCount>23</TotalCount>
<PageSize>10</PageSize>
<TotalPage>3</TotalPage>
<Datas>
<RefResource>handleServiceB</RefResource>
<RuleId>123</RuleId>
<Resource>handleServiceA</Resource>
<Enable>true</Enable>
<RelationStrategy>0</RelationStrategy>
<LimitOrigin>default</LimitOrigin>
<Namespace>default</Namespace>
<AppName>ahas-demo</AppName>
<Threshold>10</Threshold>
</Datas>
<PageIndex>1</PageIndex>
</Data>
<Code>200</Code>
<Success>true</Success>
</ListIsolationRulesOfResourceResponse>
JSON
格式
{
"Message":"null",
"RequestId":"3FEEAD12-CE22-4EDE-A729-CE94EC070610",
"Data":
{
"TotalCount":"23",
"PageSize":"10",
"TotalPage":"3",
"Datas":
[{
"RefResource":"handleServiceB",
"RuleId":"123",
"Resource":"handleServiceA",
"Enable":"true",
"RelationStrategy":"0",
"LimitOrigin":"default",
"Namespace":"default",
"AppName":"ahas-demo",
"Threshold":"10"
}],
"PageIndex":"1"
},
"Code":"200",
"Success":"true"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IllegalArgument.Namespace | The specified Namespace is invalid. | 参数Namespace不合法 |
400 | IllegalArgument.AppName | The specified AppName is invalid. | 参数AppName不合法 |
400 | IllegalArgument.Resource | The specified Resource is invalid. | 参数Resource不合法 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交