Skip to content

Commit d256e8e

Browse files
authored
Update datatap.py
1 parent cd751e3 commit d256e8e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

hpecp/cli/datatap.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,15 @@ def create_hdfs_with_kerberos(
132132
port=port,
133133
read_only=read_only,
134134
)
135+
136+
def examples(self):
137+
"""Show examples for working with roles."""
138+
print(
139+
dedent(
140+
"""\
141+
# lookup datatap by name and retrieve ID
142+
$ PROFILE=tenant2 hpecp datatap list --query "[?_embedded.label.name=='int-mapr-generic'] | [0] | [_links.self.href]" --output text
143+
/api/v1/dataconn/11
144+
""" # noqa: E501
145+
)
146+
)

0 commit comments

Comments
 (0)