We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f7ec1 commit 20ff807Copy full SHA for 20ff807
hpecp/cli/tenant.py
@@ -102,8 +102,13 @@ def examples(self):
102
print(
103
dedent(
104
"""\
105
-
106
- hpecp tenant list --query "[?tenant_type == 'k8s']" --output json-pp
+ # retrieve k8s tenants
+ $ 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
112
113
""" # noqa: E501
114
)
0 commit comments