mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-07 04:21:17 +00:00
SDK templates
This commit is contained in:
24
cmd/sdk/powershell/transform.ps1
Normal file
24
cmd/sdk/powershell/transform.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
# Create transform
|
||||
$JSON = @"
|
||||
{
|
||||
"name": "New Transform",
|
||||
"type": "lookup",
|
||||
"attributes" : {
|
||||
"table" : {
|
||||
"USA": "Americas",
|
||||
"FRA": "EMEA",
|
||||
"AUS": "APAC",
|
||||
"default": "Unknown Region"
|
||||
}
|
||||
}
|
||||
}
|
||||
"@
|
||||
|
||||
$Transform = ConvertFrom-JsonToTransform -Json $JSON
|
||||
|
||||
try {
|
||||
New-Transform -Transform $Transform
|
||||
} catch {
|
||||
Write-Host ("Exception occurred when calling New-Transform: {0}" -f $_.ErrorDetails)
|
||||
Write-Host ("Response headers: {0}" -f $_.Exception.Response.Headers)
|
||||
}
|
||||
Reference in New Issue
Block a user