Accounts
Get a list of accounts.
Lists accounts in the supplied Octopus Deploy Space in pages. The results will be sorted alphabetically by name.
get/accounts
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/accounts
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Query parameters
accountTypestring[]
The type of accounts to return.
namestring
The exact name of an Account to be matched.
partialNamestring
A partial account name used for a sub-string search.
skipinteger
Number of items to skip. Defaults to zero
takeinteger
Number of items to take. Defaults to 30
Response
The list of Accounts
Example response
{
"Items": [
{
"EnvironmentIds": [
"Environments-1",
"..."
],
"Links": {
"Self": "/api/..."
},
"SpaceId": "Spaces-1",
"TenantIds": [
"Tenants-1",
"..."
]
}
],
"ItemsPerPage": 30,
"ItemType": "Account",
"LastPageNumber": 1,
"Links": {
"Self": "/api/..."
},
"NumberOfPages": 2,
"TotalResults": 42
}Changes
No recorded changes to this operation across all 13 revisions of this API.