Configure Cloudneeti API Access
To access the Cloudneeti API, it is required to have valid API access key, Cloudneeti API Application id and secret to generate the authorization token.
STEP 1 Create Cloudneeti API application
Creation of Cloudneeti API application includes configuring access to Cloudneeti API for selected accounts.
The following steps are done by the Cloudneeti application License Admin role.
-
Select license (1) in which Cloudneeti API application is to be created.
-
Navigate to Configuration (2) and Cloudneeti API Access (3)
-
Click Create API Application (4)
-
Enter API Application Name (1)
-
Select APIs (2)
-
Select Cloud Accounts (1) for API application scope
-
Select Token Expiry (2) duration
-
Select Secret Expiry (1) date
-
Save (2)
-
Copy Cloudneeti API application secret (1) and click Done (2) Note : Please record the API Application secret that appears in the dialog window because you will not be able to retrieve the secret again after leaving the page.
User can choose to regenrate the API secret, please follow steps.
-
Copy Cloudneeti API application id (1)
STEP 2 Generate Cloudneeti API key
Sign-up on Cloudneeti API portal.
-
Go to API portal and Sign up.
-
Fill the required fields in the sign-up form
-
You will receive a confirmation mail for sign-up, Click on the confirmation link.
-
The confirmation link will ask you to change password (info: You can use the password given while signing up)
-
You are signed up successfully
Activate API key
Retrieve and activate your API key using the Cloudneeti API portal
-
Click on PRODUCTS
-
Select Unlimited
-
Click on Subscribe
This will notify Cloudneeti to activate your API subscription access. Please wait for activation to be done. When Cloudneeti activates your subscription, you will get an email notification.
Retrieve Cloudneeti API key
Once you receive the confirmation, proceed with the following steps.
- Click on Username
- Select Profile
- Click on Show
- Copy the Primary key to your notepad.
STEP 3 Acquire an access token
Cloudneeti advised not to store token in localstorage.
License token
POST https://<CLOUDNEETI API DOMAIN>/authorize/license/<LICENSE ID>/token
Environment | Values for CLOUDNEETI API DOMAIN |
---|---|
PROD | api.cloudneeti.com |
TRIAL | trialapi.cloudneeti.com |
URI Parameters
Parameter | Description | Required/Optional |
---|---|---|
LICENSE ID | Cloudneeti license id​ | Required |
Header
Key | Value |
---|---|
Content-Type | application/json |
Ocp-Apim-Subscription-Key | Cloudneeti API key generated |
Request body
{
APIApplicationId:<API Application Id>,
Secret:<API Application Secret>
}
Responses
Name | Type | Description |
---|---|---|
token | Access Token | Cloudneeti API access token |
statusCode | Integer | Cloudneeti API status code |
message | String | Response describing operation result as success or failed. |
Account token
POST https://<CLOUDNEETI API DOMAIN>/authorize/license/<LICENSE ID>/token?accountId=<ACCOUNT ID>
Environment | Values for CLOUDNEETI API DOMAIN |
---|---|
PROD | api.cloudneeti.com |
TRIAL | trialapi.cloudneeti.com |
URI Parameters
Parameter | Description | Required/Optional |
---|---|---|
LICENSE ID | Cloudneeti license id | Required |
ACCOUNT ID | Cloudneeti cloud account id | Required |
Header
Key | Value |
---|---|
Content-Type | application/json |
Ocp-Apim-Subscription-Key | Cloudneeti API key generated |
Request body
{
APIApplicationId:<API Application Id>,
Secret:<API Application Secret>
}
Responses
Name | Type | Description |
---|---|---|
token | Access Token | Cloudneeti API access token |
statusCode | Integer | Cloudneeti API status code |
message | String | Response describing operation result as success or failed. |
Next Step
Appendix
Regenerate API Secret
-
Select license in which Cloudneeti API application is to be created.
-
Navigate to Configuration (1) and Cloudneeti API Access (2)
-
Click Configure App
-
Select Regenerate Secret Key
-
Confirm
-
Copy regenerated secret (1)
-
Click Done (2)