edit-icon download-icon

Query the IP access control policy list (DescribeIpControlPolicyItems)

Last Updated: Feb 25, 2018

Description

Query the policy list under an IP access control in multiple pages.

  • This function is intended for API providers.
  • You can specify a policy ID to filter the displayed information.

Request parameters

Parameter Type Required Description
Action String Yes Operation interface name, a required parameter, value: DescribeIpControlPolicyItems
IpControlId String Yes IP access control ID, which identifies a unique IP access control policy
PolicyItemId String No Policy ID
PageNumber Integer No Page number specified for query; default value: 1; start number: 1
PageSize Integer No Number of lines per page; maximum value: 100; default value: 10

Response parameters

Parameter Type Description
RequestId String ID of the current request
TotalCount Integer Total number of returned results
PageSize Integer Number of results returned per page
PageNumber Integer Page number for returned results
IpControlPolicyItems IpControlPolicyItem IpControlPolicyItem array, containing policy information for an IP access control

Example

Sample request

  1. https://apigateway.cn-qingdao.aliyuncs.com/?Action=DescribeIpControlPolicyItems
  2. &IpControlId=7ea91319a34d48a09b5c9c871d9768b1
  3. &<Public Request Parameters>

Sample response

XML format

  1. <CreateSignatureResponse>
  2. <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BZ004</RequestId>
  3. <TotalCount>2</TotalCount>
  4. <PageSize>10</PageSize>
  5. <PageNumber>1</PageNumber>
  6. <IpControlPolicyItems>
  7. <IpControlPolicyItem>
  8. <PolicyItemId>P151617000829241</PolicyItemId>
  9. <CreateTime>2018-01-17T06:20:08Z</CreateTime>
  10. <ModifiedTime>2018-01-17T06:25:13Z</ModifiedTime>
  11. <CidrIp>113.125.1.101;101.11.1.1</CidrIp>
  12. <AppId>11112</AppId>
  13. </IpControlPolicyItem>
  14. <IpControlPolicyItem>
  15. <PolicyItemId>P151616809156728</PolicyItemId>
  16. <CreateTime>2018-01-17T05:48:11Z</CreateTime>
  17. <ModifiedTime>2018-01-17T05:48:11Z</ModifiedTime>
  18. <CidrIp>102.0.0.0/8</CidrIp>
  19. </IpControlPolicyItem>
  20. </IpControlPolicyItems>
  21. </CreateSignatureResponse>

JSON format

  1. {
  2. "TotalCount":2,
  3. "PageSize":10,
  4. "PageNumber":1,
  5. "RequestId":"754693C2-E0ED-4A7F-A72A-792241167B3C",
  6. "IpControlPolicyItems":
  7. {
  8. "IpControlPolicyItem":
  9. [
  10. {
  11. "PolicyItemId":"P151617000829241",
  12. "CreateTime":"2018-01-17T06:20:08Z",
  13. "ModifiedTime":"2018-01-17T06:25:13Z",
  14. "CidrIp":"113.125.1.101;101.11.1.1",
  15. "AppId":"11112"
  16. },
  17. {
  18. "PolicyItemId":"P151616809156728",
  19. "CreateTime":"2018-01-17T05:48:11Z",
  20. "ModifiedTime":"2018-01-17T05:48:11Z",
  21. "CidrIp":"102.0.0.0\/8"
  22. }
  23. ]
  24. }
  25. }
Thank you! We've received your feedback.