12 ARVADOS_API_HOST={{ site.arvados_api_host }}
13 ARVADOS_API_TOKEN=1234567890qwertyuiopasdfghjklzxcvbnm1234567890zzzz
19 arv virtual_machine create --virtual-machine '{"hostname":"xxxxxxxchangeme.example.com"}'
25 user_uuid=xxxxxxxchangeme
27 arv user update --uuid "$user_uuid" --user '{"is_active":true}'
32 Give @$user_uuid@ permission to log in to @$vm_uuid@ as @$target_username@
35 user_uuid=xxxxxxxchangeme
36 vm_uuid=xxxxxxxchangeme
37 target_username=xxxxxxxchangeme
39 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
41 "tail_kind":"arvados#user",
42 "tail_uuid":"$user_uuid",
43 "head_kind":"arvados#virtualMachine",
44 "head_uuid":"$vm_uuid",
45 "link_class":"permission",
47 "properties":{"username":"$target_username"}
54 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
57 user_uuid=xxxxxxxchangeme
58 repo_uuid=xxxxxxxchangeme
59 repo_username=xxxxxxxchangeme
61 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
63 "tail_kind":"arvados#user",
64 "tail_uuid":"$user_uuid",
65 "head_kind":"arvados#repository",
66 "head_uuid":"$repo_uuid",
67 "link_class":"permission",
69 "properties":{"username":"$repo_username"}