Linode

Pulumi Official
Package maintained by Pulumi
v3.7.1 published on Wednesday, Jan 5, 2022 by Pulumi

getObjectStorageCluster

Provides information about a Linode Object Storage Cluster

Attributes

The Linode Object Storage Cluster resource exports the following attributes:

  • domain - The base URL for this cluster.

  • status - This cluster’s status. (available, unavailable)

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

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

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var primary = Output.Create(Linode.GetObjectStorageCluster.InvokeAsync(new Linode.GetObjectStorageClusterArgs
        {
            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
	})
}

Coming soon!

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",
}));

Coming soon!

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
Region string
StaticSiteDomain string
Status string
Id string

The unique ID of this cluster.

Domain string
Region string
StaticSiteDomain string
Status string
id String

The unique ID of this cluster.

domain String
region String
staticSiteDomain String
status String
id string

The unique ID of this cluster.

domain string
region string
staticSiteDomain string
status string
id str

The unique ID of this cluster.

domain str
region str
static_site_domain str
status str
id String

The unique ID of this cluster.

domain String
region String
staticSiteDomain String
status String

getObjectStorageCluster Result

The following output properties are available:

Domain string
Id string
Region string
StaticSiteDomain string
Status string
Domain string
Id string
Region string
StaticSiteDomain string
Status string
domain String
id String
region String
staticSiteDomain String
status String
domain string
id string
region string
staticSiteDomain string
status string
domain String
id String
region String
staticSiteDomain String
status String

Package Details

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

This Pulumi package is based on the linode Terraform Provider.