Pre requisites
Prerequisites
Google Drive API enabled
JSON file with credentials
Enable Google Drive API:
Go to the Google Developer Console.
Create a new project or select an existing one.
In the left pane, click "Library."
Search for "Google Drive API" in the list of available APIs.
Click "Google Drive API".
Click "enable" to enable the API for your project.
Create API credentials:AfterSet enablingup the API,OAuth clickconsent "Credentials"screen:
Go to APIs & Services > Credentials.
Click on "Create credentials"Credentials" and select "ServiceOAuth account"2.0 Client IDs".CompleteSet the formapplication type ("Desktop app") and download the credentials JSON file.
Generate token for the plugin:
Run the plugin manually with the requiredmandatory informationparameters specified in section "parameters" (serviceexample accountin name, roles, etc.).Clicksection "Create".manual execution", in a GUI environment, to generate a token.json file. SelectThe thebrowser typewill of service account key you want (JSON recommended).Click "Create"open and a JSON file with the service credentialswe will be downloaded.asked to log in with a google account.
The generated token.json should be located in the same directory where the PandoraFMS plugin is configured. Next to the creds.json.
It is necessary to run in a GUI environment to authenticate for the first time and generate a token.