1. Packages
  2. Linode
  3. API Docs
  4. getObjectStorageCluster
Linode v4.22.1 published on Wednesday, Jul 3, 2024 by Pulumi

linode.getObjectStorageCluster

Explore with Pulumi AI

linode logo
Linode v4.22.1 published on Wednesday, Jul 3, 2024 by Pulumi

    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.

    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:

    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 logo
    Linode v4.22.1 published on Wednesday, Jul 3, 2024 by Pulumi