全部产品
云市场

查询指定 app 已授权的 API 列表(DescribeAuthorizedApis)

更新时间:2018-09-28 17:50:00

查询指定 app 已授权的 API 列表(DescribeAuthorizedApis)

描述

用于查询指定app已授权于的API列表,即指定app可以调用的API列表

  • 此功能面向API使用者
  • App可以调用查询结果返回的所有API

请求参数

名称 类型 是否必须 描述
Action String 接口名称,系统规定参数,取值:DescribeAuthorizedApis
AppId Long App编号,系统生成,全局唯一
PageNumber Integer 指定要查询的页码,默认是1,起始是1
PageSize Integer 指定分页查询时每页行数,最大值100,默认值为10

返回参数

名称 类型 描述
RequestId String 请求唯一标识
TotalCount Integer 返回结果的总条数
PageSize Integer 返回指定的每页条数
PageNumber Integer 返回指定的页码
AuthorizedApis AuthorizedApi 已授权的API集合

示例

请求示例

  1. http://apigateway.cn-hangzhou.aliyuncs.com?Action=DescribeAuthorizedApis
  2. &AppId2386789
  3. &<公共请求参数>

返回示例

XML格式

  1. <DescribeAuthorizedApisResponse>
  2. <PageNumber>1</PageNumber>
  3. <TotalCount>2</TotalCount>
  4. <PageSize>10</PageSize>
  5. <RequestId>D6E46F10-F26C-4AA0-BB69-FE2743D9AE62</RequestId>
  6. <AuthorizedApis>
  7. <AuthorizedApi>
  8. <RegionId>cn-hangzhou</RegionId>
  9. <GroupId>523e8dc7bbe04613b5b1d726c2a7889d</GroupId>
  10. <GroupName>Weather</GroupName>
  11. <StageName>RELEASE</StageName>
  12. <Operator>PROVIDER</Operator>
  13. <ApiId>baacc592e63a4cb6a41920d9d3f91f38</ApiId>
  14. <ApiName>AreaWeather</ApiName>
  15. <AuthorizationSource>CONSOLE</AuthorizationSource>
  16. <Description>根据地区名称查询天气情况</Description>
  17. <AuthorizedTime>2016-07-21T06:17:20Z</AuthorizedTime>
  18. <AuthVaildTime>2018-10-05T16:00:00Z</AuthVaildTime>
  19. </AuthorizedApi>
  20. <AuthorizedApi>
  21. <RegionId>cn-hangzhou</RegionId>
  22. <GroupId>523e8dc7bbe04613b5b1d726c2a7889d</GroupId>
  23. <GroupName>Weather</GroupName>
  24. <StageName>RELEASE</StageName>
  25. <Operator>CONSUMER</Operator>
  26. <ApiId>baacc592e63a4cb6a41920d9d3f89g76</ApiId>
  27. <ApiName>Area</ApiName>
  28. <AuthorizationSource>API</AuthorizationSource>
  29. <Description>查询区域</Description>
  30. <AuthorizedTime>2016-07-21T06:17:20Z</AuthorizedTime>
  31. <AuthVaildTime></AuthVaildTime>
  32. </AuthorizedApi>
  33. </AuthorizedApis>
  34. </DescribeAuthorizedApisResponse>

JSON格式

  1. {
  2. "PageNumber": "1",
  3. "TotalCount": "2",
  4. "PageSize": "10",
  5. "RequestId": "D6E46F10-F26C-4AA0-BB69-FE2743D9AE62",
  6. "AuthorizedApis": {
  7. "AuthorizedApi": [
  8. {
  9. "RegionId": "cn-hangzhou",
  10. "GroupId": "523e8dc7bbe04613b5b1d726c2a7889d",
  11. "GroupName": "Weather",
  12. "StageName": "RELEASE",
  13. "Operator": "Provider",
  14. "ApiId": "baacc592e63a4cb6a41920d9d3f91f38",
  15. "ApiName": "AreaWeather",
  16. "AuthorizationSource": "CONSOLE",
  17. "Description": "根据地区名称查询天气情况",
  18. "AuthorizedTime": "2016-07-21T06:17:20Z",
  19. "AuthVaildTime " : "2018-10-05T16:00:00Z"
  20. },
  21. {
  22. "RegionId": "cn-hangzhou",
  23. "GroupId": "523e8dc7bbe04613b5b1d726c2a7889d",
  24. "GroupName": "Weather",
  25. "StageName": "RELEASE",
  26. "Operator": "CONSUMER",
  27. "ApiId": "baacc592e63a4cb6a41920d9d3f89g76",
  28. "ApiName": "Area",
  29. "AuthorizationSource": "API",
  30. "Description": "查询区域",
  31. "AuthorizedTime": "2016-07-21T06:17:20Z",
  32. "AuthVaildTime " : ""
  33. }
  34. ]
  35. }
  36. }