Skip to content

API Working Example

API examples developer tutorial

Here is a basic example of using the Go2Cloud API to list your servers:

Request:
GET https://api-jhb1.go2cloud.co.za/servers/list/
Authorization: Basic (your credentials)

The API returns a JSON response containing details of all servers on your account, including their UUIDs, status, resource allocations, and attached drives.

You can use any HTTP client to interact with the API, including curl, Python's requests library, or tools like Postman. The API follows standard REST conventions, so the same patterns apply to all resource types:

List resources: GET /resource-type/list/
Get details: GET /resource-type/uuid/
Create: POST /resource-type/create/
Modify: POST /resource-type/uuid/set/
Delete: POST /resource-type/uuid/destroy/

Was this article helpful?