Queries the access ports of a specified organization.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListOrgPorts

The operation that you want to perform. Set the value to ListOrgPorts.

OrgId Integer Yes 1

The ID of the organization.

Search String No foobar

Specifies the access port you want to query.

CurrentPage Integer No 1

The number of the page to return.

Default value: 1.

PageSize Integer No 10

The number of entries to return on each page.

Default value: 10. Maximum value: 10.

Response parameters

Parameter Type Example Description
CurrentPage Integer 1

The number of the returned page.

Default value: 1.

PageSize Integer 10

The number of entries returned per page.

Default value: 10. Maximum value: 10.

Records Array

The list of records.

Fingerprint String foobar

The fingerprint of the port.

IP String 192.168.1.1

The IP address.

Id Integer 1

The ID of the record.

Index Integer 1

The index number.

OrgId Integer 1

The ID of the organization.

Port Integer 80

The port number.

Product String Apache Httpd

The name of the product.

Protocol String tcp

The protocol.

Service String http

The service.

UpdatedAt Long 1585738707000

The update time.

Version String 1.2

The version number.

RequestId String F4A5123A-E926-4B83-8C62-62A9490163D3

The ID of the request.

TotalCount Integer 10

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListOrgPorts
&OrgId=1
&<Common request parameters>

Sample success responses

XML format

<ListOrgPortsResponse>
   <code>200</code>
   <data>
        <TotalCount>12</TotalCount>
        <PageSize>10</PageSize>
        <CurrentPage>1</CurrentPage>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version>1.3.3e</Version>
              <IP>192.28.50.165</IP>
              <Port>21</Port>
              <Service>ftp</Service>
              <Product>ProFTPD</Product>
              <Index>1</Index>
              <Id>1</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version>5.3p1 Debian 3ubuntu7.1</Version>
              <IP>192.28.50.165</IP>
              <Port>22</Port>
              <Service>ssh</Service>
              <Product>OpenSSH</Product>
              <Index>2</Index>
              <Id>2</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>53</Port>
              <Service>domain</Service>
              <Product></Product>
              <Index>3</Index>
              <Id>3</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version>1.4.1</Version>
              <IP>192.28.50.165</IP>
              <Port>80</Port>
              <Service>http</Service>
              <Product>nginx</Product>
              <Index>4</Index>
              <Id>4</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>106</Port>
              <Service>pop3pw</Service>
              <Product>poppassd</Product>
              <Index>5</Index>
              <Id>5</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>110</Port>
              <Service>pop3</Service>
              <Product>Courier pop3d</Product>
              <Index>6</Index>
              <Id>6</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>143</Port>
              <Service>imap</Service>
              <Product>Plesk Courier imapd</Product>
              <Index>7</Index>
              <Id>7</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>465</Port>
              <Service>smtp</Service>
              <Product>Postfix smtpd</Product>
              <Index>8</Index>
              <Id>8</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>993</Port>
              <Service>imap</Service>
              <Product>Plesk Courier imapd</Product>
              <Index>9</Index>
              <Id>9</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
        <Records>
              <OrgId>1</OrgId>
              <Fingerprint></Fingerprint>
              <Version></Version>
              <IP>192.28.50.165</IP>
              <Port>995</Port>
              <Service>pop3</Service>
              <Product>Courier pop3d</Product>
              <Index>10</Index>
              <Id>10</Id>
              <Protocol>tcp</Protocol>
              <UpdatedAt>1585738707000</UpdatedAt>
        </Records>
   </data>
   <requestId>F4A5123A-E926-4B83-8C62-62A9490163D3</requestId>
   <success>true</success>
</ListOrgPortsResponse>

JSON format

{
    "code": 200,
    "data": {
        "TotalCount": 12,
        "PageSize": 10,
        "CurrentPage": 1,
        "Records": [
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "1.3.3e",
                "IP": "192.28.50.165",
                "Port": 21,
                "Service": "ftp",
                "Product": "ProFTPD",
                "Index": 1,
                "Id": 1,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "5.3p1 Debian 3ubuntu7.1",
                "IP": "192.28.50.165",
                "Port": 22,
                "Service": "ssh",
                "Product": "OpenSSH",
                "Index": 2,
                "Id": 2,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 53,
                "Service": "domain",
                "Product": "",
                "Index": 3,
                "Id": 3,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "1.4.1",
                "IP": "192.28.50.165",
                "Port": 80,
                "Service": "http",
                "Product": "nginx",
                "Index": 4,
                "Id": 4,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 106,
                "Service": "pop3pw",
                "Product": "poppassd",
                "Index": 5,
                "Id": 5,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 110,
                "Service": "pop3",
                "Product": "Courier pop3d",
                "Index": 6,
                "Id": 6,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 143,
                "Service": "imap",
                "Product": "Plesk Courier imapd",
                "Index": 7,
                "Id": 7,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 465,
                "Service": "smtp",
                "Product": "Postfix smtpd",
                "Index": 8,
                "Id": 8,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 993,
                "Service": "imap",
                "Product": "Plesk Courier imapd",
                "Index": 9,
                "Id": 9,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            },
            {
                "OrgId": 1,
                "Fingerprint": "",
                "Version": "",
                "IP": "192.28.50.165",
                "Port": 995,
                "Service": "pop3",
                "Product": "Courier pop3d",
                "Index": 10,
                "Id": 10,
                "Protocol": "tcp",
                "UpdatedAt": 1585738707000
            }
        ]
    },
    "requestId": "F4A5123A-E926-4B83-8C62-62A9490163D3",
    "success": true
}

Error codes

For a list of error codes, visit the API Error Center.