Merge branch '10312-nodemanager-quotas' refs #10312
[arvados.git] / doc / api / methods / groups.html.textile.liquid
1 ---
2 layout: default
3 navsection: api
4 navmenu: API Methods
5 title: "groups"
6 ...
7
8 API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/groups@
9
10 Object type: @j7d0g@
11
12 Example UUID: @zzzzz-j7d0g-0123456789abcde@
13
14 h2. Resource
15
16 Groups provides a way to apply the same permissions to a set of Arvados objects.  See "permission model":{{site.baseurl}}/api/permission-model.html for details.
17
18 Each Group has, in addition to the "Common resource fields":{{site.baseurl}}/api/resources.html:
19
20 table(table table-bordered table-condensed).
21 |_. Attribute|_. Type|_. Description|_. Example|
22 |name|string|||
23 |group_class|string|Type of group. This does not affect behavior, but determines how the group is presented in the user interface. For example, @project@ indicates that the group should be displayed by Workbench and arv-mount as a project for organizing and naming objects.|@"project"@
24 null|
25 |description|text|||
26 |writable_by|array|List of UUID strings identifying Users and other Groups that have write permission for this Group.  Only users who are allowed to administer the Group will receive a full list.  Other users will receive a partial list that includes the Group's owner_uuid and (if applicable) their own user UUID.||
27
28 h2. Methods
29
30 See "Common resource methods":{{site.baseurl}}/api/methods.html for more information about @create@, @delete@, @get@, @list@, and @update@.
31
32 Required arguments are displayed in %{background:#ccffcc}green%.
33
34 h3. contents
35
36 Retrieve a list of items owned by the group.
37
38 Arguments:
39
40 table(table table-bordered table-condensed).
41 |_. Argument |_. Type |_. Description |_. Location |_. Example |
42 {background:#ccffcc}.|uuid|string|The UUID of the group in question.|path||
43 |limit|integer (default 100)|Maximum number of items to return.|query||
44 |order|string|Order in which to return matching items.  Sort within a resource type by prefixing the attribute with the resource name and a dot.|query|@"collections.modified_at desc"@|
45 |filters|array|Conditions for filtering items.|query|@[["uuid", "is_a", "arvados#job"]]@|
46 |recursive|boolean (default false)|Include items owned by subprojects.|query|@true@|
47
48 Note: Because adding access tokens to manifests can be computationally expensive, the @manifest_text@ field is not included in listed collections.  If you need it, request a "list of collections":{{site.baseurl}}/api/methods/collections.html with the filter @["owner_uuid", "=", GROUP_UUID]@, and @"manifest_text"@ listed in the select parameter.
49
50 Note: Use filters with the attribute format @<item type>.<field name>@ to filter items of a specific type. For example: @["pipeline_instances.state", "=", "Complete"]@ to filter @pipeline_instances@ where @state@ is @Complete@. All other types of items owned by this group will be unimpacted by this filter and will still be included.
51
52 h3. create
53
54 Create a new Group.
55
56 Arguments:
57
58 table(table table-bordered table-condensed).
59 |_. Argument |_. Type |_. Description |_. Location |_. Example |
60 |group|object||query||
61
62 h3. delete
63
64 Delete an existing Group.
65
66 Arguments:
67
68 table(table table-bordered table-condensed).
69 |_. Argument |_. Type |_. Description |_. Location |_. Example |
70 {background:#ccffcc}.|uuid|string|The UUID of the Group in question.|path||
71
72 h3. get
73
74 Gets a Group's metadata by UUID.
75
76 Arguments:
77
78 table(table table-bordered table-condensed).
79 |_. Argument |_. Type |_. Description |_. Location |_. Example |
80 {background:#ccffcc}.|uuid|string|The UUID of the Group in question.|path||
81
82 h3. list
83
84 List groups.
85
86 See "common resource list method.":{{site.baseurl}}/api/methods.html#index
87
88 h3. show
89
90 show groups
91
92 Arguments:
93
94 table(table table-bordered table-condensed).
95 |_. Argument |_. Type |_. Description |_. Location |_. Example |
96 {background:#ccffcc}.|uuid|string||path||
97
98 h3. update
99
100 Update attributes of an existing Group.
101
102 Arguments:
103
104 table(table table-bordered table-condensed).
105 |_. Argument |_. Type |_. Description |_. Location |_. Example |
106 {background:#ccffcc}.|uuid|string|The UUID of the Group in question.|path||
107 |group|object||query||