grafana.CloudStack
Explore with Pulumi AI
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 athttps://<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
). - Region
Slug 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 - Wait
For boolReadiness - 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 stringReadiness Timeout - 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 athttps://<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
). - Region
Slug 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 - Wait
For boolReadiness - 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 stringReadiness Timeout - 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 athttps://<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
). - region
Slug 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 - wait
For BooleanReadiness - 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 StringReadiness Timeout - 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 athttps://<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
). - region
Slug 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 - wait
For booleanReadiness - 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 stringReadiness Timeout - 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 athttps://<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_ boolreadiness - 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_ strreadiness_ timeout - 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 athttps://<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
). - region
Slug 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 - wait
For BooleanReadiness - 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 StringReadiness Timeout - 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:
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- Alertmanager
User intId - User ID of the Alertmanager instance configured for this stack.
- Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId - Id string
- The provider-assigned unique ID for this managed resource.
- Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId - Org
Id int - Organization id to assign to this stack.
- Org
Name string - Organization name to assign to this stack.
- Org
Slug string - Organization slug to assign to this stack.
- Otlp
Url 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.
- Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId - Prometheus
Name string - Prometheus name for this instance.
- Prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- Prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- Prometheus
Status string - Prometheus status for this instance.
- Prometheus
Url string - Prometheus url for this instance.
- Prometheus
User intId - Prometheus user ID. Used for e.g. remote_write.
- Status string
- Status of the stack.
- Traces
Name string - Traces
Status string - Traces
Url 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. - Traces
User intId
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- Alertmanager
User intId - User ID of the Alertmanager instance configured for this stack.
- Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId - Id string
- The provider-assigned unique ID for this managed resource.
- Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId - Org
Id int - Organization id to assign to this stack.
- Org
Name string - Organization name to assign to this stack.
- Org
Slug string - Organization slug to assign to this stack.
- Otlp
Url 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.
- Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId - Prometheus
Name string - Prometheus name for this instance.
- Prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- Prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- Prometheus
Status string - Prometheus status for this instance.
- Prometheus
Url string - Prometheus url for this instance.
- Prometheus
User intId - Prometheus user ID. Used for e.g. remote_write.
- Status string
- Status of the stack.
- Traces
Name string - Traces
Status string - Traces
Url 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. - Traces
User intId
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User IntegerId - User ID of the Alertmanager instance configured for this stack.
- graphite
Name String - graphite
Status String - graphite
Url String - graphite
User IntegerId - id String
- The provider-assigned unique ID for this managed resource.
- logs
Name String - logs
Status String - logs
Url String - logs
User IntegerId - org
Id Integer - Organization id to assign to this stack.
- org
Name String - Organization name to assign to this stack.
- org
Slug String - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name String - profiles
Status String - profiles
Url String - profiles
User IntegerId - prometheus
Name String - Prometheus name for this instance.
- prometheus
Remote StringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote StringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status String - Prometheus status for this instance.
- prometheus
Url String - Prometheus url for this instance.
- prometheus
User IntegerId - Prometheus user ID. Used for e.g. remote_write.
- status String
- Status of the stack.
- traces
Name String - traces
Status String - traces
Url 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. - traces
User IntegerId
- alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User numberId - User ID of the Alertmanager instance configured for this stack.
- graphite
Name string - graphite
Status string - graphite
Url string - graphite
User numberId - id string
- The provider-assigned unique ID for this managed resource.
- logs
Name string - logs
Status string - logs
Url string - logs
User numberId - org
Id number - Organization id to assign to this stack.
- org
Name string - Organization name to assign to this stack.
- org
Slug string - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name string - profiles
Status string - profiles
Url string - profiles
User numberId - prometheus
Name string - Prometheus name for this instance.
- prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status string - Prometheus status for this instance.
- prometheus
Url string - Prometheus url for this instance.
- prometheus
User numberId - Prometheus user ID. Used for e.g. remote_write.
- status string
- Status of the stack.
- traces
Name string - traces
Status string - traces
Url 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. - traces
User numberId
- 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_ intid - User ID of the Alertmanager instance configured for this stack.
- graphite_
name str - graphite_
status str - graphite_
url str - graphite_
user_ intid - id str
- The provider-assigned unique ID for this managed resource.
- logs_
name str - logs_
status str - logs_
url str - logs_
user_ intid - 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_ intid - prometheus_
name str - Prometheus name for this instance.
- prometheus_
remote_ strendpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus_
remote_ strwrite_ endpoint - 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_ intid - 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_ intid
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User NumberId - User ID of the Alertmanager instance configured for this stack.
- graphite
Name String - graphite
Status String - graphite
Url String - graphite
User NumberId - id String
- The provider-assigned unique ID for this managed resource.
- logs
Name String - logs
Status String - logs
Url String - logs
User NumberId - org
Id Number - Organization id to assign to this stack.
- org
Name String - Organization name to assign to this stack.
- org
Slug String - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name String - profiles
Status String - profiles
Url String - profiles
User NumberId - prometheus
Name String - Prometheus name for this instance.
- prometheus
Remote StringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote StringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status String - Prometheus status for this instance.
- prometheus
Url String - Prometheus url for this instance.
- prometheus
User NumberId - Prometheus user ID. Used for e.g. remote_write.
- status String
- Status of the stack.
- traces
Name String - traces
Status String - traces
Url 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. - traces
User NumberId
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.
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- Alertmanager
User intId - User ID of the Alertmanager instance configured for this stack.
- Description string
- Description of stack.
- Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId - 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.
- Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId - Name string
- 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 string - Organization name to assign to this stack.
- Org
Slug string - Organization slug to assign to this stack.
- Otlp
Url 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.
- Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId - Prometheus
Name string - Prometheus name for this instance.
- Prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- Prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- Prometheus
Status string - Prometheus status for this instance.
- Prometheus
Url string - Prometheus url for this instance.
- Prometheus
User intId - Prometheus user ID. Used for e.g. remote_write.
- Region
Slug 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 athttps://<stack_slug>.grafana.net
. - Status string
- Status of the stack.
- Traces
Name string - Traces
Status string - Traces
Url 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. - Traces
User intId - Url string
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - Wait
For boolReadiness - 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 stringReadiness Timeout - How long to wait for readiness (if enabled). Defaults to
5m0s
.
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- Alertmanager
User intId - User ID of the Alertmanager instance configured for this stack.
- Description string
- Description of stack.
- Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId - 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.
- Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId - Name string
- 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 string - Organization name to assign to this stack.
- Org
Slug string - Organization slug to assign to this stack.
- Otlp
Url 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.
- Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId - Prometheus
Name string - Prometheus name for this instance.
- Prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- Prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- Prometheus
Status string - Prometheus status for this instance.
- Prometheus
Url string - Prometheus url for this instance.
- Prometheus
User intId - Prometheus user ID. Used for e.g. remote_write.
- Region
Slug 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 athttps://<stack_slug>.grafana.net
. - Status string
- Status of the stack.
- Traces
Name string - Traces
Status string - Traces
Url 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. - Traces
User intId - Url string
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - Wait
For boolReadiness - 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 stringReadiness Timeout - How long to wait for readiness (if enabled). Defaults to
5m0s
.
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User IntegerId - User ID of the Alertmanager instance configured for this stack.
- description String
- Description of stack.
- graphite
Name String - graphite
Status String - graphite
Url String - graphite
User IntegerId - 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.
- logs
Name String - logs
Status String - logs
Url String - logs
User IntegerId - name String
- Name of stack. Conventionally matches the url of the instance (e.g.
<stack_slug>.grafana.net
). - org
Id Integer - Organization id to assign to this stack.
- org
Name String - Organization name to assign to this stack.
- org
Slug String - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name String - profiles
Status String - profiles
Url String - profiles
User IntegerId - prometheus
Name String - Prometheus name for this instance.
- prometheus
Remote StringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote StringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status String - Prometheus status for this instance.
- prometheus
Url String - Prometheus url for this instance.
- prometheus
User IntegerId - Prometheus user ID. Used for e.g. remote_write.
- region
Slug 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 athttps://<stack_slug>.grafana.net
. - status String
- Status of the stack.
- traces
Name String - traces
Status String - traces
Url 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. - traces
User IntegerId - url String
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - wait
For BooleanReadiness - 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 StringReadiness Timeout - How long to wait for readiness (if enabled). Defaults to
5m0s
.
- alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User numberId - User ID of the Alertmanager instance configured for this stack.
- description string
- Description of stack.
- graphite
Name string - graphite
Status string - graphite
Url string - graphite
User numberId - 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.
- logs
Name string - logs
Status string - logs
Url string - logs
User numberId - name string
- Name of stack. Conventionally matches the url of the instance (e.g.
<stack_slug>.grafana.net
). - org
Id number - Organization id to assign to this stack.
- org
Name string - Organization name to assign to this stack.
- org
Slug string - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name string - profiles
Status string - profiles
Url string - profiles
User numberId - prometheus
Name string - Prometheus name for this instance.
- prometheus
Remote stringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote stringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status string - Prometheus status for this instance.
- prometheus
Url string - Prometheus url for this instance.
- prometheus
User numberId - Prometheus user ID. Used for e.g. remote_write.
- region
Slug 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 athttps://<stack_slug>.grafana.net
. - status string
- Status of the stack.
- traces
Name string - traces
Status string - traces
Url 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. - traces
User numberId - url string
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - wait
For booleanReadiness - 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 stringReadiness Timeout - 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_ intid - 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_ intid - 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_ intid - 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_ intid - prometheus_
name str - Prometheus name for this instance.
- prometheus_
remote_ strendpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus_
remote_ strwrite_ endpoint - 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_ intid - 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 athttps://<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_ intid - url str
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - wait_
for_ boolreadiness - 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_ strreadiness_ timeout - How long to wait for readiness (if enabled). Defaults to
5m0s
.
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
- alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
- alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
- alertmanager
User NumberId - User ID of the Alertmanager instance configured for this stack.
- description String
- Description of stack.
- graphite
Name String - graphite
Status String - graphite
Url String - graphite
User NumberId - 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.
- logs
Name String - logs
Status String - logs
Url String - logs
User NumberId - name String
- Name of stack. Conventionally matches the url of the instance (e.g.
<stack_slug>.grafana.net
). - org
Id Number - Organization id to assign to this stack.
- org
Name String - Organization name to assign to this stack.
- org
Slug String - Organization slug to assign to this stack.
- otlp
Url 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.
- profiles
Name String - profiles
Status String - profiles
Url String - profiles
User NumberId - prometheus
Name String - Prometheus name for this instance.
- prometheus
Remote StringEndpoint - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
- prometheus
Remote StringWrite Endpoint - Use this URL to send prometheus metrics to Grafana cloud
- prometheus
Status String - Prometheus status for this instance.
- prometheus
Url String - Prometheus url for this instance.
- prometheus
User NumberId - Prometheus user ID. Used for e.g. remote_write.
- region
Slug 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 athttps://<stack_slug>.grafana.net
. - status String
- Status of the stack.
- traces
Name String - traces
Status String - traces
Url 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. - traces
User NumberId - url String
- Custom URL for the Grafana instance. Must have a CNAME setup to point to
.grafana.net
before creating the stack - wait
For BooleanReadiness - 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 StringReadiness Timeout - 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.