Communicating with IBM operation center
Update the uri, user and pass variable to fit your system
Just fetching the help page
> $rapi.help
StoragePool : {@{GET=System.Object[]}}
Server : {@{GET=System.Object[]}}
StorageDevice : {@{GET=System.Object[]}}
Schedule : {@{GET=System.Object[]}}
General : {@{POST=System.Object[]; GET=System.Object[]}}
Alerts : {@{GET=System.Object[]}}
Client : {@{POST=System.Object[]; GET=System.Object[]; PUT=System.Object[]}}
Domain : {@{GET=System.Object[]}}
An example of how to use convertto-json to format the output
> $rapi.help.General|ConvertTo-json
{
"POST": [
{
"issueCommand": "oc/api/cli/issueCommand",
"issueConfirmedCommand": "oc/api/cli/issueConfirmedCommand"
}
],
"GET": [
{
"clients": "oc/api/clients",
"servers": "oc/api/servers",
"schedules": "oc/api/schedules",
"storagepools": "oc/api/storagepools",
"storagedevices": "oc/api/storagedevices",
"domains": "oc/api/domains"
}
]
}