OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud
ovh.CloudProject.getStorageObject
Explore with Pulumi AI
Get information about an object in 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 "@pulumi/ovh";
const object = ovh.CloudProject.getStorageObject({
key: "<object name>",
name: "<bucket name>",
regionName: "GRA",
serviceName: "<public cloud project ID>",
});
import pulumi
import pulumi_ovh as ovh
object = ovh.CloudProject.get_storage_object(key="<object name>",
name="<bucket name>",
region_name="GRA",
service_name="<public cloud project ID>")
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.GetStorageObject(ctx, &cloudproject.GetStorageObjectArgs{
Key: "<object name>",
Name: "<bucket name>",
RegionName: "GRA",
ServiceName: "<public cloud project ID>",
}, 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 @object = Ovh.CloudProject.GetStorageObject.Invoke(new()
{
Key = "<object name>",
Name = "<bucket name>",
RegionName = "GRA",
ServiceName = "<public cloud project ID>",
});
});
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.GetStorageObjectArgs;
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 object = CloudProjectFunctions.getStorageObject(GetStorageObjectArgs.builder()
.key("<object name>")
.name("<bucket name>")
.regionName("GRA")
.serviceName("<public cloud project ID>")
.build());
}
}
variables:
object:
fn::invoke:
function: ovh:CloudProject:getStorageObject
arguments:
key: <object name>
name: <bucket name>
regionName: GRA
serviceName: <public cloud project ID>
Using getStorageObject
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 getStorageObject(args: GetStorageObjectArgs, opts?: InvokeOptions): Promise<GetStorageObjectResult>
function getStorageObjectOutput(args: GetStorageObjectOutputArgs, opts?: InvokeOptions): Output<GetStorageObjectResult>
def get_storage_object(key: Optional[str] = None,
name: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageObjectResult
def get_storage_object_output(key: Optional[pulumi.Input[str]] = None,
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[GetStorageObjectResult]
func GetStorageObject(ctx *Context, args *GetStorageObjectArgs, opts ...InvokeOption) (*GetStorageObjectResult, error)
func GetStorageObjectOutput(ctx *Context, args *GetStorageObjectOutputArgs, opts ...InvokeOption) GetStorageObjectResultOutput
> Note: This function is named GetStorageObject
in the Go SDK.
public static class GetStorageObject
{
public static Task<GetStorageObjectResult> InvokeAsync(GetStorageObjectArgs args, InvokeOptions? opts = null)
public static Output<GetStorageObjectResult> Invoke(GetStorageObjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStorageObjectResult> getStorageObject(GetStorageObjectArgs args, InvokeOptions options)
public static Output<GetStorageObjectResult> getStorageObject(GetStorageObjectArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getStorageObject:getStorageObject
arguments:
# arguments dictionary
The following arguments are supported:
- Key string
- Key
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Key string
- Key
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- key String
- Key
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- key string
- Key
- name string
- Name
- region
Name string - Region name
- service
Name string - Service name
- key str
- Key
- name str
- Name
- region_
name str - Region name
- service_
name str - Service name
- key String
- Key
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
getStorageObject Result
The following output properties are available:
- Etag string
- ETag
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Size double
- Size (bytes)
- Storage
Class string - Storage class
- Version
Id string - Version ID of the object
- Etag string
- ETag
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- Name string
- Name
- Region
Name string - Region name
- Service
Name string - Service name
- Size float64
- Size (bytes)
- Storage
Class string - Storage class
- Version
Id string - Version ID of the object
- etag String
- ETag
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- size Double
- Size (bytes)
- storage
Class String - Storage class
- version
Id String - Version ID of the object
- etag string
- ETag
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- name string
- Name
- region
Name string - Region name
- service
Name string - Service name
- size number
- Size (bytes)
- storage
Class string - Storage class
- version
Id string - Version ID of the object
- etag str
- ETag
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- name str
- Name
- region_
name str - Region name
- service_
name str - Service name
- size float
- Size (bytes)
- storage_
class str - Storage class
- version_
id str - Version ID of the object
- etag String
- ETag
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- name String
- Name
- region
Name String - Region name
- service
Name String - Service name
- 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
ovh
Terraform Provider.