files.com
Version:
Files.com SDK for JavaScript
41 lines (31 loc) • 1.46 kB
Markdown
# UserCipherUse
## Example UserCipherUse Object
```
{
"id": 1,
"protocol_cipher": "TLSv1.2; ECDHE-RSA-AES256-GCM-SHA384",
"created_at": "2000-01-01T01:00:00Z",
"insecure": true,
"interface": "restapi",
"updated_at": "2000-01-01T01:00:00Z",
"user_id": 1
}
```
* `id` (int64): UserCipherUse ID
* `protocol_cipher` (string): The protocol and cipher employed
* `created_at` (date-time): The earliest recorded use of this combination of interface and protocol and cipher (for this user)
* `insecure` (boolean): Is this cipher considered insecure?
* `interface` (string): The interface accessed
* `updated_at` (date-time): The most recent use of this combination of interface and protocol and cipher (for this user)
* `user_id` (int64): ID of the user who performed this access
---
## List User Cipher Uses
```
await UserCipherUse.list({
'user_id': 1,
})
```
### Parameters
* `user_id` (int64): User ID. If provided, will return uses for this user.
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).