1. Packages
  2. Grafana Cloud
  3. API Docs
  4. CloudStack
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.CloudStack

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Required access policy scopes:

    • stacks:read
    • stacks:write
    • stacks:delete

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test = new grafana.CloudStack("test", {
        description: "Test Grafana Cloud Stack",
        regionSlug: "eu",
        slug: "gcloudstacktest",
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    test = grafana.CloudStack("test",
        description="Test Grafana Cloud Stack",
        region_slug="eu",
        slug="gcloudstacktest")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := grafana.NewCloudStack(ctx, "test", &grafana.CloudStackArgs{
    			Description: pulumi.String("Test Grafana Cloud Stack"),
    			RegionSlug:  pulumi.String("eu"),
    			Slug:        pulumi.String("gcloudstacktest"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Grafana.CloudStack("test", new()
        {
            Description = "Test Grafana Cloud Stack",
            RegionSlug = "eu",
            Slug = "gcloudstacktest",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.CloudStack;
    import com.pulumi.grafana.CloudStackArgs;
    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 test = new CloudStack("test", CloudStackArgs.builder()        
                .description("Test Grafana Cloud Stack")
                .regionSlug("eu")
                .slug("gcloudstacktest")
                .build());
    
        }
    }
    
    resources:
      test:
        type: grafana:CloudStack
        properties:
          description: Test Grafana Cloud Stack
          regionSlug: eu
          slug: gcloudstacktest
    

    Create CloudStack Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudStack(name: string, args: CloudStackArgs, opts?: CustomResourceOptions);
    @overload
    def CloudStack(resource_name: str,
                   args: CloudStackArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudStack(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   slug: Optional[str] = None,
                   description: Optional[str] = None,
                   labels: Optional[Mapping[str, str]] = None,
                   name: Optional[str] = None,
                   region_slug: Optional[str] = None,
                   url: Optional[str] = None,
                   wait_for_readiness: Optional[bool] = None,
                   wait_for_readiness_timeout: Optional[str] = None)
    func NewCloudStack(ctx *Context, name string, args CloudStackArgs, opts ...ResourceOption) (*CloudStack, error)
    public CloudStack(string name, CloudStackArgs args, CustomResourceOptions? opts = null)
    public CloudStack(String name, CloudStackArgs args)
    public CloudStack(String name, CloudStackArgs args, CustomResourceOptions options)
    
    type: grafana:CloudStack
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CloudStackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudStackArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudStackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudStackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudStackArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cloudStackResource = new Grafana.CloudStack("cloudStackResource", new()
    {
        Slug = "string",
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        RegionSlug = "string",
        Url = "string",
        WaitForReadiness = false,
        WaitForReadinessTimeout = "string",
    });
    
    example, err := grafana.NewCloudStack(ctx, "cloudStackResource", &grafana.CloudStackArgs{
    	Slug:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:                    pulumi.String("string"),
    	RegionSlug:              pulumi.String("string"),
    	Url:                     pulumi.String("string"),
    	WaitForReadiness:        pulumi.Bool(false),
    	WaitForReadinessTimeout: pulumi.String("string"),
    })
    
    var cloudStackResource = new CloudStack("cloudStackResource", CloudStackArgs.builder()
        .slug("string")
        .description("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .regionSlug("string")
        .url("string")
        .waitForReadiness(false)
        .waitForReadinessTimeout("string")
        .build());
    
    cloud_stack_resource = grafana.CloudStack("cloudStackResource",
        slug="string",
        description="string",
        labels={
            "string": "string",
        },
        name="string",
        region_slug="string",
        url="string",
        wait_for_readiness=False,
        wait_for_readiness_timeout="string")
    
    const cloudStackResource = new grafana.CloudStack("cloudStackResource", {
        slug: "string",
        description: "string",
        labels: {
            string: "string",
        },
        name: "string",
        regionSlug: "string",
        url: "string",
        waitForReadiness: false,
        waitForReadinessTimeout: "string",
    });
    
    type: grafana:CloudStack
    properties:
        description: string
        labels:
            string: string
        name: string
        regionSlug: string
        slug: string
        url: string
        waitForReadiness: false
        waitForReadinessTimeout: string
    

    CloudStack Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CloudStack resource accepts the following input properties:

    Slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    Description string
    Description of stack.
    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.
    Name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    RegionSlug string
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    Url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    WaitForReadiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    WaitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    Slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    Description string
    Description of stack.
    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.
    Name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    RegionSlug string
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    Url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    WaitForReadiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    WaitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    slug String
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    description String
    Description of stack.
    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.
    name String
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    regionSlug String
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    url String
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    waitForReadiness Boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout String
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    description string
    Description of stack.
    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.
    name string
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    regionSlug string
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    url string
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    waitForReadiness boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    slug str
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    description str
    Description of stack.
    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.
    name str
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    region_slug str
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    url str
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    wait_for_readiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    wait_for_readiness_timeout str
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    slug String
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
    description String
    Description of stack.
    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.
    name String
    Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
    regionSlug String
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    url String
    Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
    waitForReadiness Boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout String
    How long to wait for readiness (if enabled). Defaults to 5m0s.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudStack resource produces the following output properties:

    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.
    GraphiteName string
    GraphiteStatus string
    GraphiteUrl string
    GraphiteUserId int
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsName string
    LogsStatus string
    LogsUrl string
    LogsUserId int
    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. 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.
    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
    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.
    GraphiteName string
    GraphiteStatus string
    GraphiteUrl string
    GraphiteUserId int
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsName string
    LogsStatus string
    LogsUrl string
    LogsUserId int
    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. 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.
    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
    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.
    graphiteName String
    graphiteStatus String
    graphiteUrl String
    graphiteUserId Integer
    id String
    The provider-assigned unique ID for this managed resource.
    logsName String
    logsStatus String
    logsUrl String
    logsUserId Integer
    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. 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.
    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
    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.
    graphiteName string
    graphiteStatus string
    graphiteUrl string
    graphiteUserId number
    id string
    The provider-assigned unique ID for this managed resource.
    logsName string
    logsStatus string
    logsUrl string
    logsUserId number
    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. 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.
    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
    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.
    graphite_name str
    graphite_status str
    graphite_url str
    graphite_user_id int
    id str
    The provider-assigned unique ID for this managed resource.
    logs_name str
    logs_status str
    logs_url str
    logs_user_id int
    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. 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.
    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
    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.
    graphiteName String
    graphiteStatus String
    graphiteUrl String
    graphiteUserId Number
    id String
    The provider-assigned unique ID for this managed resource.
    logsName String
    logsStatus String
    logsUrl String
    logsUserId Number
    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. 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.
    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

    Look up Existing CloudStack Resource

    Get an existing CloudStack resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudStackState, opts?: CustomResourceOptions): CloudStack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alertmanager_name: Optional[str] = None,
            alertmanager_status: Optional[str] = None,
            alertmanager_url: Optional[str] = None,
            alertmanager_user_id: Optional[int] = None,
            description: Optional[str] = None,
            graphite_name: Optional[str] = None,
            graphite_status: Optional[str] = None,
            graphite_url: Optional[str] = None,
            graphite_user_id: Optional[int] = None,
            labels: Optional[Mapping[str, str]] = None,
            logs_name: Optional[str] = None,
            logs_status: Optional[str] = None,
            logs_url: Optional[str] = None,
            logs_user_id: Optional[int] = None,
            name: Optional[str] = None,
            org_id: Optional[int] = None,
            org_name: Optional[str] = None,
            org_slug: Optional[str] = None,
            otlp_url: Optional[str] = None,
            profiles_name: Optional[str] = None,
            profiles_status: Optional[str] = None,
            profiles_url: Optional[str] = None,
            profiles_user_id: Optional[int] = None,
            prometheus_name: Optional[str] = None,
            prometheus_remote_endpoint: Optional[str] = None,
            prometheus_remote_write_endpoint: Optional[str] = None,
            prometheus_status: Optional[str] = None,
            prometheus_url: Optional[str] = None,
            prometheus_user_id: Optional[int] = None,
            region_slug: Optional[str] = None,
            slug: Optional[str] = None,
            status: Optional[str] = None,
            traces_name: Optional[str] = None,
            traces_status: Optional[str] = None,
            traces_url: Optional[str] = None,
            traces_user_id: Optional[int] = None,
            url: Optional[str] = None,
            wait_for_readiness: Optional[bool] = None,
            wait_for_readiness_timeout: Optional[str] = None) -> CloudStack
    func GetCloudStack(ctx *Context, name string, id IDInput, state *CloudStackState, opts ...ResourceOption) (*CloudStack, error)
    public static CloudStack Get(string name, Input<string> id, CloudStackState? state, CustomResourceOptions? opts = null)
    public static CloudStack get(String name, Output<String> id, CloudStackState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    Slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    WaitForReadiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    WaitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    Slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    WaitForReadiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    WaitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    slug String
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    waitForReadiness Boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout String
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    slug string
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    waitForReadiness boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout string
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    slug str
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    wait_for_readiness bool
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    wait_for_readiness_timeout str
    How long to wait for readiness (if enabled). Defaults to 5m0s.
    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
    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. 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
    Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
    slug String
    Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.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
    waitForReadiness Boolean
    Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
    waitForReadinessTimeout String
    How long to wait for readiness (if enabled). Defaults to 5m0s.

    Import

    $ pulumi import grafana:index/cloudStack:CloudStack name "{{ stackSlugOrID }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse