{"components":{"responses":{"Problem":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Error","headers":{"Retry-After":{"schema":{"type":"integer"}},"X-Request-Id":{"schema":{"format":"uuid","type":"string"}}}}},"schemas":{"Backup":{"additionalProperties":true,"properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"id":{"format":"uuid","type":"string"},"kind":{"enum":["automated","manual"],"type":"string"},"name":{"type":"string"},"price":{"oneOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"server_id":{"format":"uuid","type":"string"},"size_bytes":{"format":"int64","type":["integer","null"]},"status":{"enum":["pending","success","error","deleting"],"type":"string"}},"required":["id","server_id","name","kind","status","size_bytes","price","created_at"],"type":"object"},"BackupList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Backup"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"BackupPolicy":{"additionalProperties":false,"properties":{"day_of_month":{"format":"int64","maximum":31,"minimum":1,"type":"integer"},"enabled":{"type":"boolean"},"every_hours":{"format":"int64","maximum":24,"minimum":1,"type":"integer"},"frequency":{"enum":["daily","weekly","monthly"],"type":"string"},"retention_count":{"format":"int64","maximum":365,"minimum":1,"type":"integer"},"retention_unit":{"enum":["day","week","month","year"],"type":"string"},"starting_at":{"format":"date-time","type":"string"},"weekdays":{"items":{"enum":["mon","tue","wed","thu","fri","sat","sun"],"type":"string"},"type":"array","uniqueItems":true}},"required":["enabled"],"type":"object"},"Balance":{"additionalProperties":true,"properties":{"coupon":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"currency":{"const":"THB","type":"string"},"top_up":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"total":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"trial":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"}},"required":["currency","top_up","coupon","trial","total"],"type":"object"},"Blocker":{"additionalProperties":true,"properties":{"code":{"enum":["invalid_request","invalid_cursor","project_required","idempotency_key_required","unauthenticated","token_invalid","token_expired","token_revoked","insufficient_credit","spend_blocked","termination_protection_web_only","account_suspended","email_not_verified","kyc_required","owner_ineligible","insufficient_scope","project_access_denied","password_access_denied","token_not_allowed","beta_not_enabled","resource_not_found","project_not_found","operation_not_found","not_found","method_not_allowed","install_in_progress","resource_busy","rename_cooldown","termination_protected","server_not_ready","server_has_no_password","volume_attached","project_mismatch","project_changed","backup_not_enabled","backup_not_restorable","backup_in_progress","resize_not_allowed","ssh_key_duplicate","idempotency_in_progress","payload_too_large","validation_failed","idempotency_mismatch","quota_exceeded","ssh_key_limit","block_volume_limit","block_volume_too_large","block_storage_quota_exceeded","plan_unavailable","image_unavailable","image_requirement_not_met","ssh_key_not_supported","rate_limited","internal_error","upstream_failed","outcome_unknown","capacity_unavailable","service_paused","maintenance"],"type":"string"},"detail":{"type":"string"}},"required":["code","detail"],"type":"object"},"CreateServerRequest":{"additionalProperties":false,"properties":{"agent":{"default":true,"description":"Install the XVer agent where the operating system supports it.","type":"boolean"},"backup_enabled":{"default":false,"type":"boolean"},"disk_addition_gb":{"default":0,"format":"int64","maximum":512,"minimum":0,"type":"integer"},"exclude_private_ipv4":{"default":false,"description":"Create the server without a private IPv4. Not with exclude_public_ipv4.","type":"boolean"},"exclude_public_ipv4":{"default":false,"description":"Create the server without a public IPv4. It is then offline: no internet, reachable from the private network and the console. Not with exclude_private_ipv4.","type":"boolean"},"hostname":{"pattern":"^[a-zA-Z0-9_-]{4,20}$","type":"string"},"image":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"plan":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"project_id":{"format":"uuid","type":"string"},"ssh_key_ids":{"items":{"format":"uuid","type":"string"},"maxItems":10,"type":"array","uniqueItems":true},"startup_script":{"description":"Runs as root on the new server. Never returned.","maxLength":16384,"type":"string","writeOnly":true},"tags":{"items":{"pattern":"^[a-zA-Z0-9_-]{1,50}$","type":"string"},"maxItems":5,"type":"array"},"termination_protection":{"default":false,"type":"boolean"}},"required":["project_id","hostname","plan","image"],"type":"object"},"DryRun":{"additionalProperties":true,"properties":{"blockers":{"items":{"$ref":"#/components/schemas/Blocker"},"type":"array"},"can_execute":{"type":"boolean"},"destructive":{"description":"true when data would be lost or overwritten","type":"boolean"},"dry_run":{"enum":[true],"type":"boolean"},"previous_price":{"oneOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"price":{"description":"The whole price after the request, null when it does not change.","oneOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"price_notes":{"items":{"type":"string"},"type":"array"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["dry_run","can_execute","destructive","warnings","blockers","price"],"type":"object"},"FieldError":{"additionalProperties":true,"properties":{"field":{"type":"string"},"message":{"type":"string"}},"required":["field","message"],"type":"object"},"Image":{"additionalProperties":true,"properties":{"min_memory_gb":{"format":"int64","type":"integer"},"min_vcpu":{"format":"int64","type":"integer"},"name":{"type":"string"},"os":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"slug":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"ssh_key_supported":{"type":"boolean"},"version":{"type":"string"}},"required":["slug","os","name","version","min_vcpu","min_memory_gb"],"type":"object"},"ImageList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Image"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"Operation":{"additionalProperties":true,"properties":{"created_at":{"format":"date-time","type":"string"},"error":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OperationError"}]},"finished_at":{"format":"date-time","type":["string","null"]},"id":{"format":"uuid","type":"string"},"kind":{"description":"Clients must accept kinds they do not know.","enum":["server.create","server.delete","server.start","server.shutdown","server.reboot","server.resize","volume.create","volume.resize","volume.attach","volume.detach","volume.delete","backup.create","backup.delete","backup.restore"],"type":"string"},"origin":{"enum":["web","token","xverctl","mcp","chatbot","cloud_shell","system"],"type":"string"},"project_id":{"format":"uuid","type":"string"},"resource":{"$ref":"#/components/schemas/OperationResource"},"started_at":{"format":"date-time","type":["string","null"]},"status":{"enum":["pending","running","succeeded","failed"],"type":"string"}},"required":["id","kind","status","project_id","resource","origin","error","created_at","finished_at"],"type":"object"},"OperationEnvelope":{"additionalProperties":true,"properties":{"operation":{"$ref":"#/components/schemas/Operation"}},"required":["operation"],"type":"object"},"OperationError":{"additionalProperties":true,"properties":{"code":{"enum":["invalid_request","invalid_cursor","project_required","idempotency_key_required","unauthenticated","token_invalid","token_expired","token_revoked","insufficient_credit","spend_blocked","termination_protection_web_only","account_suspended","email_not_verified","kyc_required","owner_ineligible","insufficient_scope","project_access_denied","password_access_denied","token_not_allowed","beta_not_enabled","resource_not_found","project_not_found","operation_not_found","not_found","method_not_allowed","install_in_progress","resource_busy","rename_cooldown","termination_protected","server_not_ready","server_has_no_password","volume_attached","project_mismatch","project_changed","backup_not_enabled","backup_not_restorable","backup_in_progress","resize_not_allowed","ssh_key_duplicate","idempotency_in_progress","payload_too_large","validation_failed","idempotency_mismatch","quota_exceeded","ssh_key_limit","block_volume_limit","block_volume_too_large","block_storage_quota_exceeded","plan_unavailable","image_unavailable","image_requirement_not_met","ssh_key_not_supported","rate_limited","internal_error","upstream_failed","outcome_unknown","capacity_unavailable","service_paused","maintenance"],"type":"string"},"detail":{"type":"string"}},"required":["code","detail"],"type":"object"},"OperationList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Operation"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"OperationResource":{"additionalProperties":true,"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"type":{"enum":["server","volume","backup"],"type":"string"}},"required":["type","id"],"type":"object"},"Plan":{"additionalProperties":true,"properties":{"available":{"type":"boolean"},"bandwidth_tb":{"format":"int64","type":"integer"},"category":{"enum":["shared","general","dedicated"],"type":"string"},"disk_gb":{"format":"int64","type":"integer"},"memory_mb":{"format":"int64","type":"integer"},"price":{"$ref":"#/components/schemas/Price"},"slug":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"vcpu":{"format":"int64","type":"integer"}},"required":["slug","category","vcpu","memory_mb","disk_gb","bandwidth_tb","available","price"],"type":"object"},"PlanList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Plan"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"Price":{"additionalProperties":true,"properties":{"currency":{"const":"THB","type":"string"},"hourly":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"monthly_max":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"}},"required":["currency","hourly","monthly_max"],"type":"object"},"Pricing":{"additionalProperties":true,"properties":{"backup_gb_hour":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"bandwidth_overage_gb":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"block_storage_gb_month":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"currency":{"const":"THB","type":"string"},"disk_addition_gb_month":{"description":"THB as decimal text. Do not parse it into a float.","pattern":"^-?[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"disk_addition_max_gb":{"format":"int64","type":"integer"}},"required":["currency","disk_addition_gb_month","block_storage_gb_month","backup_gb_hour","bandwidth_overage_gb"],"type":"object"},"Problem":{"additionalProperties":true,"properties":{"action_url":{"description":"A page to open by hand, such as the server page in the console.","format":"uri","type":"string"},"code":{"enum":["invalid_request","invalid_cursor","project_required","idempotency_key_required","unauthenticated","token_invalid","token_expired","token_revoked","insufficient_credit","spend_blocked","termination_protection_web_only","account_suspended","email_not_verified","kyc_required","owner_ineligible","insufficient_scope","project_access_denied","password_access_denied","token_not_allowed","beta_not_enabled","resource_not_found","project_not_found","operation_not_found","not_found","method_not_allowed","install_in_progress","resource_busy","rename_cooldown","termination_protected","server_not_ready","server_has_no_password","volume_attached","project_mismatch","project_changed","backup_not_enabled","backup_not_restorable","backup_in_progress","resize_not_allowed","ssh_key_duplicate","idempotency_in_progress","payload_too_large","validation_failed","idempotency_mismatch","quota_exceeded","ssh_key_limit","block_volume_limit","block_volume_too_large","block_storage_quota_exceeded","plan_unavailable","image_unavailable","image_requirement_not_met","ssh_key_not_supported","rate_limited","internal_error","upstream_failed","outcome_unknown","capacity_unavailable","service_paused","maintenance"],"type":"string"},"detail":{"type":"string"},"errors":{"items":{"$ref":"#/components/schemas/FieldError"},"type":"array"},"request_id":{"format":"uuid","type":"string"},"required_scope":{"type":"string"},"retry_after":{"description":"Seconds.","format":"int64","type":"integer"},"status":{"format":"int64","maximum":599,"minimum":400,"type":"integer"},"title":{"type":"string"},"type":{"format":"uri","type":"string"}},"required":["type","title","status","code","request_id"],"type":"object"},"Project":{"additionalProperties":true,"properties":{"access":{"$ref":"#/components/schemas/ProjectAccess","description":"What this token may do in the project now."},"created_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"is_default":{"type":"boolean"},"name":{"type":"string"},"role":{"enum":["owner","admin","member"],"type":"string"}},"required":["id","name","is_default","role","access"],"type":"object"},"ProjectAccess":{"additionalProperties":true,"properties":{"backups":{"enum":["none","read","manage","delete"],"type":"string"},"servers":{"enum":["none","read","manage","delete"],"type":"string"},"servers_password":{"type":"boolean"},"volumes":{"enum":["none","read","manage","delete"],"type":"string"}},"required":["servers","backups","volumes","servers_password"],"type":"object"},"ProjectList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"ResizeRequest":{"additionalProperties":false,"properties":{"plan":{"pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"}},"required":["plan"],"type":"object"},"Server":{"additionalProperties":true,"properties":{"access":{"enum":["none","read","manage","delete"],"type":"string"},"agent":{"$ref":"#/components/schemas/ServerAgent"},"created_at":{"format":"date-time","type":"string"},"disk_gb":{"format":"int64","type":"integer"},"has_password":{"description":"false when it is entered with an SSH key","type":"boolean"},"hostname":{"type":"string"},"id":{"format":"uuid","type":"string"},"image":{"type":"string"},"ipv4":{"format":"ipv4","type":["string","null"]},"memory_mb":{"format":"int64","type":"integer"},"plan":{"description":"null for a server of the plans before the ones on sale now","type":["string","null"]},"price":{"$ref":"#/components/schemas/Price"},"private_ipv4":{"format":"ipv4","type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"status":{"enum":["provisioning","running","stopped","starting","stopping","rebooting","resizing","backing_up","restoring","deleting","suspended","error","unknown"],"type":"string"},"tags":{"items":{"type":"string"},"maxItems":5,"type":"array"},"termination_protection":{"description":"true: it cannot be deleted or restored over","type":"boolean"},"username":{"type":"string"},"vcpu":{"format":"int64","type":"integer"}},"required":["id","project_id","hostname","status","plan","image","vcpu","memory_mb","disk_gb","ipv4","has_password","termination_protection","agent","price","access","created_at"],"type":"object"},"ServerAccepted":{"additionalProperties":true,"properties":{"operation":{"$ref":"#/components/schemas/Operation"},"server":{"$ref":"#/components/schemas/Server"}},"required":["server","operation"],"type":"object"},"ServerAgent":{"additionalProperties":true,"properties":{"last_seen_at":{"format":"date-time","type":["string","null"]},"online":{"type":"boolean"},"state":{"enum":["none","pending","active","quarantined"],"type":"string"},"version":{"type":["string","null"]}},"required":["state","online","version","last_seen_at"],"type":"object"},"ServerList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Server"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"SshKey":{"additionalProperties":true,"properties":{"created_at":{"format":"date-time","type":"string"},"fingerprint":{"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"public_key":{"type":"string"},"type":{"type":"string"}},"required":["id","name","type","fingerprint","public_key","created_at"],"type":"object"},"SshKeyList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/SshKey"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"},"Token":{"additionalProperties":true,"properties":{"created_at":{"format":"date-time","type":"string"},"display_prefix":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"enum":["personal","cli"],"type":"string"},"last_used_at":{"format":"date-time","type":["string","null"]},"name":{"maxLength":64,"type":"string"},"project_ids":{"description":"The projects the token was made for. Access to each depends on being a member of it now.","items":{"format":"uuid","type":"string"},"minItems":1,"type":"array"},"scopes":{"items":{"enum":["servers:read","servers:manage","servers:delete","servers:password","volumes:read","volumes:manage","volumes:delete","backups:read","backups:manage","backups:delete","ssh_keys:read","ssh_keys:manage","projects:read","billing:read"],"type":"string"},"type":"array"}},"required":["id","name","kind","display_prefix","scopes","project_ids","expires_at","created_at"],"type":"object"},"Volume":{"additionalProperties":true,"properties":{"access":{"enum":["none","read","manage","delete"],"type":"string"},"attachment":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/VolumeAttachment"}]},"created_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"price":{"$ref":"#/components/schemas/Price"},"project_id":{"format":"uuid","type":"string"},"size_gib":{"format":"int64","type":"integer"},"status":{"enum":["creating","available","attaching","attached","detaching","resizing","deleting","error"],"type":"string"},"status_reason":{"type":"string"}},"required":["id","project_id","name","size_gib","status","attachment","price","access","created_at"],"type":"object"},"VolumeAttachment":{"additionalProperties":true,"properties":{"device_path":{"type":"string"},"pending_reboot":{"type":"boolean"},"server_id":{"description":"null when the token cannot see the server","format":"uuid","type":["string","null"]},"type":{"enum":["server","container"],"type":"string"}},"required":["type"],"type":"object"},"VolumeList":{"additionalProperties":true,"properties":{"data":{"items":{"$ref":"#/components/schemas/Volume"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"xver_pat_...","description":"Only in the Authorization header, never in the URL. The session of the console does not work here.","scheme":"bearer","type":"http"}}},"info":{"description":"IDs are UUIDs, except plans and images, which use fixed slugs. Money is a decimal string in THB, time is RFC 3339 in UTC. Error titles and details are English, or Thai with Accept-Language: th.","title":"XVer API","version":"2.0.0-draft.3"},"openapi":"3.1.0","paths":{"/backups/{backup_id}":{"get":{"operationId":"getBackup","parameters":[{"in":"path","name":"backup_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Backup"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get a backup","tags":["backups"],"x-required-scope":"backups:read"}},"/billing/balance":{"get":{"operationId":"getBalance","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get the credit of the owner of the token, who may not be who pays for a project","tags":["billing"],"x-required-scope":"billing:read"}},"/images":{"get":{"operationId":"listImages","parameters":[{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"security":[],"summary":"List the operating systems a server can be created with","tags":["catalog"]}},"/operations":{"get":{"operationId":"listOperations","parameters":[{"explode":false,"in":"query","name":"status","schema":{"enum":["pending","running","succeeded","failed"],"type":"string"}},{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the operations this token started","tags":["operations"]}},"/operations/{operation_id}":{"get":{"operationId":"getOperation","parameters":[{"in":"path","name":"operation_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}},"description":"OK","headers":{"Retry-After":{"schema":{"description":"Seconds before asking again, while it is not done.","format":"int64","type":"integer"}}}},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get an operation this token started","tags":["operations"]}},"/plans":{"get":{"operationId":"listPlans","parameters":[{"explode":false,"in":"query","name":"category","schema":{"enum":["shared","general","dedicated"],"type":"string"}},{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"security":[],"summary":"List Cloud Server plans and prices","tags":["catalog"]}},"/pricing":{"get":{"operationId":"getPricing","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"security":[],"summary":"Get the prices of extra disk, block storage, backups and bandwidth","tags":["catalog"]}},"/projects":{"get":{"operationId":"listProjects","parameters":[{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the projects the token reaches now","tags":["projects"],"x-required-scope":"projects:read"}},"/projects/{project_id}":{"get":{"operationId":"getProject","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get a project","tags":["projects"],"x-required-scope":"projects:read"}},"/servers":{"get":{"operationId":"listServers","parameters":[{"description":"May be left out when the token has one project; with more it is project_required.","explode":false,"in":"query","name":"project_id","schema":{"description":"May be left out when the token has one project; with more it is project_required.","format":"uuid","type":"string"}},{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the servers of a project, with those being installed and those that failed","tags":["servers"],"x-required-scope":"servers:read"},"post":{"description":"The operation succeeds when the server is active, which is before it restarts once by itself and before the XVer agent is ready.","operationId":"createServer","parameters":[{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","in":"header","name":"Idempotency-Key","schema":{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","maxLength":100,"minLength":16,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},{"description":"Check every rule and give the price, changing nothing.","explode":false,"in":"query","name":"dry_run","schema":{"default":false,"description":"Check every rule and give the price, changing nothing.","type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServerRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRun"}}},"description":"OK"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAccepted"}}},"description":"Accepted","headers":{"Location":{"schema":{"description":"The operation.","format":"uri-reference","type":"string"}}}},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Create one server (an operation)","tags":["servers"],"x-required-scope":"servers:manage"}},"/servers/{server_id}":{"get":{"operationId":"getServer","parameters":[{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get a server","tags":["servers"],"x-required-scope":"servers:read"},"patch":{"description":"One field at a time. termination_protection false is always termination_protection_web_only: deletion protection is turned off by hand on the server page in the console.","operationId":"updateServer","parameters":[{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"maxProperties":1,"minProperties":1,"properties":{"hostname":{"pattern":"^[a-zA-Z0-9_-]{4,20}$","type":"string"},"termination_protection":{"description":"Only true is taken. Deletion protection is turned off by hand on the server page in the console.","type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Rename a server or turn on its deletion protection","tags":["servers"],"x-required-scope":"servers:manage"}},"/servers/{server_id}/backup-policy":{"get":{"operationId":"getBackupPolicy","parameters":[{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupPolicy"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get when a server is backed up","tags":["backups"],"x-required-scope":"backups:read"}},"/servers/{server_id}/backups":{"get":{"operationId":"listBackups","parameters":[{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}},{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the backups of a server","tags":["backups"],"x-required-scope":"backups:read"}},"/servers/{server_id}/reboot":{"post":{"operationId":"rebootServer","parameters":[{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","in":"header","name":"Idempotency-Key","schema":{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","maxLength":100,"minLength":16,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEnvelope"}}},"description":"Accepted","headers":{"Location":{"schema":{"description":"The operation.","format":"uri-reference","type":"string"}}}},"default":{"$ref":"#/components/responses/Problem"}},"tags":["servers"],"x-required-scope":"servers:manage"}},"/servers/{server_id}/resize":{"post":{"operationId":"resizeServer","parameters":[{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","in":"header","name":"Idempotency-Key","schema":{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","maxLength":100,"minLength":16,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Check every rule and give the price, changing nothing.","explode":false,"in":"query","name":"dry_run","schema":{"default":false,"description":"Check every rule and give the price, changing nothing.","type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRun"}}},"description":"OK"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEnvelope"}}},"description":"Accepted","headers":{"Location":{"schema":{"description":"The operation.","format":"uri-reference","type":"string"}}}},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Resize a server up (it is shut down and started again)","tags":["servers"],"x-required-scope":"servers:manage"}},"/servers/{server_id}/resize-options":{"get":{"operationId":"listResizeOptions","parameters":[{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the plans a server can be resized to; empty when it is on the largest","tags":["servers"],"x-required-scope":"servers:read"}},"/servers/{server_id}/shutdown":{"post":{"operationId":"shutdownServer","parameters":[{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","in":"header","name":"Idempotency-Key","schema":{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","maxLength":100,"minLength":16,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEnvelope"}}},"description":"Accepted","headers":{"Location":{"schema":{"description":"The operation.","format":"uri-reference","type":"string"}}}},"default":{"$ref":"#/components/responses/Problem"}},"tags":["servers"],"x-required-scope":"servers:manage"}},"/servers/{server_id}/start":{"post":{"operationId":"startServer","parameters":[{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","in":"header","name":"Idempotency-Key","schema":{"description":"Random, such as a UUID. Needed by every request that starts work, not by a dry run. The same key with the same request gets the same answer for 24 hours; with another request it is idempotency_mismatch.","maxLength":100,"minLength":16,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEnvelope"}}},"description":"Accepted","headers":{"Location":{"schema":{"description":"The operation.","format":"uri-reference","type":"string"}}}},"default":{"$ref":"#/components/responses/Problem"}},"tags":["servers"],"x-required-scope":"servers:manage"}},"/ssh-keys":{"get":{"operationId":"listSshKeys","parameters":[{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshKeyList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the SSH keys of the owner of the token, which belong to no project","tags":["ssh-keys"],"x-required-scope":"ssh_keys:read"}},"/ssh-keys/{ssh_key_id}":{"get":{"operationId":"getSshKey","parameters":[{"in":"path","name":"ssh_key_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshKey"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get an SSH key","tags":["ssh-keys"],"x-required-scope":"ssh_keys:read"}},"/token":{"delete":{"operationId":"revokeCurrentToken","responses":{"204":{"description":"No Content"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Revoke the token of this request","tags":["token"]},"get":{"description":"Other tokens cannot be seen.","operationId":"getToken","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get the token of this request","tags":["token"]}},"/volumes":{"get":{"operationId":"listVolumes","parameters":[{"description":"May be left out when the token has one project; with more it is project_required.","explode":false,"in":"query","name":"project_id","schema":{"description":"May be left out when the token has one project; with more it is project_required.","format":"uuid","type":"string"}},{"explode":false,"in":"query","name":"limit","schema":{"default":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"}},{"description":"next_cursor of the page before. Do not build or parse it.","explode":false,"in":"query","name":"cursor","schema":{"description":"next_cursor of the page before. Do not build or parse it.","maxLength":512,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeList"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"List the volumes of a project","tags":["volumes"],"x-required-scope":"volumes:read"}},"/volumes/{volume_id}":{"get":{"operationId":"getVolume","parameters":[{"in":"path","name":"volume_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Volume"}}},"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}},"summary":"Get a volume","tags":["volumes"],"x-required-scope":"volumes:read"}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.xver.cloud/v2"}],"tags":[{"name":"catalog"},{"name":"token"},{"name":"projects"},{"name":"servers"},{"name":"backups"},{"name":"volumes"},{"name":"ssh-keys"},{"name":"billing"},{"name":"operations"}]}