1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getReservedInstanceConfigs
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getReservedInstanceConfigs

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

config = tencentcloud.get_reserved_instance_configs(availability_zone="na-siliconvalley-1")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  config:
    fn::invoke:
      function: tencentcloud:getReservedInstanceConfigs
      arguments:
        availabilityZone: na-siliconvalley-1
Copy

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>
Copy
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]
Copy
func GetReservedInstanceConfigs(ctx *Context, args *GetReservedInstanceConfigsArgs, opts ...InvokeOption) (*GetReservedInstanceConfigsResult, error)
func GetReservedInstanceConfigsOutput(ctx *Context, args *GetReservedInstanceConfigsOutputArgs, opts ...InvokeOption) GetReservedInstanceConfigsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetReservedInstanceConfigsResult> getReservedInstanceConfigs(GetReservedInstanceConfigsArgs args, InvokeOptions options)
public static Output<GetReservedInstanceConfigsResult> getReservedInstanceConfigs(GetReservedInstanceConfigsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getReservedInstanceConfigs:getReservedInstanceConfigs
  arguments:
    # arguments dictionary
Copy

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