調用DescribeResolverRules擷取轉寄規則列表
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
請求參數
| 名稱 | 類型 | 是否必選 | 樣本值 | 描述 |
| Action | String | 是 | DescribeResolverRules | 系統規定參數。取值:DescribeResolverRules。 |
| Keyword | String | 否 | test | 關鍵字,照”%Keyword%”模式搜尋規則名稱 |
| Lang | String | 否 | en | 語言 |
| PageNumber | Integer | 否 | 1 | 當前頁碼, 預設值1 |
| PageSize | Integer | 否 | 20 | 頁面大小,預設值20;最大支援100 |
| NeedDetailAttributes | Boolean | 否 | true |
是否需要額外資訊,預設為false;
|
| EndpointId | String | 否 | hra2** | 出站終端節點ID |
返回資料
| 名稱 | 類型 | 樣本值 | 描述 |
| PageSize | Integer | 10 | 頁面大小 |
| RequestId | String | A10E03D7-808C-422D-9144-F8586C2E2297 | 唯一請求識別碼 |
| PageNumber | Integer | 1 | 頁碼 |
| TotalPages | Integer | 1 | 總頁數 |
| TotalItems | Integer | 1 | 總個數 |
| Rules | Array of Rule | 轉寄規則列表 |
|
| Type | String | OUTBOUND | 轉寄類型。
|
| UpdateTime | String | 2020-07-13 10:51:44 | 更新時間 |
| ForwardIps | Array of ForwardIp | 轉寄目標IP地址清單 |
|
| Ip | String | 172.16.xx.xx | IP地址 |
| Port | Integer | 8080 | 連接埠號碼 |
| EndpointName | String | 終端節點-test | 終端節點名稱 |
| CreateTime | String | 2020-07-13 10:51:44 | 建立時間 |
| ZoneName | String | example.com | 轉寄zone名稱 |
| UpdateTimestamp | Long | 1594608704000 | 更新時間戳記 |
| BindVpcs | Array of Vpc | 關聯的VPC列表 |
|
| VpcName | String | vpc-name-test | VPC 名稱 |
| VpcId | String | vpc-8vbl8mpum-vpc-id | VPC ID |
| RegionName | String | 杭州測試 | 地區名稱 |
| RegionId | String | cn-hangzhou | 地區ID |
| EndpointId | String | hra0** | 終端節點ID |
| Name | String | 轉寄規則-test | 轉寄規則名稱 |
| Id | String | hra1** | 轉寄規則Id |
| CreateTimestamp | Long | 1594608704000 | 建立時間戳記 |
樣本
請求樣本
http(s)://pvtz.aliyuncs.com/?Action=DescribeResolverRules
&Keyword=test
&Lang=en
&PageNumber=1
&PageSize=20
&NeedDetailAttributes=true
&EndpointId=hra2**
&公用請求參數
正常返回樣本
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeResolverRulesResponse>
<PageSize>10</PageSize>
<RequestId>A10E03D7-808C-422D-9144-F8586C2E2297</RequestId>
<PageNumber>1</PageNumber>
<TotalPages>1</TotalPages>
<TotalItems>1</TotalItems>
<Rules>
<Type>OUTBOUND</Type>
<UpdateTime>2020-07-13 10:51:44</UpdateTime>
<ForwardIps>
<Ip>172.16.xx.xx</Ip>
<Port>8080</Port>
</ForwardIps>
<EndpointName>終端節點-test</EndpointName>
<CreateTime>2020-07-13 10:51:44</CreateTime>
<ZoneName>example.com</ZoneName>
<UpdateTimestamp>1594608704000</UpdateTimestamp>
<BindVpcs>
<VpcName>vpc-name-test</VpcName>
<VpcId>vpc-8vbl8mpum-vpc-id</VpcId>
<RegionName>杭州測試</RegionName>
<RegionId>cn-hangzhou</RegionId>
</BindVpcs>
<EndpointId>hra0**</EndpointId>
<Name>轉寄規則-test</Name>
<Id>hra1**</Id>
<CreateTimestamp>1594608704000</CreateTimestamp>
</Rules>
</DescribeResolverRulesResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"PageSize" : 10,
"RequestId" : "A10E03D7-808C-422D-9144-F8586C2E2297",
"PageNumber" : 1,
"TotalPages" : 1,
"TotalItems" : 1,
"Rules" : [ {
"Type" : "OUTBOUND",
"UpdateTime" : "2020-07-13 10:51:44",
"ForwardIps" : [ {
"Ip" : "172.16.xx.xx",
"Port" : 8080
} ],
"EndpointName" : "終端節點-test",
"CreateTime" : "2020-07-13 10:51:44",
"ZoneName" : "example.com",
"UpdateTimestamp" : 1594608704000,
"BindVpcs" : [ {
"VpcName" : "vpc-name-test",
"VpcId" : "vpc-8vbl8mpum-vpc-id",
"RegionName" : "杭州測試",
"RegionId" : "cn-hangzhou"
} ],
"EndpointId" : "hra0**",
"Name" : "轉寄規則-test",
"Id" : "hra1**",
"CreateTimestamp" : 1594608704000
} ]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。