Skip to content
Verified

Cloud Hosting

Price a server, place it in a region, and read back what is running.

Cloud Hosting is Xuda's server fleet: pricing a box, placing it in a region, provisioning it, powering it, resizing it, backing it up. Provisioning itself, deploy_vps and its siblings, runs from the dashboard, but the pricing and region discovery an integration needs before it ever asks a human to provision anything is reachable with an account API key, and once a server exists, its own methods (backups, power, diagnostics) are covered on External VPS and Full Stack VPS.

Sizing before you provision

Where should this run

get_suggested_region reads the caller's own network signals and suggests the closest region.

What regions exist

get_platform_regions lists every region Xuda hosts in, and get_platform_servers_info (see On-Prem) lists the live application servers inside them.

What does it cost there

get_region_hosting_options returns the server classes and their pricing for a region, and get_price_obj reads a priced object back for the account's own currency and plan.

curl -s https://xuda.ai/cpi/get_suggested_region \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
const res = await fetch('https://xuda.ai/cpi/get_suggested_region', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ api_key: 'YOUR_API_KEY' }),
});
const { code, data } = await res.json();
import requests

res = requests.post(
    'https://xuda.ai/cpi/get_suggested_region',
    json={'api_key': 'YOUR_API_KEY'},
)

Reading back what is deployed

get_deploy_info (by app_id) and get_account_vps (see Static Websites for the wider Account table it sits on) read the state of a server you already provisioned. update_app_version and publish_templates carry admin clearance and sit behind farm template rollouts, not a routine integration's own calls.

Methods