From cba573282de40d22c4d14ea8280b563e86c4a61b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 11 Feb 2007 23:59:19 +0000 Subject: one more example for Get --- examples/cpp/GetInstance.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/cpp/GetInstance.cpp (limited to 'examples/cpp/GetInstance.cpp') diff --git a/examples/cpp/GetInstance.cpp b/examples/cpp/GetInstance.cpp new file mode 100644 index 0000000..965fccc --- /dev/null +++ b/examples/cpp/GetInstance.cpp @@ -0,0 +1,16 @@ +#include +#include + +using std::cout; + +using namespace WsmanClientNamespace; +int main(int argc, char* argv[]) +{ + WsmanClient client = WsmanClient("http://wsman:secret@192.168.1.41:8889/wsman"); + NameValuePairs selectors = NameValuePairs(); + selectors["CreationClassName"] = "CWS_Instance"; + selectors["Id"] = "Instance #1"; + string r = client.Get("http:///cws.sblim.sf.net/wbem/wscim/1/cim-schema/2/CWS_Instance", &selectors ); + cout << "resource: \n" << r << "\n"; + return 0; +} -- cgit