Linode

v3.10.1 published on Tuesday, Aug 30, 2022 by Pulumi

getObjectStorageCluster

Provides information about a Linode Object Storage Cluster

Example Usage

The following example shows how one might use this data source to access information about a Linode Object Storage Cluster.

using System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var primary = Linode.GetObjectStorageCluster.Invoke(new()
    {
        Id = "us-east-1",
    });

});
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.GetObjectStorageCluster(ctx, &GetObjectStorageClusterArgs{
			Id: "us-east-1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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());

    }
}
import pulumi
import pulumi_linode as linode

primary = linode.get_object_storage_cluster(id="us-east-1")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const primary = pulumi.output(linode.getObjectStorageCluster({
    id: "us-east-1",
}));
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(domain: Optional[str] = None,
                               id: Optional[str] = None,
                               region: Optional[str] = None,
                               static_site_domain: Optional[str] = None,
                               status: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetObjectStorageClusterResult
def get_object_storage_cluster_output(domain: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               static_site_domain: Optional[pulumi.Input[str]] = None,
                               status: 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.

Domain string

The base URL for this cluster.

Region string

The region this cluster is located in. See all regions here.

StaticSiteDomain string

The base URL for this cluster used when hosting static sites.

Status string

This cluster's status. (available, unavailable)

Id string

The unique ID of this cluster.

Domain string

The base URL for this cluster.

Region string

The region this cluster is located in. See all regions here.

StaticSiteDomain string

The base URL for this cluster used when hosting static sites.

Status string

This cluster's status. (available, unavailable)

id String

The unique ID of this cluster.

domain String

The base URL for this cluster.

region String

The region this cluster is located in. See all regions here.

staticSiteDomain String

The base URL for this cluster used when hosting static sites.

status String

This cluster's status. (available, unavailable)

id string

The unique ID of this cluster.

domain string

The base URL for this cluster.

region string

The region this cluster is located in. See all regions here.

staticSiteDomain string

The base URL for this cluster used when hosting static sites.

status string

This cluster's status. (available, unavailable)

id str

The unique ID of this cluster.

domain str

The base URL for this cluster.

region str

The region this cluster is located in. See all regions here.

static_site_domain str

The base URL for this cluster used when hosting static sites.

status str

This cluster's status. (available, unavailable)

id String

The unique ID of this cluster.

domain String

The base URL for this cluster.

region String

The region this cluster is located in. See all regions here.

staticSiteDomain String

The base URL for this cluster used when hosting static sites.

status String

This cluster's status. (available, unavailable)

getObjectStorageCluster Result

The following output properties are available:

Domain string

The base URL for this cluster.

Id string
Region string

The region this cluster is located in. See all regions here.

StaticSiteDomain string

The base URL for this cluster used when hosting static sites.

Status string

This cluster's status. (available, unavailable)

Domain string

The base URL for this cluster.

Id string
Region string

The region this cluster is located in. See all regions here.

StaticSiteDomain string

The base URL for this cluster used when hosting static sites.

Status string

This cluster's status. (available, unavailable)

domain String

The base URL for this cluster.

id String
region String

The region this cluster is located in. See all regions here.

staticSiteDomain String

The base URL for this cluster used when hosting static sites.

status String

This cluster's status. (available, unavailable)

domain string

The base URL for this cluster.

id string
region string

The region this cluster is located in. See all regions here.

staticSiteDomain string

The base URL for this cluster used when hosting static sites.

status string

This cluster's status. (available, unavailable)

domain str

The base URL for this cluster.

id str
region str

The region this cluster is located in. See all regions here.

static_site_domain str

The base URL for this cluster used when hosting static sites.

status str

This cluster's status. (available, unavailable)

domain String

The base URL for this cluster.

id String
region String

The region this cluster is located in. See all regions here.

staticSiteDomain String

The base URL for this cluster used when hosting static sites.

status String

This cluster's status. (available, unavailable)

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.