1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. RumProject
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.RumProject

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a rum project

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleRumTawInstance = new tencentcloud.RumTawInstance("exampleRumTawInstance", {
        areaId: 1,
        chargeType: 1,
        dataRetentionDays: 30,
        instanceName: "tf-example",
        instanceDesc: "desc.",
        tags: {
            createdBy: "terraform",
        },
    });
    const exampleRumProject = new tencentcloud.RumProject("exampleRumProject", {
        instanceId: exampleRumTawInstance.rumTawInstanceId,
        rate: "100",
        enableUrlGroup: 0,
        type: "web",
        repo: "https://github.com/xxx",
        url: "iac-tf.com",
        desc: "desc.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_rum_taw_instance = tencentcloud.RumTawInstance("exampleRumTawInstance",
        area_id=1,
        charge_type=1,
        data_retention_days=30,
        instance_name="tf-example",
        instance_desc="desc.",
        tags={
            "createdBy": "terraform",
        })
    example_rum_project = tencentcloud.RumProject("exampleRumProject",
        instance_id=example_rum_taw_instance.rum_taw_instance_id,
        rate="100",
        enable_url_group=0,
        type="web",
        repo="https://github.com/xxx",
        url="iac-tf.com",
        desc="desc.")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleRumTawInstance, err := tencentcloud.NewRumTawInstance(ctx, "exampleRumTawInstance", &tencentcloud.RumTawInstanceArgs{
    			AreaId:            pulumi.Float64(1),
    			ChargeType:        pulumi.Float64(1),
    			DataRetentionDays: pulumi.Float64(30),
    			InstanceName:      pulumi.String("tf-example"),
    			InstanceDesc:      pulumi.String("desc."),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewRumProject(ctx, "exampleRumProject", &tencentcloud.RumProjectArgs{
    			InstanceId:     exampleRumTawInstance.RumTawInstanceId,
    			Rate:           pulumi.String("100"),
    			EnableUrlGroup: pulumi.Float64(0),
    			Type:           pulumi.String("web"),
    			Repo:           pulumi.String("https://github.com/xxx"),
    			Url:            pulumi.String("iac-tf.com"),
    			Desc:           pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleRumTawInstance = new Tencentcloud.RumTawInstance("exampleRumTawInstance", new()
        {
            AreaId = 1,
            ChargeType = 1,
            DataRetentionDays = 30,
            InstanceName = "tf-example",
            InstanceDesc = "desc.",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var exampleRumProject = new Tencentcloud.RumProject("exampleRumProject", new()
        {
            InstanceId = exampleRumTawInstance.RumTawInstanceId,
            Rate = "100",
            EnableUrlGroup = 0,
            Type = "web",
            Repo = "https://github.com/xxx",
            Url = "iac-tf.com",
            Desc = "desc.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.RumTawInstance;
    import com.pulumi.tencentcloud.RumTawInstanceArgs;
    import com.pulumi.tencentcloud.RumProject;
    import com.pulumi.tencentcloud.RumProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleRumTawInstance = new RumTawInstance("exampleRumTawInstance", RumTawInstanceArgs.builder()
                .areaId("1")
                .chargeType("1")
                .dataRetentionDays("30")
                .instanceName("tf-example")
                .instanceDesc("desc.")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            var exampleRumProject = new RumProject("exampleRumProject", RumProjectArgs.builder()
                .instanceId(exampleRumTawInstance.rumTawInstanceId())
                .rate("100")
                .enableUrlGroup("0")
                .type("web")
                .repo("https://github.com/xxx")
                .url("iac-tf.com")
                .desc("desc.")
                .build());
    
        }
    }
    
    resources:
      exampleRumTawInstance:
        type: tencentcloud:RumTawInstance
        properties:
          areaId: '1'
          chargeType: '1'
          dataRetentionDays: '30'
          instanceName: tf-example
          instanceDesc: desc.
          tags:
            createdBy: terraform
      exampleRumProject:
        type: tencentcloud:RumProject
        properties:
          instanceId: ${exampleRumTawInstance.rumTawInstanceId}
          rate: '100'
          enableUrlGroup: '0'
          type: web
          repo: https://github.com/xxx
          url: iac-tf.com
          desc: desc.
    

    Create RumProject Resource

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

    Constructor syntax

    new RumProject(name: string, args: RumProjectArgs, opts?: CustomResourceOptions);
    @overload
    def RumProject(resource_name: str,
                   args: RumProjectArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RumProject(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   enable_url_group: Optional[float] = None,
                   instance_id: Optional[str] = None,
                   rate: Optional[str] = None,
                   type: Optional[str] = None,
                   desc: Optional[str] = None,
                   name: Optional[str] = None,
                   repo: Optional[str] = None,
                   rum_project_id: Optional[str] = None,
                   url: Optional[str] = None)
    func NewRumProject(ctx *Context, name string, args RumProjectArgs, opts ...ResourceOption) (*RumProject, error)
    public RumProject(string name, RumProjectArgs args, CustomResourceOptions? opts = null)
    public RumProject(String name, RumProjectArgs args)
    public RumProject(String name, RumProjectArgs args, CustomResourceOptions options)
    
    type: tencentcloud:RumProject
    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 RumProjectArgs
    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 RumProjectArgs
    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 RumProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RumProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RumProjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RumProject 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 RumProject resource accepts the following input properties:

    EnableUrlGroup double
    Whether to enable aggregation.
    InstanceId string
    Business system ID.
    Rate string
    Project sampling rate (greater than or equal to 0).
    Type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    Desc string
    Description of the created project (optional and up to 1,000 characters).
    Name string
    Name of the created project (required and up to 200 characters).
    Repo string
    Repository address of the project (optional and up to 256 characters).
    RumProjectId string
    ID of the resource.
    Url string
    Webpage address of the project (optional and up to 256 characters).
    EnableUrlGroup float64
    Whether to enable aggregation.
    InstanceId string
    Business system ID.
    Rate string
    Project sampling rate (greater than or equal to 0).
    Type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    Desc string
    Description of the created project (optional and up to 1,000 characters).
    Name string
    Name of the created project (required and up to 200 characters).
    Repo string
    Repository address of the project (optional and up to 256 characters).
    RumProjectId string
    ID of the resource.
    Url string
    Webpage address of the project (optional and up to 256 characters).
    enableUrlGroup Double
    Whether to enable aggregation.
    instanceId String
    Business system ID.
    rate String
    Project sampling rate (greater than or equal to 0).
    type String
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    desc String
    Description of the created project (optional and up to 1,000 characters).
    name String
    Name of the created project (required and up to 200 characters).
    repo String
    Repository address of the project (optional and up to 256 characters).
    rumProjectId String
    ID of the resource.
    url String
    Webpage address of the project (optional and up to 256 characters).
    enableUrlGroup number
    Whether to enable aggregation.
    instanceId string
    Business system ID.
    rate string
    Project sampling rate (greater than or equal to 0).
    type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    desc string
    Description of the created project (optional and up to 1,000 characters).
    name string
    Name of the created project (required and up to 200 characters).
    repo string
    Repository address of the project (optional and up to 256 characters).
    rumProjectId string
    ID of the resource.
    url string
    Webpage address of the project (optional and up to 256 characters).
    enable_url_group float
    Whether to enable aggregation.
    instance_id str
    Business system ID.
    rate str
    Project sampling rate (greater than or equal to 0).
    type str
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    desc str
    Description of the created project (optional and up to 1,000 characters).
    name str
    Name of the created project (required and up to 200 characters).
    repo str
    Repository address of the project (optional and up to 256 characters).
    rum_project_id str
    ID of the resource.
    url str
    Webpage address of the project (optional and up to 256 characters).
    enableUrlGroup Number
    Whether to enable aggregation.
    instanceId String
    Business system ID.
    rate String
    Project sampling rate (greater than or equal to 0).
    type String
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    desc String
    Description of the created project (optional and up to 1,000 characters).
    name String
    Name of the created project (required and up to 200 characters).
    repo String
    Repository address of the project (optional and up to 256 characters).
    rumProjectId String
    ID of the resource.
    url String
    Webpage address of the project (optional and up to 256 characters).

    Outputs

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

    CreateTime string
    Create Time.
    Creator string
    Creator ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceKey string
    Instance key.
    InstanceName string
    Instance name.
    IsStar double
    Starred status. 1: yes; 0: no.
    Key string
    Unique project key (12 characters).
    ProjectStatus double
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    CreateTime string
    Create Time.
    Creator string
    Creator ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceKey string
    Instance key.
    InstanceName string
    Instance name.
    IsStar float64
    Starred status. 1: yes; 0: no.
    Key string
    Unique project key (12 characters).
    ProjectStatus float64
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    createTime String
    Create Time.
    creator String
    Creator ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceKey String
    Instance key.
    instanceName String
    Instance name.
    isStar Double
    Starred status. 1: yes; 0: no.
    key String
    Unique project key (12 characters).
    projectStatus Double
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    createTime string
    Create Time.
    creator string
    Creator ID.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceKey string
    Instance key.
    instanceName string
    Instance name.
    isStar number
    Starred status. 1: yes; 0: no.
    key string
    Unique project key (12 characters).
    projectStatus number
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    create_time str
    Create Time.
    creator str
    Creator ID.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_key str
    Instance key.
    instance_name str
    Instance name.
    is_star float
    Starred status. 1: yes; 0: no.
    key str
    Unique project key (12 characters).
    project_status float
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    createTime String
    Create Time.
    creator String
    Creator ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceKey String
    Instance key.
    instanceName String
    Instance name.
    isStar Number
    Starred status. 1: yes; 0: no.
    key String
    Unique project key (12 characters).
    projectStatus Number
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).

    Look up Existing RumProject Resource

    Get an existing RumProject 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?: RumProjectState, opts?: CustomResourceOptions): RumProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            creator: Optional[str] = None,
            desc: Optional[str] = None,
            enable_url_group: Optional[float] = None,
            instance_id: Optional[str] = None,
            instance_key: Optional[str] = None,
            instance_name: Optional[str] = None,
            is_star: Optional[float] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            project_status: Optional[float] = None,
            rate: Optional[str] = None,
            repo: Optional[str] = None,
            rum_project_id: Optional[str] = None,
            type: Optional[str] = None,
            url: Optional[str] = None) -> RumProject
    func GetRumProject(ctx *Context, name string, id IDInput, state *RumProjectState, opts ...ResourceOption) (*RumProject, error)
    public static RumProject Get(string name, Input<string> id, RumProjectState? state, CustomResourceOptions? opts = null)
    public static RumProject get(String name, Output<String> id, RumProjectState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:RumProject    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.
    The following state arguments are supported:
    CreateTime string
    Create Time.
    Creator string
    Creator ID.
    Desc string
    Description of the created project (optional and up to 1,000 characters).
    EnableUrlGroup double
    Whether to enable aggregation.
    InstanceId string
    Business system ID.
    InstanceKey string
    Instance key.
    InstanceName string
    Instance name.
    IsStar double
    Starred status. 1: yes; 0: no.
    Key string
    Unique project key (12 characters).
    Name string
    Name of the created project (required and up to 200 characters).
    ProjectStatus double
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    Rate string
    Project sampling rate (greater than or equal to 0).
    Repo string
    Repository address of the project (optional and up to 256 characters).
    RumProjectId string
    ID of the resource.
    Type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    Url string
    Webpage address of the project (optional and up to 256 characters).
    CreateTime string
    Create Time.
    Creator string
    Creator ID.
    Desc string
    Description of the created project (optional and up to 1,000 characters).
    EnableUrlGroup float64
    Whether to enable aggregation.
    InstanceId string
    Business system ID.
    InstanceKey string
    Instance key.
    InstanceName string
    Instance name.
    IsStar float64
    Starred status. 1: yes; 0: no.
    Key string
    Unique project key (12 characters).
    Name string
    Name of the created project (required and up to 200 characters).
    ProjectStatus float64
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    Rate string
    Project sampling rate (greater than or equal to 0).
    Repo string
    Repository address of the project (optional and up to 256 characters).
    RumProjectId string
    ID of the resource.
    Type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    Url string
    Webpage address of the project (optional and up to 256 characters).
    createTime String
    Create Time.
    creator String
    Creator ID.
    desc String
    Description of the created project (optional and up to 1,000 characters).
    enableUrlGroup Double
    Whether to enable aggregation.
    instanceId String
    Business system ID.
    instanceKey String
    Instance key.
    instanceName String
    Instance name.
    isStar Double
    Starred status. 1: yes; 0: no.
    key String
    Unique project key (12 characters).
    name String
    Name of the created project (required and up to 200 characters).
    projectStatus Double
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    rate String
    Project sampling rate (greater than or equal to 0).
    repo String
    Repository address of the project (optional and up to 256 characters).
    rumProjectId String
    ID of the resource.
    type String
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    url String
    Webpage address of the project (optional and up to 256 characters).
    createTime string
    Create Time.
    creator string
    Creator ID.
    desc string
    Description of the created project (optional and up to 1,000 characters).
    enableUrlGroup number
    Whether to enable aggregation.
    instanceId string
    Business system ID.
    instanceKey string
    Instance key.
    instanceName string
    Instance name.
    isStar number
    Starred status. 1: yes; 0: no.
    key string
    Unique project key (12 characters).
    name string
    Name of the created project (required and up to 200 characters).
    projectStatus number
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    rate string
    Project sampling rate (greater than or equal to 0).
    repo string
    Repository address of the project (optional and up to 256 characters).
    rumProjectId string
    ID of the resource.
    type string
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    url string
    Webpage address of the project (optional and up to 256 characters).
    create_time str
    Create Time.
    creator str
    Creator ID.
    desc str
    Description of the created project (optional and up to 1,000 characters).
    enable_url_group float
    Whether to enable aggregation.
    instance_id str
    Business system ID.
    instance_key str
    Instance key.
    instance_name str
    Instance name.
    is_star float
    Starred status. 1: yes; 0: no.
    key str
    Unique project key (12 characters).
    name str
    Name of the created project (required and up to 200 characters).
    project_status float
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    rate str
    Project sampling rate (greater than or equal to 0).
    repo str
    Repository address of the project (optional and up to 256 characters).
    rum_project_id str
    ID of the resource.
    type str
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    url str
    Webpage address of the project (optional and up to 256 characters).
    createTime String
    Create Time.
    creator String
    Creator ID.
    desc String
    Description of the created project (optional and up to 1,000 characters).
    enableUrlGroup Number
    Whether to enable aggregation.
    instanceId String
    Business system ID.
    instanceKey String
    Instance key.
    instanceName String
    Instance name.
    isStar Number
    Starred status. 1: yes; 0: no.
    key String
    Unique project key (12 characters).
    name String
    Name of the created project (required and up to 200 characters).
    projectStatus Number
    Project status (1: Creating; 2: Running; 3: Abnormal; 4: Restarting; 5: Stopping; 6: Stopped; 7: Terminating; 8: Terminated).
    rate String
    Project sampling rate (greater than or equal to 0).
    repo String
    Repository address of the project (optional and up to 256 characters).
    rumProjectId String
    ID of the resource.
    type String
    Project type (valid values: web, mp, android, ios, node, hippy, weex, viola, rn).
    url String
    Webpage address of the project (optional and up to 256 characters).

    Import

    rum project can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/rumProject:RumProject example 139422
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack