If there is a need to use APIs while working on ATP then this article will help us to know the process of achieving access token which is required to connect to ATP.
We can refer to the below link for the ATP help guide:
https://help.symantec.com/api-doc/atp_2.2/EN_US/
We would require an API Rest client in order to perform the below steps:
Go to ATP console>Settings>DataSharing>Add OAuth Client>generate Client ID & Client Secret.
I will be using Rest console to perform the steps which can be downloaded from http://restconsole.com/ (Please note: This is not Symantec approved Rest client plugin, we may choose to use any other plugin if required).Open the Rest Console, type https://x.x.x.x (ATP IP)/atpapi/oauth2/tokens in Request URI in Target section.
Check content type and mention application/json in Accept
Choose POST from the Request Method Drop down menu like below:
Check Content Headers box under Body section and mention application/x-www-form-urlencoded
Edit RAW Body like below:
Go to https://www.base64encode.org/ and copy your client id & client secret from the ATP console and paste like clientid:clientsecret in the text box and then click encode.
Copy the encoded value from 2nd text box and paste it on Rest Console in Authorization like below:
Click on the send button and we will recevice an access token like below:
Now this access token can be used while using the APIs mentioned in the article: https://help.symantec.com/api-doc/atp_2.2/EN_US/
Copy the access token and mention in the Authorization header like step#9. Please type Bearer instead of basic when using APIs once access token is generated: