1. Packages
  2. OVH
  3. API Docs
  4. getCloudProjectStorageObjectBucketLifecycleConfiguration
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud

    Get lifecycle configuration of a S3™* compatible storage container. * S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud’s service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const lifecycle = ovh.getCloudProjectStorageObjectBucketLifecycleConfiguration({
        serviceName: "<public cloud project ID>",
        regionName: "GRA",
        containerName: "my-bucket",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    lifecycle = ovh.get_cloud_project_storage_object_bucket_lifecycle_configuration(service_name="<public cloud project ID>",
        region_name="GRA",
        container_name="my-bucket")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.LookupCloudProjectStorageObjectBucketLifecycleConfiguration(ctx, &ovh.LookupCloudProjectStorageObjectBucketLifecycleConfigurationArgs{
    			ServiceName:   pulumi.StringRef("<public cloud project ID>"),
    			RegionName:    "GRA",
    			ContainerName: "my-bucket",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var lifecycle = Ovh.GetCloudProjectStorageObjectBucketLifecycleConfiguration.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
            RegionName = "GRA",
            ContainerName = "my-bucket",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs;
    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) {
            final var lifecycle = OvhFunctions.getCloudProjectStorageObjectBucketLifecycleConfiguration(GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs.builder()
                .serviceName("<public cloud project ID>")
                .regionName("GRA")
                .containerName("my-bucket")
                .build());
    
        }
    }
    
    variables:
      lifecycle:
        fn::invoke:
          function: ovh:getCloudProjectStorageObjectBucketLifecycleConfiguration
          arguments:
            serviceName: <public cloud project ID>
            regionName: GRA
            containerName: my-bucket
    

    Using getCloudProjectStorageObjectBucketLifecycleConfiguration

    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 getCloudProjectStorageObjectBucketLifecycleConfiguration(args: GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs, opts?: InvokeOptions): Promise<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult>
    function getCloudProjectStorageObjectBucketLifecycleConfigurationOutput(args: GetCloudProjectStorageObjectBucketLifecycleConfigurationOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult>
    def get_cloud_project_storage_object_bucket_lifecycle_configuration(container_name: Optional[str] = None,
                                                                        region_name: Optional[str] = None,
                                                                        service_name: Optional[str] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> GetCloudProjectStorageObjectBucketLifecycleConfigurationResult
    def get_cloud_project_storage_object_bucket_lifecycle_configuration_output(container_name: Optional[pulumi.Input[str]] = None,
                                                                        region_name: Optional[pulumi.Input[str]] = None,
                                                                        service_name: Optional[pulumi.Input[str]] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectStorageObjectBucketLifecycleConfigurationResult]
    func LookupCloudProjectStorageObjectBucketLifecycleConfiguration(ctx *Context, args *LookupCloudProjectStorageObjectBucketLifecycleConfigurationArgs, opts ...InvokeOption) (*LookupCloudProjectStorageObjectBucketLifecycleConfigurationResult, error)
    func LookupCloudProjectStorageObjectBucketLifecycleConfigurationOutput(ctx *Context, args *LookupCloudProjectStorageObjectBucketLifecycleConfigurationOutputArgs, opts ...InvokeOption) LookupCloudProjectStorageObjectBucketLifecycleConfigurationResultOutput

    > Note: This function is named LookupCloudProjectStorageObjectBucketLifecycleConfiguration in the Go SDK.

    public static class GetCloudProjectStorageObjectBucketLifecycleConfiguration 
    {
        public static Task<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult> InvokeAsync(GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult> Invoke(GetCloudProjectStorageObjectBucketLifecycleConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult> getCloudProjectStorageObjectBucketLifecycleConfiguration(GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs args, InvokeOptions options)
    public static Output<GetCloudProjectStorageObjectBucketLifecycleConfigurationResult> getCloudProjectStorageObjectBucketLifecycleConfiguration(GetCloudProjectStorageObjectBucketLifecycleConfigurationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudProjectStorageObjectBucketLifecycleConfiguration:getCloudProjectStorageObjectBucketLifecycleConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ContainerName string
    Name of the storage container.
    RegionName string
    Region name of the storage container.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ContainerName string
    Name of the storage container.
    RegionName string
    Region name of the storage container.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName String
    Name of the storage container.
    regionName String
    Region name of the storage container.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName string
    Name of the storage container.
    regionName string
    Region name of the storage container.
    serviceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    container_name str
    Name of the storage container.
    region_name str
    Region name of the storage container.
    service_name str
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName String
    Name of the storage container.
    regionName String
    Region name of the storage container.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudProjectStorageObjectBucketLifecycleConfiguration Result

    The following output properties are available:

    ContainerName string
    Name of the storage container.
    Id string
    Unique identifier for the resource (servicename/regionname/container_name)
    RegionName string
    Region name of the storage container.
    Rules List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRule>
    List of lifecycle rules.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ContainerName string
    Name of the storage container.
    Id string
    Unique identifier for the resource (servicename/regionname/container_name)
    RegionName string
    Region name of the storage container.
    Rules []GetCloudProjectStorageObjectBucketLifecycleConfigurationRule
    List of lifecycle rules.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName String
    Name of the storage container.
    id String
    Unique identifier for the resource (servicename/regionname/container_name)
    regionName String
    Region name of the storage container.
    rules List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRule>
    List of lifecycle rules.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName string
    Name of the storage container.
    id string
    Unique identifier for the resource (servicename/regionname/container_name)
    regionName string
    Region name of the storage container.
    rules GetCloudProjectStorageObjectBucketLifecycleConfigurationRule[]
    List of lifecycle rules.
    serviceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    container_name str
    Name of the storage container.
    id str
    Unique identifier for the resource (servicename/regionname/container_name)
    region_name str
    Region name of the storage container.
    rules Sequence[GetCloudProjectStorageObjectBucketLifecycleConfigurationRule]
    List of lifecycle rules.
    service_name str
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    containerName String
    Name of the storage container.
    id String
    Unique identifier for the resource (servicename/regionname/container_name)
    regionName String
    Region name of the storage container.
    rules List<Property Map>
    List of lifecycle rules.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    Supporting Types

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRule

    AbortIncompleteMultipartUpload GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Abort incomplete multipart upload configuration.
    Expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration
    Lifecycle rule expiration configuration.
    Filter GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
    Rule filters.
    Id string
    Rule ID.
    NoncurrentVersionExpiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    Specifies when noncurrent object versions expire.
    NoncurrentVersionTransitions List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition>
    Specifies the transition rule for noncurrent object versions.
    Status string
    Rule status.
    Transitions List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition>
    Specifies when an object transitions to a specified storage class.
    AbortIncompleteMultipartUpload GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Abort incomplete multipart upload configuration.
    Expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration
    Lifecycle rule expiration configuration.
    Filter GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
    Rule filters.
    Id string
    Rule ID.
    NoncurrentVersionExpiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    Specifies when noncurrent object versions expire.
    NoncurrentVersionTransitions []GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition
    Specifies the transition rule for noncurrent object versions.
    Status string
    Rule status.
    Transitions []GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition
    Specifies when an object transitions to a specified storage class.
    abortIncompleteMultipartUpload GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Abort incomplete multipart upload configuration.
    expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration
    Lifecycle rule expiration configuration.
    filter GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
    Rule filters.
    id String
    Rule ID.
    noncurrentVersionExpiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    Specifies when noncurrent object versions expire.
    noncurrentVersionTransitions List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition>
    Specifies the transition rule for noncurrent object versions.
    status String
    Rule status.
    transitions List<GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition>
    Specifies when an object transitions to a specified storage class.
    abortIncompleteMultipartUpload GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Abort incomplete multipart upload configuration.
    expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration
    Lifecycle rule expiration configuration.
    filter GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
    Rule filters.
    id string
    Rule ID.
    noncurrentVersionExpiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    Specifies when noncurrent object versions expire.
    noncurrentVersionTransitions GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition[]
    Specifies the transition rule for noncurrent object versions.
    status string
    Rule status.
    transitions GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition[]
    Specifies when an object transitions to a specified storage class.
    abort_incomplete_multipart_upload GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Abort incomplete multipart upload configuration.
    expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration
    Lifecycle rule expiration configuration.
    filter GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
    Rule filters.
    id str
    Rule ID.
    noncurrent_version_expiration GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    Specifies when noncurrent object versions expire.
    noncurrent_version_transitions Sequence[GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition]
    Specifies the transition rule for noncurrent object versions.
    status str
    Rule status.
    transitions Sequence[GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition]
    Specifies when an object transitions to a specified storage class.
    abortIncompleteMultipartUpload Property Map
    Abort incomplete multipart upload configuration.
    expiration Property Map
    Lifecycle rule expiration configuration.
    filter Property Map
    Rule filters.
    id String
    Rule ID.
    noncurrentVersionExpiration Property Map
    Specifies when noncurrent object versions expire.
    noncurrentVersionTransitions List<Property Map>
    Specifies the transition rule for noncurrent object versions.
    status String
    Rule status.
    transitions List<Property Map>
    Specifies when an object transitions to a specified storage class.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload

    DaysAfterInitiation double
    Specifies the number of days after which an incomplete multipart upload is aborted.
    DaysAfterInitiation float64
    Specifies the number of days after which an incomplete multipart upload is aborted.
    daysAfterInitiation Double
    Specifies the number of days after which an incomplete multipart upload is aborted.
    daysAfterInitiation number
    Specifies the number of days after which an incomplete multipart upload is aborted.
    days_after_initiation float
    Specifies the number of days after which an incomplete multipart upload is aborted.
    daysAfterInitiation Number
    Specifies the number of days after which an incomplete multipart upload is aborted.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleExpiration

    Date string
    Indicates at what date the objects will be deleted (ISO 8601).
    Days double
    Objects will be deleted past this lifetime (in days).
    ExpiredObjectDeleteMarker bool
    Indicates whether a delete marker with no noncurrent versions will be removed.
    Date string
    Indicates at what date the objects will be deleted (ISO 8601).
    Days float64
    Objects will be deleted past this lifetime (in days).
    ExpiredObjectDeleteMarker bool
    Indicates whether a delete marker with no noncurrent versions will be removed.
    date String
    Indicates at what date the objects will be deleted (ISO 8601).
    days Double
    Objects will be deleted past this lifetime (in days).
    expiredObjectDeleteMarker Boolean
    Indicates whether a delete marker with no noncurrent versions will be removed.
    date string
    Indicates at what date the objects will be deleted (ISO 8601).
    days number
    Objects will be deleted past this lifetime (in days).
    expiredObjectDeleteMarker boolean
    Indicates whether a delete marker with no noncurrent versions will be removed.
    date str
    Indicates at what date the objects will be deleted (ISO 8601).
    days float
    Objects will be deleted past this lifetime (in days).
    expired_object_delete_marker bool
    Indicates whether a delete marker with no noncurrent versions will be removed.
    date String
    Indicates at what date the objects will be deleted (ISO 8601).
    days Number
    Objects will be deleted past this lifetime (in days).
    expiredObjectDeleteMarker Boolean
    Indicates whether a delete marker with no noncurrent versions will be removed.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter

    ObjectSizeGreaterThan double
    Minimum object size in bytes to which the rule applies.
    ObjectSizeLessThan double
    Maximum object size in bytes to which the rule applies.
    Prefix string
    Prefix filter.
    Tags Dictionary<string, string>
    Tags filter.
    ObjectSizeGreaterThan float64
    Minimum object size in bytes to which the rule applies.
    ObjectSizeLessThan float64
    Maximum object size in bytes to which the rule applies.
    Prefix string
    Prefix filter.
    Tags map[string]string
    Tags filter.
    objectSizeGreaterThan Double
    Minimum object size in bytes to which the rule applies.
    objectSizeLessThan Double
    Maximum object size in bytes to which the rule applies.
    prefix String
    Prefix filter.
    tags Map<String,String>
    Tags filter.
    objectSizeGreaterThan number
    Minimum object size in bytes to which the rule applies.
    objectSizeLessThan number
    Maximum object size in bytes to which the rule applies.
    prefix string
    Prefix filter.
    tags {[key: string]: string}
    Tags filter.
    object_size_greater_than float
    Minimum object size in bytes to which the rule applies.
    object_size_less_than float
    Maximum object size in bytes to which the rule applies.
    prefix str
    Prefix filter.
    tags Mapping[str, str]
    Tags filter.
    objectSizeGreaterThan Number
    Minimum object size in bytes to which the rule applies.
    objectSizeLessThan Number
    Maximum object size in bytes to which the rule applies.
    prefix String
    Prefix filter.
    tags Map<String>
    Tags filter.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration

    NewerNoncurrentVersions double
    Specifies how many noncurrent versions to retain.
    NoncurrentDays double
    Specifies the number of days an object is noncurrent before it can be expired.
    NewerNoncurrentVersions float64
    Specifies how many noncurrent versions to retain.
    NoncurrentDays float64
    Specifies the number of days an object is noncurrent before it can be expired.
    newerNoncurrentVersions Double
    Specifies how many noncurrent versions to retain.
    noncurrentDays Double
    Specifies the number of days an object is noncurrent before it can be expired.
    newerNoncurrentVersions number
    Specifies how many noncurrent versions to retain.
    noncurrentDays number
    Specifies the number of days an object is noncurrent before it can be expired.
    newer_noncurrent_versions float
    Specifies how many noncurrent versions to retain.
    noncurrent_days float
    Specifies the number of days an object is noncurrent before it can be expired.
    newerNoncurrentVersions Number
    Specifies how many noncurrent versions to retain.
    noncurrentDays Number
    Specifies the number of days an object is noncurrent before it can be expired.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition

    NewerNoncurrentVersions double
    Specifies how many noncurrent versions to retain in the same storage class.
    NoncurrentDays double
    Specifies the number of days an object is noncurrent before the transition.
    StorageClass string
    The storage class to which you want the noncurrent object to transition.
    NewerNoncurrentVersions float64
    Specifies how many noncurrent versions to retain in the same storage class.
    NoncurrentDays float64
    Specifies the number of days an object is noncurrent before the transition.
    StorageClass string
    The storage class to which you want the noncurrent object to transition.
    newerNoncurrentVersions Double
    Specifies how many noncurrent versions to retain in the same storage class.
    noncurrentDays Double
    Specifies the number of days an object is noncurrent before the transition.
    storageClass String
    The storage class to which you want the noncurrent object to transition.
    newerNoncurrentVersions number
    Specifies how many noncurrent versions to retain in the same storage class.
    noncurrentDays number
    Specifies the number of days an object is noncurrent before the transition.
    storageClass string
    The storage class to which you want the noncurrent object to transition.
    newer_noncurrent_versions float
    Specifies how many noncurrent versions to retain in the same storage class.
    noncurrent_days float
    Specifies the number of days an object is noncurrent before the transition.
    storage_class str
    The storage class to which you want the noncurrent object to transition.
    newerNoncurrentVersions Number
    Specifies how many noncurrent versions to retain in the same storage class.
    noncurrentDays Number
    Specifies the number of days an object is noncurrent before the transition.
    storageClass String
    The storage class to which you want the noncurrent object to transition.

    GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleTransition

    Date string
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    Days double
    Indicates the number of days after creation when objects are transitioned.
    StorageClass string
    The storage class to which you want the object to transition.
    Date string
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    Days float64
    Indicates the number of days after creation when objects are transitioned.
    StorageClass string
    The storage class to which you want the object to transition.
    date String
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    days Double
    Indicates the number of days after creation when objects are transitioned.
    storageClass String
    The storage class to which you want the object to transition.
    date string
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    days number
    Indicates the number of days after creation when objects are transitioned.
    storageClass string
    The storage class to which you want the object to transition.
    date str
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    days float
    Indicates the number of days after creation when objects are transitioned.
    storage_class str
    The storage class to which you want the object to transition.
    date String
    Indicates when objects are transitioned to the specified storage class (ISO 8601).
    days Number
    Indicates the number of days after creation when objects are transitioned.
    storageClass String
    The storage class to which you want the object to transition.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.12.0
    published on Thursday, Mar 12, 2026 by OVHcloud
      Try Pulumi Cloud free. Your team will thank you.