alicloud.arms.GrafanaWorkspace
Explore with Pulumi AI
Provides a Application Real-Time Monitoring Service (ARMS) Grafana Workspace resource.
For information about Application Real-Time Monitoring Service (ARMS) Grafana Workspace and how to use it, see What is Grafana Workspace.
NOTE: Available since v1.215.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.resourcemanager.getResourceGroups({});
const defaultGrafanaWorkspace = new alicloud.arms.GrafanaWorkspace("default", {
grafanaVersion: "9.0.x",
description: name,
resourceGroupId: _default.then(_default => _default.ids?.[0]),
grafanaWorkspaceEdition: "standard",
grafanaWorkspaceName: name,
tags: {
Created: "tf",
For: "example",
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
default_grafana_workspace = alicloud.arms.GrafanaWorkspace("default",
grafana_version="9.0.x",
description=name,
resource_group_id=default.ids[0],
grafana_workspace_edition="standard",
grafana_workspace_name=name,
tags={
"Created": "tf",
"For": "example",
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
_, err = arms.NewGrafanaWorkspace(ctx, "default", &arms.GrafanaWorkspaceArgs{
GrafanaVersion: pulumi.String("9.0.x"),
Description: pulumi.String(name),
ResourceGroupId: pulumi.String(_default.Ids[0]),
GrafanaWorkspaceEdition: pulumi.String("standard"),
GrafanaWorkspaceName: pulumi.String(name),
Tags: pulumi.StringMap{
"Created": pulumi.String("tf"),
"For": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultGrafanaWorkspace = new AliCloud.Arms.GrafanaWorkspace("default", new()
{
GrafanaVersion = "9.0.x",
Description = name,
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
GrafanaWorkspaceEdition = "standard",
GrafanaWorkspaceName = name,
Tags =
{
{ "Created", "tf" },
{ "For", "example" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.arms.GrafanaWorkspace;
import com.pulumi.alicloud.arms.GrafanaWorkspaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
var defaultGrafanaWorkspace = new GrafanaWorkspace("defaultGrafanaWorkspace", GrafanaWorkspaceArgs.builder()
.grafanaVersion("9.0.x")
.description(name)
.resourceGroupId(default_.ids()[0])
.grafanaWorkspaceEdition("standard")
.grafanaWorkspaceName(name)
.tags(Map.ofEntries(
Map.entry("Created", "tf"),
Map.entry("For", "example")
))
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultGrafanaWorkspace:
type: alicloud:arms:GrafanaWorkspace
name: default
properties:
grafanaVersion: 9.0.x
description: ${name}
resourceGroupId: ${default.ids[0]}
grafanaWorkspaceEdition: standard
grafanaWorkspaceName: ${name}
tags:
Created: tf
For: example
variables:
default:
fn::invoke:
function: alicloud:resourcemanager:getResourceGroups
arguments: {}
Create GrafanaWorkspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GrafanaWorkspace(name: string, args: GrafanaWorkspaceArgs, opts?: CustomResourceOptions);
@overload
def GrafanaWorkspace(resource_name: str,
args: GrafanaWorkspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GrafanaWorkspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
grafana_workspace_name: Optional[str] = None,
grafana_version: Optional[str] = None,
auto_renew: Optional[bool] = None,
custom_account_number: Optional[str] = None,
description: Optional[str] = None,
duration: Optional[str] = None,
account_number: Optional[str] = None,
grafana_workspace_edition: Optional[str] = None,
aliyun_lang: Optional[str] = None,
password: Optional[str] = None,
pricing_cycle: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewGrafanaWorkspace(ctx *Context, name string, args GrafanaWorkspaceArgs, opts ...ResourceOption) (*GrafanaWorkspace, error)
public GrafanaWorkspace(string name, GrafanaWorkspaceArgs args, CustomResourceOptions? opts = null)
public GrafanaWorkspace(String name, GrafanaWorkspaceArgs args)
public GrafanaWorkspace(String name, GrafanaWorkspaceArgs args, CustomResourceOptions options)
type: alicloud:arms:GrafanaWorkspace
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 GrafanaWorkspaceArgs
- 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 GrafanaWorkspaceArgs
- 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 GrafanaWorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GrafanaWorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GrafanaWorkspaceArgs
- 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 grafanaWorkspaceResource = new AliCloud.Arms.GrafanaWorkspace("grafanaWorkspaceResource", new()
{
GrafanaWorkspaceName = "string",
GrafanaVersion = "string",
AutoRenew = false,
CustomAccountNumber = "string",
Description = "string",
Duration = "string",
AccountNumber = "string",
GrafanaWorkspaceEdition = "string",
AliyunLang = "string",
Password = "string",
PricingCycle = "string",
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := arms.NewGrafanaWorkspace(ctx, "grafanaWorkspaceResource", &arms.GrafanaWorkspaceArgs{
GrafanaWorkspaceName: pulumi.String("string"),
GrafanaVersion: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
CustomAccountNumber: pulumi.String("string"),
Description: pulumi.String("string"),
Duration: pulumi.String("string"),
AccountNumber: pulumi.String("string"),
GrafanaWorkspaceEdition: pulumi.String("string"),
AliyunLang: pulumi.String("string"),
Password: pulumi.String("string"),
PricingCycle: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var grafanaWorkspaceResource = new GrafanaWorkspace("grafanaWorkspaceResource", GrafanaWorkspaceArgs.builder()
.grafanaWorkspaceName("string")
.grafanaVersion("string")
.autoRenew(false)
.customAccountNumber("string")
.description("string")
.duration("string")
.accountNumber("string")
.grafanaWorkspaceEdition("string")
.aliyunLang("string")
.password("string")
.pricingCycle("string")
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.build());
grafana_workspace_resource = alicloud.arms.GrafanaWorkspace("grafanaWorkspaceResource",
grafana_workspace_name="string",
grafana_version="string",
auto_renew=False,
custom_account_number="string",
description="string",
duration="string",
account_number="string",
grafana_workspace_edition="string",
aliyun_lang="string",
password="string",
pricing_cycle="string",
resource_group_id="string",
tags={
"string": "string",
})
const grafanaWorkspaceResource = new alicloud.arms.GrafanaWorkspace("grafanaWorkspaceResource", {
grafanaWorkspaceName: "string",
grafanaVersion: "string",
autoRenew: false,
customAccountNumber: "string",
description: "string",
duration: "string",
accountNumber: "string",
grafanaWorkspaceEdition: "string",
aliyunLang: "string",
password: "string",
pricingCycle: "string",
resourceGroupId: "string",
tags: {
string: "string",
},
});
type: alicloud:arms:GrafanaWorkspace
properties:
accountNumber: string
aliyunLang: string
autoRenew: false
customAccountNumber: string
description: string
duration: string
grafanaVersion: string
grafanaWorkspaceEdition: string
grafanaWorkspaceName: string
password: string
pricingCycle: string
resourceGroupId: string
tags:
string: string
GrafanaWorkspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GrafanaWorkspace resource accepts the following input properties:
- Grafana
Workspace stringName - The name of the resource
- Account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- Aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- Auto
Renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- Custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- Description string
- Description
- Duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- Grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- Password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- Pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- Resource
Group stringId - The ID of the resource group
- Dictionary<string, string>
- The tag of the resource
- Grafana
Workspace stringName - The name of the resource
- Account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- Aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- Auto
Renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- Custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- Description string
- Description
- Duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- Grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- Password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- Pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- Resource
Group stringId - The ID of the resource group
- map[string]string
- The tag of the resource
- grafana
Workspace StringName - The name of the resource
- account
Number String - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang String - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew Boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- custom
Account StringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description String
- Description
- duration String
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- String
- Grafana version
- grafana
Workspace StringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- password String
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle String - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- resource
Group StringId - The ID of the resource group
- Map<String,String>
- The tag of the resource
- grafana
Workspace stringName - The name of the resource
- account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description string
- Description
- duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- resource
Group stringId - The ID of the resource group
- {[key: string]: string}
- The tag of the resource
- grafana_
workspace_ strname - The name of the resource
- account_
number str - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun_
lang str - Language environment (if not filled in, default is zh):
- zh
- en
- auto_
renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- custom_
account_ strnumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description str
- Description
- duration str
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- grafana_
version str - Grafana version
- grafana_
workspace_ stredition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- password str
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing_
cycle str - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- resource_
group_ strid - The ID of the resource group
- Mapping[str, str]
- The tag of the resource
- grafana
Workspace StringName - The name of the resource
- account
Number String - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang String - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew Boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- custom
Account StringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description String
- Description
- duration String
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- String
- Grafana version
- grafana
Workspace StringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- password String
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle String - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- resource
Group StringId - The ID of the resource group
- Map<String>
- The tag of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the GrafanaWorkspace resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - The region ID of the resource
- status string
- The status of the resource
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - The region ID of the resource
- status str
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
Look up Existing GrafanaWorkspace Resource
Get an existing GrafanaWorkspace 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?: GrafanaWorkspaceState, opts?: CustomResourceOptions): GrafanaWorkspace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_number: Optional[str] = None,
aliyun_lang: Optional[str] = None,
auto_renew: Optional[bool] = None,
create_time: Optional[str] = None,
custom_account_number: Optional[str] = None,
description: Optional[str] = None,
duration: Optional[str] = None,
grafana_version: Optional[str] = None,
grafana_workspace_edition: Optional[str] = None,
grafana_workspace_name: Optional[str] = None,
password: Optional[str] = None,
pricing_cycle: Optional[str] = None,
region_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> GrafanaWorkspace
func GetGrafanaWorkspace(ctx *Context, name string, id IDInput, state *GrafanaWorkspaceState, opts ...ResourceOption) (*GrafanaWorkspace, error)
public static GrafanaWorkspace Get(string name, Input<string> id, GrafanaWorkspaceState? state, CustomResourceOptions? opts = null)
public static GrafanaWorkspace get(String name, Output<String> id, GrafanaWorkspaceState state, CustomResourceOptions options)
resources: _: type: alicloud:arms:GrafanaWorkspace get: id: ${id}
- 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.
- Account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- Aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- Auto
Renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- Create
Time string - The creation time of the resource
- Custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- Description string
- Description
- Duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- Grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- Grafana
Workspace stringName - The name of the resource
- Password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- Pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- Region
Id string - The region ID of the resource
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- Dictionary<string, string>
- The tag of the resource
- Account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- Aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- Auto
Renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- Create
Time string - The creation time of the resource
- Custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- Description string
- Description
- Duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- Grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- Grafana
Workspace stringName - The name of the resource
- Password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- Pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- Region
Id string - The region ID of the resource
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- map[string]string
- The tag of the resource
- account
Number String - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang String - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew Boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- create
Time String - The creation time of the resource
- custom
Account StringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description String
- Description
- duration String
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- String
- Grafana version
- grafana
Workspace StringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- grafana
Workspace StringName - The name of the resource
- password String
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle String - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- region
Id String - The region ID of the resource
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- Map<String,String>
- The tag of the resource
- account
Number string - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang string - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- create
Time string - The creation time of the resource
- custom
Account stringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description string
- Description
- duration string
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- string
- Grafana version
- grafana
Workspace stringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- grafana
Workspace stringName - The name of the resource
- password string
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle string - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- region
Id string - The region ID of the resource
- resource
Group stringId - The ID of the resource group
- status string
- The status of the resource
- {[key: string]: string}
- The tag of the resource
- account_
number str - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun_
lang str - Language environment (if not filled in, default is zh):
- zh
- en
- auto_
renew bool - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- create_
time str - The creation time of the resource
- custom_
account_ strnumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description str
- Description
- duration str
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- grafana_
version str - Grafana version
- grafana_
workspace_ stredition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- grafana_
workspace_ strname - The name of the resource
- password str
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing_
cycle str - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- region_
id str - The region ID of the resource
- resource_
group_ strid - The ID of the resource group
- status str
- The status of the resource
- Mapping[str, str]
- The tag of the resource
- account
Number String - Value Description: GrafanaWorkspaceEdition is standard, this parameter is invalid. GrafanaWorkspaceEdition is personal_edition. This parameter is invalid. Default value: 1. The value of GrafanaWorkspaceEdition is experts_edition. The values are respectively 10, 30, and 50. The default value is 10. The value of GrafanaWorkspaceEdition is advanced_edition. This parameter is invalid. The default value is 100.
- aliyun
Lang String - Language environment (if not filled in, default is zh):
- zh
- en
- auto
Renew Boolean - Whether to automatically renew. Value range:
- true: Automatic renewal. Default value: true.
- false: Do not renew automatically.
- create
Time String - The creation time of the resource
- custom
Account StringNumber - The number of additional user-defined accounts. Value Description:
- GrafanaWorkspaceEdition is standard, this parameter is invalid.
- GrafanaWorkspaceEdition is personal_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is experts_edition, this parameter is invalid.
- GrafanaWorkspaceEdition is advanced_edition. The value range is 0 to 2000 and is a multiple of 10. The default value is 0.
- description String
- Description
- duration String
- The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is set to Year, indicating annual payment. The value range is 1 to 3. Default value: 1.
- String
- Grafana version
- grafana
Workspace StringEdition - The edition. Valid values:
- standard:
Beta Edition(For internal testing only)
- personal_edition: Developer Edition
- experts_edition: Pro Edition
- advanced_edition: Advanced Edition
- standard:
- grafana
Workspace StringName - The name of the resource
- password String
- The password of the instance. It is 8 to 30 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be:()'~! @#$%^& *-_+ =
- pricing
Cycle String - The billing cycle of the package year and Month. Value: Month (default): purchase by Month. Year: Purchased by Year.
- region
Id String - The region ID of the resource
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- Map<String>
- The tag of the resource
Import
Application Real-Time Monitoring Service (ARMS) Grafana Workspace can be imported using the id, e.g.
$ pulumi import alicloud:arms/grafanaWorkspace:GrafanaWorkspace example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.