MachinePolicies
List Machine Policies
Get a paginated list of the Machine Policies in the supplied Octopus Deploy Space. The results will be sorted alphabetically by name.
get/machinepolicies
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/machinepolicies
- 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
idsstring[]
Specific machine policy IDs to filter out
partialNamestring
A partial machine policy 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
A paginated list of the Machine Policies in the supplied Octopus Deploy Space (sorted alphabetically by name).
Example response
{
"Items": [
{
"Links": {
"Self": "/api/..."
},
"SpaceId": "Spaces-1"
}
],
"ItemsPerPage": 30,
"ItemType": "MachinePolicy",
"LastPageNumber": 1,
"Links": {
"Self": "/api/..."
},
"NumberOfPages": 2,
"TotalResults": 42
}Changes
No recorded changes to this operation across all 13 revisions of this API.