调用DescribePropertyPortItem接口获取所有端口信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribePropertyPortItem |
要执行的操作。 取值:DescribePropertyPortItem |
ForceFlush | Boolean | 否 | true |
是否强制刷新待查询数据。 |
Port | String | 否 | 22 |
端口号。 |
CurrentPage | Integer | 否 | 1 |
分页查询时,显示的当前页的页码。 |
PageSize | Integer | 否 | 5 |
分页查询时,显示的每页数据的最大条数。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 7E0618A9-D5EF-4220-9471-C42B5E92719F |
结果的请求ID。 |
PropertyItems | Array |
端口信息。 |
|
Port | String | 22 |
监听端口号。 |
Proto | String | tcp |
端口对应的网络协议。 |
Count | Integer | 495 |
端口对应的服务器数量。 |
PageInfo | Struct |
页面显示信息。 |
|
Count | Integer | 5 |
分页查询时,显示的当前页的数据条数。 |
PageSize | Integer | 5 |
分页查询时,显示的每页数据的最大条数。 |
TotalCount | Integer | 163 |
数据的总条数。 |
CurrentPage | Integer | 1 |
分页查询时,显示的当前页的页码。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribePropertyPortItem
&<公共请求参数>
正常返回示例
XML
格式
<DescribePropertyPortItemResponse>
<RequestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</RequestId>
<PropertyItems>
<Port>22</Port>
<Proto>tcp</Proto>
<Count>495</Count>
</PropertyItems>
<PropertyItems>
<Port>111</Port>
<Proto>tcp</Proto>
<Count>43</Count>
</PropertyItems>
<PropertyItems>
<Port>6000</Port>
<Proto>tcp</Proto>
<Count>2</Count>
</PropertyItems>
<PropertyItems>
<Port>53</Port>
<Proto>tcp</Proto>
<Count>1</Count>
</PropertyItems>
<PropertyItems>
<Port>80</Port>
<Proto>tcp</Proto>
<Count>38</Count>
</PropertyItems>
<PageInfo>
<Count>5</Count>
<PageSize>5</PageSize>
<TotalCount>163</TotalCount>
<CurrentPage>1</CurrentPage>
</PageInfo>
</DescribePropertyPortItemResponse>
JSON
格式
{
"requestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
"PropertyItems": [
{
"Port": "22",
"Proto": "tcp",
"Count": 495
},
{
"Port": "111",
"Proto": "tcp",
"Count": 43
},
{
"Port": "6000",
"Proto": "tcp",
"Count": 2
},
{
"Port": "53",
"Proto": "tcp",
"Count": 1
},
{
"Port": "80",
"Proto": "tcp",
"Count": 38
}
],
"PageInfo": {
"Count": 5,
"PageSize": 5,
"TotalCount": 163,
"CurrentPage": 1
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交