{"id":28089486,"url":"https://github.com/hpe-container-platform-community/hpecp-python-library","last_synced_at":"2025-09-24T01:11:12.216Z","repository":{"id":36951122,"uuid":"257576217","full_name":"hpe-container-platform-community/hpecp-python-library","owner":"hpe-container-platform-community","description":"Python library for working with HPE Container Platform (Prototype)","archived":false,"fork":false,"pushed_at":"2022-06-21T19:58:41.000Z","size":3807,"stargazers_count":14,"open_issues_count":33,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-25T13:38:18.208Z","etag":null,"topics":["hpe-container-platform","kubernetes","python","python-cli","python-library"],"latest_commit_sha":null,"homepage":"https://hpe-container-platform-community.github.io/hpecp-python-library/index.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpe-container-platform-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-21T11:40:15.000Z","updated_at":"2025-03-25T09:38:24.000Z","dependencies_parsed_at":"2022-07-11T10:52:50.822Z","dependency_job_id":null,"html_url":"https://github.com/hpe-container-platform-community/hpecp-python-library","commit_stats":null,"previous_names":[],"tags_count":132,"template":false,"template_full_name":null,"purl":"pkg:github/hpe-container-platform-community/hpecp-python-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpe-container-platform-community%2Fhpecp-python-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpe-container-platform-community%2Fhpecp-python-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpe-container-platform-community%2Fhpecp-python-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpe-container-platform-community%2Fhpecp-python-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpe-container-platform-community","download_url":"https://codeload.github.com/hpe-container-platform-community/hpecp-python-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpe-container-platform-community%2Fhpecp-python-library/sbom","scorecard":{"id":470119,"data":{"date":"2025-08-11","repo":{"name":"github.com/hpe-container-platform-community/hpecp-python-library","commit":"6fb16af433663887768308e1e6eb9f408ef6bd9f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/checks.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.22.13 not signed: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69877507","Warn: release artifact v0.22.12 not signed: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69840738","Warn: release artifact v0.22.11 not signed: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69833298","Warn: release artifact v0.22.10 not signed: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/61787186","Warn: release artifact v0.22.9 not signed: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/60274746","Warn: release artifact v0.22.13 does not have provenance: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69877507","Warn: release artifact v0.22.12 does not have provenance: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69840738","Warn: release artifact v0.22.11 does not have provenance: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/69833298","Warn: release artifact v0.22.10 does not have provenance: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/61787186","Warn: release artifact v0.22.9 does not have provenance: https://api.github.com/repos/hpe-container-platform-community/hpecp-python-library/releases/60274746"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/hpe-container-platform-community/hpecp-python-library/deploy.yml/master?enable=pin","Warn: containerImage not pinned by hash: .gitpod.Dockerfile:1: pin your Docker image by updating gitpod/workspace-full to gitpod/workspace-full@sha256:b1195dfae7ee9a12a89d195247c3e1357cc6a18360a41473dbec67525ef434e2","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: pipCommand not pinned by hash: .gitpod.Dockerfile:16","Warn: pipCommand not pinned by hash: Dockerfile:24-31","Warn: pipCommand not pinned by hash: cli_dev.sh:6","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:63","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:64","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:65","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:66","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:69","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of  18 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8","Warn: Project is vulnerable to: PYSEC-2019-217 / GHSA-462w-v97r-4m45","Warn: Project is vulnerable to: PYSEC-2014-8 / GHSA-8r7q-cvjq-x353","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2014-82 / GHSA-fqh9-2qgg-h84h","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: PYSEC-2019-220 / GHSA-hj2j-77xm-mc5v","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2020-176 / GHSA-3pqx-4fqf-j49f","Warn: Project is vulnerable to: PYSEC-2020-96 / GHSA-6757-jp84-gxfx","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T13:41:04.600Z","repository_id":36951122,"created_at":"2025-08-19T13:41:04.600Z","updated_at":"2025-08-19T13:41:04.600Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276674553,"owners_count":25684089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hpe-container-platform","kubernetes","python","python-cli","python-library"],"created_at":"2025-05-13T12:58:49.027Z","updated_at":"2025-09-24T01:11:12.195Z","avatar_url":"https://github.com/hpe-container-platform-community.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build \u0026 Test](https://github.com/hpe-container-platform-community/hpecp-python-library/workflows/Build%20\u0026%20Test/badge.svg?branch=master\u0026event=push)](https://github.com/hpe-container-platform-community/hpecp-python-library/actions?query=workflow%3A%22Build+%26+Test%22+branch%3Amaster)\n[![Code Checks](https://github.com/hpe-container-platform-community/hpecp-python-library/workflows/Code%20Checks/badge.svg?branch=master\u0026event=push)](https://github.com/hpe-container-platform-community/hpecp-python-library/actions?query=workflow%3A%22Code+Checks%22+branch%3Amaster)\n[![Issues](https://img.shields.io/github/issues/hpe-container-platform-community/hpecp-python-library/bug.svg)](https://github.com/hpe-container-platform-community/hpecp-python-library/issues?q=is%3Aissue+is%3Aopen+label%3A\"bug\")\n[![Coverage Status](https://coveralls.io/repos/github/hpe-container-platform-community/hpecp-python-library/badge.png?branch=master)](https://coveralls.io/github/hpe-container-platform-community/hpecp-python-library?branch=master)\n[![Pyversions](https://img.shields.io/badge/Pyversions-2.7,%203.5,%203.6,%203.7,%203.8,%203.9-green.svg)](https://github.com/hpe-container-platform-community/hpecp-python-library/blob/master/tox.ini#L7)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![pypi](https://img.shields.io/pypi/v/hpecp.svg)](https://pypi.org/project/hpecp)\n\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/hpe-container-platform-community/hpecp-python-library)\n[![Good first issues open](https://img.shields.io/github/issues/hpe-container-platform-community/hpecp-python-library/good%20first%20issue.svg?label=good%20first%20issue)](https://github.com/hpe-container-platform-community/hpecp-python-library/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\n----\n \n## Documentation\n\nSee [here](https://hpe-container-platform-community.github.io/hpecp-python-library/index.html) for User Documentation.\n\n## Contributing\n\nSee:\n\n- [Developing Guide](https://github.com/hpe-container-platform-community/hpecp-python-library/blob/master/DEVELOPING.md)\n- [Contribution Guide](https://github.com/hpe-container-platform-community/hpecp-python-library/blob/master/CONTRIBUTING.md)\n\n## Installation\n\n```shell\npip3 install -U hpecp\n```\n\nIf you encounter an issue installing on Centos 7.7 with Python 2.7 see [here](https://github.com/hpe-container-platform-community/hpecp-python-library/blob/master/docs/README-INSTALL-HPECP-HOSTS.md) for a workaround\n\n\n## CLI examples\n\nYou need to create a config file with your endpoint details - note that you can have multiple profiles:\n\n```ini\ncat \u003e ~/.hpecp.conf \u003c\u003cEOF\n[default]\napi_host = 127.0.0.1\napi_port = 8080\nuse_ssl = True\nverify_ssl = False\nwarn_ssl = False\nusername = admin\npassword = admin123\n\n[tenant1]\ntenant = /api/v1/tenant/15\nadmin = ad_admin1\npassword = pass123\nEOF\n```\n\nSetup bash autocomplete:\n```sh\nsource \u003c(hpecp autocomplete bash)\n```\n\nAutocompletion:\n```sh\nhpecp TAB\n```\n\nAdd gateway:\n```sh\nhpecp lock create \"Install Gateway\"\nhpecp gateway create-with-ssh-key --ip 10.1.0.5 --proxy-node-hostname my.gateway.local --ssh-key-file controller_private.key\nhpecp gateway wait-for-state ${GATEWAY_ID} --states [installed] --timeout-secs 1200\nhpecp lock delete-all\n```\n\nAdd K8s worker host:\n```sh\nhpecp k8sworker create-with-ssh-key \\\n    --ip 10.1.0.10 \\\n    --ssh-key-file controller_private.key \\\n    --persistent-disks /dev/nvme1n1 \\\n    --ephemeral-disks /dev/nvme2n1 \\\n    --wait-for-operation-secs 600\n```\n\nK8s versions:\n```sh\nhpecp k8scluster k8s-supported-versions --major-filter 1 --minor-filter 17\n```\n\nCreate k8s cluster:\n```sh\nhpecp k8scluster create --name myclus1 --k8shosts-config /api/v2/worker/k8shost/1:master --k8s_version=1.17.0\n```\n\nGet k8s available addons:\n```sh\nhpecp k8scluster get-available-addons --id $CLUSTER_ID\n```\n\nAdd k8s cluster addons:\n```sh\nhpecp k8scluster add-addons --id $CLUSTER_ID --addons [istio,harbor]\n```\n\nList with columns parameter:\n```sh\nhpecp k8scluster list --columns [id,description,status]\n```\n\nList with (jmespath) query parameter:\n```sh\nhpecp catalog list --query \"[?state!='installed' \u0026\u0026 state!='installing'] | [*].[_links.self.href] | []\"  --output text\n```\n\nList --query examples:\n```sh\nhpecp tenant examples\n```\n\nTenant create:\n```sh\nTENANT_ID=$(hpecp tenant create --name tenant1 --description \"dev tenant\" --k8s-cluster-id $CLUSTER_ID  --tenant-type k8s)\nhpecp tenant wait-for-status --id $TENANT_ID --status [ready] --timeout-secs 600\n```\n\nAdd LDAP role to Tenant:\n```sh\nADMIN_GROUP=\"CN=DemoTenantAdmins,CN=Users,DC=samdom,DC=example,DC=com\"\nADMIN_ROLE=$(hpecp role list  --query \"[?label.name == 'Admin'][_links.self.href]\" --output text)\nhpecp tenant add-external-user-group --tenant-id $TENANT_ID --group $ADMIN_GROUP --role-id $ADMIN_ROLE\n```\n\nAdd internal user to Tenant:\n\n```sh\nADMIN_USER_ID=$(hpecp user list --query \"[?label.name == 'admin'][_links.self.href]\" --output text)\nADMIN_ROLE=$(hpecp role list  --query \"[?label.name == 'Admin'][_links.self.href]\" --output text)\nhpecp tenant assign-user-to-role --tenant-id $TENANT_ID --role-id $ADMIN_ROLE --user-id $ADMIN_USER_ID\n```\n\nTenant kube config:\n```sh\nPROFILE=tenant1 hpecp tenant k8skubeconfig \u003e tenant1_kube.conf\n\n# get available Kubedirector apps\nkubectl --kubeconfig tenant1_kube.conf -n t1 get kubedirectorapps\n\n# list running applications\nkubectl --kubeconfig tenant1_kube.conf -n t1 describe kubedirectorclusters\n```\n\nHttp call:\n```sh\nhpecp httpclient get /some/uri\n```\n\nUse a different config file:\n```sh\nHPECP_CONFIG_FILE=myclus.conf hpecp do-something\n```\n\nLogging with HTTP tracing:\n```sh\nexport LOG_LEVEL=DEBUG\nhpecp do-something\n```\n\nMore sophisticated CLI examples [here](https://github.com/hpe-container-platform-community/hcp-demo-env-aws-terraform/tree/master/bin/experimental) \n\n\n## Python Library Examples\n\nSee docs: https://hpe-container-platform-community.github.io/hpecp-python-library/index.html\n\nExample:\n\n```py3\nfrom hpecp import ContainerPlatformClient\n\nclient = ContainerPlatformClient(username='admin',\n                                password='admin123',\n                                api_host='127.0.0.1',\n                                api_port=8080,\n                                use_ssl=True,\n                                verify_ssl='/certs/hpecp-ca-cert.pem')\nclient.create_session() # Login\n\n# Alternatively:\n# client = ContainerPlatformClient.create_from_config_file().create_session()\n\nprint(client.k8s_cluster.list(columns=['description', 'id']))\n```\n\nOn my environment, this displays:\n```\n+-------------+-----------------------+\n| description |          id           |\n+-------------+-----------------------+\n| my cluster  | /api/v2/k8scluster/20 |\n+-------------+-----------------------+\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpe-container-platform-community%2Fhpecp-python-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpe-container-platform-community%2Fhpecp-python-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpe-container-platform-community%2Fhpecp-python-library/lists"}