Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
published on Wednesday, May 6, 2026 by stackitcloud
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
published on Wednesday, May 6, 2026 by stackitcloud
CDN distribution data source schema.
This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.
Example Usage
data "stackit_cdn_distribution" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
distribution_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Using getCdnDistribution
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCdnDistribution(args: GetCdnDistributionArgs, opts?: InvokeOptions): Promise<GetCdnDistributionResult>
function getCdnDistributionOutput(args: GetCdnDistributionOutputArgs, opts?: InvokeOptions): Output<GetCdnDistributionResult>def get_cdn_distribution(distribution_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnDistributionResult
def get_cdn_distribution_output(distribution_id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnDistributionResult]func LookupCdnDistribution(ctx *Context, args *LookupCdnDistributionArgs, opts ...InvokeOption) (*LookupCdnDistributionResult, error)
func LookupCdnDistributionOutput(ctx *Context, args *LookupCdnDistributionOutputArgs, opts ...InvokeOption) LookupCdnDistributionResultOutput> Note: This function is named LookupCdnDistribution in the Go SDK.
public static class GetCdnDistribution
{
public static Task<GetCdnDistributionResult> InvokeAsync(GetCdnDistributionArgs args, InvokeOptions? opts = null)
public static Output<GetCdnDistributionResult> Invoke(GetCdnDistributionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCdnDistributionResult> getCdnDistribution(GetCdnDistributionArgs args, InvokeOptions options)
public static Output<GetCdnDistributionResult> getCdnDistribution(GetCdnDistributionArgs args, InvokeOptions options)
fn::invoke:
function: stackit:index/getCdnDistribution:getCdnDistribution
arguments:
# arguments dictionaryThe following arguments are supported:
- Distribution
Id string - STACKIT project ID associated with the distribution
- Project
Id string - STACKIT project ID associated with the distribution
- Distribution
Id string - STACKIT project ID associated with the distribution
- Project
Id string - STACKIT project ID associated with the distribution
- distribution
Id String - STACKIT project ID associated with the distribution
- project
Id String - STACKIT project ID associated with the distribution
- distribution
Id string - STACKIT project ID associated with the distribution
- project
Id string - STACKIT project ID associated with the distribution
- distribution_
id str - STACKIT project ID associated with the distribution
- project_
id str - STACKIT project ID associated with the distribution
- distribution
Id String - STACKIT project ID associated with the distribution
- project
Id String - STACKIT project ID associated with the distribution
getCdnDistribution Result
The following output properties are available:
- Config
Get
Cdn Distribution Config - The distribution configuration
- Created
At string - Time when the distribution was created
- Distribution
Id string - STACKIT project ID associated with the distribution
- Domains
List<Get
Cdn Distribution Domain> - List of configured domains for the distribution
- Errors List<string>
- List of distribution errors
- Id string
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - Project
Id string - STACKIT project ID associated with the distribution
- Status string
- Status of the distribution
- Updated
At string - Time when the distribution was last updated
- Config
Get
Cdn Distribution Config - The distribution configuration
- Created
At string - Time when the distribution was created
- Distribution
Id string - STACKIT project ID associated with the distribution
- Domains
[]Get
Cdn Distribution Domain - List of configured domains for the distribution
- Errors []string
- List of distribution errors
- Id string
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - Project
Id string - STACKIT project ID associated with the distribution
- Status string
- Status of the distribution
- Updated
At string - Time when the distribution was last updated
- config
Get
Cdn Distribution Config - The distribution configuration
- created
At String - Time when the distribution was created
- distribution
Id String - STACKIT project ID associated with the distribution
- domains
List<Get
Cdn Distribution Domain> - List of configured domains for the distribution
- errors List<String>
- List of distribution errors
- id String
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - project
Id String - STACKIT project ID associated with the distribution
- status String
- Status of the distribution
- updated
At String - Time when the distribution was last updated
- config
Get
Cdn Distribution Config - The distribution configuration
- created
At string - Time when the distribution was created
- distribution
Id string - STACKIT project ID associated with the distribution
- domains
Get
Cdn Distribution Domain[] - List of configured domains for the distribution
- errors string[]
- List of distribution errors
- id string
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - project
Id string - STACKIT project ID associated with the distribution
- status string
- Status of the distribution
- updated
At string - Time when the distribution was last updated
- config
Get
Cdn Distribution Config - The distribution configuration
- created_
at str - Time when the distribution was created
- distribution_
id str - STACKIT project ID associated with the distribution
- domains
Sequence[Get
Cdn Distribution Domain] - List of configured domains for the distribution
- errors Sequence[str]
- List of distribution errors
- id str
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - project_
id str - STACKIT project ID associated with the distribution
- status str
- Status of the distribution
- updated_
at str - Time when the distribution was last updated
- config Property Map
- The distribution configuration
- created
At String - Time when the distribution was created
- distribution
Id String - STACKIT project ID associated with the distribution
- domains List<Property Map>
- List of configured domains for the distribution
- errors List<String>
- List of distribution errors
- id String
- Terraform's internal resource identifier. It is structured as "
projectId,distributionId". - project
Id String - STACKIT project ID associated with the distribution
- status String
- Status of the distribution
- updated
At String - Time when the distribution was last updated
Supporting Types
GetCdnDistributionConfig
- Backend
Get
Cdn Distribution Config Backend - The configured backend for the distribution
- Optimizer
Get
Cdn Distribution Config Optimizer - Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- Redirects
Get
Cdn Distribution Config Redirects - A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- Regions List<string>
- The configured regions where content will be hosted
- Blocked
Countries List<string> - The configured countries where distribution of content is blocked
- Backend
Get
Cdn Distribution Config Backend - The configured backend for the distribution
- Optimizer
Get
Cdn Distribution Config Optimizer - Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- Redirects
Get
Cdn Distribution Config Redirects - A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- Regions []string
- The configured regions where content will be hosted
- Blocked
Countries []string - The configured countries where distribution of content is blocked
- backend
Get
Cdn Distribution Config Backend - The configured backend for the distribution
- optimizer
Get
Cdn Distribution Config Optimizer - Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- redirects
Get
Cdn Distribution Config Redirects - A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- regions List<String>
- The configured regions where content will be hosted
- blocked
Countries List<String> - The configured countries where distribution of content is blocked
- backend
Get
Cdn Distribution Config Backend - The configured backend for the distribution
- optimizer
Get
Cdn Distribution Config Optimizer - Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- redirects
Get
Cdn Distribution Config Redirects - A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- regions string[]
- The configured regions where content will be hosted
- blocked
Countries string[] - The configured countries where distribution of content is blocked
- backend
Get
Cdn Distribution Config Backend - The configured backend for the distribution
- optimizer
Get
Cdn Distribution Config Optimizer - Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- redirects
Get
Cdn Distribution Config Redirects - A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- regions Sequence[str]
- The configured regions where content will be hosted
- blocked_
countries Sequence[str] - The configured countries where distribution of content is blocked
- backend Property Map
- The configured backend for the distribution
- optimizer Property Map
- Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience.
- redirects Property Map
- A wrapper for a list of redirect rules that allows for redirect settings on a distribution
- regions List<String>
- The configured regions where content will be hosted
- blocked
Countries List<String> - The configured countries where distribution of content is blocked
GetCdnDistributionConfigBackend
- Bucket
Url string - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- Geofencing
Dictionary<string, Immutable
Array<string>> - The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- Origin
Request Dictionary<string, string>Headers - The configured type http origin request headers for the backend
- Origin
Url string - The configured backend type http for the distribution
- Region string
- The region where the bucket is hosted. Required if type is 'bucket'.
- Type string
- The configured backend type. Possible values are:
http,bucket.
- Bucket
Url string - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- Geofencing map[string][]string
- The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- Origin
Request map[string]stringHeaders - The configured type http origin request headers for the backend
- Origin
Url string - The configured backend type http for the distribution
- Region string
- The region where the bucket is hosted. Required if type is 'bucket'.
- Type string
- The configured backend type. Possible values are:
http,bucket.
- bucket
Url String - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- geofencing Map<String,List<String>>
- The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- origin
Request Map<String,String>Headers - The configured type http origin request headers for the backend
- origin
Url String - The configured backend type http for the distribution
- region String
- The region where the bucket is hosted. Required if type is 'bucket'.
- type String
- The configured backend type. Possible values are:
http,bucket.
- bucket
Url string - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- geofencing {[key: string]: string[]}
- The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- origin
Request {[key: string]: string}Headers - The configured type http origin request headers for the backend
- origin
Url string - The configured backend type http for the distribution
- region string
- The region where the bucket is hosted. Required if type is 'bucket'.
- type string
- The configured backend type. Possible values are:
http,bucket.
- bucket_
url str - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- geofencing Mapping[str, Sequence[str]]
- The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- origin_
request_ Mapping[str, str]headers - The configured type http origin request headers for the backend
- origin_
url str - The configured backend type http for the distribution
- region str
- The region where the bucket is hosted. Required if type is 'bucket'.
- type str
- The configured backend type. Possible values are:
http,bucket.
- bucket
Url String - The URL of the bucket (e.g. https://s3.example.com). Required if type is 'bucket'.
- geofencing Map<List<String>>
- The configured type http to configure countries where content is allowed. A map of URLs to a list of countries
- origin
Request Map<String>Headers - The configured type http origin request headers for the backend
- origin
Url String - The configured backend type http for the distribution
- region String
- The region where the bucket is hosted. Required if type is 'bucket'.
- type String
- The configured backend type. Possible values are:
http,bucket.
GetCdnDistributionConfigOptimizer
- Enabled bool
- Enabled bool
- enabled Boolean
- enabled boolean
- enabled bool
- enabled Boolean
GetCdnDistributionConfigRedirects
- Rules
List<Get
Cdn Distribution Config Redirects Rule> - A list of redirect rules. The order of rules matters for evaluation
- Rules
[]Get
Cdn Distribution Config Redirects Rule - A list of redirect rules. The order of rules matters for evaluation
- rules
List<Get
Cdn Distribution Config Redirects Rule> - A list of redirect rules. The order of rules matters for evaluation
- rules
Get
Cdn Distribution Config Redirects Rule[] - A list of redirect rules. The order of rules matters for evaluation
- rules
Sequence[Get
Cdn Distribution Config Redirects Rule] - A list of redirect rules. The order of rules matters for evaluation
- rules List<Property Map>
- A list of redirect rules. The order of rules matters for evaluation
GetCdnDistributionConfigRedirectsRule
- Description string
- An optional description for the redirect rule
- Enabled bool
- A toggle to enable or disable the redirect rule. Default to true
- Matchers
List<Get
Cdn Distribution Config Redirects Rule Matcher> - A list of matchers that define when this rule should apply. At least one matcher is required
- Rule
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- Status
Code int - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- Target
Url string - The target URL to redirect to. Must be a valid URI
- Description string
- An optional description for the redirect rule
- Enabled bool
- A toggle to enable or disable the redirect rule. Default to true
- Matchers
[]Get
Cdn Distribution Config Redirects Rule Matcher - A list of matchers that define when this rule should apply. At least one matcher is required
- Rule
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- Status
Code int - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- Target
Url string - The target URL to redirect to. Must be a valid URI
- description String
- An optional description for the redirect rule
- enabled Boolean
- A toggle to enable or disable the redirect rule. Default to true
- matchers
List<Get
Cdn Distribution Config Redirects Rule Matcher> - A list of matchers that define when this rule should apply. At least one matcher is required
- rule
Match StringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- status
Code Integer - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- target
Url String - The target URL to redirect to. Must be a valid URI
- description string
- An optional description for the redirect rule
- enabled boolean
- A toggle to enable or disable the redirect rule. Default to true
- matchers
Get
Cdn Distribution Config Redirects Rule Matcher[] - A list of matchers that define when this rule should apply. At least one matcher is required
- rule
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- status
Code number - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- target
Url string - The target URL to redirect to. Must be a valid URI
- description str
- An optional description for the redirect rule
- enabled bool
- A toggle to enable or disable the redirect rule. Default to true
- matchers
Sequence[Get
Cdn Distribution Config Redirects Rule Matcher] - A list of matchers that define when this rule should apply. At least one matcher is required
- rule_
match_ strcondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- status_
code int - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- target_
url str - The target URL to redirect to. Must be a valid URI
- description String
- An optional description for the redirect rule
- enabled Boolean
- A toggle to enable or disable the redirect rule. Default to true
- matchers List<Property Map>
- A list of matchers that define when this rule should apply. At least one matcher is required
- rule
Match StringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- status
Code Number - The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
- target
Url String - The target URL to redirect to. Must be a valid URI
GetCdnDistributionConfigRedirectsRuleMatcher
- Value
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- Values List<string>
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
- Value
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- Values []string
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
- value
Match StringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- values List<String>
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
- value
Match stringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- values string[]
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
- value_
match_ strcondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- values Sequence[str]
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
- value
Match StringCondition - Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
- values List<String>
- A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/" or "/img/*"
GetCdnDistributionDomain
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
published on Wednesday, May 6, 2026 by stackitcloud
