Class | Openwsman::Client |
In: |
../openwsman.i
|
Parent: | Object |
Create a client connection.
There are two ways to connect to a client, either by specifying a URL or by passing all client parameters separately
Client.new("http://user:pass@host.domain.com:1234/path") Client.new("host.domain.com", 1234, "/path", "http", "user", "pass")
Create a client connection.
There are two ways to connect to a client, either by specifying a URL or by passing all client parameters separately
Client.new("http://user:pass@host.domain.com:1234/path") Client.new("host.domain.com", 1234, "/path", "http", "user", "pass")
WS-Delete
delete_from_epr: Remove a resource via an endpoint reference
WS-Enumerate
enumerate: List resources
It is highly recommended to do an optimized enumeration by setting the client options
options.flags = Openwsman::FLAG_ENUMERATION_OPTIMIZATION options.max_elements = 999
to get the enumeration result as part of the http request.
Otherwise separate pull requests are needed resulting in extra round-trips (client -> wsman -> cimom & back), dramatically affecting performance.
WS-Get
get_from_epr: Get a resource via an endpoint reference
WS-Invoke
invoke: Invoke a resource function
WS-Eventing
subscribe: Subscribe a listener to events
WS-Eventing
unsubscribe: Remove a listener from events