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

tencentcloud.getReservedInstanceConfigs

Explore with Pulumi AI

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

    Use this data source to query reserved instances configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = tencentcloud.getReservedInstanceConfigs({
        availabilityZone: "na-siliconvalley-1",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = tencentcloud.get_reserved_instance_configs(availability_zone="na-siliconvalley-1")
    
    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.GetReservedInstanceConfigs(ctx, &tencentcloud.GetReservedInstanceConfigsArgs{
    			AvailabilityZone: pulumi.StringRef("na-siliconvalley-1"),
    		}, 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 config = Tencentcloud.GetReservedInstanceConfigs.Invoke(new()
        {
            AvailabilityZone = "na-siliconvalley-1",
        });
    
    });
    
    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.GetReservedInstanceConfigsArgs;
    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 = TencentcloudFunctions.getReservedInstanceConfigs(GetReservedInstanceConfigsArgs.builder()
                .availabilityZone("na-siliconvalley-1")
                .build());
    
        }
    }
    
    variables:
      config:
        fn::invoke:
          function: tencentcloud:getReservedInstanceConfigs
          arguments:
            availabilityZone: na-siliconvalley-1
    

    Using getReservedInstanceConfigs

    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 getReservedInstanceConfigs(args: GetReservedInstanceConfigsArgs, opts?: InvokeOptions): Promise<GetReservedInstanceConfigsResult>
    function getReservedInstanceConfigsOutput(args: GetReservedInstanceConfigsOutputArgs, opts?: InvokeOptions): Output<GetReservedInstanceConfigsResult>
    def get_reserved_instance_configs(availability_zone: Optional[str] = None,
                                      duration: Optional[float] = None,
                                      id: Optional[str] = None,
                                      instance_type: Optional[str] = None,
                                      offering_type: Optional[str] = None,
                                      product_description: Optional[str] = None,
                                      result_output_file: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetReservedInstanceConfigsResult
    def get_reserved_instance_configs_output(availability_zone: Optional[pulumi.Input[str]] = None,
                                      duration: Optional[pulumi.Input[float]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      instance_type: Optional[pulumi.Input[str]] = None,
                                      offering_type: Optional[pulumi.Input[str]] = None,
                                      product_description: Optional[pulumi.Input[str]] = None,
                                      result_output_file: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetReservedInstanceConfigsResult]
    func GetReservedInstanceConfigs(ctx *Context, args *GetReservedInstanceConfigsArgs, opts ...InvokeOption) (*GetReservedInstanceConfigsResult, error)
    func GetReservedInstanceConfigsOutput(ctx *Context, args *GetReservedInstanceConfigsOutputArgs, opts ...InvokeOption) GetReservedInstanceConfigsResultOutput

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

    public static class GetReservedInstanceConfigs 
    {
        public static Task<GetReservedInstanceConfigsResult> InvokeAsync(GetReservedInstanceConfigsArgs args, InvokeOptions? opts = null)
        public static Output<GetReservedInstanceConfigsResult> Invoke(GetReservedInstanceConfigsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReservedInstanceConfigsResult> getReservedInstanceConfigs(GetReservedInstanceConfigsArgs args, InvokeOptions options)
    public static Output<GetReservedInstanceConfigsResult> getReservedInstanceConfigs(GetReservedInstanceConfigsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getReservedInstanceConfigs:getReservedInstanceConfigs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AvailabilityZone string
    The available zone that the reserved instance locates at.
    Duration double
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    Id string
    InstanceType string
    The type of reserved instance.
    OfferingType string
    Filter by Payment Type. Such as All Upfront.
    ProductDescription string
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    ResultOutputFile string
    Used to save results.
    AvailabilityZone string
    The available zone that the reserved instance locates at.
    Duration float64
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    Id string
    InstanceType string
    The type of reserved instance.
    OfferingType string
    Filter by Payment Type. Such as All Upfront.
    ProductDescription string
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    ResultOutputFile string
    Used to save results.
    availabilityZone String
    The available zone that the reserved instance locates at.
    duration Double
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    id String
    instanceType String
    The type of reserved instance.
    offeringType String
    Filter by Payment Type. Such as All Upfront.
    productDescription String
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    resultOutputFile String
    Used to save results.
    availabilityZone string
    The available zone that the reserved instance locates at.
    duration number
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    id string
    instanceType string
    The type of reserved instance.
    offeringType string
    Filter by Payment Type. Such as All Upfront.
    productDescription string
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    resultOutputFile string
    Used to save results.
    availability_zone str
    The available zone that the reserved instance locates at.
    duration float
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    id str
    instance_type str
    The type of reserved instance.
    offering_type str
    Filter by Payment Type. Such as All Upfront.
    product_description str
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    result_output_file str
    Used to save results.
    availabilityZone String
    The available zone that the reserved instance locates at.
    duration Number
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    id String
    instanceType String
    The type of reserved instance.
    offeringType String
    Filter by Payment Type. Such as All Upfront.
    productDescription String
    Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
    resultOutputFile String
    Used to save results.

    getReservedInstanceConfigs Result

    The following output properties are available:

    ConfigLists List<GetReservedInstanceConfigsConfigList>
    An information list of reserved instance configuration. Each element contains the following attributes:
    Id string
    AvailabilityZone string
    Availability zone of the purchasable reserved instance.
    Duration double
    Validity period of the reserved instance.
    InstanceType string
    Instance type of the reserved instance.
    OfferingType string
    OfferingType of the reserved instance.
    ProductDescription string
    ResultOutputFile string
    ConfigLists []GetReservedInstanceConfigsConfigList
    An information list of reserved instance configuration. Each element contains the following attributes:
    Id string
    AvailabilityZone string
    Availability zone of the purchasable reserved instance.
    Duration float64
    Validity period of the reserved instance.
    InstanceType string
    Instance type of the reserved instance.
    OfferingType string
    OfferingType of the reserved instance.
    ProductDescription string
    ResultOutputFile string
    configLists List<GetReservedInstanceConfigsConfigList>
    An information list of reserved instance configuration. Each element contains the following attributes:
    id String
    availabilityZone String
    Availability zone of the purchasable reserved instance.
    duration Double
    Validity period of the reserved instance.
    instanceType String
    Instance type of the reserved instance.
    offeringType String
    OfferingType of the reserved instance.
    productDescription String
    resultOutputFile String
    configLists GetReservedInstanceConfigsConfigList[]
    An information list of reserved instance configuration. Each element contains the following attributes:
    id string
    availabilityZone string
    Availability zone of the purchasable reserved instance.
    duration number
    Validity period of the reserved instance.
    instanceType string
    Instance type of the reserved instance.
    offeringType string
    OfferingType of the reserved instance.
    productDescription string
    resultOutputFile string
    config_lists Sequence[GetReservedInstanceConfigsConfigList]
    An information list of reserved instance configuration. Each element contains the following attributes:
    id str
    availability_zone str
    Availability zone of the purchasable reserved instance.
    duration float
    Validity period of the reserved instance.
    instance_type str
    Instance type of the reserved instance.
    offering_type str
    OfferingType of the reserved instance.
    product_description str
    result_output_file str
    configLists List<Property Map>
    An information list of reserved instance configuration. Each element contains the following attributes:
    id String
    availabilityZone String
    Availability zone of the purchasable reserved instance.
    duration Number
    Validity period of the reserved instance.
    instanceType String
    Instance type of the reserved instance.
    offeringType String
    OfferingType of the reserved instance.
    productDescription String
    resultOutputFile String

    Supporting Types

    GetReservedInstanceConfigsConfigList

    AvailabilityZone string
    The available zone that the reserved instance locates at.
    ConfigId string
    Configuration ID of the purchasable reserved instance.
    CurrencyCode string
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    Duration double
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    InstanceType string
    The type of reserved instance.
    OfferingType string
    Filter by Payment Type. Such as All Upfront.
    Platform string
    Platform of the reserved instance.
    Price double
    Purchase price of the reserved instance.
    UsagePrice double
    UsagePrice of the reserved instance.
    AvailabilityZone string
    The available zone that the reserved instance locates at.
    ConfigId string
    Configuration ID of the purchasable reserved instance.
    CurrencyCode string
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    Duration float64
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    InstanceType string
    The type of reserved instance.
    OfferingType string
    Filter by Payment Type. Such as All Upfront.
    Platform string
    Platform of the reserved instance.
    Price float64
    Purchase price of the reserved instance.
    UsagePrice float64
    UsagePrice of the reserved instance.
    availabilityZone String
    The available zone that the reserved instance locates at.
    configId String
    Configuration ID of the purchasable reserved instance.
    currencyCode String
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    duration Double
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    instanceType String
    The type of reserved instance.
    offeringType String
    Filter by Payment Type. Such as All Upfront.
    platform String
    Platform of the reserved instance.
    price Double
    Purchase price of the reserved instance.
    usagePrice Double
    UsagePrice of the reserved instance.
    availabilityZone string
    The available zone that the reserved instance locates at.
    configId string
    Configuration ID of the purchasable reserved instance.
    currencyCode string
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    duration number
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    instanceType string
    The type of reserved instance.
    offeringType string
    Filter by Payment Type. Such as All Upfront.
    platform string
    Platform of the reserved instance.
    price number
    Purchase price of the reserved instance.
    usagePrice number
    UsagePrice of the reserved instance.
    availability_zone str
    The available zone that the reserved instance locates at.
    config_id str
    Configuration ID of the purchasable reserved instance.
    currency_code str
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    duration float
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    instance_type str
    The type of reserved instance.
    offering_type str
    Filter by Payment Type. Such as All Upfront.
    platform str
    Platform of the reserved instance.
    price float
    Purchase price of the reserved instance.
    usage_price float
    UsagePrice of the reserved instance.
    availabilityZone String
    The available zone that the reserved instance locates at.
    configId String
    Configuration ID of the purchasable reserved instance.
    currencyCode String
    Settlement currency of the reserved instance, which is a standard currency code as listed in ISO 4217.
    duration Number
    Validity period of the reserved instance. Valid values are 31536000(1 year) and 94608000(3 years).
    instanceType String
    The type of reserved instance.
    offeringType String
    Filter by Payment Type. Such as All Upfront.
    platform String
    Platform of the reserved instance.
    price Number
    Purchase price of the reserved instance.
    usagePrice Number
    UsagePrice of the reserved instance.

    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