tencentcloud.DasbResource
Explore with Pulumi AI
Provides a resource to create a dasb resource
Example Usage
Create a standard version instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DasbResource("example", {
autoRenewFlag: 1,
cidrBlock: "10.35.20.0/24",
deployRegion: "ap-guangzhou",
deployZone: "ap-guangzhou-6",
packageBandwidth: 1,
resourceEdition: "standard",
resourceNode: 50,
subnetId: "subnet-g7jhwhi2",
timeSpan: 1,
timeUnit: "m",
vpcCidrBlock: "10.35.0.0/16",
vpcId: "vpc-fmz6l9nz",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DasbResource("example",
auto_renew_flag=1,
cidr_block="10.35.20.0/24",
deploy_region="ap-guangzhou",
deploy_zone="ap-guangzhou-6",
package_bandwidth=1,
resource_edition="standard",
resource_node=50,
subnet_id="subnet-g7jhwhi2",
time_span=1,
time_unit="m",
vpc_cidr_block="10.35.0.0/16",
vpc_id="vpc-fmz6l9nz")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDasbResource(ctx, "example", &tencentcloud.DasbResourceArgs{
AutoRenewFlag: pulumi.Float64(1),
CidrBlock: pulumi.String("10.35.20.0/24"),
DeployRegion: pulumi.String("ap-guangzhou"),
DeployZone: pulumi.String("ap-guangzhou-6"),
PackageBandwidth: pulumi.Float64(1),
ResourceEdition: pulumi.String("standard"),
ResourceNode: pulumi.Float64(50),
SubnetId: pulumi.String("subnet-g7jhwhi2"),
TimeSpan: pulumi.Float64(1),
TimeUnit: pulumi.String("m"),
VpcCidrBlock: pulumi.String("10.35.0.0/16"),
VpcId: pulumi.String("vpc-fmz6l9nz"),
})
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 example = new Tencentcloud.DasbResource("example", new()
{
AutoRenewFlag = 1,
CidrBlock = "10.35.20.0/24",
DeployRegion = "ap-guangzhou",
DeployZone = "ap-guangzhou-6",
PackageBandwidth = 1,
ResourceEdition = "standard",
ResourceNode = 50,
SubnetId = "subnet-g7jhwhi2",
TimeSpan = 1,
TimeUnit = "m",
VpcCidrBlock = "10.35.0.0/16",
VpcId = "vpc-fmz6l9nz",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DasbResource;
import com.pulumi.tencentcloud.DasbResourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DasbResource("example", DasbResourceArgs.builder()
.autoRenewFlag(1)
.cidrBlock("10.35.20.0/24")
.deployRegion("ap-guangzhou")
.deployZone("ap-guangzhou-6")
.packageBandwidth(1)
.resourceEdition("standard")
.resourceNode(50)
.subnetId("subnet-g7jhwhi2")
.timeSpan(1)
.timeUnit("m")
.vpcCidrBlock("10.35.0.0/16")
.vpcId("vpc-fmz6l9nz")
.build());
}
}
resources:
example:
type: tencentcloud:DasbResource
properties:
autoRenewFlag: 1
cidrBlock: 10.35.20.0/24
deployRegion: ap-guangzhou
deployZone: ap-guangzhou-6
packageBandwidth: 1
resourceEdition: standard
resourceNode: 50
subnetId: subnet-g7jhwhi2
timeSpan: 1
timeUnit: m
vpcCidrBlock: 10.35.0.0/16
vpcId: vpc-fmz6l9nz
Create a professional instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DasbResource("example", {
autoRenewFlag: 1,
cidrBlock: "10.35.20.0/24",
deployRegion: "ap-guangzhou",
deployZone: "ap-guangzhou-6",
packageBandwidth: 1,
resourceEdition: "pro",
resourceNode: 50,
subnetId: "subnet-g7jhwhi2",
timeSpan: 1,
timeUnit: "m",
vpcCidrBlock: "10.35.0.0/16",
vpcId: "vpc-fmz6l9nz",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DasbResource("example",
auto_renew_flag=1,
cidr_block="10.35.20.0/24",
deploy_region="ap-guangzhou",
deploy_zone="ap-guangzhou-6",
package_bandwidth=1,
resource_edition="pro",
resource_node=50,
subnet_id="subnet-g7jhwhi2",
time_span=1,
time_unit="m",
vpc_cidr_block="10.35.0.0/16",
vpc_id="vpc-fmz6l9nz")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDasbResource(ctx, "example", &tencentcloud.DasbResourceArgs{
AutoRenewFlag: pulumi.Float64(1),
CidrBlock: pulumi.String("10.35.20.0/24"),
DeployRegion: pulumi.String("ap-guangzhou"),
DeployZone: pulumi.String("ap-guangzhou-6"),
PackageBandwidth: pulumi.Float64(1),
ResourceEdition: pulumi.String("pro"),
ResourceNode: pulumi.Float64(50),
SubnetId: pulumi.String("subnet-g7jhwhi2"),
TimeSpan: pulumi.Float64(1),
TimeUnit: pulumi.String("m"),
VpcCidrBlock: pulumi.String("10.35.0.0/16"),
VpcId: pulumi.String("vpc-fmz6l9nz"),
})
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 example = new Tencentcloud.DasbResource("example", new()
{
AutoRenewFlag = 1,
CidrBlock = "10.35.20.0/24",
DeployRegion = "ap-guangzhou",
DeployZone = "ap-guangzhou-6",
PackageBandwidth = 1,
ResourceEdition = "pro",
ResourceNode = 50,
SubnetId = "subnet-g7jhwhi2",
TimeSpan = 1,
TimeUnit = "m",
VpcCidrBlock = "10.35.0.0/16",
VpcId = "vpc-fmz6l9nz",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DasbResource;
import com.pulumi.tencentcloud.DasbResourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DasbResource("example", DasbResourceArgs.builder()
.autoRenewFlag(1)
.cidrBlock("10.35.20.0/24")
.deployRegion("ap-guangzhou")
.deployZone("ap-guangzhou-6")
.packageBandwidth(1)
.resourceEdition("pro")
.resourceNode(50)
.subnetId("subnet-g7jhwhi2")
.timeSpan(1)
.timeUnit("m")
.vpcCidrBlock("10.35.0.0/16")
.vpcId("vpc-fmz6l9nz")
.build());
}
}
resources:
example:
type: tencentcloud:DasbResource
properties:
autoRenewFlag: 1
cidrBlock: 10.35.20.0/24
deployRegion: ap-guangzhou
deployZone: ap-guangzhou-6
packageBandwidth: 1
resourceEdition: pro
resourceNode: 50
subnetId: subnet-g7jhwhi2
timeSpan: 1
timeUnit: m
vpcCidrBlock: 10.35.0.0/16
vpcId: vpc-fmz6l9nz
Create DasbResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DasbResource(name: string, args: DasbResourceArgs, opts?: CustomResourceOptions);
@overload
def DasbResource(resource_name: str,
args: DasbResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DasbResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_edition: Optional[str] = None,
cidr_block: Optional[str] = None,
deploy_region: Optional[str] = None,
deploy_zone: Optional[str] = None,
auto_renew_flag: Optional[float] = None,
resource_node: Optional[float] = None,
subnet_id: Optional[str] = None,
vpc_cidr_block: Optional[str] = None,
vpc_id: Optional[str] = None,
dasb_resource_id: Optional[str] = None,
package_bandwidth: Optional[float] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None)
func NewDasbResource(ctx *Context, name string, args DasbResourceArgs, opts ...ResourceOption) (*DasbResource, error)
public DasbResource(string name, DasbResourceArgs args, CustomResourceOptions? opts = null)
public DasbResource(String name, DasbResourceArgs args)
public DasbResource(String name, DasbResourceArgs args, CustomResourceOptions options)
type: tencentcloud:DasbResource
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 DasbResourceArgs
- 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 DasbResourceArgs
- 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 DasbResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DasbResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DasbResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DasbResource 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 DasbResource resource accepts the following input properties:
- Auto
Renew doubleFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- Cidr
Block string - Subnet segments that require service activation.
- Deploy
Region string - Deploy region.
- Deploy
Zone string - Deploy zone.
- Resource
Edition string - Resource type.Value:standard/pro.
- Resource
Node double - Number of resource nodes.
- Subnet
Id string - Deploy resource subnetId.
- Vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- Vpc
Id string - Deploy resource vpcId.
- Dasb
Resource stringId - ID of the resource.
- Package
Bandwidth double - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- Time
Span double - Billing time. This field is mandatory, with a minimum value of 1.
- Time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- Auto
Renew float64Flag - Automatic renewal. 1 is auto renew flag, 0 is not.
- Cidr
Block string - Subnet segments that require service activation.
- Deploy
Region string - Deploy region.
- Deploy
Zone string - Deploy zone.
- Resource
Edition string - Resource type.Value:standard/pro.
- Resource
Node float64 - Number of resource nodes.
- Subnet
Id string - Deploy resource subnetId.
- Vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- Vpc
Id string - Deploy resource vpcId.
- Dasb
Resource stringId - ID of the resource.
- Package
Bandwidth float64 - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- Time
Span float64 - Billing time. This field is mandatory, with a minimum value of 1.
- Time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- auto
Renew DoubleFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block String - Subnet segments that require service activation.
- deploy
Region String - Deploy region.
- deploy
Zone String - Deploy zone.
- resource
Edition String - Resource type.Value:standard/pro.
- resource
Node Double - Number of resource nodes.
- subnet
Id String - Deploy resource subnetId.
- vpc
Cidr StringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id String - Deploy resource vpcId.
- dasb
Resource StringId - ID of the resource.
- package
Bandwidth Double - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- time
Span Double - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit String - Billing cycle, only support m: month. This field is mandatory, fill in m.
- auto
Renew numberFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block string - Subnet segments that require service activation.
- deploy
Region string - Deploy region.
- deploy
Zone string - Deploy zone.
- resource
Edition string - Resource type.Value:standard/pro.
- resource
Node number - Number of resource nodes.
- subnet
Id string - Deploy resource subnetId.
- vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id string - Deploy resource vpcId.
- dasb
Resource stringId - ID of the resource.
- package
Bandwidth number - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- time
Span number - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- auto_
renew_ floatflag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr_
block str - Subnet segments that require service activation.
- deploy_
region str - Deploy region.
- deploy_
zone str - Deploy zone.
- resource_
edition str - Resource type.Value:standard/pro.
- resource_
node float - Number of resource nodes.
- subnet_
id str - Deploy resource subnetId.
- vpc_
cidr_ strblock - The network segment corresponding to the VPC that requires service activation.
- vpc_
id str - Deploy resource vpcId.
- dasb_
resource_ strid - ID of the resource.
- package_
bandwidth float - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- time_
span float - Billing time. This field is mandatory, with a minimum value of 1.
- time_
unit str - Billing cycle, only support m: month. This field is mandatory, fill in m.
- auto
Renew NumberFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block String - Subnet segments that require service activation.
- deploy
Region String - Deploy region.
- deploy
Zone String - Deploy zone.
- resource
Edition String - Resource type.Value:standard/pro.
- resource
Node Number - Number of resource nodes.
- subnet
Id String - Deploy resource subnetId.
- vpc
Cidr StringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id String - Deploy resource vpcId.
- dasb
Resource StringId - ID of the resource.
- package
Bandwidth Number - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- time
Span Number - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit String - Billing cycle, only support m: month. This field is mandatory, fill in m.
Outputs
All input properties are implicitly available as output properties. Additionally, the DasbResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DasbResource Resource
Get an existing DasbResource 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?: DasbResourceState, opts?: CustomResourceOptions): DasbResource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_flag: Optional[float] = None,
cidr_block: Optional[str] = None,
dasb_resource_id: Optional[str] = None,
deploy_region: Optional[str] = None,
deploy_zone: Optional[str] = None,
package_bandwidth: Optional[float] = None,
resource_edition: Optional[str] = None,
resource_node: Optional[float] = None,
subnet_id: Optional[str] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None,
vpc_cidr_block: Optional[str] = None,
vpc_id: Optional[str] = None) -> DasbResource
func GetDasbResource(ctx *Context, name string, id IDInput, state *DasbResourceState, opts ...ResourceOption) (*DasbResource, error)
public static DasbResource Get(string name, Input<string> id, DasbResourceState? state, CustomResourceOptions? opts = null)
public static DasbResource get(String name, Output<String> id, DasbResourceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DasbResource 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.
- Auto
Renew doubleFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- Cidr
Block string - Subnet segments that require service activation.
- Dasb
Resource stringId - ID of the resource.
- Deploy
Region string - Deploy region.
- Deploy
Zone string - Deploy zone.
- Package
Bandwidth double - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- Resource
Edition string - Resource type.Value:standard/pro.
- Resource
Node double - Number of resource nodes.
- Subnet
Id string - Deploy resource subnetId.
- Time
Span double - Billing time. This field is mandatory, with a minimum value of 1.
- Time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- Vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- Vpc
Id string - Deploy resource vpcId.
- Auto
Renew float64Flag - Automatic renewal. 1 is auto renew flag, 0 is not.
- Cidr
Block string - Subnet segments that require service activation.
- Dasb
Resource stringId - ID of the resource.
- Deploy
Region string - Deploy region.
- Deploy
Zone string - Deploy zone.
- Package
Bandwidth float64 - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- Resource
Edition string - Resource type.Value:standard/pro.
- Resource
Node float64 - Number of resource nodes.
- Subnet
Id string - Deploy resource subnetId.
- Time
Span float64 - Billing time. This field is mandatory, with a minimum value of 1.
- Time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- Vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- Vpc
Id string - Deploy resource vpcId.
- auto
Renew DoubleFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block String - Subnet segments that require service activation.
- dasb
Resource StringId - ID of the resource.
- deploy
Region String - Deploy region.
- deploy
Zone String - Deploy zone.
- package
Bandwidth Double - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- resource
Edition String - Resource type.Value:standard/pro.
- resource
Node Double - Number of resource nodes.
- subnet
Id String - Deploy resource subnetId.
- time
Span Double - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit String - Billing cycle, only support m: month. This field is mandatory, fill in m.
- vpc
Cidr StringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id String - Deploy resource vpcId.
- auto
Renew numberFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block string - Subnet segments that require service activation.
- dasb
Resource stringId - ID of the resource.
- deploy
Region string - Deploy region.
- deploy
Zone string - Deploy zone.
- package
Bandwidth number - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- resource
Edition string - Resource type.Value:standard/pro.
- resource
Node number - Number of resource nodes.
- subnet
Id string - Deploy resource subnetId.
- time
Span number - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit string - Billing cycle, only support m: month. This field is mandatory, fill in m.
- vpc
Cidr stringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id string - Deploy resource vpcId.
- auto_
renew_ floatflag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr_
block str - Subnet segments that require service activation.
- dasb_
resource_ strid - ID of the resource.
- deploy_
region str - Deploy region.
- deploy_
zone str - Deploy zone.
- package_
bandwidth float - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- resource_
edition str - Resource type.Value:standard/pro.
- resource_
node float - Number of resource nodes.
- subnet_
id str - Deploy resource subnetId.
- time_
span float - Billing time. This field is mandatory, with a minimum value of 1.
- time_
unit str - Billing cycle, only support m: month. This field is mandatory, fill in m.
- vpc_
cidr_ strblock - The network segment corresponding to the VPC that requires service activation.
- vpc_
id str - Deploy resource vpcId.
- auto
Renew NumberFlag - Automatic renewal. 1 is auto renew flag, 0 is not.
- cidr
Block String - Subnet segments that require service activation.
- dasb
Resource StringId - ID of the resource.
- deploy
Region String - Deploy region.
- deploy
Zone String - Deploy zone.
- package
Bandwidth Number - Number of bandwidth expansion packets (4M), The set value is an integer multiple of 4.
- resource
Edition String - Resource type.Value:standard/pro.
- resource
Node Number - Number of resource nodes.
- subnet
Id String - Deploy resource subnetId.
- time
Span Number - Billing time. This field is mandatory, with a minimum value of 1.
- time
Unit String - Billing cycle, only support m: month. This field is mandatory, fill in m.
- vpc
Cidr StringBlock - The network segment corresponding to the VPC that requires service activation.
- vpc
Id String - Deploy resource vpcId.
Import
dasb resource can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dasbResource:DasbResource example bh-saas-kgckynrt
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.