Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
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 dictionaryThe following arguments are supported:
- Container
Name string - Name of the storage container.
- Region
Name string - Region name of the storage container.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Container
Name string - Name of the storage container.
- Region
Name string - Region name of the storage container.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- container
Name String - Name of the storage container.
- region
Name String - Region name of the storage container.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- container
Name string - Name of the storage container.
- region
Name string - Region name of the storage container.
- service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment 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_SERVICEenvironment variable is used.
- container
Name String - Name of the storage container.
- region
Name String - Region name of the storage container.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getCloudProjectStorageObjectBucketLifecycleConfiguration Result
The following output properties are available:
- Container
Name string - Name of the storage container.
- Id string
- Unique identifier for the resource (servicename/regionname/container_name)
- Region
Name string - Region name of the storage container.
- Rules
List<Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule> - List of lifecycle rules.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Container
Name string - Name of the storage container.
- Id string
- Unique identifier for the resource (servicename/regionname/container_name)
- Region
Name string - Region name of the storage container.
- Rules
[]Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule - List of lifecycle rules.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- container
Name String - Name of the storage container.
- id String
- Unique identifier for the resource (servicename/regionname/container_name)
- region
Name String - Region name of the storage container.
- rules
List<Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule> - List of lifecycle rules.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- container
Name string - Name of the storage container.
- id string
- Unique identifier for the resource (servicename/regionname/container_name)
- region
Name string - Region name of the storage container.
- rules
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule[] - List of lifecycle rules.
- service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment 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[Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule] - List of lifecycle rules.
- service_
name str - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- container
Name String - Name of the storage container.
- id String
- Unique identifier for the resource (servicename/regionname/container_name)
- region
Name String - Region name of the storage container.
- rules List<Property Map>
- List of lifecycle rules.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
Supporting Types
GetCloudProjectStorageObjectBucketLifecycleConfigurationRule
- Abort
Incomplete GetMultipart Upload Cloud Project Storage Object Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - Abort incomplete multipart upload configuration.
- Expiration
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Expiration - Lifecycle rule expiration configuration.
- Filter
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Filter - Rule filters.
- Id string
- Rule ID.
- Noncurrent
Version GetExpiration Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - Specifies when noncurrent object versions expire.
- Noncurrent
Version List<GetTransitions Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Transition> - Specifies the transition rule for noncurrent object versions.
- Status string
- Rule status.
- Transitions
List<Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Transition> - Specifies when an object transitions to a specified storage class.
- Abort
Incomplete GetMultipart Upload Cloud Project Storage Object Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - Abort incomplete multipart upload configuration.
- Expiration
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Expiration - Lifecycle rule expiration configuration.
- Filter
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Filter - Rule filters.
- Id string
- Rule ID.
- Noncurrent
Version GetExpiration Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - Specifies when noncurrent object versions expire.
- Noncurrent
Version []GetTransitions Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Transition - Specifies the transition rule for noncurrent object versions.
- Status string
- Rule status.
- Transitions
[]Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Transition - Specifies when an object transitions to a specified storage class.
- abort
Incomplete GetMultipart Upload Cloud Project Storage Object Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - Abort incomplete multipart upload configuration.
- expiration
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Expiration - Lifecycle rule expiration configuration.
- filter
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Filter - Rule filters.
- id String
- Rule ID.
- noncurrent
Version GetExpiration Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - Specifies when noncurrent object versions expire.
- noncurrent
Version List<GetTransitions Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Transition> - Specifies the transition rule for noncurrent object versions.
- status String
- Rule status.
- transitions
List<Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Transition> - Specifies when an object transitions to a specified storage class.
- abort
Incomplete GetMultipart Upload Cloud Project Storage Object Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - Abort incomplete multipart upload configuration.
- expiration
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Expiration - Lifecycle rule expiration configuration.
- filter
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Filter - Rule filters.
- id string
- Rule ID.
- noncurrent
Version GetExpiration Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - Specifies when noncurrent object versions expire.
- noncurrent
Version GetTransitions Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Transition[] - Specifies the transition rule for noncurrent object versions.
- status string
- Rule status.
- transitions
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Transition[] - Specifies when an object transitions to a specified storage class.
- abort_
incomplete_ Getmultipart_ upload Cloud Project Storage Object Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - Abort incomplete multipart upload configuration.
- expiration
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Expiration - Lifecycle rule expiration configuration.
- filter
Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Filter - Rule filters.
- id str
- Rule ID.
- noncurrent_
version_ Getexpiration Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - Specifies when noncurrent object versions expire.
- noncurrent_
version_ Sequence[Gettransitions Cloud Project Storage Object Bucket Lifecycle Configuration Rule Noncurrent Version Transition] - Specifies the transition rule for noncurrent object versions.
- status str
- Rule status.
- transitions
Sequence[Get
Cloud Project Storage Object Bucket Lifecycle Configuration Rule Transition] - Specifies when an object transitions to a specified storage class.
- abort
Incomplete Property MapMultipart Upload - Abort incomplete multipart upload configuration.
- expiration Property Map
- Lifecycle rule expiration configuration.
- filter Property Map
- Rule filters.
- id String
- Rule ID.
- noncurrent
Version Property MapExpiration - Specifies when noncurrent object versions expire.
- noncurrent
Version List<Property Map>Transitions - 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
- Days
After doubleInitiation - Specifies the number of days after which an incomplete multipart upload is aborted.
- Days
After float64Initiation - Specifies the number of days after which an incomplete multipart upload is aborted.
- days
After DoubleInitiation - Specifies the number of days after which an incomplete multipart upload is aborted.
- days
After numberInitiation - Specifies the number of days after which an incomplete multipart upload is aborted.
- days_
after_ floatinitiation - Specifies the number of days after which an incomplete multipart upload is aborted.
- days
After NumberInitiation - 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).
- Expired
Object boolDelete Marker - 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).
- Expired
Object boolDelete Marker - 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).
- expired
Object BooleanDelete Marker - 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).
- expired
Object booleanDelete Marker - 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_ booldelete_ marker - 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).
- expired
Object BooleanDelete Marker - Indicates whether a delete marker with no noncurrent versions will be removed.
GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleFilter
- Object
Size doubleGreater Than - Minimum object size in bytes to which the rule applies.
- Object
Size doubleLess Than - Maximum object size in bytes to which the rule applies.
- Prefix string
- Prefix filter.
- Dictionary<string, string>
- Tags filter.
- Object
Size float64Greater Than - Minimum object size in bytes to which the rule applies.
- Object
Size float64Less Than - Maximum object size in bytes to which the rule applies.
- Prefix string
- Prefix filter.
- map[string]string
- Tags filter.
- object
Size DoubleGreater Than - Minimum object size in bytes to which the rule applies.
- object
Size DoubleLess Than - Maximum object size in bytes to which the rule applies.
- prefix String
- Prefix filter.
- Map<String,String>
- Tags filter.
- object
Size numberGreater Than - Minimum object size in bytes to which the rule applies.
- object
Size numberLess Than - Maximum object size in bytes to which the rule applies.
- prefix string
- Prefix filter.
- {[key: string]: string}
- Tags filter.
- object_
size_ floatgreater_ than - Minimum object size in bytes to which the rule applies.
- object_
size_ floatless_ than - Maximum object size in bytes to which the rule applies.
- prefix str
- Prefix filter.
- Mapping[str, str]
- Tags filter.
- object
Size NumberGreater Than - Minimum object size in bytes to which the rule applies.
- object
Size NumberLess Than - Maximum object size in bytes to which the rule applies.
- prefix String
- Prefix filter.
- Map<String>
- Tags filter.
GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionExpiration
- Newer
Noncurrent doubleVersions - Specifies how many noncurrent versions to retain.
- Noncurrent
Days double - Specifies the number of days an object is noncurrent before it can be expired.
- Newer
Noncurrent float64Versions - Specifies how many noncurrent versions to retain.
- Noncurrent
Days float64 - Specifies the number of days an object is noncurrent before it can be expired.
- newer
Noncurrent DoubleVersions - Specifies how many noncurrent versions to retain.
- noncurrent
Days Double - Specifies the number of days an object is noncurrent before it can be expired.
- newer
Noncurrent numberVersions - Specifies how many noncurrent versions to retain.
- noncurrent
Days number - Specifies the number of days an object is noncurrent before it can be expired.
- newer_
noncurrent_ floatversions - Specifies how many noncurrent versions to retain.
- noncurrent_
days float - Specifies the number of days an object is noncurrent before it can be expired.
- newer
Noncurrent NumberVersions - Specifies how many noncurrent versions to retain.
- noncurrent
Days Number - Specifies the number of days an object is noncurrent before it can be expired.
GetCloudProjectStorageObjectBucketLifecycleConfigurationRuleNoncurrentVersionTransition
- Newer
Noncurrent doubleVersions - Specifies how many noncurrent versions to retain in the same storage class.
- Noncurrent
Days double - Specifies the number of days an object is noncurrent before the transition.
- Storage
Class string - The storage class to which you want the noncurrent object to transition.
- Newer
Noncurrent float64Versions - Specifies how many noncurrent versions to retain in the same storage class.
- Noncurrent
Days float64 - Specifies the number of days an object is noncurrent before the transition.
- Storage
Class string - The storage class to which you want the noncurrent object to transition.
- newer
Noncurrent DoubleVersions - Specifies how many noncurrent versions to retain in the same storage class.
- noncurrent
Days Double - Specifies the number of days an object is noncurrent before the transition.
- storage
Class String - The storage class to which you want the noncurrent object to transition.
- newer
Noncurrent numberVersions - Specifies how many noncurrent versions to retain in the same storage class.
- noncurrent
Days number - Specifies the number of days an object is noncurrent before the transition.
- storage
Class string - The storage class to which you want the noncurrent object to transition.
- newer_
noncurrent_ floatversions - 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.
- newer
Noncurrent NumberVersions - Specifies how many noncurrent versions to retain in the same storage class.
- noncurrent
Days Number - Specifies the number of days an object is noncurrent before the transition.
- storage
Class 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.
- Storage
Class 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.
- Storage
Class 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.
- storage
Class 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.
- storage
Class 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.
- storage
Class 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
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
