tencentcloud.ThpcWorkspaces
Explore with Pulumi AI
Provides a resource to create a THPC workspaces
Note: If space_charge_type is UNDERWRITE, Not currently supported for deletion.
Example Usage
Create a PREPAID THPC workspaces
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const availabilityZone = config.get("availabilityZone") || "ap-nanjing-1";
const images = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 3.1 (TK4) UEFI",
});
// create vpc
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "172.16.0.0/16"});
// create subnet
const subnet = new tencentcloud.Subnet("subnet", {
availabilityZone: availabilityZone,
vpcId: vpc.vpcId,
cidrBlock: "172.16.0.0/24",
isMulticast: false,
});
// create security group
const exampleSecurityGroup = new tencentcloud.SecurityGroup("exampleSecurityGroup", {
description: "security group desc.",
tags: {
createBy: "Terraform",
},
});
// create thpc workspaces
const exampleThpcWorkspaces = new tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", {
spaceName: "tf-example",
spaceChargeType: "PREPAID",
spaceType: "96A.96XLARGE2304",
hpcClusterId: "hpc-l9anqcbl",
imageId: images.then(images => images.images?.[0]?.imageId),
securityGroupIds: [exampleSecurityGroup.securityGroupId],
placement: {
zone: availabilityZone,
projectId: 0,
},
spaceChargePrepaid: {
period: 1,
renewFlag: "NOTIFY_AND_AUTO_RENEW",
},
systemDisk: {
diskSize: 100,
diskType: "CLOUD_HSSD",
},
dataDisks: [{
diskSize: 200,
diskType: "CLOUD_HSSD",
encrypt: false,
}],
virtualPrivateCloud: {
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
asVpcGateway: false,
ipv6AddressCount: 0,
},
internetAccessible: {
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 200,
publicIpAssigned: true,
},
loginSettings: {
password: "Password@123",
},
enhancedService: {
securityService: {
enabled: true,
},
monitorService: {
enabled: true,
},
automationService: {
enabled: true,
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
availability_zone = config.get("availabilityZone")
if availability_zone is None:
availability_zone = "ap-nanjing-1"
images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 3.1 (TK4) UEFI")
# create vpc
vpc = tencentcloud.Vpc("vpc", cidr_block="172.16.0.0/16")
# create subnet
subnet = tencentcloud.Subnet("subnet",
availability_zone=availability_zone,
vpc_id=vpc.vpc_id,
cidr_block="172.16.0.0/24",
is_multicast=False)
# create security group
example_security_group = tencentcloud.SecurityGroup("exampleSecurityGroup",
description="security group desc.",
tags={
"createBy": "Terraform",
})
# create thpc workspaces
example_thpc_workspaces = tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces",
space_name="tf-example",
space_charge_type="PREPAID",
space_type="96A.96XLARGE2304",
hpc_cluster_id="hpc-l9anqcbl",
image_id=images.images[0].image_id,
security_group_ids=[example_security_group.security_group_id],
placement={
"zone": availability_zone,
"project_id": 0,
},
space_charge_prepaid={
"period": 1,
"renew_flag": "NOTIFY_AND_AUTO_RENEW",
},
system_disk={
"disk_size": 100,
"disk_type": "CLOUD_HSSD",
},
data_disks=[{
"disk_size": 200,
"disk_type": "CLOUD_HSSD",
"encrypt": False,
}],
virtual_private_cloud={
"vpc_id": vpc.vpc_id,
"subnet_id": subnet.subnet_id,
"as_vpc_gateway": False,
"ipv6_address_count": 0,
},
internet_accessible={
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 200,
"public_ip_assigned": True,
},
login_settings={
"password": "Password@123",
},
enhanced_service={
"security_service": {
"enabled": True,
},
"monitor_service": {
"enabled": True,
},
"automation_service": {
"enabled": True,
},
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"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, "")
availabilityZone := "ap-nanjing-1"
if param := cfg.Get("availabilityZone"); param != "" {
availabilityZone = param
}
images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 3.1 (TK4) UEFI"),
}, nil)
if err != nil {
return err
}
// create vpc
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
// create subnet
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
AvailabilityZone: pulumi.String(availabilityZone),
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("172.16.0.0/24"),
IsMulticast: pulumi.Bool(false),
})
if err != nil {
return err
}
// create security group
exampleSecurityGroup, err := tencentcloud.NewSecurityGroup(ctx, "exampleSecurityGroup", &tencentcloud.SecurityGroupArgs{
Description: pulumi.String("security group desc."),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
// create thpc workspaces
_, err = tencentcloud.NewThpcWorkspaces(ctx, "exampleThpcWorkspaces", &tencentcloud.ThpcWorkspacesArgs{
SpaceName: pulumi.String("tf-example"),
SpaceChargeType: pulumi.String("PREPAID"),
SpaceType: pulumi.String("96A.96XLARGE2304"),
HpcClusterId: pulumi.String("hpc-l9anqcbl"),
ImageId: pulumi.String(images.Images[0].ImageId),
SecurityGroupIds: pulumi.StringArray{
exampleSecurityGroup.SecurityGroupId,
},
Placement: &tencentcloud.ThpcWorkspacesPlacementArgs{
Zone: pulumi.String(availabilityZone),
ProjectId: pulumi.Float64(0),
},
SpaceChargePrepaid: &tencentcloud.ThpcWorkspacesSpaceChargePrepaidArgs{
Period: pulumi.Float64(1),
RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"),
},
SystemDisk: &tencentcloud.ThpcWorkspacesSystemDiskArgs{
DiskSize: pulumi.Float64(100),
DiskType: pulumi.String("CLOUD_HSSD"),
},
DataDisks: tencentcloud.ThpcWorkspacesDataDiskArray{
&tencentcloud.ThpcWorkspacesDataDiskArgs{
DiskSize: pulumi.Float64(200),
DiskType: pulumi.String("CLOUD_HSSD"),
Encrypt: pulumi.Bool(false),
},
},
VirtualPrivateCloud: &tencentcloud.ThpcWorkspacesVirtualPrivateCloudArgs{
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
AsVpcGateway: pulumi.Bool(false),
Ipv6AddressCount: pulumi.Float64(0),
},
InternetAccessible: &tencentcloud.ThpcWorkspacesInternetAccessibleArgs{
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(200),
PublicIpAssigned: pulumi.Bool(true),
},
LoginSettings: &tencentcloud.ThpcWorkspacesLoginSettingsArgs{
Password: pulumi.String("Password@123"),
},
EnhancedService: &tencentcloud.ThpcWorkspacesEnhancedServiceArgs{
SecurityService: &tencentcloud.ThpcWorkspacesEnhancedServiceSecurityServiceArgs{
Enabled: pulumi.Bool(true),
},
MonitorService: &tencentcloud.ThpcWorkspacesEnhancedServiceMonitorServiceArgs{
Enabled: pulumi.Bool(true),
},
AutomationService: &tencentcloud.ThpcWorkspacesEnhancedServiceAutomationServiceArgs{
Enabled: pulumi.Bool(true),
},
},
})
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 config = new Config();
var availabilityZone = config.Get("availabilityZone") ?? "ap-nanjing-1";
var images = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 3.1 (TK4) UEFI",
});
// create vpc
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "172.16.0.0/16",
});
// create subnet
var subnet = new Tencentcloud.Subnet("subnet", new()
{
AvailabilityZone = availabilityZone,
VpcId = vpc.VpcId,
CidrBlock = "172.16.0.0/24",
IsMulticast = false,
});
// create security group
var exampleSecurityGroup = new Tencentcloud.SecurityGroup("exampleSecurityGroup", new()
{
Description = "security group desc.",
Tags =
{
{ "createBy", "Terraform" },
},
});
// create thpc workspaces
var exampleThpcWorkspaces = new Tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", new()
{
SpaceName = "tf-example",
SpaceChargeType = "PREPAID",
SpaceType = "96A.96XLARGE2304",
HpcClusterId = "hpc-l9anqcbl",
ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
SecurityGroupIds = new[]
{
exampleSecurityGroup.SecurityGroupId,
},
Placement = new Tencentcloud.Inputs.ThpcWorkspacesPlacementArgs
{
Zone = availabilityZone,
ProjectId = 0,
},
SpaceChargePrepaid = new Tencentcloud.Inputs.ThpcWorkspacesSpaceChargePrepaidArgs
{
Period = 1,
RenewFlag = "NOTIFY_AND_AUTO_RENEW",
},
SystemDisk = new Tencentcloud.Inputs.ThpcWorkspacesSystemDiskArgs
{
DiskSize = 100,
DiskType = "CLOUD_HSSD",
},
DataDisks = new[]
{
new Tencentcloud.Inputs.ThpcWorkspacesDataDiskArgs
{
DiskSize = 200,
DiskType = "CLOUD_HSSD",
Encrypt = false,
},
},
VirtualPrivateCloud = new Tencentcloud.Inputs.ThpcWorkspacesVirtualPrivateCloudArgs
{
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
AsVpcGateway = false,
Ipv6AddressCount = 0,
},
InternetAccessible = new Tencentcloud.Inputs.ThpcWorkspacesInternetAccessibleArgs
{
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 200,
PublicIpAssigned = true,
},
LoginSettings = new Tencentcloud.Inputs.ThpcWorkspacesLoginSettingsArgs
{
Password = "Password@123",
},
EnhancedService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceArgs
{
SecurityService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs
{
Enabled = true,
},
MonitorService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs
{
Enabled = true,
},
AutomationService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs
{
Enabled = true,
},
},
});
});
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.GetImagesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.SecurityGroup;
import com.pulumi.tencentcloud.SecurityGroupArgs;
import com.pulumi.tencentcloud.ThpcWorkspaces;
import com.pulumi.tencentcloud.ThpcWorkspacesArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesPlacementArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSpaceChargePrepaidArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSystemDiskArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesDataDiskArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesVirtualPrivateCloudArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesInternetAccessibleArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesLoginSettingsArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs;
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 config = ctx.config();
final var availabilityZone = config.get("availabilityZone").orElse("ap-nanjing-1");
final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 3.1 (TK4) UEFI")
.build());
// create vpc
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("172.16.0.0/16")
.build());
// create subnet
var subnet = new Subnet("subnet", SubnetArgs.builder()
.availabilityZone(availabilityZone)
.vpcId(vpc.vpcId())
.cidrBlock("172.16.0.0/24")
.isMulticast(false)
.build());
// create security group
var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
.description("security group desc.")
.tags(Map.of("createBy", "Terraform"))
.build());
// create thpc workspaces
var exampleThpcWorkspaces = new ThpcWorkspaces("exampleThpcWorkspaces", ThpcWorkspacesArgs.builder()
.spaceName("tf-example")
.spaceChargeType("PREPAID")
.spaceType("96A.96XLARGE2304")
.hpcClusterId("hpc-l9anqcbl")
.imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.securityGroupIds(exampleSecurityGroup.securityGroupId())
.placement(ThpcWorkspacesPlacementArgs.builder()
.zone(availabilityZone)
.projectId(0)
.build())
.spaceChargePrepaid(ThpcWorkspacesSpaceChargePrepaidArgs.builder()
.period(1)
.renewFlag("NOTIFY_AND_AUTO_RENEW")
.build())
.systemDisk(ThpcWorkspacesSystemDiskArgs.builder()
.diskSize(100)
.diskType("CLOUD_HSSD")
.build())
.dataDisks(ThpcWorkspacesDataDiskArgs.builder()
.diskSize(200)
.diskType("CLOUD_HSSD")
.encrypt(false)
.build())
.virtualPrivateCloud(ThpcWorkspacesVirtualPrivateCloudArgs.builder()
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.asVpcGateway(false)
.ipv6AddressCount(0)
.build())
.internetAccessible(ThpcWorkspacesInternetAccessibleArgs.builder()
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(200)
.publicIpAssigned(true)
.build())
.loginSettings(ThpcWorkspacesLoginSettingsArgs.builder()
.password("Password@123")
.build())
.enhancedService(ThpcWorkspacesEnhancedServiceArgs.builder()
.securityService(ThpcWorkspacesEnhancedServiceSecurityServiceArgs.builder()
.enabled(true)
.build())
.monitorService(ThpcWorkspacesEnhancedServiceMonitorServiceArgs.builder()
.enabled(true)
.build())
.automationService(ThpcWorkspacesEnhancedServiceAutomationServiceArgs.builder()
.enabled(true)
.build())
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-nanjing-1
resources:
# create vpc
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 172.16.0.0/16
# create subnet
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ${availabilityZone}
vpcId: ${vpc.vpcId}
cidrBlock: 172.16.0.0/24
isMulticast: false
# create security group
exampleSecurityGroup:
type: tencentcloud:SecurityGroup
properties:
description: security group desc.
tags:
createBy: Terraform
# create thpc workspaces
exampleThpcWorkspaces:
type: tencentcloud:ThpcWorkspaces
properties:
spaceName: tf-example
spaceChargeType: PREPAID
spaceType: 96A.96XLARGE2304
hpcClusterId: hpc-l9anqcbl
imageId: ${images.images[0].imageId}
securityGroupIds:
- ${exampleSecurityGroup.securityGroupId}
placement:
zone: ${availabilityZone}
projectId: 0
spaceChargePrepaid:
period: 1
renewFlag: NOTIFY_AND_AUTO_RENEW
systemDisk:
diskSize: 100
diskType: CLOUD_HSSD
dataDisks:
- diskSize: 200
diskType: CLOUD_HSSD
encrypt: false
virtualPrivateCloud:
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
asVpcGateway: false
ipv6AddressCount: 0
internetAccessible:
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 200
publicIpAssigned: true
loginSettings:
password: Password@123
enhancedService:
securityService:
enabled: true
monitorService:
enabled: true
automationService:
enabled: true
variables:
images:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 3.1 (TK4) UEFI
Create a UNDERWRITE THPC workspaces
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const availabilityZone = config.get("availabilityZone") || "ap-nanjing-1";
const images = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 3.1 (TK4) UEFI",
});
// create vpc
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "172.16.0.0/16"});
// create subnet
const subnet = new tencentcloud.Subnet("subnet", {
availabilityZone: availabilityZone,
vpcId: vpc.vpcId,
cidrBlock: "172.16.0.0/24",
isMulticast: false,
});
// create security group
const exampleSecurityGroup = new tencentcloud.SecurityGroup("exampleSecurityGroup", {
description: "security group desc.",
tags: {
createBy: "Terraform",
},
});
// create thpc workspaces
const exampleThpcWorkspaces = new tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", {
spaceName: "tf-example",
spaceChargeType: "UNDERWRITE",
spaceType: "96A.96XLARGE2304",
hpcClusterId: "hpc-l9anqcbl",
imageId: images.then(images => images.images?.[0]?.imageId),
securityGroupIds: [exampleSecurityGroup.securityGroupId],
placement: {
zone: availabilityZone,
projectId: 0,
},
spaceChargePrepaid: {
period: 12,
renewFlag: "NOTIFY_AND_AUTO_RENEW",
},
systemDisk: {
diskSize: 100,
diskType: "CLOUD_HSSD",
},
dataDisks: [{
diskSize: 200,
diskType: "CLOUD_HSSD",
encrypt: false,
}],
virtualPrivateCloud: {
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
asVpcGateway: false,
ipv6AddressCount: 0,
privateIpAddresses: ["172.16.0.2"],
},
internetAccessible: {
internetChargeType: "BANDWIDTH_PREPAID",
internetMaxBandwidthOut: 200,
publicIpAssigned: true,
},
loginSettings: {
keyIds: ["skey-qxjpz7uj"],
},
enhancedService: {
securityService: {
enabled: true,
},
monitorService: {
enabled: true,
},
automationService: {
enabled: true,
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
availability_zone = config.get("availabilityZone")
if availability_zone is None:
availability_zone = "ap-nanjing-1"
images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 3.1 (TK4) UEFI")
# create vpc
vpc = tencentcloud.Vpc("vpc", cidr_block="172.16.0.0/16")
# create subnet
subnet = tencentcloud.Subnet("subnet",
availability_zone=availability_zone,
vpc_id=vpc.vpc_id,
cidr_block="172.16.0.0/24",
is_multicast=False)
# create security group
example_security_group = tencentcloud.SecurityGroup("exampleSecurityGroup",
description="security group desc.",
tags={
"createBy": "Terraform",
})
# create thpc workspaces
example_thpc_workspaces = tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces",
space_name="tf-example",
space_charge_type="UNDERWRITE",
space_type="96A.96XLARGE2304",
hpc_cluster_id="hpc-l9anqcbl",
image_id=images.images[0].image_id,
security_group_ids=[example_security_group.security_group_id],
placement={
"zone": availability_zone,
"project_id": 0,
},
space_charge_prepaid={
"period": 12,
"renew_flag": "NOTIFY_AND_AUTO_RENEW",
},
system_disk={
"disk_size": 100,
"disk_type": "CLOUD_HSSD",
},
data_disks=[{
"disk_size": 200,
"disk_type": "CLOUD_HSSD",
"encrypt": False,
}],
virtual_private_cloud={
"vpc_id": vpc.vpc_id,
"subnet_id": subnet.subnet_id,
"as_vpc_gateway": False,
"ipv6_address_count": 0,
"private_ip_addresses": ["172.16.0.2"],
},
internet_accessible={
"internet_charge_type": "BANDWIDTH_PREPAID",
"internet_max_bandwidth_out": 200,
"public_ip_assigned": True,
},
login_settings={
"key_ids": ["skey-qxjpz7uj"],
},
enhanced_service={
"security_service": {
"enabled": True,
},
"monitor_service": {
"enabled": True,
},
"automation_service": {
"enabled": True,
},
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"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, "")
availabilityZone := "ap-nanjing-1"
if param := cfg.Get("availabilityZone"); param != "" {
availabilityZone = param
}
images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 3.1 (TK4) UEFI"),
}, nil)
if err != nil {
return err
}
// create vpc
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
// create subnet
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
AvailabilityZone: pulumi.String(availabilityZone),
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("172.16.0.0/24"),
IsMulticast: pulumi.Bool(false),
})
if err != nil {
return err
}
// create security group
exampleSecurityGroup, err := tencentcloud.NewSecurityGroup(ctx, "exampleSecurityGroup", &tencentcloud.SecurityGroupArgs{
Description: pulumi.String("security group desc."),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
// create thpc workspaces
_, err = tencentcloud.NewThpcWorkspaces(ctx, "exampleThpcWorkspaces", &tencentcloud.ThpcWorkspacesArgs{
SpaceName: pulumi.String("tf-example"),
SpaceChargeType: pulumi.String("UNDERWRITE"),
SpaceType: pulumi.String("96A.96XLARGE2304"),
HpcClusterId: pulumi.String("hpc-l9anqcbl"),
ImageId: pulumi.String(images.Images[0].ImageId),
SecurityGroupIds: pulumi.StringArray{
exampleSecurityGroup.SecurityGroupId,
},
Placement: &tencentcloud.ThpcWorkspacesPlacementArgs{
Zone: pulumi.String(availabilityZone),
ProjectId: pulumi.Float64(0),
},
SpaceChargePrepaid: &tencentcloud.ThpcWorkspacesSpaceChargePrepaidArgs{
Period: pulumi.Float64(12),
RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"),
},
SystemDisk: &tencentcloud.ThpcWorkspacesSystemDiskArgs{
DiskSize: pulumi.Float64(100),
DiskType: pulumi.String("CLOUD_HSSD"),
},
DataDisks: tencentcloud.ThpcWorkspacesDataDiskArray{
&tencentcloud.ThpcWorkspacesDataDiskArgs{
DiskSize: pulumi.Float64(200),
DiskType: pulumi.String("CLOUD_HSSD"),
Encrypt: pulumi.Bool(false),
},
},
VirtualPrivateCloud: &tencentcloud.ThpcWorkspacesVirtualPrivateCloudArgs{
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
AsVpcGateway: pulumi.Bool(false),
Ipv6AddressCount: pulumi.Float64(0),
PrivateIpAddresses: pulumi.StringArray{
pulumi.String("172.16.0.2"),
},
},
InternetAccessible: &tencentcloud.ThpcWorkspacesInternetAccessibleArgs{
InternetChargeType: pulumi.String("BANDWIDTH_PREPAID"),
InternetMaxBandwidthOut: pulumi.Float64(200),
PublicIpAssigned: pulumi.Bool(true),
},
LoginSettings: &tencentcloud.ThpcWorkspacesLoginSettingsArgs{
KeyIds: pulumi.StringArray{
pulumi.String("skey-qxjpz7uj"),
},
},
EnhancedService: &tencentcloud.ThpcWorkspacesEnhancedServiceArgs{
SecurityService: &tencentcloud.ThpcWorkspacesEnhancedServiceSecurityServiceArgs{
Enabled: pulumi.Bool(true),
},
MonitorService: &tencentcloud.ThpcWorkspacesEnhancedServiceMonitorServiceArgs{
Enabled: pulumi.Bool(true),
},
AutomationService: &tencentcloud.ThpcWorkspacesEnhancedServiceAutomationServiceArgs{
Enabled: pulumi.Bool(true),
},
},
})
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 config = new Config();
var availabilityZone = config.Get("availabilityZone") ?? "ap-nanjing-1";
var images = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 3.1 (TK4) UEFI",
});
// create vpc
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "172.16.0.0/16",
});
// create subnet
var subnet = new Tencentcloud.Subnet("subnet", new()
{
AvailabilityZone = availabilityZone,
VpcId = vpc.VpcId,
CidrBlock = "172.16.0.0/24",
IsMulticast = false,
});
// create security group
var exampleSecurityGroup = new Tencentcloud.SecurityGroup("exampleSecurityGroup", new()
{
Description = "security group desc.",
Tags =
{
{ "createBy", "Terraform" },
},
});
// create thpc workspaces
var exampleThpcWorkspaces = new Tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", new()
{
SpaceName = "tf-example",
SpaceChargeType = "UNDERWRITE",
SpaceType = "96A.96XLARGE2304",
HpcClusterId = "hpc-l9anqcbl",
ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
SecurityGroupIds = new[]
{
exampleSecurityGroup.SecurityGroupId,
},
Placement = new Tencentcloud.Inputs.ThpcWorkspacesPlacementArgs
{
Zone = availabilityZone,
ProjectId = 0,
},
SpaceChargePrepaid = new Tencentcloud.Inputs.ThpcWorkspacesSpaceChargePrepaidArgs
{
Period = 12,
RenewFlag = "NOTIFY_AND_AUTO_RENEW",
},
SystemDisk = new Tencentcloud.Inputs.ThpcWorkspacesSystemDiskArgs
{
DiskSize = 100,
DiskType = "CLOUD_HSSD",
},
DataDisks = new[]
{
new Tencentcloud.Inputs.ThpcWorkspacesDataDiskArgs
{
DiskSize = 200,
DiskType = "CLOUD_HSSD",
Encrypt = false,
},
},
VirtualPrivateCloud = new Tencentcloud.Inputs.ThpcWorkspacesVirtualPrivateCloudArgs
{
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
AsVpcGateway = false,
Ipv6AddressCount = 0,
PrivateIpAddresses = new[]
{
"172.16.0.2",
},
},
InternetAccessible = new Tencentcloud.Inputs.ThpcWorkspacesInternetAccessibleArgs
{
InternetChargeType = "BANDWIDTH_PREPAID",
InternetMaxBandwidthOut = 200,
PublicIpAssigned = true,
},
LoginSettings = new Tencentcloud.Inputs.ThpcWorkspacesLoginSettingsArgs
{
KeyIds = new[]
{
"skey-qxjpz7uj",
},
},
EnhancedService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceArgs
{
SecurityService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs
{
Enabled = true,
},
MonitorService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs
{
Enabled = true,
},
AutomationService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs
{
Enabled = true,
},
},
});
});
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.GetImagesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.SecurityGroup;
import com.pulumi.tencentcloud.SecurityGroupArgs;
import com.pulumi.tencentcloud.ThpcWorkspaces;
import com.pulumi.tencentcloud.ThpcWorkspacesArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesPlacementArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSpaceChargePrepaidArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSystemDiskArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesDataDiskArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesVirtualPrivateCloudArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesInternetAccessibleArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesLoginSettingsArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs;
import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs;
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 config = ctx.config();
final var availabilityZone = config.get("availabilityZone").orElse("ap-nanjing-1");
final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 3.1 (TK4) UEFI")
.build());
// create vpc
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("172.16.0.0/16")
.build());
// create subnet
var subnet = new Subnet("subnet", SubnetArgs.builder()
.availabilityZone(availabilityZone)
.vpcId(vpc.vpcId())
.cidrBlock("172.16.0.0/24")
.isMulticast(false)
.build());
// create security group
var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
.description("security group desc.")
.tags(Map.of("createBy", "Terraform"))
.build());
// create thpc workspaces
var exampleThpcWorkspaces = new ThpcWorkspaces("exampleThpcWorkspaces", ThpcWorkspacesArgs.builder()
.spaceName("tf-example")
.spaceChargeType("UNDERWRITE")
.spaceType("96A.96XLARGE2304")
.hpcClusterId("hpc-l9anqcbl")
.imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.securityGroupIds(exampleSecurityGroup.securityGroupId())
.placement(ThpcWorkspacesPlacementArgs.builder()
.zone(availabilityZone)
.projectId(0)
.build())
.spaceChargePrepaid(ThpcWorkspacesSpaceChargePrepaidArgs.builder()
.period(12)
.renewFlag("NOTIFY_AND_AUTO_RENEW")
.build())
.systemDisk(ThpcWorkspacesSystemDiskArgs.builder()
.diskSize(100)
.diskType("CLOUD_HSSD")
.build())
.dataDisks(ThpcWorkspacesDataDiskArgs.builder()
.diskSize(200)
.diskType("CLOUD_HSSD")
.encrypt(false)
.build())
.virtualPrivateCloud(ThpcWorkspacesVirtualPrivateCloudArgs.builder()
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.asVpcGateway(false)
.ipv6AddressCount(0)
.privateIpAddresses("172.16.0.2")
.build())
.internetAccessible(ThpcWorkspacesInternetAccessibleArgs.builder()
.internetChargeType("BANDWIDTH_PREPAID")
.internetMaxBandwidthOut(200)
.publicIpAssigned(true)
.build())
.loginSettings(ThpcWorkspacesLoginSettingsArgs.builder()
.keyIds("skey-qxjpz7uj")
.build())
.enhancedService(ThpcWorkspacesEnhancedServiceArgs.builder()
.securityService(ThpcWorkspacesEnhancedServiceSecurityServiceArgs.builder()
.enabled(true)
.build())
.monitorService(ThpcWorkspacesEnhancedServiceMonitorServiceArgs.builder()
.enabled(true)
.build())
.automationService(ThpcWorkspacesEnhancedServiceAutomationServiceArgs.builder()
.enabled(true)
.build())
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-nanjing-1
resources:
# create vpc
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 172.16.0.0/16
# create subnet
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ${availabilityZone}
vpcId: ${vpc.vpcId}
cidrBlock: 172.16.0.0/24
isMulticast: false
# create security group
exampleSecurityGroup:
type: tencentcloud:SecurityGroup
properties:
description: security group desc.
tags:
createBy: Terraform
# create thpc workspaces
exampleThpcWorkspaces:
type: tencentcloud:ThpcWorkspaces
properties:
spaceName: tf-example
spaceChargeType: UNDERWRITE
spaceType: 96A.96XLARGE2304
hpcClusterId: hpc-l9anqcbl
imageId: ${images.images[0].imageId}
securityGroupIds:
- ${exampleSecurityGroup.securityGroupId}
placement:
zone: ${availabilityZone}
projectId: 0
spaceChargePrepaid:
period: 12
renewFlag: NOTIFY_AND_AUTO_RENEW
systemDisk:
diskSize: 100
diskType: CLOUD_HSSD
dataDisks:
- diskSize: 200
diskType: CLOUD_HSSD
encrypt: false
virtualPrivateCloud:
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
asVpcGateway: false
ipv6AddressCount: 0
privateIpAddresses:
- 172.16.0.2
internetAccessible:
internetChargeType: BANDWIDTH_PREPAID
internetMaxBandwidthOut: 200
publicIpAssigned: true
loginSettings:
keyIds:
- skey-qxjpz7uj
enhancedService:
securityService:
enabled: true
monitorService:
enabled: true
automationService:
enabled: true
variables:
images:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 3.1 (TK4) UEFI
Create ThpcWorkspaces Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ThpcWorkspaces(name: string, args?: ThpcWorkspacesArgs, opts?: CustomResourceOptions);
@overload
def ThpcWorkspaces(resource_name: str,
args: Optional[ThpcWorkspacesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ThpcWorkspaces(resource_name: str,
opts: Optional[ResourceOptions] = None,
cam_role_name: Optional[str] = None,
client_token: Optional[str] = None,
data_disks: Optional[Sequence[ThpcWorkspacesDataDiskArgs]] = None,
disaster_recover_group_id: Optional[str] = None,
enhanced_service: Optional[ThpcWorkspacesEnhancedServiceArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
internet_accessible: Optional[ThpcWorkspacesInternetAccessibleArgs] = None,
login_settings: Optional[ThpcWorkspacesLoginSettingsArgs] = None,
placement: Optional[ThpcWorkspacesPlacementArgs] = None,
security_group_ids: Optional[Sequence[str]] = None,
space_charge_prepaid: Optional[ThpcWorkspacesSpaceChargePrepaidArgs] = None,
space_charge_type: Optional[str] = None,
space_name: Optional[str] = None,
space_type: Optional[str] = None,
system_disk: Optional[ThpcWorkspacesSystemDiskArgs] = None,
tag_specifications: Optional[Sequence[ThpcWorkspacesTagSpecificationArgs]] = None,
thpc_workspaces_id: Optional[str] = None,
user_data: Optional[str] = None,
virtual_private_cloud: Optional[ThpcWorkspacesVirtualPrivateCloudArgs] = None)
func NewThpcWorkspaces(ctx *Context, name string, args *ThpcWorkspacesArgs, opts ...ResourceOption) (*ThpcWorkspaces, error)
public ThpcWorkspaces(string name, ThpcWorkspacesArgs? args = null, CustomResourceOptions? opts = null)
public ThpcWorkspaces(String name, ThpcWorkspacesArgs args)
public ThpcWorkspaces(String name, ThpcWorkspacesArgs args, CustomResourceOptions options)
type: tencentcloud:ThpcWorkspaces
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 ThpcWorkspacesArgs
- 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 ThpcWorkspacesArgs
- 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 ThpcWorkspacesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ThpcWorkspacesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ThpcWorkspacesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ThpcWorkspaces 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 ThpcWorkspaces resource accepts the following input properties:
- Cam
Role stringName - CAM role name authorized to access.
- Client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- Data
Disks List<ThpcWorkspaces Data Disk> - Workspace data disk information.
- Disaster
Recover stringGroup Id - Placement Group ID.
- Enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- Host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- Hpc
Cluster stringId - Hyper Computing Cluster ID.
- Image
Id string - Image ID.
- Internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- Login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- Placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- Security
Group List<string>Ids - Workspace Security Group.
- Space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- Space
Charge stringType - Workspace billing type.
- Space
Name string - Workspace Display Name.
- Space
Type string - Workspace specifications.
- System
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- List<Thpc
Workspaces Tag Specification> - Tag Description List.
- Thpc
Workspaces stringId - ID of the resource.
- User
Data string - User Data for Workspace.
- Virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- Cam
Role stringName - CAM role name authorized to access.
- Client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- Data
Disks []ThpcWorkspaces Data Disk Args - Workspace data disk information.
- Disaster
Recover stringGroup Id - Placement Group ID.
- Enhanced
Service ThpcWorkspaces Enhanced Service Args - Enhanced Services.
- Host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- Hpc
Cluster stringId - Hyper Computing Cluster ID.
- Image
Id string - Image ID.
- Internet
Accessible ThpcWorkspaces Internet Accessible Args - Public network bandwidth settings.
- Login
Settings ThpcWorkspaces Login Settings Args - Workspace Login Settings.
- Placement
Thpc
Workspaces Placement Args - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- Security
Group []stringIds - Workspace Security Group.
- Space
Charge ThpcPrepaid Workspaces Space Charge Prepaid Args - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- Space
Charge stringType - Workspace billing type.
- Space
Name string - Workspace Display Name.
- Space
Type string - Workspace specifications.
- System
Disk ThpcWorkspaces System Disk Args - Workspace system disk information.
- []Thpc
Workspaces Tag Specification Args - Tag Description List.
- Thpc
Workspaces stringId - ID of the resource.
- User
Data string - User Data for Workspace.
- Virtual
Private ThpcCloud Workspaces Virtual Private Cloud Args - VPC related information.
- cam
Role StringName - CAM role name authorized to access.
- client
Token String - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks List<ThpcWorkspaces Data Disk> - Workspace data disk information.
- disaster
Recover StringGroup Id - Placement Group ID.
- enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- host
Name String - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster StringId - Hyper Computing Cluster ID.
- image
Id String - Image ID.
- internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- security
Group List<String>Ids - Workspace Security Group.
- space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge StringType - Workspace billing type.
- space
Name String - Workspace Display Name.
- space
Type String - Workspace specifications.
- system
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- List<Thpc
Workspaces Tag Specification> - Tag Description List.
- thpc
Workspaces StringId - ID of the resource.
- user
Data String - User Data for Workspace.
- virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- cam
Role stringName - CAM role name authorized to access.
- client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks ThpcWorkspaces Data Disk[] - Workspace data disk information.
- disaster
Recover stringGroup Id - Placement Group ID.
- enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster stringId - Hyper Computing Cluster ID.
- image
Id string - Image ID.
- internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- security
Group string[]Ids - Workspace Security Group.
- space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge stringType - Workspace billing type.
- space
Name string - Workspace Display Name.
- space
Type string - Workspace specifications.
- system
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- Thpc
Workspaces Tag Specification[] - Tag Description List.
- thpc
Workspaces stringId - ID of the resource.
- user
Data string - User Data for Workspace.
- virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- cam_
role_ strname - CAM role name authorized to access.
- client_
token str - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data_
disks Sequence[ThpcWorkspaces Data Disk Args] - Workspace data disk information.
- disaster_
recover_ strgroup_ id - Placement Group ID.
- enhanced_
service ThpcWorkspaces Enhanced Service Args - Enhanced Services.
- host_
name str - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc_
cluster_ strid - Hyper Computing Cluster ID.
- image_
id str - Image ID.
- internet_
accessible ThpcWorkspaces Internet Accessible Args - Public network bandwidth settings.
- login_
settings ThpcWorkspaces Login Settings Args - Workspace Login Settings.
- placement
Thpc
Workspaces Placement Args - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- security_
group_ Sequence[str]ids - Workspace Security Group.
- space_
charge_ Thpcprepaid Workspaces Space Charge Prepaid Args - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space_
charge_ strtype - Workspace billing type.
- space_
name str - Workspace Display Name.
- space_
type str - Workspace specifications.
- system_
disk ThpcWorkspaces System Disk Args - Workspace system disk information.
- tag_
specifications Sequence[ThpcWorkspaces Tag Specification Args] - Tag Description List.
- thpc_
workspaces_ strid - ID of the resource.
- user_
data str - User Data for Workspace.
- virtual_
private_ Thpccloud Workspaces Virtual Private Cloud Args - VPC related information.
- cam
Role StringName - CAM role name authorized to access.
- client
Token String - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks List<Property Map> - Workspace data disk information.
- disaster
Recover StringGroup Id - Placement Group ID.
- enhanced
Service Property Map - Enhanced Services.
- host
Name String - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster StringId - Hyper Computing Cluster ID.
- image
Id String - Image ID.
- internet
Accessible Property Map - Public network bandwidth settings.
- login
Settings Property Map - Workspace Login Settings.
- placement Property Map
- The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- security
Group List<String>Ids - Workspace Security Group.
- space
Charge Property MapPrepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge StringType - Workspace billing type.
- space
Name String - Workspace Display Name.
- space
Type String - Workspace specifications.
- system
Disk Property Map - Workspace system disk information.
- List<Property Map>
- Tag Description List.
- thpc
Workspaces StringId - ID of the resource.
- user
Data String - User Data for Workspace.
- virtual
Private Property MapCloud - VPC related information.
Outputs
All input properties are implicitly available as output properties. Additionally, the ThpcWorkspaces resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - CVM instance ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - CVM instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - CVM instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - CVM instance ID.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - CVM instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - CVM instance ID.
Look up Existing ThpcWorkspaces Resource
Get an existing ThpcWorkspaces 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?: ThpcWorkspacesState, opts?: CustomResourceOptions): ThpcWorkspaces
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cam_role_name: Optional[str] = None,
client_token: Optional[str] = None,
data_disks: Optional[Sequence[ThpcWorkspacesDataDiskArgs]] = None,
disaster_recover_group_id: Optional[str] = None,
enhanced_service: Optional[ThpcWorkspacesEnhancedServiceArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
internet_accessible: Optional[ThpcWorkspacesInternetAccessibleArgs] = None,
login_settings: Optional[ThpcWorkspacesLoginSettingsArgs] = None,
placement: Optional[ThpcWorkspacesPlacementArgs] = None,
resource_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
space_charge_prepaid: Optional[ThpcWorkspacesSpaceChargePrepaidArgs] = None,
space_charge_type: Optional[str] = None,
space_name: Optional[str] = None,
space_type: Optional[str] = None,
system_disk: Optional[ThpcWorkspacesSystemDiskArgs] = None,
tag_specifications: Optional[Sequence[ThpcWorkspacesTagSpecificationArgs]] = None,
thpc_workspaces_id: Optional[str] = None,
user_data: Optional[str] = None,
virtual_private_cloud: Optional[ThpcWorkspacesVirtualPrivateCloudArgs] = None) -> ThpcWorkspaces
func GetThpcWorkspaces(ctx *Context, name string, id IDInput, state *ThpcWorkspacesState, opts ...ResourceOption) (*ThpcWorkspaces, error)
public static ThpcWorkspaces Get(string name, Input<string> id, ThpcWorkspacesState? state, CustomResourceOptions? opts = null)
public static ThpcWorkspaces get(String name, Output<String> id, ThpcWorkspacesState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ThpcWorkspaces 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.
- Cam
Role stringName - CAM role name authorized to access.
- Client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- Data
Disks List<ThpcWorkspaces Data Disk> - Workspace data disk information.
- Disaster
Recover stringGroup Id - Placement Group ID.
- Enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- Host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- Hpc
Cluster stringId - Hyper Computing Cluster ID.
- Image
Id string - Image ID.
- Internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- Login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- Placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- Resource
Id string - CVM instance ID.
- Security
Group List<string>Ids - Workspace Security Group.
- Space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- Space
Charge stringType - Workspace billing type.
- Space
Name string - Workspace Display Name.
- Space
Type string - Workspace specifications.
- System
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- List<Thpc
Workspaces Tag Specification> - Tag Description List.
- Thpc
Workspaces stringId - ID of the resource.
- User
Data string - User Data for Workspace.
- Virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- Cam
Role stringName - CAM role name authorized to access.
- Client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- Data
Disks []ThpcWorkspaces Data Disk Args - Workspace data disk information.
- Disaster
Recover stringGroup Id - Placement Group ID.
- Enhanced
Service ThpcWorkspaces Enhanced Service Args - Enhanced Services.
- Host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- Hpc
Cluster stringId - Hyper Computing Cluster ID.
- Image
Id string - Image ID.
- Internet
Accessible ThpcWorkspaces Internet Accessible Args - Public network bandwidth settings.
- Login
Settings ThpcWorkspaces Login Settings Args - Workspace Login Settings.
- Placement
Thpc
Workspaces Placement Args - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- Resource
Id string - CVM instance ID.
- Security
Group []stringIds - Workspace Security Group.
- Space
Charge ThpcPrepaid Workspaces Space Charge Prepaid Args - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- Space
Charge stringType - Workspace billing type.
- Space
Name string - Workspace Display Name.
- Space
Type string - Workspace specifications.
- System
Disk ThpcWorkspaces System Disk Args - Workspace system disk information.
- []Thpc
Workspaces Tag Specification Args - Tag Description List.
- Thpc
Workspaces stringId - ID of the resource.
- User
Data string - User Data for Workspace.
- Virtual
Private ThpcCloud Workspaces Virtual Private Cloud Args - VPC related information.
- cam
Role StringName - CAM role name authorized to access.
- client
Token String - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks List<ThpcWorkspaces Data Disk> - Workspace data disk information.
- disaster
Recover StringGroup Id - Placement Group ID.
- enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- host
Name String - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster StringId - Hyper Computing Cluster ID.
- image
Id String - Image ID.
- internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- resource
Id String - CVM instance ID.
- security
Group List<String>Ids - Workspace Security Group.
- space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge StringType - Workspace billing type.
- space
Name String - Workspace Display Name.
- space
Type String - Workspace specifications.
- system
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- List<Thpc
Workspaces Tag Specification> - Tag Description List.
- thpc
Workspaces StringId - ID of the resource.
- user
Data String - User Data for Workspace.
- virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- cam
Role stringName - CAM role name authorized to access.
- client
Token string - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks ThpcWorkspaces Data Disk[] - Workspace data disk information.
- disaster
Recover stringGroup Id - Placement Group ID.
- enhanced
Service ThpcWorkspaces Enhanced Service - Enhanced Services.
- host
Name string - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster stringId - Hyper Computing Cluster ID.
- image
Id string - Image ID.
- internet
Accessible ThpcWorkspaces Internet Accessible - Public network bandwidth settings.
- login
Settings ThpcWorkspaces Login Settings - Workspace Login Settings.
- placement
Thpc
Workspaces Placement - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- resource
Id string - CVM instance ID.
- security
Group string[]Ids - Workspace Security Group.
- space
Charge ThpcPrepaid Workspaces Space Charge Prepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge stringType - Workspace billing type.
- space
Name string - Workspace Display Name.
- space
Type string - Workspace specifications.
- system
Disk ThpcWorkspaces System Disk - Workspace system disk information.
- Thpc
Workspaces Tag Specification[] - Tag Description List.
- thpc
Workspaces stringId - ID of the resource.
- user
Data string - User Data for Workspace.
- virtual
Private ThpcCloud Workspaces Virtual Private Cloud - VPC related information.
- cam_
role_ strname - CAM role name authorized to access.
- client_
token str - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data_
disks Sequence[ThpcWorkspaces Data Disk Args] - Workspace data disk information.
- disaster_
recover_ strgroup_ id - Placement Group ID.
- enhanced_
service ThpcWorkspaces Enhanced Service Args - Enhanced Services.
- host_
name str - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc_
cluster_ strid - Hyper Computing Cluster ID.
- image_
id str - Image ID.
- internet_
accessible ThpcWorkspaces Internet Accessible Args - Public network bandwidth settings.
- login_
settings ThpcWorkspaces Login Settings Args - Workspace Login Settings.
- placement
Thpc
Workspaces Placement Args - The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- resource_
id str - CVM instance ID.
- security_
group_ Sequence[str]ids - Workspace Security Group.
- space_
charge_ Thpcprepaid Workspaces Space Charge Prepaid Args - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space_
charge_ strtype - Workspace billing type.
- space_
name str - Workspace Display Name.
- space_
type str - Workspace specifications.
- system_
disk ThpcWorkspaces System Disk Args - Workspace system disk information.
- tag_
specifications Sequence[ThpcWorkspaces Tag Specification Args] - Tag Description List.
- thpc_
workspaces_ strid - ID of the resource.
- user_
data str - User Data for Workspace.
- virtual_
private_ Thpccloud Workspaces Virtual Private Cloud Args - VPC related information.
- cam
Role StringName - CAM role name authorized to access.
- client
Token String - A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
- data
Disks List<Property Map> - Workspace data disk information.
- disaster
Recover StringGroup Id - Placement Group ID.
- enhanced
Service Property Map - Enhanced Services.
- host
Name String - The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
- hpc
Cluster StringId - Hyper Computing Cluster ID.
- image
Id String - Image ID.
- internet
Accessible Property Map - Public network bandwidth settings.
- login
Settings Property Map - Workspace Login Settings.
- placement Property Map
- The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
- resource
Id String - CVM instance ID.
- security
Group List<String>Ids - Workspace Security Group.
- space
Charge Property MapPrepaid - Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
- space
Charge StringType - Workspace billing type.
- space
Name String - Workspace Display Name.
- space
Type String - Workspace specifications.
- system
Disk Property Map - Workspace system disk information.
- List<Property Map>
- Tag Description List.
- thpc
Workspaces StringId - ID of the resource.
- user
Data String - User Data for Workspace.
- virtual
Private Property MapCloud - VPC related information.
Supporting Types
ThpcWorkspacesDataDisk, ThpcWorkspacesDataDiskArgs
- Burst
Performance bool - Sudden performance. PS: During testing.
- Delete
With boolInstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - Disk
Id string - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - Disk
Size double - Size of the data disk, and unit is GB.
- Disk
Type string - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- Encrypt bool
- Decides whether the disk is encrypted. Default is
false
. - Kms
Key stringId - Kms key ID.
- Snapshot
Id string - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- Throughput
Performance double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- Burst
Performance bool - Sudden performance. PS: During testing.
- Delete
With boolInstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - Disk
Id string - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - Disk
Size float64 - Size of the data disk, and unit is GB.
- Disk
Type string - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- Encrypt bool
- Decides whether the disk is encrypted. Default is
false
. - Kms
Key stringId - Kms key ID.
- Snapshot
Id string - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- Throughput
Performance float64 - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- burst
Performance Boolean - Sudden performance. PS: During testing.
- delete
With BooleanInstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - disk
Id String - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size Double - Size of the data disk, and unit is GB.
- disk
Type String - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- encrypt Boolean
- Decides whether the disk is encrypted. Default is
false
. - kms
Key StringId - Kms key ID.
- snapshot
Id String - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- throughput
Performance Double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- burst
Performance boolean - Sudden performance. PS: During testing.
- delete
With booleanInstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - disk
Id string - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size number - Size of the data disk, and unit is GB.
- disk
Type string - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- encrypt boolean
- Decides whether the disk is encrypted. Default is
false
. - kms
Key stringId - Kms key ID.
- snapshot
Id string - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- throughput
Performance number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- burst_
performance bool - Sudden performance. PS: During testing.
- delete_
with_ boolinstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - disk_
id str - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk_
size float - Size of the data disk, and unit is GB.
- disk_
type str - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- encrypt bool
- Decides whether the disk is encrypted. Default is
false
. - kms_
key_ strid - Kms key ID.
- snapshot_
id str - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- throughput_
performance float - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- burst
Performance Boolean - Sudden performance. PS: During testing.
- delete
With BooleanInstance - Decides whether the disk is deleted with instance(only applied to
CLOUD_BASIC
,CLOUD_SSD
andCLOUD_PREMIUM
disk withPOSTPAID_BY_HOUR
instance), Default is true. - disk
Id String - Data disk ID used to initialize the data disk. When data disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size Number - Size of the data disk, and unit is GB.
- disk
Type String - Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
- encrypt Boolean
- Decides whether the disk is encrypted. Default is
false
. - kms
Key StringId - Kms key ID.
- snapshot
Id String - Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
- throughput
Performance Number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
ThpcWorkspacesEnhancedService, ThpcWorkspacesEnhancedServiceArgs
- Automation
Service ThpcWorkspaces Enhanced Service Automation Service - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- Monitor
Service ThpcWorkspaces Enhanced Service Monitor Service - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- Security
Service ThpcWorkspaces Enhanced Service Security Service - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
- Automation
Service ThpcWorkspaces Enhanced Service Automation Service - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- Monitor
Service ThpcWorkspaces Enhanced Service Monitor Service - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- Security
Service ThpcWorkspaces Enhanced Service Security Service - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
- automation
Service ThpcWorkspaces Enhanced Service Automation Service - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- monitor
Service ThpcWorkspaces Enhanced Service Monitor Service - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- security
Service ThpcWorkspaces Enhanced Service Security Service - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
- automation
Service ThpcWorkspaces Enhanced Service Automation Service - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- monitor
Service ThpcWorkspaces Enhanced Service Monitor Service - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- security
Service ThpcWorkspaces Enhanced Service Security Service - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
- automation_
service ThpcWorkspaces Enhanced Service Automation Service - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- monitor_
service ThpcWorkspaces Enhanced Service Monitor Service - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- security_
service ThpcWorkspaces Enhanced Service Security Service - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
- automation
Service Property Map - Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
- monitor
Service Property Map - Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
- security
Service Property Map - Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
ThpcWorkspacesEnhancedServiceAutomationService, ThpcWorkspacesEnhancedServiceAutomationServiceArgs
- Enabled bool
- Whether to enable.
- Enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
- enabled boolean
- Whether to enable.
- enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
ThpcWorkspacesEnhancedServiceMonitorService, ThpcWorkspacesEnhancedServiceMonitorServiceArgs
- Enabled bool
- Whether to enable.
- Enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
- enabled boolean
- Whether to enable.
- enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
ThpcWorkspacesEnhancedServiceSecurityService, ThpcWorkspacesEnhancedServiceSecurityServiceArgs
- Enabled bool
- Whether to enable.
- Enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
- enabled boolean
- Whether to enable.
- enabled bool
- Whether to enable.
- enabled Boolean
- Whether to enable.
ThpcWorkspacesInternetAccessible, ThpcWorkspacesInternetAccessibleArgs
- Bandwidth
Package stringId - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - Internet
Max doubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Public
Ip boolAssigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- Bandwidth
Package stringId - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - Internet
Max float64Bandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Public
Ip boolAssigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package StringId - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - internet
Max DoubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - public
Ip BooleanAssigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package stringId - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - internet
Max numberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - public
Ip booleanAssigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth_
package_ strid - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- internet_
charge_ strtype - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - internet_
max_ floatbandwidth_ out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - public_
ip_ boolassigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package StringId - Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set whenallocate_public_ip
is false. - internet
Max NumberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - public
Ip BooleanAssigned - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
ThpcWorkspacesLoginSettings, ThpcWorkspacesLoginSettingsArgs
- Key
Ids List<string> - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
- Key
Ids []string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
- key
Ids List<String> - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
- key
Ids string[] - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
- key_
ids Sequence[str] - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - password str
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
- key
Ids List<String> - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifying will cause the instance reset. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
ThpcWorkspacesPlacement, ThpcWorkspacesPlacementArgs
- zone str
- The available zone for the CVM instance.
- project_
id float - The project the instance belongs to, default to 0.
ThpcWorkspacesSpaceChargePrepaid, ThpcWorkspacesSpaceChargePrepaidArgs
- Period double
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - Renew
Flag string - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
- Period float64
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - Renew
Flag string - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
- period Double
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - renew
Flag String - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
- period number
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - renew
Flag string - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
- period float
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - renew_
flag str - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
- period Number
- The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
,48
,60
. - renew
Flag String - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
.
ThpcWorkspacesSystemDisk, ThpcWorkspacesSystemDiskArgs
- Disk
Id string - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - Disk
Size double - Size of the system disk. unit is GB, Default is 50GB.
- Disk
Type string - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
- Disk
Id string - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - Disk
Size float64 - Size of the system disk. unit is GB, Default is 50GB.
- Disk
Type string - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
- disk
Id String - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size Double - Size of the system disk. unit is GB, Default is 50GB.
- disk
Type String - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
- disk
Id string - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size number - Size of the system disk. unit is GB, Default is 50GB.
- disk
Type string - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
- disk_
id str - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk_
size float - Size of the system disk. unit is GB, Default is 50GB.
- disk_
type str - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
- disk
Id String - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - disk
Size Number - Size of the system disk. unit is GB, Default is 50GB.
- disk
Type String - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_BASIC
: cloud disk,CLOUD_SSD
: cloud SSD disk,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD,CLOUD_HSSD
: Enhanced SSD,CLOUD_TSSD
: Tremendous SSD. NOTE: If modified, the instance may force stop.
ThpcWorkspacesTagSpecification, ThpcWorkspacesTagSpecificationArgs
- List<Property Map>
- tags.
ThpcWorkspacesTagSpecificationTag, ThpcWorkspacesTagSpecificationTagArgs
ThpcWorkspacesVirtualPrivateCloud, ThpcWorkspacesVirtualPrivateCloudArgs
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- As
Vpc boolGateway - Is it used as a public network gateway.
- Ipv6Address
Count double - IPV6 address count.
- Private
Ip List<string>Addresses - Array of private ip address.
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- As
Vpc boolGateway - Is it used as a public network gateway.
- Ipv6Address
Count float64 - IPV6 address count.
- Private
Ip []stringAddresses - Array of private ip address.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- as
Vpc BooleanGateway - Is it used as a public network gateway.
- ipv6Address
Count Double - IPV6 address count.
- private
Ip List<String>Addresses - Array of private ip address.
- subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- as
Vpc booleanGateway - Is it used as a public network gateway.
- ipv6Address
Count number - IPV6 address count.
- private
Ip string[]Addresses - Array of private ip address.
- subnet_
id str - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- vpc_
id str - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- as_
vpc_ boolgateway - Is it used as a public network gateway.
- ipv6_
address_ floatcount - IPV6 address count.
- private_
ip_ Sequence[str]addresses - Array of private ip address.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- as
Vpc BooleanGateway - Is it used as a public network gateway.
- ipv6Address
Count Number - IPV6 address count.
- private
Ip List<String>Addresses - Array of private ip address.
Import
THPC workspaces can be imported using the id, e.g.
$ pulumi import tencentcloud:index/thpcWorkspaces:ThpcWorkspaces example wks-gwg3ygz1
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.