1. Packages
  2. Linode Provider
  3. API Docs
  4. getObjectStorageCluster
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

linode.getObjectStorageCluster

Explore with Pulumi AI

Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

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",
});
Copy
import pulumi
import pulumi_linode as linode

primary = linode.get_object_storage_cluster(id="us-east-1")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  primary:
    fn::invoke:
      function: linode:getObjectStorageCluster
      arguments:
        id: us-east-1
Copy

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>
Copy
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]
Copy
func GetObjectStorageCluster(ctx *Context, args *GetObjectStorageClusterArgs, opts ...InvokeOption) (*GetObjectStorageClusterResult, error)
func GetObjectStorageClusterOutput(ctx *Context, args *GetObjectStorageClusterOutputArgs, opts ...InvokeOption) GetObjectStorageClusterResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetObjectStorageClusterResult> getObjectStorageCluster(GetObjectStorageClusterArgs args, InvokeOptions options)
public static Output<GetObjectStorageClusterResult> getObjectStorageCluster(GetObjectStorageClusterArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: linode:index/getObjectStorageCluster:getObjectStorageCluster
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The unique ID of this cluster.
Id This property is required. string
The unique ID of this cluster.
id This property is required. String
The unique ID of this cluster.
id This property is required. string
The unique ID of this cluster.
id This property is required. str
The unique ID of this cluster.
id This property is required. String
The unique ID of this cluster.

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
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi