tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDcdbPrice
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of dcdb price
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const price = tencentcloud.getDcdbPrice({
instanceCount: 1,
zone: _var.default_az,
period: 1,
shardNodeCount: 2,
shardMemory: 2,
shardStorage: 10,
shardCount: 2,
paymode: "postpaid",
amountUnit: "pent",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
price = tencentcloud.get_dcdb_price(instance_count=1,
zone=var["default_az"],
period=1,
shard_node_count=2,
shard_memory=2,
shard_storage=10,
shard_count=2,
paymode="postpaid",
amount_unit="pent")
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.GetDcdbPrice(ctx, &tencentcloud.GetDcdbPriceArgs{
InstanceCount: 1,
Zone: _var.Default_az,
Period: 1,
ShardNodeCount: 2,
ShardMemory: 2,
ShardStorage: 10,
ShardCount: 2,
Paymode: pulumi.StringRef("postpaid"),
AmountUnit: pulumi.StringRef("pent"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var price = Tencentcloud.GetDcdbPrice.Invoke(new()
{
InstanceCount = 1,
Zone = @var.Default_az,
Period = 1,
ShardNodeCount = 2,
ShardMemory = 2,
ShardStorage = 10,
ShardCount = 2,
Paymode = "postpaid",
AmountUnit = "pent",
});
});
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.GetDcdbPriceArgs;
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 price = TencentcloudFunctions.getDcdbPrice(GetDcdbPriceArgs.builder()
.instanceCount(1)
.zone(var_.default_az())
.period(1)
.shardNodeCount(2)
.shardMemory(2)
.shardStorage(10)
.shardCount(2)
.paymode("postpaid")
.amountUnit("pent")
.build());
}
}
variables:
price:
fn::invoke:
function: tencentcloud:getDcdbPrice
arguments:
instanceCount: 1
zone: ${var.default_az}
period: 1
shardNodeCount: 2
shardMemory: 2
shardStorage: 10
shardCount: 2
paymode: postpaid
amountUnit: pent
Using getDcdbPrice
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDcdbPrice(args: GetDcdbPriceArgs, opts?: InvokeOptions): Promise<GetDcdbPriceResult>
function getDcdbPriceOutput(args: GetDcdbPriceOutputArgs, opts?: InvokeOptions): Output<GetDcdbPriceResult>
def get_dcdb_price(amount_unit: Optional[str] = None,
id: Optional[str] = None,
instance_count: Optional[float] = None,
paymode: Optional[str] = None,
period: Optional[float] = None,
result_output_file: Optional[str] = None,
shard_count: Optional[float] = None,
shard_memory: Optional[float] = None,
shard_node_count: Optional[float] = None,
shard_storage: Optional[float] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDcdbPriceResult
def get_dcdb_price_output(amount_unit: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_count: Optional[pulumi.Input[float]] = None,
paymode: Optional[pulumi.Input[str]] = None,
period: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[float]] = None,
shard_memory: Optional[pulumi.Input[float]] = None,
shard_node_count: Optional[pulumi.Input[float]] = None,
shard_storage: Optional[pulumi.Input[float]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDcdbPriceResult]
func GetDcdbPrice(ctx *Context, args *GetDcdbPriceArgs, opts ...InvokeOption) (*GetDcdbPriceResult, error)
func GetDcdbPriceOutput(ctx *Context, args *GetDcdbPriceOutputArgs, opts ...InvokeOption) GetDcdbPriceResultOutput
> Note: This function is named GetDcdbPrice
in the Go SDK.
public static class GetDcdbPrice
{
public static Task<GetDcdbPriceResult> InvokeAsync(GetDcdbPriceArgs args, InvokeOptions? opts = null)
public static Output<GetDcdbPriceResult> Invoke(GetDcdbPriceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDcdbPriceResult> getDcdbPrice(GetDcdbPriceArgs args, InvokeOptions options)
public static Output<GetDcdbPriceResult> getDcdbPrice(GetDcdbPriceArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDcdbPrice:getDcdbPrice
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Count double - The count of instances wants to buy.
- Period double
- Purchase period in months.
- double
- Number of instance shards.
- double
- Shard memory size in GB.
- double
- Number of instance shard nodes.
- double
- Shard storage capacity in GB.
- Zone string
- AZ ID of the purchased instance.
- Amount
Unit string - Price unit. Valid values:
pent
(cent),microPent
(microcent). - Id string
- Paymode string
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - Result
Output stringFile - Used to save results.
- Instance
Count float64 - The count of instances wants to buy.
- Period float64
- Purchase period in months.
- float64
- Number of instance shards.
- float64
- Shard memory size in GB.
- float64
- Number of instance shard nodes.
- float64
- Shard storage capacity in GB.
- Zone string
- AZ ID of the purchased instance.
- Amount
Unit string - Price unit. Valid values:
pent
(cent),microPent
(microcent). - Id string
- Paymode string
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - Result
Output stringFile - Used to save results.
- instance
Count Double - The count of instances wants to buy.
- period Double
- Purchase period in months.
- Double
- Number of instance shards.
- Double
- Shard memory size in GB.
- Double
- Number of instance shard nodes.
- Double
- Shard storage capacity in GB.
- zone String
- AZ ID of the purchased instance.
- amount
Unit String - Price unit. Valid values:
pent
(cent),microPent
(microcent). - id String
- paymode String
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - result
Output StringFile - Used to save results.
- instance
Count number - The count of instances wants to buy.
- period number
- Purchase period in months.
- number
- Number of instance shards.
- number
- Shard memory size in GB.
- number
- Number of instance shard nodes.
- number
- Shard storage capacity in GB.
- zone string
- AZ ID of the purchased instance.
- amount
Unit string - Price unit. Valid values:
pent
(cent),microPent
(microcent). - id string
- paymode string
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - result
Output stringFile - Used to save results.
- instance_
count float - The count of instances wants to buy.
- period float
- Purchase period in months.
- float
- Number of instance shards.
- float
- Shard memory size in GB.
- float
- Number of instance shard nodes.
- float
- Shard storage capacity in GB.
- zone str
- AZ ID of the purchased instance.
- amount_
unit str - Price unit. Valid values:
pent
(cent),microPent
(microcent). - id str
- paymode str
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - result_
output_ strfile - Used to save results.
- instance
Count Number - The count of instances wants to buy.
- period Number
- Purchase period in months.
- Number
- Number of instance shards.
- Number
- Shard memory size in GB.
- Number
- Number of instance shard nodes.
- Number
- Shard storage capacity in GB.
- zone String
- AZ ID of the purchased instance.
- amount
Unit String - Price unit. Valid values:
pent
(cent),microPent
(microcent). - id String
- paymode String
- Billing type. Valid values:
postpaid
(pay-as-you-go),prepaid
(monthly subscription). - result
Output StringFile - Used to save results.
getDcdbPrice Result
The following output properties are available:
- Id string
- Instance
Count double - Original
Price double - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - Period double
- Price double
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - double
- double
- double
- double
- Zone string
- Amount
Unit string - Paymode string
- Result
Output stringFile
- Id string
- Instance
Count float64 - Original
Price float64 - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - Period float64
- Price float64
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - float64
- float64
- float64
- float64
- Zone string
- Amount
Unit string - Paymode string
- Result
Output stringFile
- id String
- instance
Count Double - original
Price Double - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - period Double
- price Double
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - Double
- Double
- Double
- Double
- zone String
- amount
Unit String - paymode String
- result
Output StringFile
- id string
- instance
Count number - original
Price number - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - period number
- price number
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - number
- number
- number
- number
- zone string
- amount
Unit string - paymode string
- result
Output stringFile
- id str
- instance_
count float - original_
price float - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - period float
- price float
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - float
- float
- float
- float
- zone str
- amount_
unit str - paymode str
- result_
output_ strfile
- id String
- instance
Count Number - original
Price Number - Original price. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - period Number
- price Number
- The actual price may be different from the original price due to discounts. Unit: Cent (default). If the request parameter contains
AmountUnit
, seeAmountUnit
description. Currency: CNY (Chinese site), USD (international site). - Number
- Number
- Number
- Number
- zone String
- amount
Unit String - paymode String
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack