Skip to content

Commit 20ff807

Browse files
authored
Update tenant.py
1 parent e5f7ec1 commit 20ff807

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hpecp/cli/tenant.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@ def examples(self):
102102
print(
103103
dedent(
104104
"""\
105-
106-
hpecp tenant list --query "[?tenant_type == 'k8s']" --output json-pp
105+
# retrieve k8s tenants
106+
$ hpecp tenant list --query "[?tenant_type == 'k8s']" --output json-pp
107+
... json output ...
108+
109+
# retrieve tenant id of k8s tenant with name 'tenant1'
110+
$ hpecp tenant list --query "[?tenant_type == 'k8s' && label.name == 'tenant1'] | [0] | [_links.self.href]" --output text
111+
/api/v1/tenant/4
107112
108113
""" # noqa: E501
109114
)

0 commit comments

Comments
 (0)