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

tencentcloud.getCvmInstanceVncUrl

Explore with Pulumi AI

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

    Use this data source to query detailed information of cvm instance_vnc_url

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceVncUrl = tencentcloud.getCvmInstanceVncUrl({
        instanceId: "ins-xxxxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_vnc_url = tencentcloud.get_cvm_instance_vnc_url(instance_id="ins-xxxxxxxx")
    
    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.GetCvmInstanceVncUrl(ctx, &tencentcloud.GetCvmInstanceVncUrlArgs{
    			InstanceId: "ins-xxxxxxxx",
    		}, nil)
    		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 instanceVncUrl = Tencentcloud.GetCvmInstanceVncUrl.Invoke(new()
        {
            InstanceId = "ins-xxxxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCvmInstanceVncUrlArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var instanceVncUrl = TencentcloudFunctions.getCvmInstanceVncUrl(GetCvmInstanceVncUrlArgs.builder()
                .instanceId("ins-xxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      instanceVncUrl:
        fn::invoke:
          function: tencentcloud:getCvmInstanceVncUrl
          arguments:
            instanceId: ins-xxxxxxxx
    

    Using getCvmInstanceVncUrl

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCvmInstanceVncUrl(args: GetCvmInstanceVncUrlArgs, opts?: InvokeOptions): Promise<GetCvmInstanceVncUrlResult>
    function getCvmInstanceVncUrlOutput(args: GetCvmInstanceVncUrlOutputArgs, opts?: InvokeOptions): Output<GetCvmInstanceVncUrlResult>
    def get_cvm_instance_vnc_url(id: Optional[str] = None,
                                 instance_id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCvmInstanceVncUrlResult
    def get_cvm_instance_vnc_url_output(id: Optional[pulumi.Input[str]] = None,
                                 instance_id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCvmInstanceVncUrlResult]
    func GetCvmInstanceVncUrl(ctx *Context, args *GetCvmInstanceVncUrlArgs, opts ...InvokeOption) (*GetCvmInstanceVncUrlResult, error)
    func GetCvmInstanceVncUrlOutput(ctx *Context, args *GetCvmInstanceVncUrlOutputArgs, opts ...InvokeOption) GetCvmInstanceVncUrlResultOutput

    > Note: This function is named GetCvmInstanceVncUrl in the Go SDK.

    public static class GetCvmInstanceVncUrl 
    {
        public static Task<GetCvmInstanceVncUrlResult> InvokeAsync(GetCvmInstanceVncUrlArgs args, InvokeOptions? opts = null)
        public static Output<GetCvmInstanceVncUrlResult> Invoke(GetCvmInstanceVncUrlInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCvmInstanceVncUrlResult> getCvmInstanceVncUrl(GetCvmInstanceVncUrlArgs args, InvokeOptions options)
    public static Output<GetCvmInstanceVncUrlResult> getCvmInstanceVncUrl(GetCvmInstanceVncUrlArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCvmInstanceVncUrl:getCvmInstanceVncUrl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Instance ID. To obtain the instance IDs, you can call DescribeInstances and look for InstanceId in the response.
    id String
    resultOutputFile String
    Used to save results.

    getCvmInstanceVncUrl Result

    The following output properties are available:

    Id string
    InstanceId string
    InstanceVncUrl string
    Instance VNC URL.
    ResultOutputFile string
    Id string
    InstanceId string
    InstanceVncUrl string
    Instance VNC URL.
    ResultOutputFile string
    id String
    instanceId String
    instanceVncUrl String
    Instance VNC URL.
    resultOutputFile String
    id string
    instanceId string
    instanceVncUrl string
    Instance VNC URL.
    resultOutputFile string
    id str
    instance_id str
    instance_vnc_url str
    Instance VNC URL.
    result_output_file str
    id String
    instanceId String
    instanceVncUrl String
    Instance VNC URL.
    resultOutputFile String

    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