We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ae14c commit 96c993fCopy full SHA for 96c993f
examples/buckets_management.py
@@ -17,7 +17,7 @@
17
The Bucket API uses as a parameter the Organization ID. We have to retrieve ID by Organization API.
18
"""
19
org_name = "my-org"
20
- org = list(filter(lambda it: it.name == org_name, client.organizations_api().find_organizations()))[0]
+ org = client.organizations_api().find_organizations(org=org_name)[0]
21
22
23
Create Bucket with retention policy set to 3600 seconds and name "bucket-by-python"
0 commit comments