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 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 storage = ovh.CloudProject.getStorage({
serviceName: "<public cloud project ID>",
regionName: "GRA",
name: "my-storage-name",
});
import pulumi
import pulumi_ovh as ovh
storage = ovh.CloudProject.get_storage(service_name="<public cloud project ID>",
region_name="GRA",
name="my-storage-name")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudproject.GetStorage(ctx, &cloudproject.GetStorageArgs{
ServiceName: "<public cloud project ID>",
RegionName: "GRA",
Name: "my-storage-name",
}, 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 storage = Ovh.CloudProject.GetStorage.Invoke(new()
{
ServiceName = "<public cloud project ID>",
RegionName = "GRA",
Name = "my-storage-name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetStorageArgs;
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 storage = CloudProjectFunctions.getStorage(GetStorageArgs.builder()
.serviceName("<public cloud project ID>")
.regionName("GRA")
.name("my-storage-name")
.build());
}
}
variables:
storage:
fn::invoke:
function: ovh:CloudProject:getStorage
arguments:
serviceName: <public cloud project ID>
regionName: GRA
name: my-storage-name
Using getStorage
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 getStorage(args: GetStorageArgs, opts?: InvokeOptions): Promise<GetStorageResult>
function getStorageOutput(args: GetStorageOutputArgs, opts?: InvokeOptions): Output<GetStorageResult>def get_storage(hide_objects: Optional[bool] = None,
limit: Optional[float] = None,
marker: Optional[str] = None,
name: Optional[str] = None,
prefix: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageResult
def get_storage_output(hide_objects: Optional[pulumi.Input[bool]] = None,
limit: Optional[pulumi.Input[float]] = None,
marker: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
prefix: Optional[pulumi.Input[str]] = None,
region_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageResult]func LookupStorage(ctx *Context, args *LookupStorageArgs, opts ...InvokeOption) (*LookupStorageResult, error)
func LookupStorageOutput(ctx *Context, args *LookupStorageOutputArgs, opts ...InvokeOption) LookupStorageResultOutput> Note: This function is named LookupStorage in the Go SDK.
public static class GetStorage
{
public static Task<GetStorageResult> InvokeAsync(GetStorageArgs args, InvokeOptions? opts = null)
public static Output<GetStorageResult> Invoke(GetStorageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageResult> getStorage(GetStorageArgs args, InvokeOptions options)
public static Output<GetStorageResult> getStorage(GetStorageArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getStorage:getStorage
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Hide
Objects bool - If true, objects list will not be saved in state (useful for large buckets)
- Limit double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Marker string
- Key to start with when listing objects
- Prefix string
- List objects whose key begins with this prefix
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Hide
Objects bool - If true, objects list will not be saved in state (useful for large buckets)
- Limit float64
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Marker string
- Key to start with when listing objects
- Prefix string
- List objects whose key begins with this prefix
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- hide
Objects Boolean - If true, objects list will not be saved in state (useful for large buckets)
- limit Double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker String
- Key to start with when listing objects
- prefix String
- List objects whose key begins with this prefix
- name string
- Name
- region
Name string - Region name
- service
Name string - Service name
- hide
Objects boolean - If true, objects list will not be saved in state (useful for large buckets)
- limit number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker string
- Key to start with when listing objects
- prefix string
- List objects whose key begins with this prefix
- name str
- Name
- region_
name str - Region name
- service_
name str - Service name
- hide_
objects bool - If true, objects list will not be saved in state (useful for large buckets)
- limit float
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker str
- Key to start with when listing objects
- prefix str
- List objects whose key begins with this prefix
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- hide
Objects Boolean - If true, objects list will not be saved in state (useful for large buckets)
- limit Number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker String
- Key to start with when listing objects
- prefix String
- List objects whose key begins with this prefix
getStorage Result
The following output properties are available:
- Created
At string - The date and timestamp when the resource was created
- Encryption
Get
Storage Encryption - Encryption configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Limit double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Marker string
- Key to start with when listing objects
- Name string
- Name
- Objects
List<Get
Storage Object> - Container objects
- Objects
Count double - Container total objects count
- Objects
Size double - Container total objects size (bytes)
- Owner
Id double - Container owner user ID
- Prefix string
- List objects whose key begins with this prefix
- Region string
- Container region
- Region
Name string - Region name
- Replication
Get
Storage Replication - Replication configuration
- Service
Name string - Service name
- Dictionary<string, string>
- Container tags
- Versioning
Get
Storage Versioning - Versioning configuration
- Virtual
Host string - Container virtual host
- Hide
Objects bool - If true, objects list will not be saved in state (useful for large buckets)
- Created
At string - The date and timestamp when the resource was created
- Encryption
Get
Storage Encryption - Encryption configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Limit float64
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Marker string
- Key to start with when listing objects
- Name string
- Name
- Objects
[]Get
Storage Object - Container objects
- Objects
Count float64 - Container total objects count
- Objects
Size float64 - Container total objects size (bytes)
- Owner
Id float64 - Container owner user ID
- Prefix string
- List objects whose key begins with this prefix
- Region string
- Container region
- Region
Name string - Region name
- Replication
Get
Storage Replication - Replication configuration
- Service
Name string - Service name
- map[string]string
- Container tags
- Versioning
Get
Storage Versioning - Versioning configuration
- Virtual
Host string - Container virtual host
- Hide
Objects bool - If true, objects list will not be saved in state (useful for large buckets)
- created
At String - The date and timestamp when the resource was created
- encryption
Get
Storage Encryption - Encryption configuration
- id String
- The provider-assigned unique ID for this managed resource.
- limit Double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker String
- Key to start with when listing objects
- name String
- Name
- objects
List<Get
Storage Object> - Container objects
- objects
Count Double - Container total objects count
- objects
Size Double - Container total objects size (bytes)
- owner
Id Double - Container owner user ID
- prefix String
- List objects whose key begins with this prefix
- region String
- Container region
- region
Name String - Region name
- replication
Get
Storage Replication - Replication configuration
- service
Name String - Service name
- Map<String,String>
- Container tags
- versioning
Get
Storage Versioning - Versioning configuration
- virtual
Host String - Container virtual host
- hide
Objects Boolean - If true, objects list will not be saved in state (useful for large buckets)
- created
At string - The date and timestamp when the resource was created
- encryption
Get
Storage Encryption - Encryption configuration
- id string
- The provider-assigned unique ID for this managed resource.
- limit number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker string
- Key to start with when listing objects
- name string
- Name
- objects
Get
Storage Object[] - Container objects
- objects
Count number - Container total objects count
- objects
Size number - Container total objects size (bytes)
- owner
Id number - Container owner user ID
- prefix string
- List objects whose key begins with this prefix
- region string
- Container region
- region
Name string - Region name
- replication
Get
Storage Replication - Replication configuration
- service
Name string - Service name
- {[key: string]: string}
- Container tags
- versioning
Get
Storage Versioning - Versioning configuration
- virtual
Host string - Container virtual host
- hide
Objects boolean - If true, objects list will not be saved in state (useful for large buckets)
- created_
at str - The date and timestamp when the resource was created
- encryption
Get
Storage Encryption - Encryption configuration
- id str
- The provider-assigned unique ID for this managed resource.
- limit float
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker str
- Key to start with when listing objects
- name str
- Name
- objects
Sequence[Get
Storage Object] - Container objects
- objects_
count float - Container total objects count
- objects_
size float - Container total objects size (bytes)
- owner_
id float - Container owner user ID
- prefix str
- List objects whose key begins with this prefix
- region str
- Container region
- region_
name str - Region name
- replication
Get
Storage Replication - Replication configuration
- service_
name str - Service name
- Mapping[str, str]
- Container tags
- versioning
Get
Storage Versioning - Versioning configuration
- virtual_
host str - Container virtual host
- hide_
objects bool - If true, objects list will not be saved in state (useful for large buckets)
- created
At String - The date and timestamp when the resource was created
- encryption Property Map
- Encryption configuration
- id String
- The provider-assigned unique ID for this managed resource.
- limit Number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- marker String
- Key to start with when listing objects
- name String
- Name
- objects List<Property Map>
- Container objects
- objects
Count Number - Container total objects count
- objects
Size Number - Container total objects size (bytes)
- owner
Id Number - Container owner user ID
- prefix String
- List objects whose key begins with this prefix
- region String
- Container region
- region
Name String - Region name
- replication Property Map
- Replication configuration
- service
Name String - Service name
- Map<String>
- Container tags
- versioning Property Map
- Versioning configuration
- virtual
Host String - Container virtual host
- hide
Objects Boolean - If true, objects list will not be saved in state (useful for large buckets)
Supporting Types
GetStorageEncryption
- Sse
Algorithm string - Encryption algorithm
- Sse
Algorithm string - Encryption algorithm
- sse
Algorithm String - Encryption algorithm
- sse
Algorithm string - Encryption algorithm
- sse_
algorithm str - Encryption algorithm
- sse
Algorithm String - Encryption algorithm
GetStorageObject
- Etag string
- ETag
- Is
Delete boolMarker - Whether this object is a delete marker
- Is
Latest bool - Whether this is the latest version of the object
- Key string
- Key
- Last
Modified string - Last modification date
- Size double
- Size (bytes)
- Storage
Class string - Storage class
- Version
Id string - Version ID of the object
- Etag string
- ETag
- Is
Delete boolMarker - Whether this object is a delete marker
- Is
Latest bool - Whether this is the latest version of the object
- Key string
- Key
- Last
Modified string - Last modification date
- Size float64
- Size (bytes)
- Storage
Class string - Storage class
- Version
Id string - Version ID of the object
- etag String
- ETag
- is
Delete BooleanMarker - Whether this object is a delete marker
- is
Latest Boolean - Whether this is the latest version of the object
- key String
- Key
- last
Modified String - Last modification date
- size Double
- Size (bytes)
- storage
Class String - Storage class
- version
Id String - Version ID of the object
- etag string
- ETag
- is
Delete booleanMarker - Whether this object is a delete marker
- is
Latest boolean - Whether this is the latest version of the object
- key string
- Key
- last
Modified string - Last modification date
- size number
- Size (bytes)
- storage
Class string - Storage class
- version
Id string - Version ID of the object
- etag str
- ETag
- is_
delete_ boolmarker - Whether this object is a delete marker
- is_
latest bool - Whether this is the latest version of the object
- key str
- Key
- last_
modified str - Last modification date
- size float
- Size (bytes)
- storage_
class str - Storage class
- version_
id str - Version ID of the object
- etag String
- ETag
- is
Delete BooleanMarker - Whether this object is a delete marker
- is
Latest Boolean - Whether this is the latest version of the object
- key String
- Key
- last
Modified String - Last modification date
- size Number
- Size (bytes)
- storage
Class String - Storage class
- version
Id String - Version ID of the object
GetStorageReplication
- Rules
List<Get
Storage Replication Rule> - Replication rules
- Rules
[]Get
Storage Replication Rule - Replication rules
- rules
List<Get
Storage Replication Rule> - Replication rules
- rules
Get
Storage Replication Rule[] - Replication rules
- rules
Sequence[Get
Storage Replication Rule] - Replication rules
- rules List<Property Map>
- Replication rules
GetStorageReplicationRule
- Delete
Marker stringReplication - Delete marker replication
- Destination
Get
Storage Replication Rule Destination - Rule destination configuration
- Filter
Get
Storage Replication Rule Filter - Rule filters
- Id string
- Rule ID
- Priority double
- Rule priority
- Status string
- Rule status
- Delete
Marker stringReplication - Delete marker replication
- Destination
Get
Storage Replication Rule Destination - Rule destination configuration
- Filter
Get
Storage Replication Rule Filter - Rule filters
- Id string
- Rule ID
- Priority float64
- Rule priority
- Status string
- Rule status
- delete
Marker StringReplication - Delete marker replication
- destination
Get
Storage Replication Rule Destination - Rule destination configuration
- filter
Get
Storage Replication Rule Filter - Rule filters
- id String
- Rule ID
- priority Double
- Rule priority
- status String
- Rule status
- delete
Marker stringReplication - Delete marker replication
- destination
Get
Storage Replication Rule Destination - Rule destination configuration
- filter
Get
Storage Replication Rule Filter - Rule filters
- id string
- Rule ID
- priority number
- Rule priority
- status string
- Rule status
- delete_
marker_ strreplication - Delete marker replication
- destination
Get
Storage Replication Rule Destination - Rule destination configuration
- filter
Get
Storage Replication Rule Filter - Rule filters
- id str
- Rule ID
- priority float
- Rule priority
- status str
- Rule status
- delete
Marker StringReplication - Delete marker replication
- destination Property Map
- Rule destination configuration
- filter Property Map
- Rule filters
- id String
- Rule ID
- priority Number
- Rule priority
- status String
- Rule status
GetStorageReplicationRuleDestination
- Name string
- Destination bucket name
- Region string
- Destination region, can be null if destination bucket has been deleted
- Remove
On boolMain Bucket Deletion - Storage
Class string - Destination storage class
- Name string
- Destination bucket name
- Region string
- Destination region, can be null if destination bucket has been deleted
- Remove
On boolMain Bucket Deletion - Storage
Class string - Destination storage class
- name String
- Destination bucket name
- region String
- Destination region, can be null if destination bucket has been deleted
- remove
On BooleanMain Bucket Deletion - storage
Class String - Destination storage class
- name string
- Destination bucket name
- region string
- Destination region, can be null if destination bucket has been deleted
- remove
On booleanMain Bucket Deletion - storage
Class string - Destination storage class
- name str
- Destination bucket name
- region str
- Destination region, can be null if destination bucket has been deleted
- remove_
on_ boolmain_ bucket_ deletion - storage_
class str - Destination storage class
- name String
- Destination bucket name
- region String
- Destination region, can be null if destination bucket has been deleted
- remove
On BooleanMain Bucket Deletion - storage
Class String - Destination storage class
GetStorageReplicationRuleFilter
- Prefix string
- Prefix filter
- Dictionary<string, string>
- Tags filter
- Prefix string
- Prefix filter
- map[string]string
- Tags filter
- prefix String
- Prefix filter
- Map<String,String>
- Tags filter
- prefix string
- Prefix filter
- {[key: string]: string}
- Tags filter
- prefix str
- Prefix filter
- Mapping[str, str]
- Tags filter
- prefix String
- Prefix filter
- Map<String>
- Tags filter
GetStorageVersioning
- Status string
- Versioning status
- Status string
- Versioning status
- status String
- Versioning status
- status string
- Versioning status
- status str
- Versioning status
- status String
- Versioning status
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
