Skip to content

Issen007/oc_rest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

oc_rest-api

Communicating with IBM operation center

For the powershell example:

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"
                }
            ]
}

Links

About

Communicating with IBM operation center

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%