1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. cms
  6. PrometheusView
Viewing docs for Alibaba Cloud v3.103.0
published on Friday, May 22, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.103.0
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:

    PrometheusInstances List<Pulumi.AliCloud.Cms.Inputs.PrometheusViewPrometheusInstance>
    The list of Prometheus instances. See prometheusInstances below.
    PrometheusViewName string
    The name of the Prometheus view.
    Version string
    The version. Valid values: V1, V2.
    Workspace string
    The workspace to which the environment belongs.
    AuthFreeReadPolicy string
    Read password-free address whitelist policy.
    EnableAuthFreeRead bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    PrometheusInstances []PrometheusViewPrometheusInstanceArgs
    The list of Prometheus instances. See prometheusInstances below.
    PrometheusViewName string
    The name of the Prometheus view.
    Version string
    The version. Valid values: V1, V2.
    Workspace string
    The workspace to which the environment belongs.
    AuthFreeReadPolicy string
    Read password-free address whitelist policy.
    EnableAuthFreeRead bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheus_instances list(object)
    The list of Prometheus instances. See prometheusInstances below.
    prometheus_view_name string
    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_read_policy string
    Read password-free address whitelist policy.
    enable_auth_free_read bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances List<PrometheusViewPrometheusInstance>
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName String
    The name of the Prometheus view.
    version String
    The version. Valid values: V1, V2.
    workspace String
    The workspace to which the environment belongs.
    authFreeReadPolicy String
    Read password-free address whitelist policy.
    enableAuthFreeRead Boolean
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances PrometheusViewPrometheusInstance[]
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName string
    The name of the Prometheus view.
    version string
    The version. Valid values: V1, V2.
    workspace string
    The workspace to which the environment belongs.
    authFreeReadPolicy string
    Read password-free address whitelist policy.
    enableAuthFreeRead boolean
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheus_instances Sequence[PrometheusViewPrometheusInstanceArgs]
    The list of Prometheus instances. See prometheusInstances below.
    prometheus_view_name str
    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_read_policy str
    Read password-free address whitelist policy.
    enable_auth_free_read bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances List<Property Map>
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName String
    The name of the Prometheus view.
    version String
    The version. Valid values: V1, V2.
    workspace String
    The workspace to which the environment belongs.
    authFreeReadPolicy String
    Read password-free address whitelist policy.
    enableAuthFreeRead Boolean
    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:

    CreateTime string
    The time when the instance was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The region ID.
    CreateTime string
    The time when the instance was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId 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.
    createTime String
    The time when the instance was created.
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The region ID.
    createTime string
    The time when the instance was created.
    id string
    The provider-assigned unique ID for this managed resource.
    regionId 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.
    createTime String
    The time when the instance was created.
    id String
    The provider-assigned unique ID for this managed resource.
    regionId 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) -> PrometheusView
    func 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.
    The following state arguments are supported:
    AuthFreeReadPolicy string
    Read password-free address whitelist policy.
    CreateTime string
    The time when the instance was created.
    EnableAuthFreeRead bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    PrometheusInstances List<Pulumi.AliCloud.Cms.Inputs.PrometheusViewPrometheusInstance>
    The list of Prometheus instances. See prometheusInstances below.
    PrometheusViewName string
    The name of the Prometheus view.
    RegionId string
    The region ID.
    Version string
    The version. Valid values: V1, V2.
    Workspace string
    The workspace to which the environment belongs.
    AuthFreeReadPolicy string
    Read password-free address whitelist policy.
    CreateTime string
    The time when the instance was created.
    EnableAuthFreeRead bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    PrometheusInstances []PrometheusViewPrometheusInstanceArgs
    The list of Prometheus instances. See prometheusInstances below.
    PrometheusViewName string
    The name of the Prometheus view.
    RegionId string
    The region ID.
    Version string
    The version. Valid values: V1, V2.
    Workspace string
    The workspace to which the environment belongs.
    auth_free_read_policy string
    Read password-free address whitelist policy.
    create_time string
    The time when the instance was created.
    enable_auth_free_read bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheus_instances list(object)
    The list of Prometheus instances. See prometheusInstances below.
    prometheus_view_name string
    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.
    authFreeReadPolicy String
    Read password-free address whitelist policy.
    createTime String
    The time when the instance was created.
    enableAuthFreeRead Boolean
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances List<PrometheusViewPrometheusInstance>
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName String
    The name of the Prometheus view.
    regionId String
    The region ID.
    version String
    The version. Valid values: V1, V2.
    workspace String
    The workspace to which the environment belongs.
    authFreeReadPolicy string
    Read password-free address whitelist policy.
    createTime string
    The time when the instance was created.
    enableAuthFreeRead boolean
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances PrometheusViewPrometheusInstance[]
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName string
    The name of the Prometheus view.
    regionId string
    The region ID.
    version string
    The version. Valid values: V1, V2.
    workspace string
    The workspace to which the environment belongs.
    auth_free_read_policy str
    Read password-free address whitelist policy.
    create_time str
    The time when the instance was created.
    enable_auth_free_read bool
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheus_instances Sequence[PrometheusViewPrometheusInstanceArgs]
    The list of Prometheus instances. See prometheusInstances below.
    prometheus_view_name str
    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.
    authFreeReadPolicy String
    Read password-free address whitelist policy.
    createTime String
    The time when the instance was created.
    enableAuthFreeRead Boolean
    Specifies whether to enable password-free read access. Valid values: true, false.
    prometheusInstances List<Property Map>
    The list of Prometheus instances. See prometheusInstances below.
    prometheusViewName String
    The name of the Prometheus view.
    regionId 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

    PrometheusInstanceId string
    The ID of the prometheus instance.
    RegionId string
    The region ID of the prometheus instance.
    UserId string
    The user ID of the prometheus instance.
    PrometheusInstanceId string
    The ID of the prometheus instance.
    RegionId string
    The region ID of the prometheus instance.
    UserId string
    The user ID of the prometheus instance.
    prometheus_instance_id string
    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.
    prometheusInstanceId String
    The ID of the prometheus instance.
    regionId String
    The region ID of the prometheus instance.
    userId String
    The user ID of the prometheus instance.
    prometheusInstanceId string
    The ID of the prometheus instance.
    regionId string
    The region ID of the prometheus instance.
    userId string
    The user ID of the prometheus instance.
    prometheus_instance_id str
    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.
    prometheusInstanceId String
    The ID of the prometheus instance.
    regionId String
    The region ID of the prometheus instance.
    userId 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 alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.103.0
    published on Friday, May 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial