1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. objectstorage
  6. WebsiteConfiguration
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.0
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/
    

    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.
    
    

    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"),
    			},
    		},
    	},
    })
    
    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.
    ErrorDocument Ionoscloud.WebsiteConfigurationErrorDocument
    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
    IndexDocument Ionoscloud.WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    RedirectAllRequestsTo Ionoscloud.WebsiteConfigurationRedirectAllRequestsTo
    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.
    RoutingRules List<Ionoscloud.WebsiteConfigurationRoutingRule>
    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.
    ErrorDocument WebsiteConfigurationErrorDocumentArgs
    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
    IndexDocument WebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    RedirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsToArgs
    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.
    RoutingRules []WebsiteConfigurationRoutingRuleArgs
    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.
    errorDocument WebsiteConfigurationErrorDocument
    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
    indexDocument WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsTo
    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.
    routingRules List<WebsiteConfigurationRoutingRule>
    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.
    errorDocument WebsiteConfigurationErrorDocument
    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
    indexDocument WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsTo
    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.
    routingRules WebsiteConfigurationRoutingRule[]
    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 WebsiteConfigurationErrorDocumentArgs
    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 WebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    redirect_all_requests_to WebsiteConfigurationRedirectAllRequestsToArgs
    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[WebsiteConfigurationRoutingRuleArgs]
    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.
    errorDocument 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
    indexDocument Property Map
    Container for the Suffix element.
    redirectAllRequestsTo Property Map
    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.
    routingRules 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 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) -> WebsiteConfiguration
    func 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}
    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.
    The following state arguments are supported:
    Bucket string
    [string] The name of the bucket where the object will be stored.
    ErrorDocument Ionoscloud.WebsiteConfigurationErrorDocument
    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
    IndexDocument Ionoscloud.WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    RedirectAllRequestsTo Ionoscloud.WebsiteConfigurationRedirectAllRequestsTo
    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.
    RoutingRules List<Ionoscloud.WebsiteConfigurationRoutingRule>
    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.
    ErrorDocument WebsiteConfigurationErrorDocumentArgs
    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
    IndexDocument WebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    RedirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsToArgs
    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.
    RoutingRules []WebsiteConfigurationRoutingRuleArgs
    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.
    errorDocument WebsiteConfigurationErrorDocument
    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
    indexDocument WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsTo
    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.
    routingRules List<WebsiteConfigurationRoutingRule>
    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.
    errorDocument WebsiteConfigurationErrorDocument
    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
    indexDocument WebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo WebsiteConfigurationRedirectAllRequestsTo
    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.
    routingRules WebsiteConfigurationRoutingRule[]
    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 WebsiteConfigurationErrorDocumentArgs
    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 WebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    redirect_all_requests_to WebsiteConfigurationRedirectAllRequestsToArgs
    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[WebsiteConfigurationRoutingRuleArgs]
    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.
    errorDocument 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
    indexDocument Property Map
    Container for the Suffix element.
    redirectAllRequestsTo Property Map
    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.
    routingRules 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 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 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

    HostName string
    Name of the host where requests will be redirected.
    Protocol string
    Protocol to use (http, https).
    HostName string
    Name of the host where requests will be redirected.
    Protocol string
    Protocol to use (http, https).
    hostName String
    Name of the host where requests will be redirected.
    protocol String
    Protocol to use (http, https).
    hostName string
    Name of the host where requests will be redirected.
    protocol string
    Protocol to use (http, https).
    host_name str
    Name of the host where requests will be redirected.
    protocol str
    Protocol to use (http, https).
    hostName String
    Name of the host where requests will be redirected.
    protocol String
    Protocol to use (http, https).

    WebsiteConfigurationRoutingRule, WebsiteConfigurationRoutingRuleArgs

    Condition Ionoscloud.WebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    Redirect Ionoscloud.WebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    Condition WebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    Redirect WebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition WebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect WebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition WebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect WebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition WebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect WebsiteConfigurationRoutingRuleRedirect
    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

    HttpErrorCodeReturnedEquals string
    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.
    KeyPrefixEquals string
    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.
    HttpErrorCodeReturnedEquals string
    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.
    KeyPrefixEquals string
    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.
    httpErrorCodeReturnedEquals String
    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.
    keyPrefixEquals String
    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.
    httpErrorCodeReturnedEquals string
    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.
    keyPrefixEquals string
    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_code_returned_equals str
    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_equals str
    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.
    httpErrorCodeReturnedEquals String
    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.
    keyPrefixEquals String
    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

    HostName string
    The host name to use in the redirect request.
    HttpRedirectCode string
    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).
    ReplaceKeyPrefixWith string
    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.
    ReplaceKeyWith string
    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.
    HostName string
    The host name to use in the redirect request.
    HttpRedirectCode string
    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).
    ReplaceKeyPrefixWith string
    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.
    ReplaceKeyWith string
    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.
    hostName String
    The host name to use in the redirect request.
    httpRedirectCode String
    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).
    replaceKeyPrefixWith String
    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.
    replaceKeyWith String
    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.
    hostName string
    The host name to use in the redirect request.
    httpRedirectCode string
    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).
    replaceKeyPrefixWith string
    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.
    replaceKeyWith string
    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_code str
    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_prefix_with str
    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_with str
    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.
    hostName String
    The host name to use in the redirect request.
    httpRedirectCode String
    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).
    replaceKeyPrefixWith String
    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.
    replaceKeyWith String
    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 ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.0
    published on Wednesday, Apr 15, 2026 by ionos-cloud
      Try Pulumi Cloud free. Your team will thank you.