Skip to main content
Version: 2023.3

Get all domains

Description

Gets a list of all domains in CloudShell

URL

http://{Admin API IP}:{port#}/api/v1/domains

HTTP method

GET

Request

Headers

Example header format:

Authorization: Basic <authorization token returned from the login method>

Content-Type: application/json

Query parameters
ParameterDescription/Comments
paginationProperties.limit(integer) Number of results to return per page. Can retrieve up to 250 results per page. Default if unspecified: 50. Optional.
Default value : 50
paginationProperties.sort-by(string) Field to use to sort the results.
paginationProperties.sort-order(integer) 1 for ascending, -1 for descending. Defaults to ascending. Optional.
Default value : 1
paginationProperties.cursor(string) When paging, the response will include a cursor field. Use the cursor to get next set of results. Optional.
paginationProperties.filter(string) String to use to filter for domains containing this string. For example: "lab" would return lab1, testlab, olabo. Optional.

Response

Response example
{
"Domains": [
{
"Id": "5c966733-c496-486d-8b1a-963c13e9a103",
"Archived": false,
"EndTime": null,
"LicensePoolId": null,
"Description": "New York team's domain",
"Name": "New York"
},
{
"Id": "8cd12c8d-6d40-4dfd-89da-a8d8dde00575",
"Archived": false,
"EndTime": null,
"LicensePoolId": null,
"Description": "San Francisco team's domain",
"Name": "San Fran"
},
{
"Id": "dbaf480c-09f7-46d3-a2e2-e35d3e374a16",
"Archived": false,
"EndTime": null,
"LicensePoolId": null,
"Description": "Global domain",
"Name": "Global"
}
],
"Cursor": null
}
Response example
200 OK