cURL
curl --request POST \ --url https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/users \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "type": "token", "principal": "<string>", "nickname": "<string>", "tokenSuffix": "<string>" } '
{ "success": true, "data": { "type": "token", "principal": "<string>", "nickname": "<string>", "tokenSuffix": "<string>", "createdAt": "2023-11-07T05:31:56Z" } }
Adds an authorized user to a disk. Users can authenticate via:
API key (format key-{API_KEY})
key-{API_KEY}
Disk ID (format dsk-{16 hex chars})
dsk-{16 hex chars}
"dsk-0123456789abcdef"
token
2048
255
4
User added successfully
true
Show child attributes
Was this page helpful?