Alpha Stage
The Bonsai API is currently in its Alpha release phase. It may not be feature-complete, and is subject to change without notice. If you have any questions about the roadmap of the API, please reach out to support.
The Bonsai Space Object
The Bonsai API provides a standard format for Space objects. A Space object includes:
Attribute | Description |
path | A String representing a machine-readable name for the server group. |
private_network | A Boolean indicating whether the space is isolated and inaccessible from the public Internet. A VPC connection will be needed to communicate with a private cluster. |
cloud |
An Object containing details about the cloud provider and region attributes:
|
View all available spaces
/spaces
endpoint, and Bonsai will return a JSON list of Space objects.
Supported Parameters
No parameters are supported for this action.
HTTP Request
An HTTP GET call is made to
/spaces
.
HTTP Response
Upon success, Bonsai responds with an
HTTP 200: OK
code, along with a JSON list representing the spaces available to your account:
{ "spaces": [ { "path": "omc/bonsai/us-east-1/common", "private_network": false, "cloud": { "provider": "aws", "region": "aws-us-east-1" } }, { "path": "omc/bonsai/eu-west-1/common", "private_network": false, "cloud": { "provider": "aws", "region": "aws-eu-west-1" } }, { "path": "omc/bonsai/ap-southeast-2/common", "private_network": false, "cloud": { "provider": "aws", "region": "aws-ap-southeast-2" } } ] }
View a single space
Supported Parameters
No parameters are supported for this action.
HTTP Request
An HTTP GET call is made to
/spaces/[:path]
.
HTTP Response
Upon success, Bonsai responds with an
HTTP 200: OK
code, along with a JSON body representing the Space object:
{ "path": "omc/bonsai/us-east-1/common", "private_network": false, "cloud": { "provider": "aws", "region": "aws-us-east-1" } }