published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Provides a Cms Prometheus View resource.
For information about Cms Prometheus View and how to use it, see What is Prometheus View.
NOTE: Available since v1.278.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.getAccount({});
const defaultInteger = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultProject = new alicloud.log.Project("default", {projectName: `${name}-${defaultInteger.result}`});
const defaultWorkspace = new alicloud.cms.Workspace("default", {
workspaceName: `${name}-${defaultInteger.result}`,
slsProject: defaultProject.projectName,
});
const defaultPrometheusInstance = new alicloud.cms.PrometheusInstance("default", {
prometheusInstanceName: `${name}-${defaultInteger.result}`,
workspace: defaultWorkspace.id,
});
const defaultPrometheusView = new alicloud.cms.PrometheusView("default", {
prometheusViewName: `${name}-${defaultInteger.result}`,
version: "V2",
prometheusInstances: [{
prometheusInstanceId: defaultPrometheusInstance.id,
regionId: defaultPrometheusInstance.regionId,
userId: _default.then(_default => _default.id),
}],
workspace: defaultPrometheusInstance.workspace,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.get_account()
default_integer = random.Integer("default",
min=10000,
max=99999)
default_project = alicloud.log.Project("default", project_name=f"{name}-{default_integer['result']}")
default_workspace = alicloud.cms.Workspace("default",
workspace_name=f"{name}-{default_integer['result']}",
sls_project=default_project.project_name)
default_prometheus_instance = alicloud.cms.PrometheusInstance("default",
prometheus_instance_name=f"{name}-{default_integer['result']}",
workspace=default_workspace.id)
default_prometheus_view = alicloud.cms.PrometheusView("default",
prometheus_view_name=f"{name}-{default_integer['result']}",
version="V2",
prometheus_instances=[{
"prometheus_instance_id": default_prometheus_instance.id,
"region_id": default_prometheus_instance.region_id,
"user_id": default.id,
}],
workspace=default_prometheus_instance.workspace)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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 := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
defaultProject, err := log.NewProject(ctx, "default", &log.ProjectArgs{
ProjectName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
})
if err != nil {
return err
}
defaultWorkspace, err := cms.NewWorkspace(ctx, "default", &cms.WorkspaceArgs{
WorkspaceName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
SlsProject: defaultProject.ProjectName,
})
if err != nil {
return err
}
defaultPrometheusInstance, err := cms.NewPrometheusInstance(ctx, "default", &cms.PrometheusInstanceArgs{
PrometheusInstanceName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
Workspace: defaultWorkspace.ID(),
})
if err != nil {
return err
}
_, err = cms.NewPrometheusView(ctx, "default", &cms.PrometheusViewArgs{
PrometheusViewName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
Version: pulumi.String("V2"),
PrometheusInstances: cms.PrometheusViewPrometheusInstanceArray{
&cms.PrometheusViewPrometheusInstanceArgs{
PrometheusInstanceId: defaultPrometheusInstance.ID(),
RegionId: defaultPrometheusInstance.RegionId,
UserId: pulumi.String(_default.Id),
},
},
Workspace: defaultPrometheusInstance.Workspace,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.GetAccount.Invoke();
var defaultInteger = new Random.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultProject = new AliCloud.Log.Project("default", new()
{
ProjectName = $"{name}-{defaultInteger.Result}",
});
var defaultWorkspace = new AliCloud.Cms.Workspace("default", new()
{
WorkspaceName = $"{name}-{defaultInteger.Result}",
SlsProject = defaultProject.ProjectName,
});
var defaultPrometheusInstance = new AliCloud.Cms.PrometheusInstance("default", new()
{
PrometheusInstanceName = $"{name}-{defaultInteger.Result}",
Workspace = defaultWorkspace.Id,
});
var defaultPrometheusView = new AliCloud.Cms.PrometheusView("default", new()
{
PrometheusViewName = $"{name}-{defaultInteger.Result}",
Version = "V2",
PrometheusInstances = new[]
{
new AliCloud.Cms.Inputs.PrometheusViewPrometheusInstanceArgs
{
PrometheusInstanceId = defaultPrometheusInstance.Id,
RegionId = defaultPrometheusInstance.RegionId,
UserId = @default.Apply(@default => @default.Apply(getAccountResult => getAccountResult.Id)),
},
},
Workspace = defaultPrometheusInstance.Workspace,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.random.Integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.cms.Workspace;
import com.pulumi.alicloud.cms.WorkspaceArgs;
import com.pulumi.alicloud.cms.PrometheusInstance;
import com.pulumi.alicloud.cms.PrometheusInstanceArgs;
import com.pulumi.alicloud.cms.PrometheusView;
import com.pulumi.alicloud.cms.PrometheusViewArgs;
import com.pulumi.alicloud.cms.inputs.PrometheusViewPrometheusInstanceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 = AlicloudFunctions.getAccount(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultProject = new Project("defaultProject", ProjectArgs.builder()
.projectName(String.format("%s-%s", name,defaultInteger.result()))
.build());
var defaultWorkspace = new Workspace("defaultWorkspace", WorkspaceArgs.builder()
.workspaceName(String.format("%s-%s", name,defaultInteger.result()))
.slsProject(defaultProject.projectName())
.build());
var defaultPrometheusInstance = new PrometheusInstance("defaultPrometheusInstance", PrometheusInstanceArgs.builder()
.prometheusInstanceName(String.format("%s-%s", name,defaultInteger.result()))
.workspace(defaultWorkspace.id())
.build());
var defaultPrometheusView = new PrometheusView("defaultPrometheusView", PrometheusViewArgs.builder()
.prometheusViewName(String.format("%s-%s", name,defaultInteger.result()))
.version("V2")
.prometheusInstances(PrometheusViewPrometheusInstanceArgs.builder()
.prometheusInstanceId(defaultPrometheusInstance.id())
.regionId(defaultPrometheusInstance.regionId())
.userId(default_.id())
.build())
.workspace(defaultPrometheusInstance.workspace())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultInteger:
type: random:Integer
name: default
properties:
min: 10000
max: 99999
defaultProject:
type: alicloud:log:Project
name: default
properties:
projectName: ${name}-${defaultInteger.result}
defaultWorkspace:
type: alicloud:cms:Workspace
name: default
properties:
workspaceName: ${name}-${defaultInteger.result}
slsProject: ${defaultProject.projectName}
defaultPrometheusInstance:
type: alicloud:cms:PrometheusInstance
name: default
properties:
prometheusInstanceName: ${name}-${defaultInteger.result}
workspace: ${defaultWorkspace.id}
defaultPrometheusView:
type: alicloud:cms:PrometheusView
name: default
properties:
prometheusViewName: ${name}-${defaultInteger.result}
version: V2
prometheusInstances:
- prometheusInstanceId: ${defaultPrometheusInstance.id}
regionId: ${defaultPrometheusInstance.regionId}
userId: ${default.id}
workspace: ${defaultPrometheusInstance.workspace}
variables:
default:
fn::invoke:
function: alicloud:getAccount
arguments: {}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
random = {
source = "pulumi/random"
}
}
}
data "alicloud_getaccount" "default" {
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_log_project" "default" {
project_name ="${var.name}-${random_integer.default.result}"
}
resource "alicloud_cms_workspace" "default" {
workspace_name ="${var.name}-${random_integer.default.result}"
sls_project = alicloud_log_project.default.project_name
}
resource "alicloud_cms_prometheusinstance" "default" {
prometheus_instance_name ="${var.name}-${random_integer.default.result}"
workspace = alicloud_cms_workspace.default.id
}
resource "alicloud_cms_prometheusview" "default" {
prometheus_view_name ="${var.name}-${random_integer.default.result}"
version = "V2"
prometheus_instances {
prometheus_instance_id = alicloud_cms_prometheusinstance.default.id
region_id = alicloud_cms_prometheusinstance.default.region_id
user_id = data.alicloud_getaccount.default.id
}
workspace = alicloud_cms_prometheusinstance.default.workspace
}
variable "name" {
type = string
default = "terraform-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create PrometheusView Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrometheusView(name: string, args: PrometheusViewArgs, opts?: CustomResourceOptions);@overload
def PrometheusView(resource_name: str,
args: PrometheusViewArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrometheusView(resource_name: str,
opts: Optional[ResourceOptions] = None,
prometheus_instances: Optional[Sequence[PrometheusViewPrometheusInstanceArgs]] = None,
prometheus_view_name: Optional[str] = None,
version: Optional[str] = None,
workspace: Optional[str] = None,
auth_free_read_policy: Optional[str] = None,
enable_auth_free_read: Optional[bool] = None)func NewPrometheusView(ctx *Context, name string, args PrometheusViewArgs, opts ...ResourceOption) (*PrometheusView, error)public PrometheusView(string name, PrometheusViewArgs args, CustomResourceOptions? opts = null)
public PrometheusView(String name, PrometheusViewArgs args)
public PrometheusView(String name, PrometheusViewArgs args, CustomResourceOptions options)
type: alicloud:cms:PrometheusView
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_cms_prometheusview" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PrometheusViewArgs
- 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 PrometheusViewArgs
- 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 PrometheusViewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrometheusViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrometheusViewArgs
- 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 prometheusViewResource = new AliCloud.Cms.PrometheusView("prometheusViewResource", new()
{
PrometheusInstances = new[]
{
new AliCloud.Cms.Inputs.PrometheusViewPrometheusInstanceArgs
{
PrometheusInstanceId = "string",
RegionId = "string",
UserId = "string",
},
},
PrometheusViewName = "string",
Version = "string",
Workspace = "string",
AuthFreeReadPolicy = "string",
EnableAuthFreeRead = false,
});
example, err := cms.NewPrometheusView(ctx, "prometheusViewResource", &cms.PrometheusViewArgs{
PrometheusInstances: cms.PrometheusViewPrometheusInstanceArray{
&cms.PrometheusViewPrometheusInstanceArgs{
PrometheusInstanceId: pulumi.String("string"),
RegionId: pulumi.String("string"),
UserId: pulumi.String("string"),
},
},
PrometheusViewName: pulumi.String("string"),
Version: pulumi.String("string"),
Workspace: pulumi.String("string"),
AuthFreeReadPolicy: pulumi.String("string"),
EnableAuthFreeRead: pulumi.Bool(false),
})
resource "alicloud_cms_prometheusview" "prometheusViewResource" {
prometheus_instances {
prometheus_instance_id = "string"
region_id = "string"
user_id = "string"
}
prometheus_view_name = "string"
version = "string"
workspace = "string"
auth_free_read_policy = "string"
enable_auth_free_read = false
}
var prometheusViewResource = new PrometheusView("prometheusViewResource", PrometheusViewArgs.builder()
.prometheusInstances(PrometheusViewPrometheusInstanceArgs.builder()
.prometheusInstanceId("string")
.regionId("string")
.userId("string")
.build())
.prometheusViewName("string")
.version("string")
.workspace("string")
.authFreeReadPolicy("string")
.enableAuthFreeRead(false)
.build());
prometheus_view_resource = alicloud.cms.PrometheusView("prometheusViewResource",
prometheus_instances=[{
"prometheus_instance_id": "string",
"region_id": "string",
"user_id": "string",
}],
prometheus_view_name="string",
version="string",
workspace="string",
auth_free_read_policy="string",
enable_auth_free_read=False)
const prometheusViewResource = new alicloud.cms.PrometheusView("prometheusViewResource", {
prometheusInstances: [{
prometheusInstanceId: "string",
regionId: "string",
userId: "string",
}],
prometheusViewName: "string",
version: "string",
workspace: "string",
authFreeReadPolicy: "string",
enableAuthFreeRead: false,
});
type: alicloud:cms:PrometheusView
properties:
authFreeReadPolicy: string
enableAuthFreeRead: false
prometheusInstances:
- prometheusInstanceId: string
regionId: string
userId: string
prometheusViewName: string
version: string
workspace: string
PrometheusView 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 PrometheusView resource accepts the following input properties:
- Prometheus
Instances List<Pulumi.Ali Cloud. Cms. Inputs. Prometheus View Prometheus Instance> - The list of Prometheus instances. See
prometheusInstancesbelow. - Prometheus
View stringName - The name of the Prometheus view.
- Version string
- The version. Valid values:
V1,V2. - Workspace string
- The workspace to which the environment belongs.
- Auth
Free stringRead Policy - Read password-free address whitelist policy.
- Enable
Auth boolFree Read - Specifies whether to enable password-free read access. Valid values:
true,false.
- Prometheus
Instances []PrometheusView Prometheus Instance Args - The list of Prometheus instances. See
prometheusInstancesbelow. - Prometheus
View stringName - The name of the Prometheus view.
- Version string
- The version. Valid values:
V1,V2. - Workspace string
- The workspace to which the environment belongs.
- Auth
Free stringRead Policy - Read password-free address whitelist policy.
- Enable
Auth boolFree Read - Specifies whether to enable password-free read access. Valid values:
true,false.
- prometheus_
instances list(object) - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus_
view_ stringname - The name of the Prometheus view.
- version string
- The version. Valid values:
V1,V2. - workspace string
- The workspace to which the environment belongs.
- auth_
free_ stringread_ policy - Read password-free address whitelist policy.
- enable_
auth_ boolfree_ read - Specifies whether to enable password-free read access. Valid values:
true,false.
- prometheus
Instances List<PrometheusView Prometheus Instance> - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View StringName - The name of the Prometheus view.
- version String
- The version. Valid values:
V1,V2. - workspace String
- The workspace to which the environment belongs.
- auth
Free StringRead Policy - Read password-free address whitelist policy.
- enable
Auth BooleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false.
- prometheus
Instances PrometheusView Prometheus Instance[] - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View stringName - The name of the Prometheus view.
- version string
- The version. Valid values:
V1,V2. - workspace string
- The workspace to which the environment belongs.
- auth
Free stringRead Policy - Read password-free address whitelist policy.
- enable
Auth booleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false.
- prometheus_
instances Sequence[PrometheusView Prometheus Instance Args] - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus_
view_ strname - The name of the Prometheus view.
- version str
- The version. Valid values:
V1,V2. - workspace str
- The workspace to which the environment belongs.
- auth_
free_ strread_ policy - Read password-free address whitelist policy.
- enable_
auth_ boolfree_ read - Specifies whether to enable password-free read access. Valid values:
true,false.
- prometheus
Instances List<Property Map> - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View StringName - The name of the Prometheus view.
- version String
- The version. Valid values:
V1,V2. - workspace String
- The workspace to which the environment belongs.
- auth
Free StringRead Policy - Read password-free address whitelist policy.
- enable
Auth BooleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrometheusView resource produces the following output properties:
- Create
Time string - The time when the instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID.
- Create
Time string - The time when the instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID.
- create_
time string - The time when the instance was created.
- id string
- The provider-assigned unique ID for this managed resource.
- region_
id string - The region ID.
- create
Time String - The time when the instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID.
- create
Time string - The time when the instance was created.
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - The region ID.
- create_
time str - The time when the instance was created.
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - The region ID.
- create
Time String - The time when the instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID.
Look up Existing PrometheusView Resource
Get an existing PrometheusView 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?: PrometheusViewState, opts?: CustomResourceOptions): PrometheusView@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_free_read_policy: Optional[str] = None,
create_time: Optional[str] = None,
enable_auth_free_read: Optional[bool] = None,
prometheus_instances: Optional[Sequence[PrometheusViewPrometheusInstanceArgs]] = None,
prometheus_view_name: Optional[str] = None,
region_id: Optional[str] = None,
version: Optional[str] = None,
workspace: Optional[str] = None) -> PrometheusViewfunc GetPrometheusView(ctx *Context, name string, id IDInput, state *PrometheusViewState, opts ...ResourceOption) (*PrometheusView, error)public static PrometheusView Get(string name, Input<string> id, PrometheusViewState? state, CustomResourceOptions? opts = null)public static PrometheusView get(String name, Output<String> id, PrometheusViewState state, CustomResourceOptions options)resources: _: type: alicloud:cms:PrometheusView get: id: ${id}import {
to = alicloud_cms_prometheusview.example
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.
- Auth
Free stringRead Policy - Read password-free address whitelist policy.
- Create
Time string - The time when the instance was created.
- Enable
Auth boolFree Read - Specifies whether to enable password-free read access. Valid values:
true,false. - Prometheus
Instances List<Pulumi.Ali Cloud. Cms. Inputs. Prometheus View Prometheus Instance> - The list of Prometheus instances. See
prometheusInstancesbelow. - Prometheus
View stringName - The name of the Prometheus view.
- Region
Id string - The region ID.
- Version string
- The version. Valid values:
V1,V2. - Workspace string
- The workspace to which the environment belongs.
- Auth
Free stringRead Policy - Read password-free address whitelist policy.
- Create
Time string - The time when the instance was created.
- Enable
Auth boolFree Read - Specifies whether to enable password-free read access. Valid values:
true,false. - Prometheus
Instances []PrometheusView Prometheus Instance Args - The list of Prometheus instances. See
prometheusInstancesbelow. - Prometheus
View stringName - The name of the Prometheus view.
- Region
Id string - The region ID.
- Version string
- The version. Valid values:
V1,V2. - Workspace string
- The workspace to which the environment belongs.
- auth_
free_ stringread_ policy - Read password-free address whitelist policy.
- create_
time string - The time when the instance was created.
- enable_
auth_ boolfree_ read - Specifies whether to enable password-free read access. Valid values:
true,false. - prometheus_
instances list(object) - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus_
view_ stringname - The name of the Prometheus view.
- region_
id string - The region ID.
- version string
- The version. Valid values:
V1,V2. - workspace string
- The workspace to which the environment belongs.
- auth
Free StringRead Policy - Read password-free address whitelist policy.
- create
Time String - The time when the instance was created.
- enable
Auth BooleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false. - prometheus
Instances List<PrometheusView Prometheus Instance> - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View StringName - The name of the Prometheus view.
- region
Id String - The region ID.
- version String
- The version. Valid values:
V1,V2. - workspace String
- The workspace to which the environment belongs.
- auth
Free stringRead Policy - Read password-free address whitelist policy.
- create
Time string - The time when the instance was created.
- enable
Auth booleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false. - prometheus
Instances PrometheusView Prometheus Instance[] - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View stringName - The name of the Prometheus view.
- region
Id string - The region ID.
- version string
- The version. Valid values:
V1,V2. - workspace string
- The workspace to which the environment belongs.
- auth_
free_ strread_ policy - Read password-free address whitelist policy.
- create_
time str - The time when the instance was created.
- enable_
auth_ boolfree_ read - Specifies whether to enable password-free read access. Valid values:
true,false. - prometheus_
instances Sequence[PrometheusView Prometheus Instance Args] - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus_
view_ strname - The name of the Prometheus view.
- region_
id str - The region ID.
- version str
- The version. Valid values:
V1,V2. - workspace str
- The workspace to which the environment belongs.
- auth
Free StringRead Policy - Read password-free address whitelist policy.
- create
Time String - The time when the instance was created.
- enable
Auth BooleanFree Read - Specifies whether to enable password-free read access. Valid values:
true,false. - prometheus
Instances List<Property Map> - The list of Prometheus instances. See
prometheusInstancesbelow. - prometheus
View StringName - The name of the Prometheus view.
- region
Id String - The region ID.
- version String
- The version. Valid values:
V1,V2. - workspace String
- The workspace to which the environment belongs.
Supporting Types
PrometheusViewPrometheusInstance, PrometheusViewPrometheusInstanceArgs
- Prometheus
Instance stringId - The ID of the prometheus instance.
- Region
Id string - The region ID of the prometheus instance.
- User
Id string - The user ID of the prometheus instance.
- Prometheus
Instance stringId - The ID of the prometheus instance.
- Region
Id string - The region ID of the prometheus instance.
- User
Id string - The user ID of the prometheus instance.
- prometheus_
instance_ stringid - The ID of the prometheus instance.
- region_
id string - The region ID of the prometheus instance.
- user_
id string - The user ID of the prometheus instance.
- prometheus
Instance StringId - The ID of the prometheus instance.
- region
Id String - The region ID of the prometheus instance.
- user
Id String - The user ID of the prometheus instance.
- prometheus
Instance stringId - The ID of the prometheus instance.
- region
Id string - The region ID of the prometheus instance.
- user
Id string - The user ID of the prometheus instance.
- prometheus_
instance_ strid - The ID of the prometheus instance.
- region_
id str - The region ID of the prometheus instance.
- user_
id str - The user ID of the prometheus instance.
- prometheus
Instance StringId - The ID of the prometheus instance.
- region
Id String - The region ID of the prometheus instance.
- user
Id String - The user ID of the prometheus instance.
Import
Cms Prometheus View can be imported using the id, e.g.
$ pulumi import alicloud:cms/prometheusView:PrometheusView 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
alicloudTerraform Provider.
published on Friday, May 22, 2026 by Pulumi