The resources responsible for installing and managing keys
Create key
/**
* @param {object} params
* @param {function} callback optional
*/
netField.keys.create(params, [callback])
Delete key by keyId
/*
* @param {keyId} string
* @param {function} callback optional
*/
netField.keys.delete(keyId, [callback])
Get all keys by organisationId
/**
* @param {organisationId} number
* @param {number} page
* @param {number} limit
* @param {string} sortBy
* @param {string} sortOrder
* @param {function} callback optional
*/
netField.keys.getkeys(organisationId, page, limit, sortBy, sortOrder, [callback])
Get key by keyId
/**
* @param {keyId} string
* @param {function} callback optional
*/
netField.keys.getkey(keyId, [callback])
Update api key
/**
* @param {keyId} string
* @param {object} params
* @param {function} callback optional
*/
netField.keys.updatekey(keyId, params, [callback])
Get api key resource data
/**
* @param {function} callback optional
*/
netField.keys.getkeypermissions([callback])
Create a key for SensorEdge tenant
/**
* @param {object} params
* @param {function} callback optional
*/
netField.keys.createsensoredgekey(params, [callback])