API ReferenceIdentity
Update allowed users for VM permission
Update the list of allowed users for a VM permission. Set to null to allow all users, or provide a list to restrict access.
Path Parameters
identity*string
The git identity ID
Format
uuidvm_id*string
The VM ID
Request Body
application/json
allowedUsers?|null
List of allowed Linux users. If null, identity can SSH as any user. If specified, identity can only SSH as users in this list.
Response Body
application/json
curl -X PUT "https://api.freestyle.sh/identity/v1/identities/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions/vm/string" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"vmId": "string",
"identityId": "ebc92baa-b430-498d-b30d-132ff32a5256",
"allowedUsers": [
"string"
],
"grantedAt": "2019-08-24T14:15:22Z",
"grantedBy": "f4fd0c8b-a7d2-45df-a538-55abc7bde453"
}