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

tencentcloud.BiEmbedTokenApply

Explore with Pulumi AI

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

    Provides a resource to create a bi embed_token

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const embedToken = new tencentcloud.BiEmbedTokenApply("embedToken", {
        expireTime: "240",
        pageId: 10520483,
        projectId: 11015030,
        scope: "page",
        userCorpId: "100022975249",
        userId: "100024664626",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    embed_token = tencentcloud.BiEmbedTokenApply("embedToken",
        expire_time="240",
        page_id=10520483,
        project_id=11015030,
        scope="page",
        user_corp_id="100022975249",
        user_id="100024664626")
    
    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 {
    		_, err := tencentcloud.NewBiEmbedTokenApply(ctx, "embedToken", &tencentcloud.BiEmbedTokenApplyArgs{
    			ExpireTime: pulumi.String("240"),
    			PageId:     pulumi.Float64(10520483),
    			ProjectId:  pulumi.Float64(11015030),
    			Scope:      pulumi.String("page"),
    			UserCorpId: pulumi.String("100022975249"),
    			UserId:     pulumi.String("100024664626"),
    		})
    		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 embedToken = new Tencentcloud.BiEmbedTokenApply("embedToken", new()
        {
            ExpireTime = "240",
            PageId = 10520483,
            ProjectId = 11015030,
            Scope = "page",
            UserCorpId = "100022975249",
            UserId = "100024664626",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.BiEmbedTokenApply;
    import com.pulumi.tencentcloud.BiEmbedTokenApplyArgs;
    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 embedToken = new BiEmbedTokenApply("embedToken", BiEmbedTokenApplyArgs.builder()
                .expireTime("240")
                .pageId(10520483)
                .projectId(11015030)
                .scope("page")
                .userCorpId("100022975249")
                .userId("100024664626")
                .build());
    
        }
    }
    
    resources:
      embedToken:
        type: tencentcloud:BiEmbedTokenApply
        properties:
          expireTime: '240'
          pageId: 1.0520483e+07
          projectId: 1.101503e+07
          scope: page
          userCorpId: '100022975249'
          userId: '100024664626'
    

    Create BiEmbedTokenApply Resource

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

    Constructor syntax

    new BiEmbedTokenApply(name: string, args?: BiEmbedTokenApplyArgs, opts?: CustomResourceOptions);
    @overload
    def BiEmbedTokenApply(resource_name: str,
                          args: Optional[BiEmbedTokenApplyArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def BiEmbedTokenApply(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          bi_embed_token_apply_id: Optional[str] = None,
                          expire_time: Optional[str] = None,
                          page_id: Optional[float] = None,
                          project_id: Optional[float] = None,
                          scope: Optional[str] = None,
                          ticket_num: Optional[float] = None,
                          user_corp_id: Optional[str] = None,
                          user_id: Optional[str] = None)
    func NewBiEmbedTokenApply(ctx *Context, name string, args *BiEmbedTokenApplyArgs, opts ...ResourceOption) (*BiEmbedTokenApply, error)
    public BiEmbedTokenApply(string name, BiEmbedTokenApplyArgs? args = null, CustomResourceOptions? opts = null)
    public BiEmbedTokenApply(String name, BiEmbedTokenApplyArgs args)
    public BiEmbedTokenApply(String name, BiEmbedTokenApplyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:BiEmbedTokenApply
    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 BiEmbedTokenApplyArgs
    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 BiEmbedTokenApplyArgs
    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 BiEmbedTokenApplyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BiEmbedTokenApplyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BiEmbedTokenApplyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    BiEmbedTokenApplyId string
    ID of the resource.
    ExpireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    PageId double
    Sharing page id, this is empty value 0 when embedding the board.
    ProjectId double
    Share project id.
    Scope string
    Page means embedding the page, and panel means embedding the entire board.
    TicketNum double
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    UserCorpId string
    User enterprise ID (for multi-user only).
    UserId string
    UserId (for multi-user only).
    BiEmbedTokenApplyId string
    ID of the resource.
    ExpireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    PageId float64
    Sharing page id, this is empty value 0 when embedding the board.
    ProjectId float64
    Share project id.
    Scope string
    Page means embedding the page, and panel means embedding the entire board.
    TicketNum float64
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    UserCorpId string
    User enterprise ID (for multi-user only).
    UserId string
    UserId (for multi-user only).
    biEmbedTokenApplyId String
    ID of the resource.
    expireTime String
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId Double
    Sharing page id, this is empty value 0 when embedding the board.
    projectId Double
    Share project id.
    scope String
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum Double
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    userCorpId String
    User enterprise ID (for multi-user only).
    userId String
    UserId (for multi-user only).
    biEmbedTokenApplyId string
    ID of the resource.
    expireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId number
    Sharing page id, this is empty value 0 when embedding the board.
    projectId number
    Share project id.
    scope string
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum number
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    userCorpId string
    User enterprise ID (for multi-user only).
    userId string
    UserId (for multi-user only).
    bi_embed_token_apply_id str
    ID of the resource.
    expire_time str
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    page_id float
    Sharing page id, this is empty value 0 when embedding the board.
    project_id float
    Share project id.
    scope str
    Page means embedding the page, and panel means embedding the entire board.
    ticket_num float
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    user_corp_id str
    User enterprise ID (for multi-user only).
    user_id str
    UserId (for multi-user only).
    biEmbedTokenApplyId String
    ID of the resource.
    expireTime String
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId Number
    Sharing page id, this is empty value 0 when embedding the board.
    projectId Number
    Share project id.
    scope String
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum Number
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    userCorpId String
    User enterprise ID (for multi-user only).
    userId String
    UserId (for multi-user only).

    Outputs

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

    BiToken string
    Create the generated token.
    CreateAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UdpateAt string
    Upadte time.
    BiToken string
    Create the generated token.
    CreateAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UdpateAt string
    Upadte time.
    biToken String
    Create the generated token.
    createAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    udpateAt String
    Upadte time.
    biToken string
    Create the generated token.
    createAt string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    udpateAt string
    Upadte time.
    bi_token str
    Create the generated token.
    create_at str
    Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    udpate_at str
    Upadte time.
    biToken String
    Create the generated token.
    createAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    udpateAt String
    Upadte time.

    Look up Existing BiEmbedTokenApply Resource

    Get an existing BiEmbedTokenApply 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?: BiEmbedTokenApplyState, opts?: CustomResourceOptions): BiEmbedTokenApply
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bi_embed_token_apply_id: Optional[str] = None,
            bi_token: Optional[str] = None,
            create_at: Optional[str] = None,
            expire_time: Optional[str] = None,
            page_id: Optional[float] = None,
            project_id: Optional[float] = None,
            scope: Optional[str] = None,
            ticket_num: Optional[float] = None,
            udpate_at: Optional[str] = None,
            user_corp_id: Optional[str] = None,
            user_id: Optional[str] = None) -> BiEmbedTokenApply
    func GetBiEmbedTokenApply(ctx *Context, name string, id IDInput, state *BiEmbedTokenApplyState, opts ...ResourceOption) (*BiEmbedTokenApply, error)
    public static BiEmbedTokenApply Get(string name, Input<string> id, BiEmbedTokenApplyState? state, CustomResourceOptions? opts = null)
    public static BiEmbedTokenApply get(String name, Output<String> id, BiEmbedTokenApplyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:BiEmbedTokenApply    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:
    BiEmbedTokenApplyId string
    ID of the resource.
    BiToken string
    Create the generated token.
    CreateAt string
    Create time.
    ExpireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    PageId double
    Sharing page id, this is empty value 0 when embedding the board.
    ProjectId double
    Share project id.
    Scope string
    Page means embedding the page, and panel means embedding the entire board.
    TicketNum double
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    UdpateAt string
    Upadte time.
    UserCorpId string
    User enterprise ID (for multi-user only).
    UserId string
    UserId (for multi-user only).
    BiEmbedTokenApplyId string
    ID of the resource.
    BiToken string
    Create the generated token.
    CreateAt string
    Create time.
    ExpireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    PageId float64
    Sharing page id, this is empty value 0 when embedding the board.
    ProjectId float64
    Share project id.
    Scope string
    Page means embedding the page, and panel means embedding the entire board.
    TicketNum float64
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    UdpateAt string
    Upadte time.
    UserCorpId string
    User enterprise ID (for multi-user only).
    UserId string
    UserId (for multi-user only).
    biEmbedTokenApplyId String
    ID of the resource.
    biToken String
    Create the generated token.
    createAt String
    Create time.
    expireTime String
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId Double
    Sharing page id, this is empty value 0 when embedding the board.
    projectId Double
    Share project id.
    scope String
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum Double
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    udpateAt String
    Upadte time.
    userCorpId String
    User enterprise ID (for multi-user only).
    userId String
    UserId (for multi-user only).
    biEmbedTokenApplyId string
    ID of the resource.
    biToken string
    Create the generated token.
    createAt string
    Create time.
    expireTime string
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId number
    Sharing page id, this is empty value 0 when embedding the board.
    projectId number
    Share project id.
    scope string
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum number
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    udpateAt string
    Upadte time.
    userCorpId string
    User enterprise ID (for multi-user only).
    userId string
    UserId (for multi-user only).
    bi_embed_token_apply_id str
    ID of the resource.
    bi_token str
    Create the generated token.
    create_at str
    Create time.
    expire_time str
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    page_id float
    Sharing page id, this is empty value 0 when embedding the board.
    project_id float
    Share project id.
    scope str
    Page means embedding the page, and panel means embedding the entire board.
    ticket_num float
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    udpate_at str
    Upadte time.
    user_corp_id str
    User enterprise ID (for multi-user only).
    user_id str
    UserId (for multi-user only).
    biEmbedTokenApplyId String
    ID of the resource.
    biToken String
    Create the generated token.
    createAt String
    Create time.
    expireTime String
    Expiration. Unit: Minutes Maximum value: 240. i.e. 4 hours Default: 240.
    pageId Number
    Sharing page id, this is empty value 0 when embedding the board.
    projectId Number
    Share project id.
    scope String
    Page means embedding the page, and panel means embedding the entire board.
    ticketNum Number
    Access limit, the limit range is 1-99999, if it is empty, no access limit will be set.
    udpateAt String
    Upadte time.
    userCorpId String
    User enterprise ID (for multi-user only).
    userId String
    UserId (for multi-user only).

    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