createTempLimit(params: CreateLimitParams)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Create a time-limited temporary password
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Parameters |
Return Value
Type: Promise<TempPasswordResult>
Time-limited temporary password creation result
Error Code
| Error Code | Error Message |
|---|---|
1031 | Password name too long (exceeds 20 characters) |
1010 | Start time is later than expiry time |
1038 | Cloud: Duplicate password name (OFFLINE_PWD_NAME_REPEAT) |
1067 | Cloud: Offline passwords for the period exhausted (OFFLINE_PWD_EXAUST_IN_PERIOD) |