Examples

In these examples, the site prefix is aaaaa.

Initialize SDK

import arvados
api = arvados.api("v1")

create

result = api.collections().create(body={"collection": {"name": "create example"}}).execute()

delete

result = api.collections().delete(uuid="aaaaa-4zz18-ccccccccccccccc").execute()

get

result = api.collections().get(uuid="aaaaa-4zz18-ccccccccccccccc").execute()

list

result = api.collections().list(filters=[["uuid", "=", "aaaaa-bbbbb-ccccccccccccccc"]]).execute()

update

result = api.collections().update(uuid="aaaaa-4zz18-ccccccccccccccc", body={"collection": {"name": "update example"}}).execute()

Get current user

result = api.users().current().execute()

Previous: Installation Next: PyDoc Reference

The content of this documentation is licensed under the Creative Commons Attribution-Share Alike 3.0 United States licence.
Code samples in this documentation are licensed under the Apache License, Version 2.0.