All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
apikeyCreateObjectV2 | POST /2/object/apikey | Create a new Apikey |
apikeyEditObjectV1 | PUT /1/object/apikey/{pkiApikeyID} | Edit an existing Apikey |
apikeyEditPermissionsV1 | PUT /1/object/apikey/{pkiApikeyID}/editPermissions | Edit multiple Permissions |
apikeyGetObjectV2 | GET /2/object/apikey/{pkiApikeyID} | Retrieve an existing Apikey |
apikeyGetPermissionsV1 | GET /1/object/apikey/{pkiApikeyID}/getPermissions | Retrieve an existing Apikey's Permissions |
apikeyGetSubnetsV1 | GET /1/object/apikey/{pkiApikeyID}/getSubnets | Retrieve an existing Apikey's subnets |
ApikeyCreateObjectV2Response apikeyCreateObjectV2(ApikeyCreateObjectV2Request)
Create a new Apikey
The endpoint allows to create one or many elements at once.
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let ApikeyCreateObjectV2Request = new EZmaxApiDefinitionFull.ApikeyCreateObjectV2Request(); // ApikeyCreateObjectV2Request |
apiInstance.apikeyCreateObjectV2(ApikeyCreateObjectV2Request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ApikeyCreateObjectV2Request | ApikeyCreateObjectV2Request |
- Content-Type: application/json
- Accept: application/json
ApikeyEditObjectV1Response apikeyEditObjectV1(pkiApikeyID, ApikeyEditObjectV1Request)
Edit an existing Apikey
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let pkiApikeyID = 56; // Number | The unique ID of the Apikey
let ApikeyEditObjectV1Request = new EZmaxApiDefinitionFull.ApikeyEditObjectV1Request(); // ApikeyEditObjectV1Request |
apiInstance.apikeyEditObjectV1(pkiApikeyID, ApikeyEditObjectV1Request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiApikeyID | Number | The unique ID of the Apikey | |
ApikeyEditObjectV1Request | ApikeyEditObjectV1Request |
- Content-Type: application/json
- Accept: application/json
ApikeyEditPermissionsV1Response apikeyEditPermissionsV1(pkiApikeyID, ApikeyEditPermissionsV1Request)
Edit multiple Permissions
Using this endpoint, you can edit multiple Permissions at the same time.
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let pkiApikeyID = 56; // Number |
let ApikeyEditPermissionsV1Request = new EZmaxApiDefinitionFull.ApikeyEditPermissionsV1Request(); // ApikeyEditPermissionsV1Request |
apiInstance.apikeyEditPermissionsV1(pkiApikeyID, ApikeyEditPermissionsV1Request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiApikeyID | Number | ||
ApikeyEditPermissionsV1Request | ApikeyEditPermissionsV1Request |
ApikeyEditPermissionsV1Response
- Content-Type: application/json
- Accept: application/json
ApikeyGetObjectV2Response apikeyGetObjectV2(pkiApikeyID)
Retrieve an existing Apikey
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let pkiApikeyID = 56; // Number | The unique ID of the Apikey
apiInstance.apikeyGetObjectV2(pkiApikeyID, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiApikeyID | Number | The unique ID of the Apikey |
- Content-Type: Not defined
- Accept: application/json
ApikeyGetPermissionsV1Response apikeyGetPermissionsV1(pkiApikeyID)
Retrieve an existing Apikey's Permissions
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let pkiApikeyID = 56; // Number |
apiInstance.apikeyGetPermissionsV1(pkiApikeyID, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiApikeyID | Number |
ApikeyGetPermissionsV1Response
- Content-Type: Not defined
- Accept: application/json
ApikeyGetSubnetsV1Response apikeyGetSubnetsV1(pkiApikeyID)
Retrieve an existing Apikey's subnets
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectApikeyApi();
let pkiApikeyID = 56; // Number |
apiInstance.apikeyGetSubnetsV1(pkiApikeyID, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiApikeyID | Number |
- Content-Type: Not defined
- Accept: application/json