Owners Manual
RESTful Web Service | Actions and Adaptive CLI
OMNM 6.5.2 User Guide 621
RESTful Web Service
This section provides an additional Adaptive CLI type that executes a REST Web Service. Like
other Adaptive CLI behaviors, the OpenManage Network Manager (OMNM) application accepts
user data and includes that in the REST API payload as JSON scripts. With this type of Adaptive
CLI, JSON scripts (which include parameters, not just JSON) can support REST operations : GET,
PUT, POST, and so on. You can specify a target URL and authentication. The OMNM application
maps any resulting data back to the user data object associated with the Adaptive CLI.
The following topics are covered:
•
REST Call: No Authentication/Token
•
REST Call Requiring Token Retrieval
•
REST Call Requiring Base64-Encoded Authentication/Token Retrieval
•
Calling an Adaptive CLI
•
Calling an Independent Token Generation Action
•
Supported Script Formats
REST Call: No Authentication/Token
The following example makes a simple REST call without needing a authentication/token:
The script in this example:
URL:http://date.jsontest.com
requestMethod:GET