13 ARVADOS_API_HOST={{ site.arvados_api_host }}
14 ARVADOS_API_TOKEN=1234567890qwertyuiopasdfghjklzxcvbnm1234567890zzzz
20 arv virtual_machine create --virtual-machine '{"hostname":"xxxxxxxchangeme.example.com"}'
26 user_uuid=xxxxxxxchangeme
28 arv user update --uuid "$user_uuid" --user '{"is_active":true}'
33 Give @$user_uuid@ permission to log in to @$vm_uuid@ as @$target_username@
36 user_uuid=xxxxxxxchangeme
37 vm_uuid=xxxxxxxchangeme
38 target_username=xxxxxxxchangeme
40 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
42 "tail_kind":"arvados#user",
43 "tail_uuid":"$user_uuid",
44 "head_kind":"arvados#virtual_machine",
45 "head_uuid":"$vm_uuid",
46 "link_class":"permission",
48 "properties":{"username":"$target_username"}
55 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
58 user_uuid=xxxxxxxchangeme
59 repo_uuid=xxxxxxxchangeme
60 repo_username=xxxxxxxchangeme
62 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
64 "tail_kind":"arvados#user",
65 "tail_uuid":"$user_uuid",
66 "head_kind":"arvados#repository",
67 "head_uuid":"$repo_uuid",
68 "link_class":"permission",
70 "properties":{"username":"$repo_username"}