v1

latestSwagger 2.02026-08-061,9128853.7 MB
Environments

Lists Static, Parent and Ephemeral Environments in the supplied Octopus Deploy Space. The results will be sorted by the `SortOrder` field on each environment (which is set to a MaxValue integer for Ephemeral Environments).

get/{spaceId}/environments/v2

Path parameters

spaceIdstring required

The ID of the space containing the resource(s).

Query parameters

idsstring[]

Filter environments using ids

namestring

The exact name of an Environment to be matched

partialNamestring

Filters the documents using the specified partialName fragment

skipinteger required

Number of items to skip. Defaults to zero

takeinteger required

Number of items to skip. Defaults to zero

typestring[]

Filters the documents using the specified environment EnvironmentType

Response

Success

ItemsPerPageinteger
ItemTypestring
LastPageNumberinteger
NumberOfPagesinteger
TotalResultsinteger