Queries the subdomains 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 ListOrgSubdomains

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

OrgId Integer Yes 1

The ID of the organization.

Search String No foobar

Specifies the subdomain 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.

Domain String aliyun.com

The root domain.

Id Integer 1

The ID of the record.

Index Integer 1

The index number.

OrgId Integer 1

The ID of the organization.

Subdomain String testphp.vulnweb.com

The subdomain.

UpdatedAt Long 1585737153000

The update time.

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

The ID of the request.

TotalCount Integer 10

The total number of returned entries.

Examples

Sample requests

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

Sample success responses

XML format

<ListOrgSubdomainsResponse>
   <code>200</code>
   <data>
        <TotalCount>1</TotalCount>
        <PageSize>10</PageSize>
        <CurrentPage>1</CurrentPage>
        <Records>
              <OrgId>1</OrgId>
              <Subdomain>testphp.vulnweb.com</Subdomain>
              <Index>1</Index>
              <Id>1</Id>
              <Domain>vulnweb.com</Domain>
              <UpdatedAt>1585737153000</UpdatedAt>
        </Records>
   </data>
   <requestId>ADE203B0-24F9-487E-AB36-671AB90FDC2E</requestId>
   <success>true</success>
</ListOrgSubdomainsResponse>

JSON format

{
    "code": 200,
    "data": {
        "TotalCount": 1,
        "PageSize": 10,
        "CurrentPage": 1,
        "Records": [
            {
                "OrgId": 1,
                "Subdomain": "testphp.vulnweb.com",
                "Index": 1,
                "Id": 1,
                "Domain": "vulnweb.com",
                "UpdatedAt": 1585737153000
            }
        ]
    },
    "requestId": "ADE203B0-24F9-487E-AB36-671AB90FDC2E",
    "success": true
}

Error codes

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