Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 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: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[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
- 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
- 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
- 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
- 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
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
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.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
