Create a New Patch Manager Plus API Key
Last updated
Last updated
API Keys need to be created to integrate Patch Manager as a data source. This guide is provided so the client can provide a re-usable refresh token. It requires the tool Postman. A basic knowledge of APIs is needed.
Log in to Zoho API Console.
On the Choose a Client Type page, select Self Client. This is used for integrating Python applications, which is what Epiphany uses to collect API information.
On the Self Client page, select the Generate Code tab and enter the following information:
Scope: Enter PatchManagerPlusCloud.restapi.READ, PatchManagerPlusCloud.restapi.UPDATE. This is required.
Time Duration: Select 10 Minutes. This is required.
Scope Description: Enter For EIP integrations to Patch Manager or something similar. This is optional.
An API call needs to be made shortly after generating the access code. Manage Engine’s API documentation recommends using a tool like Postman to establish the call and acquire the longer-term refresh token. This generated code only lasts 10 minutes.
On the Generate Code tab, select CREATE. A code displays that is used to make the first API call:
Select COPY to copy the code to your clipboard.
The initial API call will follow this format:
https://accounts.zoho.com/oauth/v2/token?client_id =<client_id>&grant_type=authorization_code&client_secret<client_secret>&redirect_uri=http://localhost/callback&code=<code>
In Postman, the Client ID (client_id) and Client Secret (client_secret) are found on the Client Secret tab in the Self Client screen. A Postman setup will look something like this:
You can securely store the refresh token, client ID, and client secret on the Epiphany data source portal. Instructions for doing this are in the next section, Add the Patch Manager Plus Credentials to Epiphany.
The refresh token is a means to re-establish API connectivity for an hour at a time using the newly generated access tokens.
On the Create New Client page, ensure Self Client is selected and then select CREATE.