Category:
Resource – Shares
In some cases you will wish to mount a share from a machine without a human user. An example would be mounting from many local systems into your backup server.
To do this, perform these steps:
- Create a service account under “Access/Service Accounts”
- Download the Authentication Document (Actions menu on the line for the Service Account)
- Use ‘Copy Service Account Email” from the (Actions menu on the line for the Service Account)
- Using the CLI, lookup the user-id for the ‘Service Account Email’ via ‘show user’
- Using the CLI, call ‘add-api-key’
agilicus-cli --issuer https://auth.__MYDOMAIN__ show-user MYSERVICEACCOUNT@serviceaccounts.agilicus.com
agilicus-cli --authentication-document /tmp/authdoc.json add-api-key --duration-seconds 0 --scope "urn:agilicus:fileshare:*:viewer" --user-id USER-GUID --name "Backup read-only mount"