Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 808 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 808 Bytes

PowerGlue

Build status

Usage

# Install Module
Install-Module PowerGlue

# Import Module and connect to IT Glue
Import-Module PowerGlue
$ApiKey = 'ITG.MYSECRETAPIKEY'
Connect-ITGServer -ApiKey $ApiKey

# Retrieve an Organization by name
$Organization = Get-ITGOrganization -Name 'Example.com'

# Retrieve Configuration Status IDs and select ID for 'Provisioning' status
$ConfigurationStatus = Get-ITGConfigurationStatus
$StatusId = ($ConfigurationStatus | Where-Object { $_.Name -eq 'Provisioning' }).Id

# Retreive Configuratinos for Example.com with a status of 'Provisioning'
$Configuration = $Organization | Get-ITGConfiguration -StatusId $StatusId