This article provides step-by-step instructions for generating an API key from your on-premises Saner CVEM (Ancor) application server. This API key is essential for authenticating API requests to the Saner CVEM platform.
Prerequisites
Before you begin, ensure the following:
- Access to the Saner CVEM application server
- Administrator credentials for the SanerNow platform
Steps to Generate the API Key
Step 1: Log in to the SanerNow Server
Use your preferred method (e.g., SSH or direct console access) to connect to the Saner CVEM (Ancor) application server.
Step 2: Open a Terminal Session
Launch a terminal session on the server and switch to the root user:
sudo su
Step 3: Access the Ancor CLI
Enter the Ancor Command-Line Interface (CLI) using the command below:
ancor-cli
You will be prompted to enter the Ancor CLI password.
Step 4: Navigate to Account Management
Enter the account management module:
accountmgmt
Then, execute the following command to retrieve the subscription key:
getsubscriptionkey -u <admin-login>
Replace <admin-login> with your actual SanerNow administrator login ID.
Step 5: Retrieve the API Key
After executing the above command, the system will generate an API key and save it in a ZIP file located at:
/usr/local/scaprepo/
Step 6: Extract the ZIP File
Navigate to the directory and extract the contents of the ZIP file to access the API key:
cd /usr/local/scaprepo/ unzip <zip-file-name>
⚠️ Authentication Tip
When making authenticated API calls, use your Saner CVEM admin login ID as the username along with the retrieved API key.
Need Assistance?
If you encounter any issues during the API key generation process or require help integrating the API with your systems, please reach out to our support team. We’re here to assist you.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article