Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi
linode.getObjectStorageCluster
Explore with Pulumi AI
Provides information about a Linode Object Storage Cluster For more information, see the Linode APIv4 docs.
Example Usage
The following example shows how one might use this data source to access information about a Linode Object Storage Cluster.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const primary = linode.getObjectStorageCluster({
id: "us-east-1",
});
import pulumi
import pulumi_linode as linode
primary = linode.get_object_storage_cluster(id="us-east-1")
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetObjectStorageCluster(ctx, &linode.GetObjectStorageClusterArgs{
Id: "us-east-1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var primary = Linode.GetObjectStorageCluster.Invoke(new()
{
Id = "us-east-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.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 primary = LinodeFunctions.getObjectStorageCluster(GetObjectStorageClusterArgs.builder()
.id("us-east-1")
.build());
}
}
variables:
primary:
fn::invoke:
Function: linode:getObjectStorageCluster
Arguments:
id: us-east-1
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(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageClusterResult
def get_object_storage_cluster_output(id: Optional[pulumi.Input[str]] = 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: linode:index/getObjectStorageCluster:getObjectStorageCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The unique ID of this cluster.
- Id string
- The unique ID of this cluster.
- id String
- The unique ID of this cluster.
- id string
- The unique ID of this cluster.
- id str
- The unique ID of this cluster.
- id String
- The unique ID of this cluster.
getObjectStorageCluster Result
The following output properties are available:
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.