Get a list of tenants
Lists all of the tenants in the supplied Octopus Deploy Space. The results will be sorted alphabetically by name, and returned 30 at a time.
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/tenants
- 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
A Tenant ID, to limit the included Tenants to those cloned from that Tenant. Example: Tenants-1
A list of Tenant IDs, to limit the matching of Tenants to those with a particular ID. Example: ["Tenants-1", "Tenants-2"]
Disabled Status, to limit the set of retrieved Tenants to those with the specified disabled status.
(Obsolete) A partial or complete name to limit the set of retrieved Tenants to. This will perform a "contains" style match against the supplied name or name-fragment. Left for backwards compatibility.
A partial name, to limit the set of Tenants to those with a name that includes the partial name
A Project ID, to limit the set of Tenants to those connected to a particular Project. Example: Projects-1
Number of items to skip. Defaults to zero
A set of Tenant Tags, to limit the set of retrieved Tenants to those which are tagged with the specific tags. Example: Alpha,Beta,Stable
Number of items to take. Defaults to 30
Response
Requested list of Tenants
Example response
{
"Items": [
{
"Icon": {
"Color": "#3CA4F3",
"Id": "rocket"
},
"Links": {
"Self": "/api/..."
},
"SpaceId": "Spaces-1"
}
],
"ItemsPerPage": 30,
"ItemType": "Tenant",
"LastPageNumber": 1,
"Links": {
"Self": "/api/..."
},
"NumberOfPages": 2,
"TotalResults": 42
}Changes
No recorded changes to this operation across all 13 revisions of this API.