---
title: "Create BYOC Infrastructure"
method: POST
path: "/v1/organizations/{organizationId}/byocInfrastructure"
tags: ["Organization"]
---

# Create BYOC Infrastructure

`POST /v1/organizations/{organizationId}/byocInfrastructure`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/byocInfrastructure`
- Auth: HTTP basic

Create a new BYOC Infrastructure in the organization. Returns the configuration of the newly created infrastructure

## Path parameters

- `organizationId` string, uuid, required

## Request body

- ByocInfrastructurePostRequest
  - `regionId` 'ap-northeast-1' | 'ap-northeast-2' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'il-central-1' | 'us-east-1' | 'us-east-2' | 'us-west-2' | 'us-east1' | 'us-central1' | 'europe-west2' | 'europe-west4' | 'asia-southeast1' | 'asia-northeast1' | 'eastus' | 'eastus2' | 'westus3' | 'germanywestcentral' | 'centralus', required: Region in which the BYOC infrastructure will be located
  - `accountId` string, required: Cloud account ID the BYOC infrastructure is configured for: AWS account ID, GCP project ID, or Azure subscription ID
  - `availabilityZoneSuffixes` string[]: List of availability zone suffixes
  - `vpcCidrRange` string: CIDR range for the ClickHouse-managed VPC. Mutually exclusive with the BYO-VPC fields (`vpcId`, `privateSubnetIds`, `publicSubnetIds`)
  - `externalId` string: AWS only: ExternalID baked into the ClickHouse management role trust policy in your account
  - `tenantId` string: Azure only (required for Azure regions): Entra tenant ID of the subscription
  - `servicePrincipalClientId` string: Azure only (required for Azure regions): client ID of the service principal ClickHouse uses to manage the infrastructure
  - `vpcId` string: BYO-VPC only (AWS and GCP): ID or network name of the customer-provided VPC to deploy into. Requires `privateSubnetIds`
  - `privateSubnetIds` string[]: BYO-VPC only: private subnet IDs or names (1-6 entries on AWS, exactly one on GCP)
  - `publicSubnetIds` string[]: AWS BYO-VPC only: public subnet IDs (at most 6 entries)
  - `gcpPodCidrRangeNames` string[]: GCP BYO-VPC only: secondary IP range names on the subnet to use for pod IPs. Omitted: all secondary ranges are used
  - `gcpSharedVpcHostProjectId` string: GCP BYO-VPC only: Shared VPC host project owning the VPC and subnet, when different from `accountId`
  - `tags` ByocInfrastructureTags
  - `accessModel` string: How ClickHouse reaches the infrastructure. `standard` (default) provisions it through a management role in your account; `restricted` registers a cluster you own, reached only through the connector you install. `restricted` is AWS only and requires `restrictedFacts`
  - `restrictedFacts` ByocRestrictedFacts
    - `clusterName` string, required: Name of the EKS cluster the connector runs in
    - `platformNodeGroup` string: Node group the platform components run on. Omitted: `system`
    - `availabilityZones` string[]: At least three distinct availability zones of the region. Omitted: the zones of the cluster's private subnets, which the connector reads when installed
    - `namespacePrefix` string: Prefix of the namespace each service runs in. Must match the executor configuration. Omitted: `ns-`
    - `executorRoleArn` string: Direct image mode only (required there): IAM role of the connector executor, in `accountId`
    - `nodeRoleArns` string[]: Direct image mode only (required there): IAM roles of the cluster nodes, in `accountId`
    - `imageMode` string, required: How the connector pulls platform images: `direct` from the ClickHouse registry, or `bundle` from `imageRegistry`
    - `imageRegistry` string: Bundle image mode only (required there): OCI repository root holding the platform images
    - `dataBucket` string, required: S3 bucket services store data in
    - `backupBucket` string, required: S3 bucket services store backups in
    - `storageRoleArn` string, required: IAM role services assume to reach the buckets, in `accountId`
    - `scraperEndpoint` string: Remote-write URL of the connector scraper. Required unless `enableMonitoring` is false
    - `enableMonitoring` boolean: Install the monitoring components. Default true
    - `enableSnapshotController` boolean: Install the volume snapshot controller. Default true
    - `enableAutoscaler` boolean: Install the ClickHouse autoscaler. Default false
  - `displayName` string: Human readable name for infrastructure

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ByocConfig
    - `id` string: Unique identifier of the BYOC configuration
    - `state` string: State of the infrastructure. Current values: 'infra-provisioning', 'infra-terminated', 'infra-terminating', 'infra-ready', 'infra-degraded', 'infra-upgrading', 'infra-awaiting-connector'. New states may be added; treat an unknown state as not ready
    - `accountId` string: Cloud account ID the BYOC infrastructure is bound to: AWS account ID, GCP project ID, or Azure subscription ID
    - `accountName` string: DEPRECATED. Use `accountId` instead. Cloud account ID the BYOC infrastructure is bound to
    - `regionId` 'ap-northeast-1' | 'ap-northeast-2' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'il-central-1' | 'us-east-1' | 'us-east-2' | 'us-west-2' | 'us-east1' | 'us-central1' | 'europe-west2' | 'europe-west4' | 'asia-southeast1' | 'asia-northeast1' | 'eastus' | 'eastus2' | 'westus3' | 'germanywestcentral' | 'centralus': Region for which the BYOC has been configured and where it is possible to create services
    - `cloudProvider` 'gcp' | 'aws' | 'azure': Cloud provider of the region
    - `displayName` string: Human readable name for infrastructure
    - `accessModel` string: How ClickHouse reaches the infrastructure: `standard` through a management role in your account, or `restricted` through a connector you install in a cluster you own

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-20** `6c2218858de8`: 9 info
  - added the new optional request property `accessModel`
  - added the new optional request property `restrictedFacts`
  - added the optional property `result/accessModel` to the response with the `200` status
  - removed the `infra-degraded` enum value from the `result/state` response property for the response status `200`
  - …5 more

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/byocInfrastructure/post.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
