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_uuid":"$user_uuid",
42 "head_uuid":"$vm_uuid",
43 "link_class":"permission",
45 "properties":{"username":"$target_username"}
52 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
55 user_uuid=xxxxxxxchangeme
56 repo_uuid=xxxxxxxchangeme
57 repo_username=xxxxxxxchangeme
59 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
61 "tail_uuid":"$user_uuid",
62 "head_uuid":"$repo_uuid",
63 "link_class":"permission",
65 "properties":{"username":"$repo_username"}