With the HPE GreenLake for Workspace Management APIs you can view workspace information and create, update, or delete managed service provider tenants.
HPE GreenLake for Workspace Management API (1.0.0)
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/
https://global.api.greenlake.hpe.com/
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/workspaces/{workspaceId}
https://global.api.greenlake.hpe.com/workspaces/v1/workspaces/{workspaceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/workspaces/7600415a-8876-5722-9f3c-b0fd11112283 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "string", "generation": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "workspaceName": "string", "createdBy": "user@example.com", "resourceUri": "string" }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/workspaces/{workspaceId}/contact
https://global.api.greenlake.hpe.com/workspaces/v1/workspaces/{workspaceId}/contact
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/workspaces/7600415a-8876-5722-9f3c-b0fd11112283/contact \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "address": { "streetAddress": "string", "streetAddressComplement": "string", "city": "string", "stateOrRegion": "string", "zip": "string", "countryCode": "string" }, "phoneNumber": "string", "email": "user@example.com", "resourceUri": "string" }
Filter data using a subset of OData 4.0 and return only the subset of resources that match the filter.
Get list of MSP Tenants API can be filtered by:
- id
- createdAt
- updatedAt
- workspaceName
- createdBy
- inventoryOwnership
Returns a tenant with a specific ID.
Returns tenants created after 2020-09-21T14:19:09.769747
Returns tenants updated after 2020-09-21T14:19:09.769747
Returns the tenant with the specified workspace name.
Returns the tenants created by the specified user
Returns the tenants with the specified inventoryOwnership
Specify pagination offset. An offset argument defines how many pages to skip before returning results.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants
https://global.api.greenlake.hpe.com/workspaces/v1/msp-tenants
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "offset": 0, "count": 0, "total": 0, "items": [ { … } ] }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants
https://global.api.greenlake.hpe.com/workspaces/v1/msp-tenants
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspaceName": "string"
}'
{ "message": "string" }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants/{tenantId}
https://global.api.greenlake.hpe.com/workspaces/v1/msp-tenants/{tenantId}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PUT \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspaceName": "string"
}'
{ "message": "string" }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants/{tenantId}
https://global.api.greenlake.hpe.com/workspaces/v1/msp-tenants/{tenantId}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/workspace/public/openapi/workspace-management-v1/workspaces/v1/msp-tenants/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'