Skip to content

Commit bb0f2f6

Browse files
authored
Merge pull request #9 from PureStorage-OpenConnect/fix-fb-examples
Add examples for FlashBlade Client
2 parents c1a4212 + 69cd9ae commit bb0f2f6

File tree

204 files changed

+3186
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+3186
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Delete active directory account
2+
client.delete_active_directory(names=["test-config"])
3+
4+
# Do a local-only delete of an active directory account
5+
client.delete_active_directory(names=["test-config"], local_only=True)
6+
7+
# Other valid fields: ids
8+
# See section "Common Fields" for examples
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete api token for admin1
2+
client.delete_admins_api_tokens(admin_names=["admin1"])
3+
4+
# Other valid fields: admin_ids
5+
# See section "Common Fields" for examples
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# delete an admin cache entry
2+
client.delete_admins_cache(names=['adminuser'])
3+
4+
# delete all admin cache entries
5+
client.delete_admins_cache()
6+
7+
# Other valid fields: ids
8+
# See section "Common Fields" for examples
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# delete an alert watcher with a given email address. this address will no longer receive
2+
# any emails about any alerts, new or updated, from the system
3+
client.delete_alert_watchers(names=['[email protected]'])
4+
5+
# Other valid fields: ids
6+
# See section "Common Fields" for examples
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# delete the API client with name 'my_api_client'
2+
client.delete_api_clients(names=['my_api_client'])
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# delete the array connection with the name 'otherarray'
2+
client.delete_array_connections(remote_names=['otherarray'])
3+
4+
# delete the array connection with id '10314f42-020d-7080-8013-000ddt400090'
5+
client.delete_array_connections(remote_ids=['10314f42-020d-7080-8013-000ddt400090'])
6+
7+
# Other valid fields: ids
8+
# See section "Common Fields" for examples
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# delete the replica link on the local bucket with the name 'my-connected-array'
2+
client.delete_bucket_replica_links(local_bucket_names=['localbucket'],
3+
remote_bucket_names=['remotebucket'],
4+
remote_names=['my-connected-array'])
5+
6+
# delete the replica link on the local bucket with id '10314f42-020d-7080-8013-000ddt400090'
7+
client.delete_bucket_replica_links(local_bucket_ids=['10314f42-020d-7080-8013-000ddt400090'],
8+
remote_bucket_names=['remotebucket'],
9+
remote_ids=['10314f42-020d-7080-8013-000ddt400012'])
10+
11+
# Other valid fields: ids
12+
# See section "Common Fields" for examples
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# delete the bucket object mybucket on the array
2+
client.delete_buckets(names=["mybucket"])
3+
4+
# Other valid fields: ids
5+
# See section "Common Fields" for examples
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# delete our group for active directory certificates
2+
group_for_active_directory_certs = 'all-ad-certs'
3+
client.delete_certificate_groups(names=[group_for_active_directory_certs])
4+
5+
# Other valid fields: ids
6+
# See section "Common Fields" for examples
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# remove 'posix-cert' from the 'all-trusted-certs' group
2+
all_trusted_group = 'all-trusted-certs'
3+
posix_cert = 'posix-cert'
4+
client.delete_certificate_groups_certificates(certificate_names=[posix_cert],
5+
certificate_group_names=[all_trusted_group])
6+
7+
8+
# remove both 'ad-cert-2' and 'ad-cert-1' from both the 'all-trusted-certs' group and the
9+
# 'all-ad-certs' group
10+
ad_cert1 = 'ad-cert-1'
11+
ad_cert2 = 'ad-cert-2'
12+
all_ad_group = 'all-ad-certs'
13+
client.delete_certificate_groups_certificates(certificate_names=[ad_cert1, ad_cert2],
14+
certificate_group_names=[all_trusted_group, all_ad_group])
15+
16+
# Other valid fields: certificate_ids, certificate_group_ids
17+
# See section "Common Fields" for examples

0 commit comments

Comments
 (0)