Skip to content

Instantly share code, notes, and snippets.

@zduymz
Created August 30, 2017 15:38
Show Gist options
  • Save zduymz/f59cfb4928122c01c5f99d8f39604e39 to your computer and use it in GitHub Desktop.
Save zduymz/f59cfb4928122c01c5f99d8f39604e39 to your computer and use it in GitHub Desktop.
$uriVaultPost = "http://$strVaultIP/PasswordVault/WebServices/PIMServices.svc/Account"
$payloadVault = @{
account = @{
safe = "MS SQL Safe"; (this value can be hardcoded)
platformID = "Test-MYSQL"; (this value can be hardcoded)
address = "4.4.4.2"; (this is the HOST information read from tnsnames.ora)
DSN = "dsn_test"; (can be hardcoded)
Database = "dsn_test"; (this is the description value in tnsnames.ora)
username = "SYS"; (this is the SID/Service_name read from tnsnames.ora)
password = "xxxx"; (this should be combination of Servicename/sid_Database_Address from tnsnames.ora)
disableAutoMgmt = "true"; (this can be hardcoded)
disableAutoMgmtReason = "Testing"; (this can be hardcoded)
accountName = "SYS_Database_4.4.4.2" ( Should be in the format of Servicename/sid_Database_Address
properties = @{
Port = "1521" (this should be read from tnsnames.ora)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment