Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xMatters PowerShell FIM/MIM Management Agent - Schema.ps1
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-id|String" -Value "00000000-0000-0000-0000-000000000001"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "objectID|String" -Value "00000000-0000-0000-0000-000000000001"
$obj | Add-Member -Type NoteProperty -Name "targetName|String" -Value "user1"
$obj | Add-Member -Type NoteProperty -Name "recipientType|String" -Value "PERSON"
$obj | Add-Member -Type NoteProperty -Name "externallyOwned|Boolean" -Value $false
$obj | Add-Member -Type NoteProperty -Name "firstName|String" -Value "Joe"
$obj | Add-Member -Type NoteProperty -Name "lastName|String" -Value "Smith"
$obj | Add-Member -Type NoteProperty -Name "language|String" -Value "en"
$obj | Add-Member -Type NoteProperty -Name "timezone|String" -Value "Australia/Sydney"
$obj | Add-Member -Type NoteProperty -Name "webLogin|String" -Value "user1"
$obj | Add-Member -Type NoteProperty -Name "email|String" -Value "user1@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "emailID|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "workMobile|String" -Value "0400 123 456"
$obj | Add-Member -Type NoteProperty -Name "workMobileID|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "status|String" -Value "ACTIVE"
$obj | Add-Member -Type NoteProperty -Name "roles|String[]" -Value ("[Standard User]","[Standard User]")
$obj | Add-Member -Type NoteProperty -Name "siteID|String" -Value ("b234c1a1-c3d0-4d15-bc69-ce9223d5b769")
$obj | Add-Member -Type NoteProperty -Name "siteName|String" -Value ("Sydney")
$obj
$obj2 = New-Object -Type PSCustomObject
$obj2 | Add-Member -Type NoteProperty -Name "Anchor-id|String" -Value "1bd69558-a662-41ea-a14b-ef2b510d7563"
$obj2 | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "site"
$obj2 | Add-Member -Type NoteProperty -Name "objectID|String" -Value "1bd69558-a662-41ea-a14b-ef2b510d7563"
$obj2 | Add-Member -Type NoteProperty -Name "status|String" -Value "ACTIVE"
$obj2 | Add-Member -Type NoteProperty -Name "name|String" -Value "Sydney"
$obj2 | Add-Member -Type NoteProperty -Name "language|String" -Value "English"
$obj2 | Add-Member -Type NoteProperty -Name "timezone|String" -Value "Australia/Sydney"
$obj2 | Add-Member -Type NoteProperty -Name "cluster|String" -Value ""
$obj2 | Add-Member -Type NoteProperty -Name "address1|String" -Value "400 George St"
$obj2 | Add-Member -Type NoteProperty -Name "city|String" -Value "Sydney"
$obj2 | Add-Member -Type NoteProperty -Name "state|String" -Value "NSW"
$obj2 | Add-Member -Type NoteProperty -Name "country|String" -Value "Australia"
$obj2 | Add-Member -Type NoteProperty -Name "postalCode|String" -Value "2000"
$obj2 | Add-Member -Type NoteProperty -Name "latitude|String" -Value "-27.608793"
$obj2 | Add-Member -Type NoteProperty -Name "longitude|String" -Value "153.0111849"
$obj2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment