Last active
October 6, 2016 19:34
-
-
Save Dalmirog-zz/30bce70886ff4c0c513a8498ba8c5539 to your computer and use it in GitHub Desktop.
GetEnabledTentacles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$OctopusAPIkey = ""#Octopus API Key | |
$OctopusURL = ""#Octopus Server URL | |
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey } | |
(Invoke-WebRequest $OctopusURL/api/machines/all -Headers $header).content | ConvertFrom-Json | ?{$_.isdisabled -eq $true} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from Machine | |
where IsDisabled = '0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This cmdlet comes from the OSS Module Octoposh (http://octoposh.net/) | |
Get-OctopusMachine | ?{$_.IsDisabled -eq $false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment