调用ListUserPorts获取主机开启的端口和端口提供的服务信息列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListUserPorts

需要执行的操作。取值:ListUserPorts

Search String port:80

需要查询的主机端口或端口提供的服务。

CurrentPage Integer 1

指定返回结果的当前页码。

默认值为1。

PageSize Integer 10

指定列表每页显示数据条数。

默认值为10,可设置的最大值为10。

返回数据

名称 类型 示例值 描述
CurrentPage Integer 1

指定返回结果的当前页码。

PageSize Integer 10

返回结果列表每页显示数据的条数。

Records Array

查询返回的主机开放端口和端口服务信息列表。

Fingerprint String HTTPAPI httpd

端口指纹信息

IP String 192.168.1.1

IP 地址

Id Integer 1

记录 ID

Index Integer 1

索引号

Port Integer 80

端口号

Product String Microsoft HTTPAPI httpd

产品名称

Protocol String tcp

协议名称

Service String http

服务名称

UpdatedAt Long 1581348084000

更新时间

Version String 1.0

版本名称

RequestId String 8F39E2EA-2CED-48CD-8F98-C50F3D910975

返回结果请求ID。

TotalCount Integer 10

返回结果总数量。

示例

请求示例

http(s)://[Endpoint]/?Action=ListUserPorts
&<公共请求参数>

正常返回示例

XML 格式

<ListUserPortsResponse>
  <Records>
        <UpdatedAt>1582630431000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>1</Index>
        <Product>Tengine httpd</Product>
        <IP>1.1.1.1</IP>
        <Id>18970</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1582561718000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>2</Index>
        <Product>Tengine httpd</Product>
        <IP>2.2.2.2</IP>
        <Id>18576</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1582544019000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>3</Index>
        <Product>Tengine httpd</Product>
        <IP>3.3.3.3</IP>
        <Id>18369</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>4</Index>
        <Product>unknown http service</Product>
        <IP>4.4.4.4</IP>
        <Id>20348</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>5</Index>
        <Product>Microsoft IIS httpd</Product>
        <IP>5.5.5.5</IP>
        <Id>20346</Id>
        <Version>8.5</Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>6</Index>
        <Product>Apache httpd</Product>
        <IP>6.6.6.6</IP>
        <Id>20292</Id>
        <Version>2.2.8</Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>7</Index>
        <Product>Tengine httpd</Product>
        <IP>7.7.7.7</IP>
        <Id>20145</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>8</Index>
        <Product>Tengine httpd</Product>
        <IP>8.8.8.8</IP>
        <Id>20143</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>9</Index>
        <Product>nginx</Product>
        <IP>9.9.9.9</IP>
        <Id>20142</Id>
        <Version>1.10.2</Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <Records>
        <UpdatedAt>1581356439000</UpdatedAt>
        <Service>http</Service>
        <Port>80</Port>
        <Index>10</Index>
        <Product>Tengine httpd</Product>
        <IP>10.10.10.10</IP>
        <Id>20139</Id>
        <Version></Version>
        <Protocol>tcp</Protocol>
        <Fingerprint></Fingerprint>
  </Records>
  <TotalCount>553</TotalCount>
  <PageSize>10</PageSize>
  <RequestId>FD9203C8-528D-4072-B00D-1ED688D31D00</RequestId>
  <CurrentPage>1</CurrentPage>
</ListUserPortsResponse>

JSON 格式

{
	"Records": [
		{
			"UpdatedAt": 1582630431000,
			"Service": "http",
			"Port": 80,
			"Index": 1,
			"Product": "Tengine httpd",
			"IP": "1.1.1.1",
			"Id": 18970,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1582561718000,
			"Service": "http",
			"Port": 80,
			"Index": 2,
			"Product": "Tengine httpd",
			"IP": "2.2.2.2",
			"Id": 18576,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1582544019000,
			"Service": "http",
			"Port": 80,
			"Index": 3,
			"Product": "Tengine httpd",
			"IP": "3.3.3.3",
			"Id": 18369,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 4,
			"Product": "unknown http service",
			"IP": "4.4.4.4",
			"Id": 20348,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 5,
			"Product": "Microsoft IIS httpd",
			"IP": "5.5.5.5",
			"Id": 20346,
			"Version": "8.5",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 6,
			"Product": "Apache httpd",
			"IP": "6.6.6.6",
			"Id": 20292,
			"Version": "2.2.8",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 7,
			"Product": "Tengine httpd",
			"IP": "7.7.7.7",
			"Id": 20145,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 8,
			"Product": "Tengine httpd",
			"IP": "8.8.8.8",
			"Id": 20143,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 9,
			"Product": "nginx",
			"IP": "9.9.9.9",
			"Id": 20142,
			"Version": "1.10.2",
			"Protocol": "tcp",
			"Fingerprint": ""
		},
		{
			"UpdatedAt": 1581356439000,
			"Service": "http",
			"Port": 80,
			"Index": 10,
			"Product": "Tengine httpd",
			"IP": "10.10.10.10",
			"Id": 20139,
			"Version": "",
			"Protocol": "tcp",
			"Fingerprint": ""
		}
	],
	"TotalCount": 553,
	"PageSize": 10,
	"RequestId": "FD9203C8-528D-4072-B00D-1ED688D31D00",
	"CurrentPage": 1
}

错误码

访问错误中心查看更多错误码。