Skip to main content

Create a warehouse

POST/v1/warehousesTry it
View request and response examples ↓

Creates a VeloDB Cloud warehouse and its initial compute cluster.

Authorization

X-API-Keystring · headerrequired

API key for /v1 requests.

Headers

RequestIdstringrequired

Idempotency key for write requests.

Use a globally unique UUID or similar token for each logical write request. Never reuse a RequestId across different operations or payloads. You can safely retry the same RequestId only when the method, path, path parameters, query string, and request body are identical.

Minimum length1
Example8f6b0c2e-6a9a-4f2e-9c4c-0a1f9a2b7d31

Request body

application/jsonrequired
namestringrequired

Warehouse display name. Up to 32 characters. Supports only letters, numbers, underscores, and hyphens.

Maximum length32
Pattern^[A-Za-z0-9_-]+$
Exampleanalytics-warehouse
deploymentModestringrequired

Choose SaaS for a warehouse managed by VeloDB Cloud or BYOC to deploy the warehouse in your own cloud account.

Allowed valuesBYOCSaaS
ExampleBYOC
cloudProviderstringrequired

Cloud provider for the warehouse resources. Use GET /v1/cloud-providers to discover supported values for the authenticated organization and deployment mode.

Exampleaws
regionstringrequired

Cloud region for the warehouse resources. Use GET /v1/cloud-providers/{cloudProvider}/regions to discover supported values for the authenticated organization, cloud provider, and deployment mode.

Exampleus-east-1
tagsobject

BYOC resource tags. Keys may contain letters, digits, underscores, and hyphens. GCP converts keys and values to lowercase.

Additional propertiesstring
Example{"team":"analytics","environment":"production"}
versionstring

Engine version in majorVersion.minorVersion format. If omitted, uses the latest recommended version. Invalid or unavailable versions are rejected.

Pattern^[0-9]+\.[0-9]+$
Example4.0

Initial public IP access policy for a BYOC Warehouse. Ignored for SaaS. If omitted, the default policy applies.

Child fields
publicAccessPolicystringrequired

Public access mode; deny all, allow all, or allow only listed sources.

Allowed valuesDENY_ALLALLOW_ALLALLOWLIST_ONLY
rulesobject[]

Allowed source IP addresses or CIDR ranges. Use only with ALLOWLIST_ONLY.

Item fields
cidrstring

Allowed source IP address or CIDR range.

Example203.0.113.0/24

Optional rule description.

ExampleOffice egress IPs
vpcModestring

For guided BYOC setup, choose existing to use an existing VPC or new to create one. Values are case-insensitive. The default is new. The choice takes effect during warehouse creation.

Exampleexisting
setupModestring

Select how to provision resources in your cloud account for BYOC deployments. SaaS deployments ignore this field.

  • guided provisions resources from a template, such as a CloudFormation stack template on AWS. Open data.setupGuide.setupUrl from the response to continue in your cloud provider console.
  • advanced reuses existing configurations and is available only on AWS. Supply credentialId and networkConfigId. You can also supply encryption key IDs.
Allowed valuesguidedadvanced
Exampleguided
credentialIdinteger · int64 | null

Required for advanced BYOC setup on AWS. Use the credentialId returned when you create a credential configuration.

networkConfigIdinteger · int64 | null

Required for advanced BYOC setup on AWS. Use the networkConfigId returned when you create a network configuration.

tdeEncryptionKeyIdinteger · int64 | null

For advanced BYOC setup on AWS, use the encryptionKeyId from an encryption key configuration to specify the key for transparent data encryption (TDE). The key must belong to your organization, match the warehouse cloud provider and region, and support TDE. Omit this field to use the default TDE behavior.

Example824347710726149
ebsEncryptionKeyIdinteger · int64 | null

For advanced BYOC setup on AWS, use the encryptionKeyId from an encryption key configuration to encrypt the EBS volumes for the warehouse. The key must belong to your organization, match the warehouse region, and support EBS encryption. You can use the same key for TDE if it supports both uses. Omit this field to use the default EBS encryption behavior.

Example824403622567941
lowerCaseModeinteger | null

Table-name case-sensitivity mode set when the Warehouse is created. 0 is case-sensitive and is the default; 1 is case-insensitive. This setting cannot be changed after creation.

Allowed values01
Example1
adminPasswordstring · passwordrequired

Initial administrator password for the Warehouse. Must be 8 to 20 characters, use only letters, digits, and special characters (!@#$%^&*()_+{}[]:;<>,.?~, backslash, and hyphen), and include at least 3 of uppercase letters, lowercase letters, digits, and special characters.

ExampleExamplePassword123!
initialClusterobjectrequired
Child fields
zonestringrequired

Availability zone for the initial Cluster. Use the zone value from the matching region's zones array returned by GET /v1/cloud-providers/{cloudProvider}/regions, not the zone displayName. The zone must be supported by the selected cloud provider and region; unsupported values return InvalidParameter.

Exampleus-east-1a
computeVcpuintegerrequired

Compute capacity of the initial Cluster in vCPUs. Valid values are 4, 8, 16, and multiples of 16 above that.

Minimum4
ratiointeger

Memory-to-vCPU ratio for the initial cluster. Valid values are 4 (1:4) and 8 (1:8). Defaults to 8 (1:8).

Allowed values48
cacheGbintegerrequired

Cache capacity of the initial Cluster in GB. Valid values depend on the selected Cluster package. Under the default capacity rules, the minimum is 100 GB through 16 vCPUs, then increases by 100 GB for each additional 16 vCPUs.

Minimum100
autoPauseobject
Child fields
enabledbooleanrequired

Whether automatic pause is enabled.

Idle time in minutes before the Cluster can be paused automatically. When provided, the value must be greater than or equal to 1. This field is required when enabled is true.

Minimum1
Example10

Response

Warehouse created successfully.

application/json
successbooleanrequired

Indicates whether the request succeeded.

Exampletrue
requestIdstringrequired

Request ID returned by the server for tracing.

Examplereq-20260402-001
dataobjectrequired
Child fields
warehouseIdstringrequired

Newly created warehouse ID.

Resolved BYOC guided setup instructions for the selected VPC mode. Follow setupUrl to open the cloud provider console and launch the provider-hosted provisioning flow.

Child fields
setupUrlstring · uri | null

Setup link selected for the requested BYOC VPC mode. Open this link to continue in the cloud provider console and launch the provisioning flow.

guideUrlstring · uri | null

Documentation link for the selected BYOC setup path.

shellCommandstring | null

Cloud Shell command for guided BYOC setup, when available. Use setupUrl for the provider console flow unless the setup guide explicitly instructs you to run this command.

Enter to send · Shift+Enter for a new line