调用DescribeExposedStatisticsDetail接口查询暴露在互联网中的网关资产、端口、系统组件或公网IP列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeExposedStatisticsDetail |
需要执行的操作。 取值:DescribeExposedStatisticsDetail。 |
StatisticsType | String | 是 | exposureType |
指定要查看的统计值类型。取值:
|
PageSize | Integer | 否 | 20 |
指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回20条数据。 说明 建议PageSize取值不要为空。
|
CurrentPage | Integer | 否 | 1 |
指定分页查询时,当前页的页码。 |
StatisticsTypeInstanceValue | String | 否 | lb-2ze4rso39h4nczcqs**** |
StatisticsType为exposureType时,指定要查询的网关实例ID。 |
StatisticsTypeGatewayType | String | 否 | SLB |
StatisticsType为exposureType时,指定要查询的网关资产类型。取值:
|
调用API时,除了本文中该API的请求参数,还需加入阿里云API公共请求参数。公共请求参数的详细介绍,请参见公共参数。
调用API的请求格式,请参见本文示例中的请求示例。
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageInfo | Struct |
分页信息。 |
|
Count | Integer | 2 |
分页查询时,当前页显示的数据条数。 |
CurrentPage | Integer | 1 |
分页查询时,当前页的页码。 |
PageSize | Integer | 20 |
分页查询时,每页最多显示的数据条数。 |
TotalCount | Integer | 2 |
查询到的数据总条数。 |
RequestId | String | 7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1 |
阿里云为该请求生成的唯一标识符。 |
StatisticsDetails | Array of StatisticsDetail |
返回的网关资产、暴露端口、暴露组件或公网IP列表。 |
|
ExposureComponent | String | tomcat |
暴露在互联网中的系统组件。 |
ExposureIp | String | 123.57.XX.XX |
暴露在互联网中的公网IP。 |
ExposurePort | String | 22 |
暴露在互联网中的端口。 |
ExposureType | String | SLB |
暴露方式。取值:
|
ExposureTypeId | String | lb-2ze4rso39h4nczcqs**** |
暴露方式对应的实例ID。不同暴露方式对应不同的实例ID,取值:
|
ExposureTypeInstanceName | String | ngw-bp1vkbju8f3w87c9v**** |
暴露在互联网中的网关资产名称。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeExposedStatisticsDetail
&StatisticsType=exposureType
&<公共请求参数>
正常返回示例
XML
格式
<DescribeExposedStatisticsDetailResponse>
<PageInfo>
<TotalCount>2</TotalCount>
<PageSize>20</PageSize>
<CurrentPage>1</CurrentPage>
<Count>2</Count>
</PageInfo>
<RequestId>7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1</RequestId>
<StatisticsDetails>
<ExposureType>SLB</ExposureType>
<ExposureTypeId>lb-2ze4rso39h4nczcqs****</ExposureTypeId>
</StatisticsDetails>
<StatisticsDetails>
<ExposureType>SLB</ExposureType>
<ExposureTypeId>lb-bp1g61a2sdn01n5k8****</ExposureTypeId>
</StatisticsDetails>
</DescribeExposedStatisticsDetailResponse>
JSON
格式
{
"PageInfo": {
"TotalCount": 2,
"PageSize": 20,
"CurrentPage": 1,
"Count": 2
},
"RequestId": "7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1",
"StatisticsDetails": [
{
"ExposureType": "SLB",
"ExposureTypeId": "lb-2ze4rso39h4nczcqs****"
},
{
"ExposureType": "SLB",
"ExposureTypeId": "lb-bp1g61a2sdn01n5k8****"
}
]
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交