The API.UAS namespace provides a set of interfaces for User Administration Service (UAS) management.
- Source
Members
(static, readonly) this.USERGRANTLIST :string
Enum for all user grants
Type:
Properties- string
| Name | Type | Description |
|---|---|---|
UAS_CFG_WRITE | string | |
UAS_BACKUP | string | |
UAS_CALIBRATE | string | |
UAS_CONTROLLER_PROPERTIES_WRITE | string | |
UAS_EVENTLOG_CLEAR | string | |
UAS_FILE_ACCESS_READ | string | |
UAS_FILE_ACCESS_READ_WRITE | string | |
UAS_IO_WRITE | string | |
UAS_REMOTE_WARMSTART | string | |
UAS_RESTORE | string | |
UAS_RAPID_EDIT | string | |
UAS_RAPID_LOADPROGRAM | string | |
UAS_RAPID_MODPOS | string | |
UAS_RAPID_EXECUTE | string | |
UAS_RAPID_DEBUG | string | |
UAS_SYSTEM_ADMINISTRATION | string | |
UAS_SPEED_DECREASE | string | |
UAS_RAPID_CURRVALUE | string | |
UAS_REVOLUTION_COUNTER_UPDATE | string | |
UAS_SYSUPDATE | string | |
UAS_REMOTE_LOGIN | string | |
UAS_NETWORK_SECURITY | string | |
UAS_REMOTE_MOUNT_FILE_ACCESS_READ_WRITE | string | |
UAS_REMOTE_START_STOP_IN_AUTO | string | |
UAS_FTP_READ | string | |
UAS_FTP_WRITE | string | |
UAS_LOCK_SAFETY_CONFIG | string | |
UAS_SAFETY_SERVICES | string | |
UAS_SAFETY_SYNCHRONIZATION | string | |
UAS_KL_MODE_SELECTOR | string | |
UAS_SAFETY_COMMISSIONING_MODE | string | |
UAS_REMOTE_MOUNT_FILE_ACCESS_READ | string | |
UAS_APPL_KEY_FP_AUTO_LOGOFF | string | |
UAS_UAS_ADMINISTRATION | string | |
UAS_DETACH_FLEXPENDANT | string |
- Source
(readonly) GRANTSTATES :number
Functions that grant state.
Type:
Properties- number
| Name | Type | Description |
|---|---|---|
NOT_GRANTED | number | |
GRANTED | number |
- Source
(readonly) GRANTTYPES :number
Functions that have grant requirements.
Type:
Properties- number
| Name | Type | Description |
|---|---|---|
loadModule | number | |
deploy | number | |
updatePosition | number | |
ioWrite | number | |
editRAPID | number | |
executeProgram | number |
- Source
Methods
getUserGrants() → {Promise.<Array.<string>>}
Gets the user grants.
- Source
Returns:
- Type:
- Promise.<Array.<string>>
Example
await API.UAS.getUserGrants()hasSpecificGrants(typeopt) → {Promise.<boolean>}
Checks whether the logged in user has function-required grants.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
type | API. | <optional> | Funciton types. |
- Source
Returns:
- Type:
- Promise.<boolean>
Example
await API.UAS.hasSpecificGrants(API.UAS.GRANTTYPES.loadModule)