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

tencentcloud.getCynosdbResourcePackageSaleSpecs

Explore with Pulumi AI

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

    Use this data source to query detailed information of cynosdb resource_package_sale_specs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const resourcePackageSaleSpecs = tencentcloud.getCynosdbResourcePackageSaleSpecs({
        instanceType: "cynosdb-serverless",
        packageRegion: "china",
        packageType: "CCU",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    resource_package_sale_specs = tencentcloud.get_cynosdb_resource_package_sale_specs(instance_type="cynosdb-serverless",
        package_region="china",
        package_type="CCU")
    
    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.GetCynosdbResourcePackageSaleSpecs(ctx, &tencentcloud.GetCynosdbResourcePackageSaleSpecsArgs{
    			InstanceType:  "cynosdb-serverless",
    			PackageRegion: "china",
    			PackageType:   "CCU",
    		}, 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 resourcePackageSaleSpecs = Tencentcloud.GetCynosdbResourcePackageSaleSpecs.Invoke(new()
        {
            InstanceType = "cynosdb-serverless",
            PackageRegion = "china",
            PackageType = "CCU",
        });
    
    });
    
    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.GetCynosdbResourcePackageSaleSpecsArgs;
    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 resourcePackageSaleSpecs = TencentcloudFunctions.getCynosdbResourcePackageSaleSpecs(GetCynosdbResourcePackageSaleSpecsArgs.builder()
                .instanceType("cynosdb-serverless")
                .packageRegion("china")
                .packageType("CCU")
                .build());
    
        }
    }
    
    variables:
      resourcePackageSaleSpecs:
        fn::invoke:
          function: tencentcloud:getCynosdbResourcePackageSaleSpecs
          arguments:
            instanceType: cynosdb-serverless
            packageRegion: china
            packageType: CCU
    

    Using getCynosdbResourcePackageSaleSpecs

    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 getCynosdbResourcePackageSaleSpecs(args: GetCynosdbResourcePackageSaleSpecsArgs, opts?: InvokeOptions): Promise<GetCynosdbResourcePackageSaleSpecsResult>
    function getCynosdbResourcePackageSaleSpecsOutput(args: GetCynosdbResourcePackageSaleSpecsOutputArgs, opts?: InvokeOptions): Output<GetCynosdbResourcePackageSaleSpecsResult>
    def get_cynosdb_resource_package_sale_specs(id: Optional[str] = None,
                                                instance_type: Optional[str] = None,
                                                package_region: Optional[str] = None,
                                                package_type: Optional[str] = None,
                                                result_output_file: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetCynosdbResourcePackageSaleSpecsResult
    def get_cynosdb_resource_package_sale_specs_output(id: Optional[pulumi.Input[str]] = None,
                                                instance_type: Optional[pulumi.Input[str]] = None,
                                                package_region: Optional[pulumi.Input[str]] = None,
                                                package_type: Optional[pulumi.Input[str]] = None,
                                                result_output_file: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbResourcePackageSaleSpecsResult]
    func GetCynosdbResourcePackageSaleSpecs(ctx *Context, args *GetCynosdbResourcePackageSaleSpecsArgs, opts ...InvokeOption) (*GetCynosdbResourcePackageSaleSpecsResult, error)
    func GetCynosdbResourcePackageSaleSpecsOutput(ctx *Context, args *GetCynosdbResourcePackageSaleSpecsOutputArgs, opts ...InvokeOption) GetCynosdbResourcePackageSaleSpecsResultOutput

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

    public static class GetCynosdbResourcePackageSaleSpecs 
    {
        public static Task<GetCynosdbResourcePackageSaleSpecsResult> InvokeAsync(GetCynosdbResourcePackageSaleSpecsArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbResourcePackageSaleSpecsResult> Invoke(GetCynosdbResourcePackageSaleSpecsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbResourcePackageSaleSpecsResult> getCynosdbResourcePackageSaleSpecs(GetCynosdbResourcePackageSaleSpecsArgs args, InvokeOptions options)
    public static Output<GetCynosdbResourcePackageSaleSpecsResult> getCynosdbResourcePackageSaleSpecs(GetCynosdbResourcePackageSaleSpecsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbResourcePackageSaleSpecs:getCynosdbResourcePackageSaleSpecs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceType string
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    PackageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    PackageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceType string
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    PackageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    PackageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceType String
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    packageRegion String
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType String
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    id String
    resultOutputFile String
    Used to save results.
    instanceType string
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    packageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    id string
    resultOutputFile string
    Used to save results.
    instance_type str
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    package_region str
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    package_type str
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    id str
    result_output_file str
    Used to save results.
    instanceType String
    Instance Type. Value range: cynosdb-serverless, cynosdb, cdb.
    packageRegion String
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType String
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    id String
    resultOutputFile String
    Used to save results.

    getCynosdbResourcePackageSaleSpecs Result

    The following output properties are available:

    Details List<GetCynosdbResourcePackageSaleSpecsDetail>
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    InstanceType string
    PackageRegion string
    Note: This field may return null, indicating that a valid value cannot be obtained.
    PackageType string
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    ResultOutputFile string
    Details []GetCynosdbResourcePackageSaleSpecsDetail
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    InstanceType string
    PackageRegion string
    Note: This field may return null, indicating that a valid value cannot be obtained.
    PackageType string
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    ResultOutputFile string
    details List<GetCynosdbResourcePackageSaleSpecsDetail>
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    instanceType String
    packageRegion String
    Note: This field may return null, indicating that a valid value cannot be obtained.
    packageType String
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile String
    details GetCynosdbResourcePackageSaleSpecsDetail[]
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    id string
    instanceType string
    packageRegion string
    Note: This field may return null, indicating that a valid value cannot be obtained.
    packageType string
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile string
    details Sequence[GetCynosdbResourcePackageSaleSpecsDetail]
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    id str
    instance_type str
    package_region str
    Note: This field may return null, indicating that a valid value cannot be obtained.
    package_type str
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    result_output_file str
    details List<Property Map>
    Resource package details note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    instanceType String
    packageRegion String
    Note: This field may return null, indicating that a valid value cannot be obtained.
    packageType String
    Resource package type CCU - Compute resource package DISK - Store resource package Note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile String

    Supporting Types

    GetCynosdbResourcePackageSaleSpecsDetail

    ExpireDay double
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    MaxPackageSpec double
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    MinPackageSpec double
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    PackageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    PackageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    PackageVersion string
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.
    ExpireDay float64
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    MaxPackageSpec float64
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    MinPackageSpec float64
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    PackageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    PackageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    PackageVersion string
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.
    expireDay Double
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    maxPackageSpec Double
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    minPackageSpec Double
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    packageRegion String
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType String
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    packageVersion String
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.
    expireDay number
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    maxPackageSpec number
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    minPackageSpec number
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    packageRegion string
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType string
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    packageVersion string
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.
    expire_day float
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    max_package_spec float
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    min_package_spec float
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    package_region str
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    package_type str
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    package_version str
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.
    expireDay Number
    Resource package validity period, in days. Note: This field may return null, indicating that a valid value cannot be obtained.
    maxPackageSpec Number
    The maximum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    minPackageSpec Number
    The minimum number of resources in the current version of the resource package, calculated in units of resources; Storage resource: GB Note: This field may return null, indicating that a valid value cannot be obtained.
    packageRegion String
    Resource package usage region China - common in mainland China, overseas - common in Hong Kong, Macao, Taiwan, and overseas.
    packageType String
    Resource package type CCU - Computing resource package DISK - Storage resource package.
    packageVersion String
    Resource package version base basic version, common general version, enterprise enterprise version Note: This field may return null, indicating that a valid value cannot be obtained.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack