Chris Snow

Results 39 comments of Chris Snow

``` GET /api/v2/cluster/4/node?services&catalog_entry HTTP/1.1 Host: 127.0.0.1:8080 Accept-Encoding: gzip, deflate REMOTE_ADDR: 185.69.144.159 Accept: */* User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-1127.18.2.el7.x86_64 Connection: keep-alive X-BDS-SESSION: /api/v2/session/bdbc5cda-991f-4196-a63a-65612f625113 Authorization: /api/v2/session/bdbc5cda-991f-4196-a63a-65612f625113 HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Length: 6526...

``` PUT /api/v1/install/?install_reconfig HTTP/1.1 Host: 127.0.0.1:8080 Content-Length: 27 Accept-Encoding: gzip, deflate REMOTE_ADDR: 86.138.132.112 Accept: */* User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-1127.18.2.el7.x86_64 Connection: keep-alive X-BDS-SESSION: /api/v2/session/46acd825-491e-4e81-95ed-3190bb854a27 Authorization: /api/v2/session/46acd825-491e-4e81-95ed-3190bb854a27 {"cpu_allocation_ratio": 3} HTTP/1.1 204 No...

``` GET /api/v2/config/k8s HTTP/1.1 Host: 127.0.0.1:8080 Accept-Encoding: gzip, deflate REMOTE_ADDR: 185.69.144.159 Accept: */* User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-1127.18.2.el7.x86_64 Connection: keep-alive X-BDS-SESSION: /api/v2/session/bdbc5cda-991f-4196-a63a-65612f625113 Authorization: /api/v2/session/bdbc5cda-991f-4196-a63a-65612f625113 HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Length: 340...

``` { "password": "string", "tenant": "/api/v1/tenant/2", "tenant_name": "Demo Tenant", "site_admin_view": true } ``` There is also a site_admin_view parameter for /session

Tenant parameter implemented with https://github.com/hpe-container-platform-community/hpecp-python-library/commit/dc1a1115ff5c22dd554470ba08623fd78a5e7f75

Until this gets added, a workaround is to use [bash process substition](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Process-Substitution) `

@pramaku - this may be a good one for you to look at to understand the documentation process. Feel free to assign this to yourself.

I've created a mock rest api server to test this. You can start it with: ``` /opt/SoapUI-5.5.0/bin/mockservicerunner.sh -m "REST MockService" tests/HPECP-REST-API-SOAPUI.xml ``` You can then install the CLI with: ```...