Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien
vultr.getObjectStorageCluster
Explore with Pulumi AI
Get information about Object Storage Clusters on Vultr.
Example Usage
Get the information for an object storage cluster by region
:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";
const s3 = vultr.getObjectStorageCluster({
filters: [{
name: "region",
values: ["ewr"],
}],
});
import pulumi
import pulumi_vultr as vultr
s3 = vultr.get_object_storage_cluster(filters=[vultr.GetObjectStorageClusterFilterArgs(
name="region",
values=["ewr"],
)])
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.GetObjectStorageCluster(ctx, &vultr.GetObjectStorageClusterArgs{
Filters: []vultr.GetObjectStorageClusterFilter{
{
Name: "region",
Values: []string{
"ewr",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = Pulumi.Vultr;
return await Deployment.RunAsync(() =>
{
var s3 = Vultr.GetObjectStorageCluster.Invoke(new()
{
Filters = new[]
{
new Vultr.Inputs.GetObjectStorageClusterFilterInputArgs
{
Name = "region",
Values = new[]
{
"ewr",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.VultrFunctions;
import com.pulumi.vultr.inputs.GetObjectStorageClusterArgs;
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 s3 = VultrFunctions.getObjectStorageCluster(GetObjectStorageClusterArgs.builder()
.filters(GetObjectStorageClusterFilterArgs.builder()
.name("region")
.values("ewr")
.build())
.build());
}
}
variables:
s3:
fn::invoke:
Function: vultr:getObjectStorageCluster
Arguments:
filters:
- name: region
values:
- ewr
Using getObjectStorageCluster
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 getObjectStorageCluster(args: GetObjectStorageClusterArgs, opts?: InvokeOptions): Promise<GetObjectStorageClusterResult>
function getObjectStorageClusterOutput(args: GetObjectStorageClusterOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageClusterResult>
def get_object_storage_cluster(filters: Optional[Sequence[GetObjectStorageClusterFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageClusterResult
def get_object_storage_cluster_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageClusterFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageClusterResult]
func GetObjectStorageCluster(ctx *Context, args *GetObjectStorageClusterArgs, opts ...InvokeOption) (*GetObjectStorageClusterResult, error)
func GetObjectStorageClusterOutput(ctx *Context, args *GetObjectStorageClusterOutputArgs, opts ...InvokeOption) GetObjectStorageClusterResultOutput
> Note: This function is named GetObjectStorageCluster
in the Go SDK.
public static class GetObjectStorageCluster
{
public static Task<GetObjectStorageClusterResult> InvokeAsync(GetObjectStorageClusterArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageClusterResult> Invoke(GetObjectStorageClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetObjectStorageClusterResult> getObjectStorageCluster(GetObjectStorageClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vultr:index/getObjectStorageCluster:getObjectStorageCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<ediri.
Vultr. Inputs. Get Object Storage Cluster Filter> - Query parameters for finding operating systems.
- Filters
[]Get
Object Storage Cluster Filter - Query parameters for finding operating systems.
- filters
List<Get
Object Storage Cluster Filter> - Query parameters for finding operating systems.
- filters
Get
Object Storage Cluster Filter[] - Query parameters for finding operating systems.
- filters
Sequence[Get
Object Storage Cluster Filter] - Query parameters for finding operating systems.
- filters List<Property Map>
- Query parameters for finding operating systems.
getObjectStorageCluster Result
The following output properties are available:
Supporting Types
GetObjectStorageClusterFilter
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.