ZCSPM
Configure ZCSPM API Access
To access the ZCSPM API, it is required to have valid API access key, ZCSPM API Application ID and secret to generate the authorization token.
STEP 1: Create ZCSPM API Application
Creating a ZCSPM API application includes configuring access to the ZCSPM API for selected accounts. The following procedure must be completed by a License Admin.
- Log in to the ZCSPM portal.
- Select the applicable License, for which ZCSPM API application is to be created.
- Navigate to Configuration, then select ZCSPM API Access.
- Click Create API Application.
- Enter an API Application Name
- For Select APIs to Connect, choose the ZCSPM APIs you need the application to connect to.
- For Select APIs Scope, move the applicable accounts from the Excluded Cloud Accounts section to the Included Cloud Accounts section for API application scope
- From the Token Expiry drop-down menu, select the expiry duration for the API token. For example, you can set the token to expire after 60 minutes.
- For Secret Expiry, enter an expiration date (i.e., dd/mm/yyyy) or select an expiration date from the calendar menu for the API application secret.
- Click Save.
- After saving, a window will appear with the ZCSPM API Application Secret ID.
- Click the Copy icon to copy the ID, then paste it into a text editor to save it.
- Click Done.
You will not be able to retrieve the Application Secret after leaving this window. However, you can regenerate the secret, if necessary.
After creating the API application, be sure to record the ZCSPM API Application Id.
STEP 2: Generate ZCSPM API key
Sign Up on the ZCSPM API Portal
- Go to the ZCSPM API portal and click Sign up.
- Fill the required fields in the sign up form.
- You will receive a confirmation email to complete the sign up process, click on the confirmation link.
The confirmation email will ask you to change your password. However, you can reuse the same password given when you signed up.
Activate API Key
Retrieve and activate your API key using the ZCSPM API portal.
- Click on PRODUCTS, then select Unlimited.
- Click Subscribe.
This will notify ZCSPM to activate your API subscription access. You must wait for activation to complete. When ZCSPM activates your subscription, you will receive an email notification.
Retrieve ZCSPM API Key
After you receive the confirmation email:
- Click on your username, then select Profile.
- Under Your subscriptions, for Primary key, click Show.
Be sure to copy the Primary key. You will need this information in order to acquire an access token.
STEP 3: Acquire an Access Token
Do not store access tokens in local storage.
License Token
POST https://<ZCSPM API DOMAIN>/authorize/license/<LICENSE ID>/token
Environment | Values for ZCSPM API Domain |
---|---|
PROD | api.cloudneeti.com |
TRIAL | trialapi.cloudneeti.com |
URI Parameters
Parameter | Description | Required/Optional |
---|---|---|
LICENSE ID | ZCSPM license id | Required |
Header
Key | Value |
---|---|
Content-Type | application/json |
Ocp-Apim-Subscription-Key | ZCSPM API key generated |
Request Body
{ "APIApplicationId": "<API Application Id>", "Secret": "<API Application Secret>" }
Responses
Name | Type | Description |
---|---|---|
token | Access Token | ZCSPM API access token |
statusCode | Integer | ZCSPM API status code |
message | String | Response describing operation result as success or failed |
Account Token
POST https://<ZCSPM API DOMAIN>/authorize/license/<LICENSE ID>/token?accountId=<ACCOUNT ID>
Environment | Values for ZCSPM API Domain |
---|---|
PROD | api.cloudneeti.com |
TRIAL | trialapi.cloudneeti.com |
URI Parameters
Parameter | Description | Required/Optional |
---|---|---|
LICENSE ID | ZCSPM license ID | Required |
ACCOUNT ID | ZCSPM cloud account ID | Required |
Header
Key | Value |
---|---|
Content-Type | application/json |
Ocp-Apim-Subscription-Key | ZCSPM API key generated |
Request Body
{ APIApplicationId:<API Application Id>, Secret:<API Application Secret> }
Responses
Name | Type | Description |
---|---|---|
token | Access Token | ZCSPM API access token |
statusCode | Integer | ZCSPM API status code |
message | String | Response describing operation result as success or failed |
Appendix
Regenerate API Secret
- Log in to the ZCSPM portal.
- Select the applicable License.
- Navigate to Configuration, then select ZCSPM API Access.
- From the Configure App drop-down menu, select Regenerate Secret Key.
- In the confirmation window that appears, click Continue.
- After regenerating the key, a window will appear with the ZCSPM API Application Secret ID.
- Click the Copy icon to copy the ID, then paste it into a text editor to save it.
- Click Done.