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 objects of S3™* compatible storage containers. * 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 objects = ovh.CloudProject.getStorageObjects({
serviceName: "<public cloud project ID>",
regionName: "GRA",
name: "<bucket name>",
});
import pulumi
import pulumi_ovh as ovh
objects = ovh.CloudProject.get_storage_objects(service_name="<public cloud project ID>",
region_name="GRA",
name="<bucket 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.GetStorageObjects(ctx, &cloudproject.GetStorageObjectsArgs{
ServiceName: "<public cloud project ID>",
RegionName: "GRA",
Name: "<bucket 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 objects = Ovh.CloudProject.GetStorageObjects.Invoke(new()
{
ServiceName = "<public cloud project ID>",
RegionName = "GRA",
Name = "<bucket 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.GetStorageObjectsArgs;
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 objects = CloudProjectFunctions.getStorageObjects(GetStorageObjectsArgs.builder()
.serviceName("<public cloud project ID>")
.regionName("GRA")
.name("<bucket name>")
.build());
}
}
variables:
objects:
fn::invoke:
function: ovh:CloudProject:getStorageObjects
arguments:
serviceName: <public cloud project ID>
regionName: GRA
name: <bucket name>
Using getStorageObjects
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 getStorageObjects(args: GetStorageObjectsArgs, opts?: InvokeOptions): Promise<GetStorageObjectsResult>
function getStorageObjectsOutput(args: GetStorageObjectsOutputArgs, opts?: InvokeOptions): Output<GetStorageObjectsResult>def get_storage_objects(key_marker: Optional[str] = None,
limit: Optional[float] = None,
name: Optional[str] = None,
prefix: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
version_id_marker: Optional[str] = None,
with_versions: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageObjectsResult
def get_storage_objects_output(key_marker: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = 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,
version_id_marker: Optional[pulumi.Input[str]] = None,
with_versions: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageObjectsResult]func GetStorageObjects(ctx *Context, args *GetStorageObjectsArgs, opts ...InvokeOption) (*GetStorageObjectsResult, error)
func GetStorageObjectsOutput(ctx *Context, args *GetStorageObjectsOutputArgs, opts ...InvokeOption) GetStorageObjectsResultOutput> Note: This function is named GetStorageObjects in the Go SDK.
public static class GetStorageObjects
{
public static Task<GetStorageObjectsResult> InvokeAsync(GetStorageObjectsArgs args, InvokeOptions? opts = null)
public static Output<GetStorageObjectsResult> Invoke(GetStorageObjectsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageObjectsResult> getStorageObjects(GetStorageObjectsArgs args, InvokeOptions options)
public static Output<GetStorageObjectsResult> getStorageObjects(GetStorageObjectsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getStorageObjects:getStorageObjects
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Key
Marker string - Key to start with when listing objects
- Limit double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Prefix string
- List objects whose key begins with this prefix
- Version
Id stringMarker - Version ID to start listing from
- With
Versions bool - List object versions
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Key
Marker string - Key to start with when listing objects
- Limit float64
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Prefix string
- List objects whose key begins with this prefix
- Version
Id stringMarker - Version ID to start listing from
- With
Versions bool - List object versions
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- key
Marker String - Key to start with when listing objects
- limit Double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix String
- List objects whose key begins with this prefix
- version
Id StringMarker - Version ID to start listing from
- with
Versions Boolean - List object versions
- name string
- Name
- region
Name string - Region name
- service
Name string - Service name
- key
Marker string - Key to start with when listing objects
- limit number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix string
- List objects whose key begins with this prefix
- version
Id stringMarker - Version ID to start listing from
- with
Versions boolean - List object versions
- name str
- Name
- region_
name str - Region name
- service_
name str - Service name
- key_
marker str - Key to start with when listing objects
- limit float
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix str
- List objects whose key begins with this prefix
- version_
id_ strmarker - Version ID to start listing from
- with_
versions bool - List object versions
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- key
Marker String - Key to start with when listing objects
- limit Number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix String
- List objects whose key begins with this prefix
- version
Id StringMarker - Version ID to start listing from
- with
Versions Boolean - List object versions
getStorageObjects Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name
- Objects
List<Get
Storage Objects Object> - Region
Name string - Region name
- Service
Name string - Service name
- Key
Marker string - Key to start with when listing objects
- Limit double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Prefix string
- List objects whose key begins with this prefix
- Version
Id stringMarker - Version ID to start listing from
- With
Versions bool - List object versions
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name
- Objects
[]Get
Storage Objects Object - Region
Name string - Region name
- Service
Name string - Service name
- Key
Marker string - Key to start with when listing objects
- Limit float64
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- Prefix string
- List objects whose key begins with this prefix
- Version
Id stringMarker - Version ID to start listing from
- With
Versions bool - List object versions
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name
- objects
List<Get
Storage Objects Object> - region
Name String - Region name
- service
Name String - Service name
- key
Marker String - Key to start with when listing objects
- limit Double
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix String
- List objects whose key begins with this prefix
- version
Id StringMarker - Version ID to start listing from
- with
Versions Boolean - List object versions
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name
- objects
Get
Storage Objects Object[] - region
Name string - Region name
- service
Name string - Service name
- key
Marker string - Key to start with when listing objects
- limit number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix string
- List objects whose key begins with this prefix
- version
Id stringMarker - Version ID to start listing from
- with
Versions boolean - List object versions
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name
- objects
Sequence[Get
Storage Objects Object] - region_
name str - Region name
- service_
name str - Service name
- key_
marker str - Key to start with when listing objects
- limit float
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix str
- List objects whose key begins with this prefix
- version_
id_ strmarker - Version ID to start listing from
- with_
versions bool - List object versions
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name
- objects List<Property Map>
- region
Name String - Region name
- service
Name String - Service name
- key
Marker String - Key to start with when listing objects
- limit Number
- Limit the number of objects returned (1000 maximum, defaults to 1000)
- prefix String
- List objects whose key begins with this prefix
- version
Id StringMarker - Version ID to start listing from
- with
Versions Boolean - List object versions
Supporting Types
GetStorageObjectsObject
- 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
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
