The whoami object
The key and its tenants, and the names of Shako.
{
"tenant": "acme",
"email": "maya@example.com",
"vms": 3,
"keys": 1,
"tenants": [
{
"name": "acme",
"role": "contributor",
"default": true
}
],
"domain": "shako.dev",
"apps_domain": "shakoapp.dev",
"ssh_gateway": "ssh.shako.dev",
"workspace": "https://workspace.shako.dev",
"sizes": {
"sizes": {
"small": {
"title": "Small",
"vcpus": 1,
"mem_mib": 2048,
"disk_gb": 10,
"awake_per_hour": "0.00413",
"asleep_per_hour": "0.00125",
"awake_per_month": "3.01"
},
"mid": {
"title": "Mid",
"vcpus": 2,
"mem_mib": 4096,
"disk_gb": 20,
"awake_per_hour": "0.00826",
"asleep_per_hour": "0.00250",
"awake_per_month": "6.03"
},
"large": {
"title": "Large",
"vcpus": 4,
"mem_mib": 8192,
"disk_gb": 40,
"awake_per_hour": "0.01652",
"asleep_per_hour": "0.00500",
"awake_per_month": "12.06"
},
"xl": {
"title": "XL",
"vcpus": 4,
"mem_mib": 16384,
"disk_gb": 80,
"awake_per_hour": "0.03304",
"asleep_per_hour": "0.01000",
"awake_per_month": "24.12"
}
},
"default": "small"
},
"principal": {
"kind": "api_key",
"name": "ci"
}
}Fields
tenantstring | null- The tenant of the key when it has only one, else null.
emailstring | null- The account that made the key.
vmsnumber- The VMs of that tenant.
keysnumber- The SSH keys of the account.
tenantsTenantView[]- The tenants of the key, the oldest first.
domainstring- The domain of the SSH names.
apps_domainstring- The domain of the URLs of the ports.
ssh_gatewaystring- Shako's SSH gateway.
workspacestring- The web workspace.
sizesSizes- The sizes of a VM, with their prices.
principalPrincipal- Who calls.