1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getCloudStack
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.getCloudStack

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/getcloudstack.getCloudStack has been deprecated in favor of grafana.cloud/getstack.getStack

    Data source for Grafana Stack

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    import * as grafana from "@pulumiverse/grafana";
    
    const testStack = new grafana.cloud.Stack("test", {
        name: "gcloudstacktest",
        slug: "gcloudstacktest",
        regionSlug: "eu",
        description: "Test Grafana Cloud Stack",
    });
    const test = grafana.cloud.getStackOutput({
        slug: testStack.slug,
    });
    
    import pulumi
    import pulumi_grafana as grafana
    import pulumiverse_grafana as grafana
    
    test_stack = grafana.cloud.Stack("test",
        name="gcloudstacktest",
        slug="gcloudstacktest",
        region_slug="eu",
        description="Test Grafana Cloud Stack")
    test = grafana.cloud.get_stack_output(slug=test_stack.slug)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/cloud"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testStack, err := cloud.NewStack(ctx, "test", &cloud.StackArgs{
    			Name:        pulumi.String("gcloudstacktest"),
    			Slug:        pulumi.String("gcloudstacktest"),
    			RegionSlug:  pulumi.String("eu"),
    			Description: pulumi.String("Test Grafana Cloud Stack"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = cloud.LookupStackOutput(ctx, cloud.GetStackOutputArgs{
    			Slug: testStack.Slug,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var testStack = new Grafana.Cloud.Stack("test", new()
        {
            Name = "gcloudstacktest",
            Slug = "gcloudstacktest",
            RegionSlug = "eu",
            Description = "Test Grafana Cloud Stack",
        });
    
        var test = Grafana.Cloud.GetStack.Invoke(new()
        {
            Slug = testStack.Slug,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.cloud.Stack;
    import com.pulumi.grafana.cloud.StackArgs;
    import com.pulumi.grafana.cloud.CloudFunctions;
    import com.pulumi.grafana.cloud.inputs.GetStackArgs;
    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) {
            var testStack = new Stack("testStack", StackArgs.builder()
                .name("gcloudstacktest")
                .slug("gcloudstacktest")
                .regionSlug("eu")
                .description("Test Grafana Cloud Stack")
                .build());
    
            final var test = CloudFunctions.getStack(GetStackArgs.builder()
                .slug(testStack.slug())
                .build());
    
        }
    }
    
    resources:
      testStack:
        type: grafana:cloud:Stack
        name: test
        properties:
          name: gcloudstacktest
          slug: gcloudstacktest
          regionSlug: eu
          description: Test Grafana Cloud Stack
    variables:
      test:
        fn::invoke:
          Function: grafana:cloud:getStack
          Arguments:
            slug: ${testStack.slug}
    

    Using getCloudStack

    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 getCloudStack(args: GetCloudStackArgs, opts?: InvokeOptions): Promise<GetCloudStackResult>
    function getCloudStackOutput(args: GetCloudStackOutputArgs, opts?: InvokeOptions): Output<GetCloudStackResult>
    def get_cloud_stack(slug: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCloudStackResult
    def get_cloud_stack_output(slug: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCloudStackResult]
    func LookupCloudStack(ctx *Context, args *LookupCloudStackArgs, opts ...InvokeOption) (*LookupCloudStackResult, error)
    func LookupCloudStackOutput(ctx *Context, args *LookupCloudStackOutputArgs, opts ...InvokeOption) LookupCloudStackResultOutput

    > Note: This function is named LookupCloudStack in the Go SDK.

    public static class GetCloudStack 
    {
        public static Task<GetCloudStackResult> InvokeAsync(GetCloudStackArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudStackResult> Invoke(GetCloudStackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudStackResult> getCloudStack(GetCloudStackArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getCloudStack:getCloudStack
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    Slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    slug String
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    slug str
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    slug String
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".

    getCloudStack Result

    The following output properties are available:

    AlertmanagerName string
    Name of the Alertmanager instance configured for this stack.
    AlertmanagerStatus string
    Status of the Alertmanager instance configured for this stack.
    AlertmanagerUrl string
    Base URL of the Alertmanager instance configured for this stack.
    AlertmanagerUserId int
    User ID of the Alertmanager instance configured for this stack.
    Description string
    Description of stack.
    GraphiteName string
    GraphiteStatus string
    GraphiteUrl string
    GraphiteUserId int
    Id string
    The stack id assigned to this stack by Grafana.
    InfluxUrl string
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    Labels Dictionary<string, string>
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    LogsName string
    LogsStatus string
    LogsUrl string
    LogsUserId int
    Name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    OrgId int
    Organization id to assign to this stack.
    OrgName string
    Organization name to assign to this stack.
    OrgSlug string
    Organization slug to assign to this stack.
    OtlpUrl string
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    ProfilesName string
    ProfilesStatus string
    ProfilesUrl string
    ProfilesUserId int
    PrometheusName string
    Prometheus name for this instance.
    PrometheusRemoteEndpoint string
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    PrometheusRemoteWriteEndpoint string
    Use this URL to send prometheus metrics to Grafana cloud
    PrometheusStatus string
    Prometheus status for this instance.
    PrometheusUrl string
    Prometheus url for this instance.
    PrometheusUserId int
    Prometheus user ID. Used for e.g. remote_write.
    RegionSlug string
    The region this stack is deployed to.
    Slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    Status string
    Status of the stack.
    TracesName string
    TracesStatus string
    TracesUrl string
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    TracesUserId int
    Url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    AlertmanagerName string
    Name of the Alertmanager instance configured for this stack.
    AlertmanagerStatus string
    Status of the Alertmanager instance configured for this stack.
    AlertmanagerUrl string
    Base URL of the Alertmanager instance configured for this stack.
    AlertmanagerUserId int
    User ID of the Alertmanager instance configured for this stack.
    Description string
    Description of stack.
    GraphiteName string
    GraphiteStatus string
    GraphiteUrl string
    GraphiteUserId int
    Id string
    The stack id assigned to this stack by Grafana.
    InfluxUrl string
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    Labels map[string]string
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    LogsName string
    LogsStatus string
    LogsUrl string
    LogsUserId int
    Name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    OrgId int
    Organization id to assign to this stack.
    OrgName string
    Organization name to assign to this stack.
    OrgSlug string
    Organization slug to assign to this stack.
    OtlpUrl string
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    ProfilesName string
    ProfilesStatus string
    ProfilesUrl string
    ProfilesUserId int
    PrometheusName string
    Prometheus name for this instance.
    PrometheusRemoteEndpoint string
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    PrometheusRemoteWriteEndpoint string
    Use this URL to send prometheus metrics to Grafana cloud
    PrometheusStatus string
    Prometheus status for this instance.
    PrometheusUrl string
    Prometheus url for this instance.
    PrometheusUserId int
    Prometheus user ID. Used for e.g. remote_write.
    RegionSlug string
    The region this stack is deployed to.
    Slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    Status string
    Status of the stack.
    TracesName string
    TracesStatus string
    TracesUrl string
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    TracesUserId int
    Url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    alertmanagerName String
    Name of the Alertmanager instance configured for this stack.
    alertmanagerStatus String
    Status of the Alertmanager instance configured for this stack.
    alertmanagerUrl String
    Base URL of the Alertmanager instance configured for this stack.
    alertmanagerUserId Integer
    User ID of the Alertmanager instance configured for this stack.
    description String
    Description of stack.
    graphiteName String
    graphiteStatus String
    graphiteUrl String
    graphiteUserId Integer
    id String
    The stack id assigned to this stack by Grafana.
    influxUrl String
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    labels Map<String,String>
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    logsName String
    logsStatus String
    logsUrl String
    logsUserId Integer
    name String
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    orgId Integer
    Organization id to assign to this stack.
    orgName String
    Organization name to assign to this stack.
    orgSlug String
    Organization slug to assign to this stack.
    otlpUrl String
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    profilesName String
    profilesStatus String
    profilesUrl String
    profilesUserId Integer
    prometheusName String
    Prometheus name for this instance.
    prometheusRemoteEndpoint String
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    prometheusRemoteWriteEndpoint String
    Use this URL to send prometheus metrics to Grafana cloud
    prometheusStatus String
    Prometheus status for this instance.
    prometheusUrl String
    Prometheus url for this instance.
    prometheusUserId Integer
    Prometheus user ID. Used for e.g. remote_write.
    regionSlug String
    The region this stack is deployed to.
    slug String
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    status String
    Status of the stack.
    tracesName String
    tracesStatus String
    tracesUrl String
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    tracesUserId Integer
    url String
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    alertmanagerName string
    Name of the Alertmanager instance configured for this stack.
    alertmanagerStatus string
    Status of the Alertmanager instance configured for this stack.
    alertmanagerUrl string
    Base URL of the Alertmanager instance configured for this stack.
    alertmanagerUserId number
    User ID of the Alertmanager instance configured for this stack.
    description string
    Description of stack.
    graphiteName string
    graphiteStatus string
    graphiteUrl string
    graphiteUserId number
    id string
    The stack id assigned to this stack by Grafana.
    influxUrl string
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    labels {[key: string]: string}
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    logsName string
    logsStatus string
    logsUrl string
    logsUserId number
    name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    orgId number
    Organization id to assign to this stack.
    orgName string
    Organization name to assign to this stack.
    orgSlug string
    Organization slug to assign to this stack.
    otlpUrl string
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    profilesName string
    profilesStatus string
    profilesUrl string
    profilesUserId number
    prometheusName string
    Prometheus name for this instance.
    prometheusRemoteEndpoint string
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    prometheusRemoteWriteEndpoint string
    Use this URL to send prometheus metrics to Grafana cloud
    prometheusStatus string
    Prometheus status for this instance.
    prometheusUrl string
    Prometheus url for this instance.
    prometheusUserId number
    Prometheus user ID. Used for e.g. remote_write.
    regionSlug string
    The region this stack is deployed to.
    slug string
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    status string
    Status of the stack.
    tracesName string
    tracesStatus string
    tracesUrl string
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    tracesUserId number
    url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    alertmanager_name str
    Name of the Alertmanager instance configured for this stack.
    alertmanager_status str
    Status of the Alertmanager instance configured for this stack.
    alertmanager_url str
    Base URL of the Alertmanager instance configured for this stack.
    alertmanager_user_id int
    User ID of the Alertmanager instance configured for this stack.
    description str
    Description of stack.
    graphite_name str
    graphite_status str
    graphite_url str
    graphite_user_id int
    id str
    The stack id assigned to this stack by Grafana.
    influx_url str
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    labels Mapping[str, str]
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    logs_name str
    logs_status str
    logs_url str
    logs_user_id int
    name str
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    org_id int
    Organization id to assign to this stack.
    org_name str
    Organization name to assign to this stack.
    org_slug str
    Organization slug to assign to this stack.
    otlp_url str
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    profiles_name str
    profiles_status str
    profiles_url str
    profiles_user_id int
    prometheus_name str
    Prometheus name for this instance.
    prometheus_remote_endpoint str
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    prometheus_remote_write_endpoint str
    Use this URL to send prometheus metrics to Grafana cloud
    prometheus_status str
    Prometheus status for this instance.
    prometheus_url str
    Prometheus url for this instance.
    prometheus_user_id int
    Prometheus user ID. Used for e.g. remote_write.
    region_slug str
    The region this stack is deployed to.
    slug str
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    status str
    Status of the stack.
    traces_name str
    traces_status str
    traces_url str
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    traces_user_id int
    url str
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    alertmanagerName String
    Name of the Alertmanager instance configured for this stack.
    alertmanagerStatus String
    Status of the Alertmanager instance configured for this stack.
    alertmanagerUrl String
    Base URL of the Alertmanager instance configured for this stack.
    alertmanagerUserId Number
    User ID of the Alertmanager instance configured for this stack.
    description String
    Description of stack.
    graphiteName String
    graphiteStatus String
    graphiteUrl String
    graphiteUserId Number
    id String
    The stack id assigned to this stack by Grafana.
    influxUrl String
    Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (prometheus_user_id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
    labels Map<String>
    A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
    logsName String
    logsStatus String
    logsUrl String
    logsUserId Number
    name String
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    orgId Number
    Organization id to assign to this stack.
    orgName String
    Organization name to assign to this stack.
    orgSlug String
    Organization slug to assign to this stack.
    otlpUrl String
    Base URL of the OTLP instance configured for this stack. The username is the stack's ID (id attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
    profilesName String
    profilesStatus String
    profilesUrl String
    profilesUserId Number
    prometheusName String
    Prometheus name for this instance.
    prometheusRemoteEndpoint String
    Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
    prometheusRemoteWriteEndpoint String
    Use this URL to send prometheus metrics to Grafana cloud
    prometheusStatus String
    Prometheus status for this instance.
    prometheusUrl String
    Prometheus url for this instance.
    prometheusUserId Number
    Prometheus user ID. Used for e.g. remote_write.
    regionSlug String
    The region this stack is deployed to.
    slug String
    Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
    status String
    Status of the stack.
    tracesName String
    tracesStatus String
    tracesUrl String
    Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
    tracesUserId Number
    url String
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse