published on Friday, Aug 28, 2026 by g-core
published on Friday, Aug 28, 2026 by g-core
Represent origin group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const originGroup1 = new gcore.CdnOrigingroup("origin_group_1", {
name: "origin_group_1",
useNext: true,
origins: [
{
source: "example.com",
enabled: true,
},
{
source: "mirror.example.com",
enabled: true,
backup: true,
},
],
});
const amazonS3OriginGroup = new gcore.CdnOrigingroup("amazon_s3_origin_group", {
name: "amazon_s3_origin_group",
auth: {
s3Type: "amazon",
s3AccessKeyId: "123*******************",
s3SecretAccessKey: "123*******************",
s3BucketName: "bucket-name",
s3Region: "eu-south-2",
},
});
const otherS3OriginGroup = new gcore.CdnOrigingroup("other_s3_origin_group", {
name: "other_s3_origin_group",
auth: {
s3Type: "other",
s3StorageHostname: "s3.example.com",
s3AccessKeyId: "123*******************",
s3SecretAccessKey: "123*******************",
s3BucketName: "bucket-name",
},
});
// Mixed origin group with host and S3 origins
const mixedOriginGroup = new gcore.CdnOrigingroup("mixed_origin_group", {
name: "mixed_origin_group",
useNext: true,
origins: [
{
source: "cdn.example.com",
enabled: true,
hostHeaderOverride: "origin.example.com",
},
{
originType: "s3",
enabled: true,
backup: true,
config: {
s3Type: "amazon",
s3BucketName: "my-bucket",
s3Region: "eu-west-1",
s3AccessKeyId: "123*******************",
s3SecretAccessKey: "123*******************",
},
},
],
});
// S3-only origin group using the new origin block syntax
const s3OriginGroupNew = new gcore.CdnOrigingroup("s3_origin_group_new", {
name: "s3_origin_group_new",
useNext: true,
origins: [{
originType: "s3",
enabled: true,
hostHeaderOverride: "storage.example.com",
config: {
s3Type: "other",
s3StorageHostname: "s3.example.com",
s3BucketName: "my-bucket",
s3AccessKeyId: "123*******************",
s3SecretAccessKey: "123*******************",
},
}],
});
import pulumi
import pulumi_gcore as gcore
origin_group1 = gcore.CdnOrigingroup("origin_group_1",
name="origin_group_1",
use_next=True,
origins=[
{
"source": "example.com",
"enabled": True,
},
{
"source": "mirror.example.com",
"enabled": True,
"backup": True,
},
])
amazon_s3_origin_group = gcore.CdnOrigingroup("amazon_s3_origin_group",
name="amazon_s3_origin_group",
auth={
"s3_type": "amazon",
"s3_access_key_id": "123*******************",
"s3_secret_access_key": "123*******************",
"s3_bucket_name": "bucket-name",
"s3_region": "eu-south-2",
})
other_s3_origin_group = gcore.CdnOrigingroup("other_s3_origin_group",
name="other_s3_origin_group",
auth={
"s3_type": "other",
"s3_storage_hostname": "s3.example.com",
"s3_access_key_id": "123*******************",
"s3_secret_access_key": "123*******************",
"s3_bucket_name": "bucket-name",
})
# Mixed origin group with host and S3 origins
mixed_origin_group = gcore.CdnOrigingroup("mixed_origin_group",
name="mixed_origin_group",
use_next=True,
origins=[
{
"source": "cdn.example.com",
"enabled": True,
"host_header_override": "origin.example.com",
},
{
"origin_type": "s3",
"enabled": True,
"backup": True,
"config": {
"s3_type": "amazon",
"s3_bucket_name": "my-bucket",
"s3_region": "eu-west-1",
"s3_access_key_id": "123*******************",
"s3_secret_access_key": "123*******************",
},
},
])
# S3-only origin group using the new origin block syntax
s3_origin_group_new = gcore.CdnOrigingroup("s3_origin_group_new",
name="s3_origin_group_new",
use_next=True,
origins=[{
"origin_type": "s3",
"enabled": True,
"host_header_override": "storage.example.com",
"config": {
"s3_type": "other",
"s3_storage_hostname": "s3.example.com",
"s3_bucket_name": "my-bucket",
"s3_access_key_id": "123*******************",
"s3_secret_access_key": "123*******************",
},
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewCdnOrigingroup(ctx, "origin_group_1", &gcore.CdnOrigingroupArgs{
Name: pulumi.String("origin_group_1"),
UseNext: pulumi.Bool(true),
Origins: gcore.CdnOrigingroupOriginArray{
&gcore.CdnOrigingroupOriginArgs{
Source: pulumi.String("example.com"),
Enabled: pulumi.Bool(true),
},
&gcore.CdnOrigingroupOriginArgs{
Source: pulumi.String("mirror.example.com"),
Enabled: pulumi.Bool(true),
Backup: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = gcore.NewCdnOrigingroup(ctx, "amazon_s3_origin_group", &gcore.CdnOrigingroupArgs{
Name: pulumi.String("amazon_s3_origin_group"),
Auth: &gcore.CdnOrigingroupAuthArgs{
S3Type: pulumi.String("amazon"),
S3AccessKeyId: pulumi.String("123*******************"),
S3SecretAccessKey: pulumi.String("123*******************"),
S3BucketName: pulumi.String("bucket-name"),
S3Region: pulumi.String("eu-south-2"),
},
})
if err != nil {
return err
}
_, err = gcore.NewCdnOrigingroup(ctx, "other_s3_origin_group", &gcore.CdnOrigingroupArgs{
Name: pulumi.String("other_s3_origin_group"),
Auth: &gcore.CdnOrigingroupAuthArgs{
S3Type: pulumi.String("other"),
S3StorageHostname: pulumi.String("s3.example.com"),
S3AccessKeyId: pulumi.String("123*******************"),
S3SecretAccessKey: pulumi.String("123*******************"),
S3BucketName: pulumi.String("bucket-name"),
},
})
if err != nil {
return err
}
// Mixed origin group with host and S3 origins
_, err = gcore.NewCdnOrigingroup(ctx, "mixed_origin_group", &gcore.CdnOrigingroupArgs{
Name: pulumi.String("mixed_origin_group"),
UseNext: pulumi.Bool(true),
Origins: gcore.CdnOrigingroupOriginArray{
&gcore.CdnOrigingroupOriginArgs{
Source: pulumi.String("cdn.example.com"),
Enabled: pulumi.Bool(true),
HostHeaderOverride: pulumi.String("origin.example.com"),
},
&gcore.CdnOrigingroupOriginArgs{
OriginType: pulumi.String("s3"),
Enabled: pulumi.Bool(true),
Backup: pulumi.Bool(true),
Config: &gcore.CdnOrigingroupOriginConfigArgs{
S3Type: pulumi.String("amazon"),
S3BucketName: pulumi.String("my-bucket"),
S3Region: pulumi.String("eu-west-1"),
S3AccessKeyId: pulumi.String("123*******************"),
S3SecretAccessKey: pulumi.String("123*******************"),
},
},
},
})
if err != nil {
return err
}
// S3-only origin group using the new origin block syntax
_, err = gcore.NewCdnOrigingroup(ctx, "s3_origin_group_new", &gcore.CdnOrigingroupArgs{
Name: pulumi.String("s3_origin_group_new"),
UseNext: pulumi.Bool(true),
Origins: gcore.CdnOrigingroupOriginArray{
&gcore.CdnOrigingroupOriginArgs{
OriginType: pulumi.String("s3"),
Enabled: pulumi.Bool(true),
HostHeaderOverride: pulumi.String("storage.example.com"),
Config: &gcore.CdnOrigingroupOriginConfigArgs{
S3Type: pulumi.String("other"),
S3StorageHostname: pulumi.String("s3.example.com"),
S3BucketName: pulumi.String("my-bucket"),
S3AccessKeyId: pulumi.String("123*******************"),
S3SecretAccessKey: pulumi.String("123*******************"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var originGroup1 = new Gcore.CdnOrigingroup("origin_group_1", new()
{
Name = "origin_group_1",
UseNext = true,
Origins = new[]
{
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
Source = "example.com",
Enabled = true,
},
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
Source = "mirror.example.com",
Enabled = true,
Backup = true,
},
},
});
var amazonS3OriginGroup = new Gcore.CdnOrigingroup("amazon_s3_origin_group", new()
{
Name = "amazon_s3_origin_group",
Auth = new Gcore.Inputs.CdnOrigingroupAuthArgs
{
S3Type = "amazon",
S3AccessKeyId = "123*******************",
S3SecretAccessKey = "123*******************",
S3BucketName = "bucket-name",
S3Region = "eu-south-2",
},
});
var otherS3OriginGroup = new Gcore.CdnOrigingroup("other_s3_origin_group", new()
{
Name = "other_s3_origin_group",
Auth = new Gcore.Inputs.CdnOrigingroupAuthArgs
{
S3Type = "other",
S3StorageHostname = "s3.example.com",
S3AccessKeyId = "123*******************",
S3SecretAccessKey = "123*******************",
S3BucketName = "bucket-name",
},
});
// Mixed origin group with host and S3 origins
var mixedOriginGroup = new Gcore.CdnOrigingroup("mixed_origin_group", new()
{
Name = "mixed_origin_group",
UseNext = true,
Origins = new[]
{
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
Source = "cdn.example.com",
Enabled = true,
HostHeaderOverride = "origin.example.com",
},
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
OriginType = "s3",
Enabled = true,
Backup = true,
Config = new Gcore.Inputs.CdnOrigingroupOriginConfigArgs
{
S3Type = "amazon",
S3BucketName = "my-bucket",
S3Region = "eu-west-1",
S3AccessKeyId = "123*******************",
S3SecretAccessKey = "123*******************",
},
},
},
});
// S3-only origin group using the new origin block syntax
var s3OriginGroupNew = new Gcore.CdnOrigingroup("s3_origin_group_new", new()
{
Name = "s3_origin_group_new",
UseNext = true,
Origins = new[]
{
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
OriginType = "s3",
Enabled = true,
HostHeaderOverride = "storage.example.com",
Config = new Gcore.Inputs.CdnOrigingroupOriginConfigArgs
{
S3Type = "other",
S3StorageHostname = "s3.example.com",
S3BucketName = "my-bucket",
S3AccessKeyId = "123*******************",
S3SecretAccessKey = "123*******************",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnOrigingroup;
import com.pulumi.gcore.CdnOrigingroupArgs;
import com.pulumi.gcore.inputs.CdnOrigingroupOriginArgs;
import com.pulumi.gcore.inputs.CdnOrigingroupAuthArgs;
import com.pulumi.gcore.inputs.CdnOrigingroupOriginConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var originGroup1 = new CdnOrigingroup("originGroup1", CdnOrigingroupArgs.builder()
.name("origin_group_1")
.useNext(true)
.origins(
CdnOrigingroupOriginArgs.builder()
.source("example.com")
.enabled(true)
.build(),
CdnOrigingroupOriginArgs.builder()
.source("mirror.example.com")
.enabled(true)
.backup(true)
.build())
.build());
var amazonS3OriginGroup = new CdnOrigingroup("amazonS3OriginGroup", CdnOrigingroupArgs.builder()
.name("amazon_s3_origin_group")
.auth(CdnOrigingroupAuthArgs.builder()
.s3Type("amazon")
.s3AccessKeyId("123*******************")
.s3SecretAccessKey("123*******************")
.s3BucketName("bucket-name")
.s3Region("eu-south-2")
.build())
.build());
var otherS3OriginGroup = new CdnOrigingroup("otherS3OriginGroup", CdnOrigingroupArgs.builder()
.name("other_s3_origin_group")
.auth(CdnOrigingroupAuthArgs.builder()
.s3Type("other")
.s3StorageHostname("s3.example.com")
.s3AccessKeyId("123*******************")
.s3SecretAccessKey("123*******************")
.s3BucketName("bucket-name")
.build())
.build());
// Mixed origin group with host and S3 origins
var mixedOriginGroup = new CdnOrigingroup("mixedOriginGroup", CdnOrigingroupArgs.builder()
.name("mixed_origin_group")
.useNext(true)
.origins(
CdnOrigingroupOriginArgs.builder()
.source("cdn.example.com")
.enabled(true)
.hostHeaderOverride("origin.example.com")
.build(),
CdnOrigingroupOriginArgs.builder()
.originType("s3")
.enabled(true)
.backup(true)
.config(CdnOrigingroupOriginConfigArgs.builder()
.s3Type("amazon")
.s3BucketName("my-bucket")
.s3Region("eu-west-1")
.s3AccessKeyId("123*******************")
.s3SecretAccessKey("123*******************")
.build())
.build())
.build());
// S3-only origin group using the new origin block syntax
var s3OriginGroupNew = new CdnOrigingroup("s3OriginGroupNew", CdnOrigingroupArgs.builder()
.name("s3_origin_group_new")
.useNext(true)
.origins(CdnOrigingroupOriginArgs.builder()
.originType("s3")
.enabled(true)
.hostHeaderOverride("storage.example.com")
.config(CdnOrigingroupOriginConfigArgs.builder()
.s3Type("other")
.s3StorageHostname("s3.example.com")
.s3BucketName("my-bucket")
.s3AccessKeyId("123*******************")
.s3SecretAccessKey("123*******************")
.build())
.build())
.build());
}
}
resources:
originGroup1:
type: gcore:CdnOrigingroup
name: origin_group_1
properties:
name: origin_group_1
useNext: true
origins:
- source: example.com
enabled: true
- source: mirror.example.com
enabled: true
backup: true
amazonS3OriginGroup:
type: gcore:CdnOrigingroup
name: amazon_s3_origin_group
properties:
name: amazon_s3_origin_group
auth:
s3Type: amazon
s3AccessKeyId: 123*******************
s3SecretAccessKey: 123*******************
s3BucketName: bucket-name
s3Region: eu-south-2
otherS3OriginGroup:
type: gcore:CdnOrigingroup
name: other_s3_origin_group
properties:
name: other_s3_origin_group
auth:
s3Type: other
s3StorageHostname: s3.example.com
s3AccessKeyId: 123*******************
s3SecretAccessKey: 123*******************
s3BucketName: bucket-name
# Mixed origin group with host and S3 origins
mixedOriginGroup:
type: gcore:CdnOrigingroup
name: mixed_origin_group
properties:
name: mixed_origin_group
useNext: true
origins:
- source: cdn.example.com
enabled: true
hostHeaderOverride: origin.example.com
- originType: s3
enabled: true
backup: true
config:
s3Type: amazon
s3BucketName: my-bucket
s3Region: eu-west-1
s3AccessKeyId: 123*******************
s3SecretAccessKey: 123*******************
# S3-only origin group using the new origin block syntax
s3OriginGroupNew:
type: gcore:CdnOrigingroup
name: s3_origin_group_new
properties:
name: s3_origin_group_new
useNext: true
origins:
- originType: s3
enabled: true
hostHeaderOverride: storage.example.com
config:
s3Type: other
s3StorageHostname: s3.example.com
s3BucketName: my-bucket
s3AccessKeyId: 123*******************
s3SecretAccessKey: 123*******************
Example coming soon!
Create CdnOrigingroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnOrigingroup(name: string, args?: CdnOrigingroupArgs, opts?: CustomResourceOptions);@overload
def CdnOrigingroup(resource_name: str,
args: Optional[CdnOrigingroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CdnOrigingroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth: Optional[CdnOrigingroupAuthArgs] = None,
cdn_origingroup_id: Optional[str] = None,
name: Optional[str] = None,
origins: Optional[Sequence[CdnOrigingroupOriginArgs]] = None,
proxy_next_upstreams: Optional[Sequence[str]] = None,
use_next: Optional[bool] = None)func NewCdnOrigingroup(ctx *Context, name string, args *CdnOrigingroupArgs, opts ...ResourceOption) (*CdnOrigingroup, error)public CdnOrigingroup(string name, CdnOrigingroupArgs? args = null, CustomResourceOptions? opts = null)
public CdnOrigingroup(String name, CdnOrigingroupArgs args)
public CdnOrigingroup(String name, CdnOrigingroupArgs args, CustomResourceOptions options)
type: gcore:CdnOrigingroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcore_cdn_origingroup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CdnOrigingroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CdnOrigingroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CdnOrigingroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnOrigingroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnOrigingroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cdnOrigingroupResource = new Gcore.CdnOrigingroup("cdnOrigingroupResource", new()
{
CdnOrigingroupId = "string",
Name = "string",
Origins = new[]
{
new Gcore.Inputs.CdnOrigingroupOriginArgs
{
Backup = false,
Config = new Gcore.Inputs.CdnOrigingroupOriginConfigArgs
{
S3AccessKeyId = "string",
S3BucketName = "string",
S3SecretAccessKey = "string",
S3Type = "string",
S3AuthType = "string",
S3Region = "string",
S3StorageHostname = "string",
},
Enabled = false,
HostHeaderOverride = "string",
OriginType = "string",
Source = "string",
},
},
ProxyNextUpstreams = new[]
{
"string",
},
UseNext = false,
});
example, err := gcore.NewCdnOrigingroup(ctx, "cdnOrigingroupResource", &gcore.CdnOrigingroupArgs{
CdnOrigingroupId: pulumi.String("string"),
Name: pulumi.String("string"),
Origins: gcore.CdnOrigingroupOriginArray{
&gcore.CdnOrigingroupOriginArgs{
Backup: pulumi.Bool(false),
Config: &gcore.CdnOrigingroupOriginConfigArgs{
S3AccessKeyId: pulumi.String("string"),
S3BucketName: pulumi.String("string"),
S3SecretAccessKey: pulumi.String("string"),
S3Type: pulumi.String("string"),
S3AuthType: pulumi.String("string"),
S3Region: pulumi.String("string"),
S3StorageHostname: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
HostHeaderOverride: pulumi.String("string"),
OriginType: pulumi.String("string"),
Source: pulumi.String("string"),
},
},
ProxyNextUpstreams: pulumi.StringArray{
pulumi.String("string"),
},
UseNext: pulumi.Bool(false),
})
resource "gcore_cdn_origingroup" "cdnOrigingroupResource" {
lifecycle {
create_before_destroy = true
}
cdn_origingroup_id = "string"
name = "string"
origins {
backup = false
config = {
s3_access_key_id = "string"
s3_bucket_name = "string"
s3_secret_access_key = "string"
s3_type = "string"
s3_auth_type = "string"
s3_region = "string"
s3_storage_hostname = "string"
}
enabled = false
host_header_override = "string"
origin_type = "string"
source = "string"
}
proxy_next_upstreams = ["string"]
use_next = false
}
var cdnOrigingroupResource = new CdnOrigingroup("cdnOrigingroupResource", CdnOrigingroupArgs.builder()
.cdnOrigingroupId("string")
.name("string")
.origins(CdnOrigingroupOriginArgs.builder()
.backup(false)
.config(CdnOrigingroupOriginConfigArgs.builder()
.s3AccessKeyId("string")
.s3BucketName("string")
.s3SecretAccessKey("string")
.s3Type("string")
.s3AuthType("string")
.s3Region("string")
.s3StorageHostname("string")
.build())
.enabled(false)
.hostHeaderOverride("string")
.originType("string")
.source("string")
.build())
.proxyNextUpstreams("string")
.useNext(false)
.build());
cdn_origingroup_resource = gcore.CdnOrigingroup("cdnOrigingroupResource",
cdn_origingroup_id="string",
name="string",
origins=[{
"backup": False,
"config": {
"s3_access_key_id": "string",
"s3_bucket_name": "string",
"s3_secret_access_key": "string",
"s3_type": "string",
"s3_auth_type": "string",
"s3_region": "string",
"s3_storage_hostname": "string",
},
"enabled": False,
"host_header_override": "string",
"origin_type": "string",
"source": "string",
}],
proxy_next_upstreams=["string"],
use_next=False)
const cdnOrigingroupResource = new gcore.CdnOrigingroup("cdnOrigingroupResource", {
cdnOrigingroupId: "string",
name: "string",
origins: [{
backup: false,
config: {
s3AccessKeyId: "string",
s3BucketName: "string",
s3SecretAccessKey: "string",
s3Type: "string",
s3AuthType: "string",
s3Region: "string",
s3StorageHostname: "string",
},
enabled: false,
hostHeaderOverride: "string",
originType: "string",
source: "string",
}],
proxyNextUpstreams: ["string"],
useNext: false,
});
type: gcore:CdnOrigingroup
properties:
cdnOrigingroupId: string
name: string
origins:
- backup: false
config:
s3AccessKeyId: string
s3AuthType: string
s3BucketName: string
s3Region: string
s3SecretAccessKey: string
s3StorageHostname: string
s3Type: string
enabled: false
hostHeaderOverride: string
originType: string
source: string
proxyNextUpstreams:
- string
useNext: false
CdnOrigingroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CdnOrigingroup resource accepts the following input properties:
- Auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - Cdn
Origingroup stringId - The ID of this resource.
- Name string
- Name of the origin group
- Origins
List<Cdn
Origingroup Origin> - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - Proxy
Next List<string>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- Use
Next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- Auth
Cdn
Origingroup Auth Args - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - Cdn
Origingroup stringId - The ID of this resource.
- Name string
- Name of the origin group
- Origins
[]Cdn
Origingroup Origin Args - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - Proxy
Next []stringUpstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- Use
Next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth object
- Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn_
origingroup_ stringid - The ID of this resource.
- name string
- Name of the origin group
- origins list(object)
- Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy_
next_ list(string)upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use_
next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup StringId - The ID of this resource.
- name String
- Name of the origin group
- origins
List<Cdn
Origingroup Origin> - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next List<String>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next Boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup stringId - The ID of this resource.
- name string
- Name of the origin group
- origins
Cdn
Origingroup Origin[] - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next string[]Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth Args - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn_
origingroup_ strid - The ID of this resource.
- name str
- Name of the origin group
- origins
Sequence[Cdn
Origingroup Origin Args] - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy_
next_ Sequence[str]upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use_
next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth Property Map
- Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup StringId - The ID of this resource.
- name String
- Name of the origin group
- origins List<Property Map>
- Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next List<String>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next Boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnOrigingroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CdnOrigingroup Resource
Get an existing CdnOrigingroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CdnOrigingroupState, opts?: CustomResourceOptions): CdnOrigingroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth: Optional[CdnOrigingroupAuthArgs] = None,
cdn_origingroup_id: Optional[str] = None,
name: Optional[str] = None,
origins: Optional[Sequence[CdnOrigingroupOriginArgs]] = None,
proxy_next_upstreams: Optional[Sequence[str]] = None,
use_next: Optional[bool] = None) -> CdnOrigingroupfunc GetCdnOrigingroup(ctx *Context, name string, id IDInput, state *CdnOrigingroupState, opts ...ResourceOption) (*CdnOrigingroup, error)public static CdnOrigingroup Get(string name, Input<string> id, CdnOrigingroupState? state, CustomResourceOptions? opts = null)public static CdnOrigingroup get(String name, Output<String> id, CdnOrigingroupState state, CustomResourceOptions options)resources: _: type: gcore:CdnOrigingroup get: id: ${id}import {
to = gcore_cdn_origingroup.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - Cdn
Origingroup stringId - The ID of this resource.
- Name string
- Name of the origin group
- Origins
List<Cdn
Origingroup Origin> - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - Proxy
Next List<string>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- Use
Next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- Auth
Cdn
Origingroup Auth Args - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - Cdn
Origingroup stringId - The ID of this resource.
- Name string
- Name of the origin group
- Origins
[]Cdn
Origingroup Origin Args - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - Proxy
Next []stringUpstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- Use
Next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth object
- Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn_
origingroup_ stringid - The ID of this resource.
- name string
- Name of the origin group
- origins list(object)
- Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy_
next_ list(string)upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use_
next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup StringId - The ID of this resource.
- name String
- Name of the origin group
- origins
List<Cdn
Origingroup Origin> - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next List<String>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next Boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup stringId - The ID of this resource.
- name string
- Name of the origin group
- origins
Cdn
Origingroup Origin[] - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next string[]Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth
Cdn
Origingroup Auth Args - Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn_
origingroup_ strid - The ID of this resource.
- name str
- Name of the origin group
- origins
Sequence[Cdn
Origingroup Origin Args] - Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy_
next_ Sequence[str]upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use_
next bool - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
- auth Property Map
- Deprecated: Authentication configuration for S3 storage. Use
originblocks withorigin_type = "s3"instead. - cdn
Origingroup StringId - The ID of this resource.
- name String
- Name of the origin group
- origins List<Property Map>
- Contains information about origins in the group. Each origin can be a host origin or an S3 origin. Host origins require
source, S3 origins requireorigin_type = "s3"and aconfigblock. - proxy
Next List<String>Upstreams - Available values: error, timeout, invalidheader, http403, http404, http429, http500, http502, http503, http504.
- use
Next Boolean - This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled.
Supporting Types
CdnOrigingroupAuth, CdnOrigingroupAuthArgs
- S3Access
Key stringId - Access key ID for the S3 storage
- S3Bucket
Name string - Bucket name of the S3 storage
- S3Secret
Access stringKey - Secret access key for the S3 storage
- S3Type string
- Type of the S3 storage, accepted values: 'other' or 'amazon'
- S3Region string
- Region of the S3 storage, required if s3_type is 'amazon'
- S3Storage
Hostname string - Hostname of the S3 storage, required if s3_type is 'other'
- S3Access
Key stringId - Access key ID for the S3 storage
- S3Bucket
Name string - Bucket name of the S3 storage
- S3Secret
Access stringKey - Secret access key for the S3 storage
- S3Type string
- Type of the S3 storage, accepted values: 'other' or 'amazon'
- S3Region string
- Region of the S3 storage, required if s3_type is 'amazon'
- S3Storage
Hostname string - Hostname of the S3 storage, required if s3_type is 'other'
- s3_
access_ stringkey_ id - Access key ID for the S3 storage
- s3_
bucket_ stringname - Bucket name of the S3 storage
- s3_
secret_ stringaccess_ key - Secret access key for the S3 storage
- s3_
type string - Type of the S3 storage, accepted values: 'other' or 'amazon'
- s3_
region string - Region of the S3 storage, required if s3_type is 'amazon'
- s3_
storage_ stringhostname - Hostname of the S3 storage, required if s3_type is 'other'
- s3Access
Key StringId - Access key ID for the S3 storage
- s3Bucket
Name String - Bucket name of the S3 storage
- s3Secret
Access StringKey - Secret access key for the S3 storage
- s3Type String
- Type of the S3 storage, accepted values: 'other' or 'amazon'
- s3Region String
- Region of the S3 storage, required if s3_type is 'amazon'
- s3Storage
Hostname String - Hostname of the S3 storage, required if s3_type is 'other'
- s3Access
Key stringId - Access key ID for the S3 storage
- s3Bucket
Name string - Bucket name of the S3 storage
- s3Secret
Access stringKey - Secret access key for the S3 storage
- s3Type string
- Type of the S3 storage, accepted values: 'other' or 'amazon'
- s3Region string
- Region of the S3 storage, required if s3_type is 'amazon'
- s3Storage
Hostname string - Hostname of the S3 storage, required if s3_type is 'other'
- s3_
access_ strkey_ id - Access key ID for the S3 storage
- s3_
bucket_ strname - Bucket name of the S3 storage
- s3_
secret_ straccess_ key - Secret access key for the S3 storage
- s3_
type str - Type of the S3 storage, accepted values: 'other' or 'amazon'
- s3_
region str - Region of the S3 storage, required if s3_type is 'amazon'
- s3_
storage_ strhostname - Hostname of the S3 storage, required if s3_type is 'other'
- s3Access
Key StringId - Access key ID for the S3 storage
- s3Bucket
Name String - Bucket name of the S3 storage
- s3Secret
Access StringKey - Secret access key for the S3 storage
- s3Type String
- Type of the S3 storage, accepted values: 'other' or 'amazon'
- s3Region String
- Region of the S3 storage, required if s3_type is 'amazon'
- s3Storage
Hostname String - Hostname of the S3 storage, required if s3_type is 'other'
CdnOrigingroupOrigin, CdnOrigingroupOriginArgs
- Backup bool
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- Config
Cdn
Origingroup Origin Config - S3 configuration for the origin. Required when origin_type is 's3'.
- Enabled bool
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- Host
Header stringOverride - Per-origin host header override.
- Origin
Type string - Type of the origin: 'host' (default) or 's3'.
- Source string
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- Backup bool
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- Config
Cdn
Origingroup Origin Config - S3 configuration for the origin. Required when origin_type is 's3'.
- Enabled bool
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- Host
Header stringOverride - Per-origin host header override.
- Origin
Type string - Type of the origin: 'host' (default) or 's3'.
- Source string
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- backup bool
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- config object
- S3 configuration for the origin. Required when origin_type is 's3'.
- enabled bool
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- host_
header_ stringoverride - Per-origin host header override.
- origin_
type string - Type of the origin: 'host' (default) or 's3'.
- source string
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- backup Boolean
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- config
Cdn
Origingroup Origin Config - S3 configuration for the origin. Required when origin_type is 's3'.
- enabled Boolean
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- host
Header StringOverride - Per-origin host header override.
- origin
Type String - Type of the origin: 'host' (default) or 's3'.
- source String
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- backup boolean
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- config
Cdn
Origingroup Origin Config - S3 configuration for the origin. Required when origin_type is 's3'.
- enabled boolean
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- host
Header stringOverride - Per-origin host header override.
- origin
Type string - Type of the origin: 'host' (default) or 's3'.
- source string
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- backup bool
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- config
Cdn
Origingroup Origin Config - S3 configuration for the origin. Required when origin_type is 's3'.
- enabled bool
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- host_
header_ stroverride - Per-origin host header override.
- origin_
type str - Type of the origin: 'host' (default) or 's3'.
- source str
- IP address or Domain name of your origin and the port if custom. Required for host origins.
- backup Boolean
- Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable. Default value is false.
- config Property Map
- S3 configuration for the origin. Required when origin_type is 's3'.
- enabled Boolean
- The setting allows to enable or disable an Origin source in the Origins group. Default value is true.
- host
Header StringOverride - Per-origin host header override.
- origin
Type String - Type of the origin: 'host' (default) or 's3'.
- source String
- IP address or Domain name of your origin and the port if custom. Required for host origins.
CdnOrigingroupOriginConfig, CdnOrigingroupOriginConfigArgs
- S3Access
Key stringId - S3 access key ID.
- S3Bucket
Name string - S3 bucket name.
- S3Secret
Access stringKey - S3 secret access key.
- S3Type string
- Type of S3 storage: 'amazon' or 'other'.
- S3Auth
Type string - S3 authentication type. Default: 'awsSignatureV4'.
- S3Region string
- S3 region. Required when s3_type is 'amazon'.
- S3Storage
Hostname string - S3 storage hostname. Required when s3_type is 'other'.
- S3Access
Key stringId - S3 access key ID.
- S3Bucket
Name string - S3 bucket name.
- S3Secret
Access stringKey - S3 secret access key.
- S3Type string
- Type of S3 storage: 'amazon' or 'other'.
- S3Auth
Type string - S3 authentication type. Default: 'awsSignatureV4'.
- S3Region string
- S3 region. Required when s3_type is 'amazon'.
- S3Storage
Hostname string - S3 storage hostname. Required when s3_type is 'other'.
- s3_
access_ stringkey_ id - S3 access key ID.
- s3_
bucket_ stringname - S3 bucket name.
- s3_
secret_ stringaccess_ key - S3 secret access key.
- s3_
type string - Type of S3 storage: 'amazon' or 'other'.
- s3_
auth_ stringtype - S3 authentication type. Default: 'awsSignatureV4'.
- s3_
region string - S3 region. Required when s3_type is 'amazon'.
- s3_
storage_ stringhostname - S3 storage hostname. Required when s3_type is 'other'.
- s3Access
Key StringId - S3 access key ID.
- s3Bucket
Name String - S3 bucket name.
- s3Secret
Access StringKey - S3 secret access key.
- s3Type String
- Type of S3 storage: 'amazon' or 'other'.
- s3Auth
Type String - S3 authentication type. Default: 'awsSignatureV4'.
- s3Region String
- S3 region. Required when s3_type is 'amazon'.
- s3Storage
Hostname String - S3 storage hostname. Required when s3_type is 'other'.
- s3Access
Key stringId - S3 access key ID.
- s3Bucket
Name string - S3 bucket name.
- s3Secret
Access stringKey - S3 secret access key.
- s3Type string
- Type of S3 storage: 'amazon' or 'other'.
- s3Auth
Type string - S3 authentication type. Default: 'awsSignatureV4'.
- s3Region string
- S3 region. Required when s3_type is 'amazon'.
- s3Storage
Hostname string - S3 storage hostname. Required when s3_type is 'other'.
- s3_
access_ strkey_ id - S3 access key ID.
- s3_
bucket_ strname - S3 bucket name.
- s3_
secret_ straccess_ key - S3 secret access key.
- s3_
type str - Type of S3 storage: 'amazon' or 'other'.
- s3_
auth_ strtype - S3 authentication type. Default: 'awsSignatureV4'.
- s3_
region str - S3 region. Required when s3_type is 'amazon'.
- s3_
storage_ strhostname - S3 storage hostname. Required when s3_type is 'other'.
- s3Access
Key StringId - S3 access key ID.
- s3Bucket
Name String - S3 bucket name.
- s3Secret
Access StringKey - S3 secret access key.
- s3Type String
- Type of S3 storage: 'amazon' or 'other'.
- s3Auth
Type String - S3 authentication type. Default: 'awsSignatureV4'.
- s3Region String
- S3 region. Required when s3_type is 'amazon'.
- s3Storage
Hostname String - S3 storage hostname. Required when s3_type is 'other'.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Friday, Aug 28, 2026 by g-core