8 Copyright (C) The Arvados Authors. All rights reserved.
10 SPDX-License-Identifier: CC-BY-SA-3.0
13 In these examples, the site prefix is @aaaaa@.
15 See also the "cookbook":cookbook.html for more complex examples.
19 {% codeblock as python %}
21 api = arvados.api("v1")
26 {% codeblock as python %}
27 result = api.collections().create(body={"collection": {"name": "create example"}}).execute()
32 {% codeblock as python %}
33 result = api.collections().delete(uuid="aaaaa-4zz18-ccccccccccccccc").execute()
38 {% codeblock as python %}
39 result = api.collections().get(uuid="aaaaa-4zz18-ccccccccccccccc").execute()
44 {% codeblock as python %}
45 result = api.collections().list(filters=[["uuid", "=", "aaaaa-bbbbb-ccccccccccccccc"]]).execute()
50 {% codeblock as python %}
51 result = api.collections().update(uuid="aaaaa-4zz18-ccccccccccccccc", body={"collection": {"name": "update example"}}).execute()
56 {% codeblock as python %}
57 result = api.users().current().execute()
60 h2. Get the User object for the current user
62 {% codeblock as python %}
63 current_user = arvados.api('v1').users().current().execute()
66 h2. Get the UUID of an object that was retrieved using the SDK
68 {% codeblock as python %}
69 my_uuid = current_user['uuid']