Aquila
Fleets

GetCapacity

POST
/fleets.v1.FleetService/GetCapacity

GetCapacity returns the organization's allowance in each zone, and how much of it its fleets take. A change that would go over is refused with RESOURCE_EXHAUSTED.

Authorization

apiKey
headerAuthorizationBearer <token>

An organization API key, created in the console.

Request Body

application/json
  1. body
organizationId?organization_id
Formatuuid

Response Body

Success

application/json
  1. response
zones?array<>

Zones the organization has an allowance in.

Example Request
curl -X POST 'https://api.aquilahosting.com/fleets.v1.FleetService/GetCapacity' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "zones": [    {      "zone": "string",      "maxServers": 0,      "maxCpuMillicores": "string",      "maxMemoryMib": "string",      "servers": 0,      "cpuMillicores": "string",      "memoryMib": "string"    }  ]}