published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Manages Website Configuration for Buckets on IonosCloud.
⚠️ Note: The Terraform provider only supports contract-owned buckets. User-owned buckets are not supported, and there are no plans to introduce support for them. As a result, user-owned buckets cannot be created, updated, deleted, read, or imported using this provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = new ionoscloud.objectstorage.Bucket("example", {name: "example"});
const exampleWebsiteConfiguration = new ionoscloud.objectstorage.WebsiteConfiguration("example", {
bucket: example.name,
indexDocument: [{
suffix: "index.html",
}],
errorDocument: [{
key: "error.html",
}],
routingRules: [{
condition: [{
keyPrefixEquals: "docs/",
}],
redirect: [{
replaceKeyPrefixWith: "documents/",
}],
}],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.objectstorage.Bucket("example", name="example")
example_website_configuration = ionoscloud.objectstorage.WebsiteConfiguration("example",
bucket=example.name,
index_document=[{
"suffix": "index.html",
}],
error_document=[{
"key": "error.html",
}],
routing_rules=[{
"condition": [{
"keyPrefixEquals": "docs/",
}],
"redirect": [{
"replaceKeyPrefixWith": "documents/",
}],
}])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := objectstorage.NewBucket(ctx, "example", &objectstorage.BucketArgs{
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = objectstorage.NewWebsiteConfiguration(ctx, "example", &objectstorage.WebsiteConfigurationArgs{
Bucket: example.Name,
IndexDocument: objectstorage.WebsiteConfigurationIndexDocumentArgs{
map[string]interface{}{
"suffix": "index.html",
},
},
ErrorDocument: objectstorage.WebsiteConfigurationErrorDocumentArgs{
map[string]interface{}{
"key": "error.html",
},
},
RoutingRules: objectstorage.WebsiteConfigurationRoutingRuleArray{
&objectstorage.WebsiteConfigurationRoutingRuleArgs{
Condition: objectstorage.WebsiteConfigurationRoutingRuleConditionArgs{
map[string]interface{}{
"keyPrefixEquals": "docs/",
},
},
Redirect: objectstorage.WebsiteConfigurationRoutingRuleRedirectArgs{
map[string]interface{}{
"replaceKeyPrefixWith": "documents/",
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = new Ionoscloud.Objectstorage.Bucket("example", new()
{
Name = "example",
});
var exampleWebsiteConfiguration = new Ionoscloud.Objectstorage.WebsiteConfiguration("example", new()
{
Bucket = example.Name,
IndexDocument = new[]
{
{
{ "suffix", "index.html" },
},
},
ErrorDocument = new[]
{
{
{ "key", "error.html" },
},
},
RoutingRules = new[]
{
new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationRoutingRuleArgs
{
Condition = new[]
{
{
{ "keyPrefixEquals", "docs/" },
},
},
Redirect = new[]
{
{
{ "replaceKeyPrefixWith", "documents/" },
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ionoscloud.pulumi.ionoscloud.objectstorage.Bucket;
import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketArgs;
import com.ionoscloud.pulumi.ionoscloud.objectstorage.WebsiteConfiguration;
import com.ionoscloud.pulumi.ionoscloud.objectstorage.WebsiteConfigurationArgs;
import com.pulumi.ionoscloud.objectstorage.inputs.WebsiteConfigurationRoutingRuleArgs;
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 example = new Bucket("example", BucketArgs.builder()
.name("example")
.build());
var exampleWebsiteConfiguration = new WebsiteConfiguration("exampleWebsiteConfiguration", WebsiteConfigurationArgs.builder()
.bucket(example.name())
.indexDocument(WebsiteConfigurationIndexDocumentArgs.builder()
.suffix("index.html")
.build())
.errorDocument(WebsiteConfigurationErrorDocumentArgs.builder()
.key("error.html")
.build())
.routingRules(WebsiteConfigurationRoutingRuleArgs.builder()
.condition(WebsiteConfigurationRoutingRuleConditionArgs.builder()
.keyPrefixEquals("docs/")
.build())
.redirect(WebsiteConfigurationRoutingRuleRedirectArgs.builder()
.replaceKeyPrefixWith("documents/")
.build())
.build())
.build());
}
}
resources:
example:
type: ionoscloud:objectstorage:Bucket
properties:
name: example
exampleWebsiteConfiguration:
type: ionoscloud:objectstorage:WebsiteConfiguration
name: example
properties:
bucket: ${example.name}
indexDocument:
- suffix: index.html
errorDocument:
- key: error.html
routingRules:
- condition:
- keyPrefixEquals: docs/
redirect:
- replaceKeyPrefixWith: documents/
Example coming soon!
Create WebsiteConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebsiteConfiguration(name: string, args: WebsiteConfigurationArgs, opts?: CustomResourceOptions);@overload
def WebsiteConfiguration(resource_name: str,
args: WebsiteConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebsiteConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
error_document: Optional[WebsiteConfigurationErrorDocumentArgs] = None,
index_document: Optional[WebsiteConfigurationIndexDocumentArgs] = None,
redirect_all_requests_to: Optional[WebsiteConfigurationRedirectAllRequestsToArgs] = None,
routing_rules: Optional[Sequence[WebsiteConfigurationRoutingRuleArgs]] = None)func NewWebsiteConfiguration(ctx *Context, name string, args WebsiteConfigurationArgs, opts ...ResourceOption) (*WebsiteConfiguration, error)public WebsiteConfiguration(string name, WebsiteConfigurationArgs args, CustomResourceOptions? opts = null)
public WebsiteConfiguration(String name, WebsiteConfigurationArgs args)
public WebsiteConfiguration(String name, WebsiteConfigurationArgs args, CustomResourceOptions options)
type: ionoscloud:objectstorage:WebsiteConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ionoscloud_objectstorage_websiteconfiguration" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WebsiteConfigurationArgs
- 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 WebsiteConfigurationArgs
- 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 WebsiteConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebsiteConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebsiteConfigurationArgs
- 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 websiteConfigurationResource = new Ionoscloud.Objectstorage.WebsiteConfiguration("websiteConfigurationResource", new()
{
Bucket = "string",
ErrorDocument = new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationErrorDocumentArgs
{
Key = "string",
},
IndexDocument = new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationIndexDocumentArgs
{
Suffix = "string",
},
RedirectAllRequestsTo = new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationRedirectAllRequestsToArgs
{
HostName = "string",
Protocol = "string",
},
RoutingRules = new[]
{
new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationRoutingRuleArgs
{
Condition = new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationRoutingRuleConditionArgs
{
HttpErrorCodeReturnedEquals = "string",
KeyPrefixEquals = "string",
},
Redirect = new Ionoscloud.Objectstorage.Inputs.WebsiteConfigurationRoutingRuleRedirectArgs
{
HostName = "string",
HttpRedirectCode = "string",
Protocol = "string",
ReplaceKeyPrefixWith = "string",
ReplaceKeyWith = "string",
},
},
},
});
example, err := objectstorage.NewWebsiteConfiguration(ctx, "websiteConfigurationResource", &objectstorage.WebsiteConfigurationArgs{
Bucket: pulumi.String("string"),
ErrorDocument: &objectstorage.WebsiteConfigurationErrorDocumentArgs{
Key: pulumi.String("string"),
},
IndexDocument: &objectstorage.WebsiteConfigurationIndexDocumentArgs{
Suffix: pulumi.String("string"),
},
RedirectAllRequestsTo: &objectstorage.WebsiteConfigurationRedirectAllRequestsToArgs{
HostName: pulumi.String("string"),
Protocol: pulumi.String("string"),
},
RoutingRules: objectstorage.WebsiteConfigurationRoutingRuleArray{
&objectstorage.WebsiteConfigurationRoutingRuleArgs{
Condition: &objectstorage.WebsiteConfigurationRoutingRuleConditionArgs{
HttpErrorCodeReturnedEquals: pulumi.String("string"),
KeyPrefixEquals: pulumi.String("string"),
},
Redirect: &objectstorage.WebsiteConfigurationRoutingRuleRedirectArgs{
HostName: pulumi.String("string"),
HttpRedirectCode: pulumi.String("string"),
Protocol: pulumi.String("string"),
ReplaceKeyPrefixWith: pulumi.String("string"),
ReplaceKeyWith: pulumi.String("string"),
},
},
},
})
resource "ionoscloud_objectstorage_websiteconfiguration" "websiteConfigurationResource" {
bucket = "string"
error_document = {
key = "string"
}
index_document = {
suffix = "string"
}
redirect_all_requests_to = {
host_name = "string"
protocol = "string"
}
routing_rules {
condition = {
http_error_code_returned_equals = "string"
key_prefix_equals = "string"
}
redirect = {
host_name = "string"
http_redirect_code = "string"
protocol = "string"
replace_key_prefix_with = "string"
replace_key_with = "string"
}
}
}
var websiteConfigurationResource = new WebsiteConfiguration("websiteConfigurationResource", WebsiteConfigurationArgs.builder()
.bucket("string")
.errorDocument(WebsiteConfigurationErrorDocumentArgs.builder()
.key("string")
.build())
.indexDocument(WebsiteConfigurationIndexDocumentArgs.builder()
.suffix("string")
.build())
.redirectAllRequestsTo(WebsiteConfigurationRedirectAllRequestsToArgs.builder()
.hostName("string")
.protocol("string")
.build())
.routingRules(WebsiteConfigurationRoutingRuleArgs.builder()
.condition(WebsiteConfigurationRoutingRuleConditionArgs.builder()
.httpErrorCodeReturnedEquals("string")
.keyPrefixEquals("string")
.build())
.redirect(WebsiteConfigurationRoutingRuleRedirectArgs.builder()
.hostName("string")
.httpRedirectCode("string")
.protocol("string")
.replaceKeyPrefixWith("string")
.replaceKeyWith("string")
.build())
.build())
.build());
website_configuration_resource = ionoscloud.objectstorage.WebsiteConfiguration("websiteConfigurationResource",
bucket="string",
error_document={
"key": "string",
},
index_document={
"suffix": "string",
},
redirect_all_requests_to={
"host_name": "string",
"protocol": "string",
},
routing_rules=[{
"condition": {
"http_error_code_returned_equals": "string",
"key_prefix_equals": "string",
},
"redirect": {
"host_name": "string",
"http_redirect_code": "string",
"protocol": "string",
"replace_key_prefix_with": "string",
"replace_key_with": "string",
},
}])
const websiteConfigurationResource = new ionoscloud.objectstorage.WebsiteConfiguration("websiteConfigurationResource", {
bucket: "string",
errorDocument: {
key: "string",
},
indexDocument: {
suffix: "string",
},
redirectAllRequestsTo: {
hostName: "string",
protocol: "string",
},
routingRules: [{
condition: {
httpErrorCodeReturnedEquals: "string",
keyPrefixEquals: "string",
},
redirect: {
hostName: "string",
httpRedirectCode: "string",
protocol: "string",
replaceKeyPrefixWith: "string",
replaceKeyWith: "string",
},
}],
});
type: ionoscloud:objectstorage:WebsiteConfiguration
properties:
bucket: string
errorDocument:
key: string
indexDocument:
suffix: string
redirectAllRequestsTo:
hostName: string
protocol: string
routingRules:
- condition:
httpErrorCodeReturnedEquals: string
keyPrefixEquals: string
redirect:
hostName: string
httpRedirectCode: string
protocol: string
replaceKeyPrefixWith: string
replaceKeyWith: string
WebsiteConfiguration 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 WebsiteConfiguration resource accepts the following input properties:
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document Ionoscloud.Website Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document Ionoscloud.Website Configuration Index Document - Container for the Suffix element.
- Redirect
All Ionoscloud.Requests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules List<Ionoscloud.Website Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document WebsiteConfiguration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document WebsiteConfiguration Index Document Args - Container for the Suffix element.
- Redirect
All WebsiteRequests To Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules []WebsiteConfiguration Routing Rule Args - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error_
document object - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document object - Container for the Suffix element.
- redirect_
all_ objectrequests_ to - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules list(object) - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document WebsiteConfiguration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document WebsiteConfiguration Index Document - Container for the Suffix element.
- redirect
All WebsiteRequests To Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<WebsiteConfiguration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error
Document WebsiteConfiguration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document WebsiteConfiguration Index Document - Container for the Suffix element.
- redirect
All WebsiteRequests To Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules WebsiteConfiguration Routing Rule[] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket str
- [string] The name of the bucket where the object will be stored.
- error_
document WebsiteConfiguration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document WebsiteConfiguration Index Document Args - Container for the Suffix element.
- redirect_
all_ Websiterequests_ to Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules Sequence[WebsiteConfiguration Routing Rule Args] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document Property Map - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document Property Map - Container for the Suffix element.
- redirect
All Property MapRequests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<Property Map> - A container for describing a condition that must be met for the specified redirect to apply.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebsiteConfiguration 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 WebsiteConfiguration Resource
Get an existing WebsiteConfiguration 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?: WebsiteConfigurationState, opts?: CustomResourceOptions): WebsiteConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
error_document: Optional[WebsiteConfigurationErrorDocumentArgs] = None,
index_document: Optional[WebsiteConfigurationIndexDocumentArgs] = None,
redirect_all_requests_to: Optional[WebsiteConfigurationRedirectAllRequestsToArgs] = None,
routing_rules: Optional[Sequence[WebsiteConfigurationRoutingRuleArgs]] = None) -> WebsiteConfigurationfunc GetWebsiteConfiguration(ctx *Context, name string, id IDInput, state *WebsiteConfigurationState, opts ...ResourceOption) (*WebsiteConfiguration, error)public static WebsiteConfiguration Get(string name, Input<string> id, WebsiteConfigurationState? state, CustomResourceOptions? opts = null)public static WebsiteConfiguration get(String name, Output<String> id, WebsiteConfigurationState state, CustomResourceOptions options)resources: _: type: ionoscloud:objectstorage:WebsiteConfiguration get: id: ${id}import {
to = ionoscloud_objectstorage_websiteconfiguration.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.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document Ionoscloud.Website Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document Ionoscloud.Website Configuration Index Document - Container for the Suffix element.
- Redirect
All Ionoscloud.Requests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules List<Ionoscloud.Website Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document WebsiteConfiguration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document WebsiteConfiguration Index Document Args - Container for the Suffix element.
- Redirect
All WebsiteRequests To Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules []WebsiteConfiguration Routing Rule Args - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error_
document object - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document object - Container for the Suffix element.
- redirect_
all_ objectrequests_ to - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules list(object) - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document WebsiteConfiguration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document WebsiteConfiguration Index Document - Container for the Suffix element.
- redirect
All WebsiteRequests To Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<WebsiteConfiguration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error
Document WebsiteConfiguration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document WebsiteConfiguration Index Document - Container for the Suffix element.
- redirect
All WebsiteRequests To Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules WebsiteConfiguration Routing Rule[] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket str
- [string] The name of the bucket where the object will be stored.
- error_
document WebsiteConfiguration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document WebsiteConfiguration Index Document Args - Container for the Suffix element.
- redirect_
all_ Websiterequests_ to Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules Sequence[WebsiteConfiguration Routing Rule Args] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document Property Map - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document Property Map - Container for the Suffix element.
- redirect
All Property MapRequests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<Property Map> - A container for describing a condition that must be met for the specified redirect to apply.
Supporting Types
WebsiteConfigurationErrorDocument, WebsiteConfigurationErrorDocumentArgs
- Key string
- The object key
- Key string
- The object key
- key string
- The object key
- key String
- The object key
- key string
- The object key
- key str
- The object key
- key String
- The object key
WebsiteConfigurationIndexDocument, WebsiteConfigurationIndexDocumentArgs
- Suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- Suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix String
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix str
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix String
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
WebsiteConfigurationRedirectAllRequestsTo, WebsiteConfigurationRedirectAllRequestsToArgs
WebsiteConfigurationRoutingRule, WebsiteConfigurationRoutingRuleArgs
- Condition
Ionoscloud.
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- Redirect
Ionoscloud.
Website Configuration Routing Rule Redirect - Container for the redirect information.
- Condition
Website
Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- Redirect
Website
Configuration Routing Rule Redirect - Container for the redirect information.
- condition
Website
Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
Website
Configuration Routing Rule Redirect - Container for the redirect information.
- condition
Website
Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
Website
Configuration Routing Rule Redirect - Container for the redirect information.
- condition
Website
Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
Website
Configuration Routing Rule Redirect - Container for the redirect information.
- condition Property Map
- A container for describing a condition that must be met for the specified redirect to apply.
- redirect Property Map
- Container for the redirect information.
WebsiteConfigurationRoutingRuleCondition, WebsiteConfigurationRoutingRuleConditionArgs
- Http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- Key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- Http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- Key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http_
error_ stringcode_ returned_ equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key_
prefix_ stringequals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error StringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix StringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http_
error_ strcode_ returned_ equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key_
prefix_ strequals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error StringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix StringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
WebsiteConfigurationRoutingRuleRedirect, WebsiteConfigurationRoutingRuleRedirectArgs
- Host
Name string - The host name to use in the redirect request.
- Http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- Protocol string
- Protocol to use (http, https).
- Replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- Replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- Host
Name string - The host name to use in the redirect request.
- Http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- Protocol string
- Protocol to use (http, https).
- Replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- Replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host_
name string - The host name to use in the redirect request.
- http_
redirect_ stringcode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol string
- Protocol to use (http, https).
- replace_
key_ stringprefix_ with - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace_
key_ stringwith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name String - The host name to use in the redirect request.
- http
Redirect StringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol String
- Protocol to use (http, https).
- replace
Key StringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key StringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name string - The host name to use in the redirect request.
- http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol string
- Protocol to use (http, https).
- replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host_
name str - The host name to use in the redirect request.
- http_
redirect_ strcode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol str
- Protocol to use (http, https).
- replace_
key_ strprefix_ with - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace_
key_ strwith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name String - The host name to use in the redirect request.
- http
Redirect StringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol String
- Protocol to use (http, https).
- replace
Key StringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key StringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
Import
IONOS Object Storage Bucket website configuration can be imported using the bucket name.
$ pulumi import ionoscloud:objectstorage/websiteConfiguration:WebsiteConfiguration example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
published on Wednesday, Apr 15, 2026 by ionos-cloud
