Skip to content
Start here

Origin Cloud Regions

resource cloudflare_origin_cloud_region

required Expand Collapse
origin_ip: String

Origin IP address (IPv4 or IPv6). For the single PUT endpoint (PUT /origin/cloud_regions/{origin_ip}), this field must match the path parameter or the request will be rejected with a 400 error. For the batch PUT endpoint, this field identifies which mapping to upsert.

zone_id: String

Identifier.

region: String

Cloud vendor region identifier. Must be a valid region for the specified vendor as returned by the supported_regions endpoint.

vendor: String

Cloud vendor hosting the origin. Must be one of the supported vendors.

computed Expand Collapse
id: String

Origin IP address (IPv4 or IPv6). For the single PUT endpoint (PUT /origin/cloud_regions/{origin_ip}), this field must match the path parameter or the request will be rejected with a 400 error. For the batch PUT endpoint, this field identifies which mapping to upsert.

modified_on: Time

Time this mapping was last modified.

cloudflare_origin_cloud_region

resource "cloudflare_origin_cloud_region" "example_origin_cloud_region" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  origin_ip = "192.0.2.1"
  region = "us-east-1"
  vendor = "aws"
}

data cloudflare_origin_cloud_region

required Expand Collapse
origin_ip: String
zone_id: String

Identifier.

computed Expand Collapse
id: String
modified_on: Time

Time this mapping was last modified.

region: String

Cloud vendor region identifier.

vendor: String

Cloud vendor hosting the origin.

cloudflare_origin_cloud_region

data "cloudflare_origin_cloud_region" "example_origin_cloud_region" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  origin_ip = "192.0.2.1"
}

data cloudflare_origin_cloud_regions

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

The origin IP address (IPv4 or IPv6). Normalized to canonical form (RFC 5952 for IPv6).

origin_ip: String

The origin IP address (IPv4 or IPv6). Normalized to canonical form (RFC 5952 for IPv6).

region: String

Cloud vendor region identifier.

vendor: String

Cloud vendor hosting the origin.

modified_on: Time

Time this mapping was last modified.

cloudflare_origin_cloud_regions

data "cloudflare_origin_cloud_regions" "example_origin_cloud_regions" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}