You can make the API calls in the Swagger UI immediately after you are logged in and
authorized. You might use the Swagger UI to work with the Probable Cause API and to retrieve metrics
data with the metric anomaly detection
API.
Complete the following steps to authorize at the Swagger UI.
About this task
You can make the API calls in the Swagger UI immediately after you are logged in and
authorized. Complete the following steps to authorize at the Swagger UI. The interface is documented
with Swagger (http://swagger.io) and the Swagger UI (https://swagger.io/swagger-ui/)
Procedure
-
Generate an API key:
-
Open the Netcool® Operations Insight® UI and click API Keys on the event management
Administration page.
-
Click New API key.
-
Enter a description for the key in API key description.
-
Specify which part of the event management API the key provides access to.
Go to Permissions and ensure that only those check boxes are selected that
you want the key to provide access to. All APIs are selected by default. Clear the ones that you do
not want the API key to provide access to.
Important: Make a note of the APIs the key provides access to. For example, note it in
the description you enter for the key. You cannot view or change which APIs were selected for the
key later.
-
Click Generate. A new name and password are generated. Make a note of these values.
Important: The password is hidden by default. To view and be
able to copy the password, set Display password to
Show. Ensure you make a note of the password. For security reasons, the
password cannot be retrieved later. If you lose the password, you must delete the API key and
generate a new one.
-
Click the icon next to Manage API keys to view the base URL for the API.
-
Login into Swagger by using the API key that you generated. From the Swagger header section,
click Authorize and enter the API key name and API key password in the login
dialog and click Authorize again.
-
Read through the possible actions available on the Swagger UI and choose the one you want to perform.
-
Configure the API action that you want to perform by following the API documentation present on
the Swagger UI.
-
Run the action and check the resulting response code.