tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCvmInstanceVncUrl
Start a Neo task
Explain and create a tencentcloud.getCvmInstanceVncUrl resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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 dictionaryThe following arguments are supported:
- Instance
Id string - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - id String
- result
Output StringFile - Used to save results.
- instance
Id string - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - id string
- result
Output stringFile - Used to save results.
- instance_
id str - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - id str
- result_
output_ strfile - Used to save results.
- instance
Id String - Instance ID. To obtain the instance IDs, you can call
DescribeInstancesand look forInstanceIdin the response. - id String
- result
Output StringFile - Used to save results.
getCvmInstanceVncUrl Result
The following output properties are available:
- Id string
- Instance
Id string - Instance
Vnc stringUrl - Instance VNC URL.
- Result
Output stringFile
- Id string
- Instance
Id string - Instance
Vnc stringUrl - Instance VNC URL.
- Result
Output stringFile
- id String
- instance
Id String - instance
Vnc StringUrl - Instance VNC URL.
- result
Output StringFile
- id string
- instance
Id string - instance
Vnc stringUrl - Instance VNC URL.
- result
Output stringFile
- id str
- instance_
id str - instance_
vnc_ strurl - Instance VNC URL.
- result_
output_ strfile
- id String
- instance
Id String - instance
Vnc StringUrl - Instance VNC URL.
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
