tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getReservedInstanceConfigs
Start a Neo task
Explain and create a tencentcloud.getReservedInstanceConfigs resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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 dictionaryThe following arguments are supported:
- Availability
Zone string - The available zone that the reserved instance locates at.
- Duration double
- Validity period of the reserved instance. Valid values are
31536000(1 year) and94608000(3 years). - Id string
- Instance
Type string - The type of reserved instance.
- Offering
Type string - Filter by Payment Type. Such as All Upfront.
- Product
Description string - Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
- Result
Output stringFile - Used to save results.
- Availability
Zone string - The available zone that the reserved instance locates at.
- Duration float64
- Validity period of the reserved instance. Valid values are
31536000(1 year) and94608000(3 years). - Id string
- Instance
Type string - The type of reserved instance.
- Offering
Type string - Filter by Payment Type. Such as All Upfront.
- Product
Description string - Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
- Result
Output stringFile - Used to save results.
- availability
Zone String - The available zone that the reserved instance locates at.
- duration Double
- Validity period of the reserved instance. Valid values are
31536000(1 year) and94608000(3 years). - id String
- instance
Type String - The type of reserved instance.
- offering
Type String - Filter by Payment Type. Such as All Upfront.
- product
Description String - Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
- result
Output StringFile - Used to save results.
- availability
Zone string - The available zone that the reserved instance locates at.
- duration number
- Validity period of the reserved instance. Valid values are
31536000(1 year) and94608000(3 years). - id string
- instance
Type string - The type of reserved instance.
- offering
Type string - Filter by Payment Type. Such as All Upfront.
- product
Description string - Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
- result
Output stringFile - 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) and94608000(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_ strfile - Used to save results.
- availability
Zone String - The available zone that the reserved instance locates at.
- duration Number
- Validity period of the reserved instance. Valid values are
31536000(1 year) and94608000(3 years). - id String
- instance
Type String - The type of reserved instance.
- offering
Type String - Filter by Payment Type. Such as All Upfront.
- product
Description String - Filter by the Platform Description (that is, operating system) for Reserved Instance billing. Shaped like: linux.
- result
Output StringFile - Used to save results.
getReservedInstanceConfigs Result
The following output properties are available:
- Config
Lists List<GetReserved Instance Configs Config List> - An information list of reserved instance configuration. Each element contains the following attributes:
- Id string
- Availability
Zone string - Availability zone of the purchasable reserved instance.
- Duration double
- Validity period of the reserved instance.
- Instance
Type string - Instance type of the reserved instance.
- Offering
Type string - OfferingType of the reserved instance.
- Product
Description string - Result
Output stringFile
- Config
Lists []GetReserved Instance Configs Config List - An information list of reserved instance configuration. Each element contains the following attributes:
- Id string
- Availability
Zone string - Availability zone of the purchasable reserved instance.
- Duration float64
- Validity period of the reserved instance.
- Instance
Type string - Instance type of the reserved instance.
- Offering
Type string - OfferingType of the reserved instance.
- Product
Description string - Result
Output stringFile
- config
Lists List<GetReserved Instance Configs Config List> - An information list of reserved instance configuration. Each element contains the following attributes:
- id String
- availability
Zone String - Availability zone of the purchasable reserved instance.
- duration Double
- Validity period of the reserved instance.
- instance
Type String - Instance type of the reserved instance.
- offering
Type String - OfferingType of the reserved instance.
- product
Description String - result
Output StringFile
- config
Lists GetReserved Instance Configs Config List[] - An information list of reserved instance configuration. Each element contains the following attributes:
- id string
- availability
Zone string - Availability zone of the purchasable reserved instance.
- duration number
- Validity period of the reserved instance.
- instance
Type string - Instance type of the reserved instance.
- offering
Type string - OfferingType of the reserved instance.
- product
Description string - result
Output stringFile
- config_
lists Sequence[GetReserved Instance Configs Config List] - 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_ strfile
- config
Lists List<Property Map> - An information list of reserved instance configuration. Each element contains the following attributes:
- id String
- availability
Zone String - Availability zone of the purchasable reserved instance.
- duration Number
- Validity period of the reserved instance.
- instance
Type String - Instance type of the reserved instance.
- offering
Type String - OfferingType of the reserved instance.
- product
Description String - result
Output StringFile
Supporting Types
GetReservedInstanceConfigsConfigList
- Availability
Zone string - The available zone that the reserved instance locates at.
- Config
Id string - Configuration ID of the purchasable reserved instance.
- Currency
Code 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) and94608000(3 years). - Instance
Type string - The type of reserved instance.
- Offering
Type string - Filter by Payment Type. Such as All Upfront.
- Platform string
- Platform of the reserved instance.
- Price double
- Purchase price of the reserved instance.
- Usage
Price double - UsagePrice of the reserved instance.
- Availability
Zone string - The available zone that the reserved instance locates at.
- Config
Id string - Configuration ID of the purchasable reserved instance.
- Currency
Code 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) and94608000(3 years). - Instance
Type string - The type of reserved instance.
- Offering
Type string - Filter by Payment Type. Such as All Upfront.
- Platform string
- Platform of the reserved instance.
- Price float64
- Purchase price of the reserved instance.
- Usage
Price float64 - UsagePrice of the reserved instance.
- availability
Zone String - The available zone that the reserved instance locates at.
- config
Id String - Configuration ID of the purchasable reserved instance.
- currency
Code 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) and94608000(3 years). - instance
Type String - The type of reserved instance.
- offering
Type String - Filter by Payment Type. Such as All Upfront.
- platform String
- Platform of the reserved instance.
- price Double
- Purchase price of the reserved instance.
- usage
Price Double - UsagePrice of the reserved instance.
- availability
Zone string - The available zone that the reserved instance locates at.
- config
Id string - Configuration ID of the purchasable reserved instance.
- currency
Code 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) and94608000(3 years). - instance
Type string - The type of reserved instance.
- offering
Type string - Filter by Payment Type. Such as All Upfront.
- platform string
- Platform of the reserved instance.
- price number
- Purchase price of the reserved instance.
- usage
Price 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) and94608000(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.
- availability
Zone String - The available zone that the reserved instance locates at.
- config
Id String - Configuration ID of the purchasable reserved instance.
- currency
Code 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) and94608000(3 years). - instance
Type String - The type of reserved instance.
- offering
Type String - Filter by Payment Type. Such as All Upfront.
- platform String
- Platform of the reserved instance.
- price Number
- Purchase price of the reserved instance.
- usage
Price Number - UsagePrice of the reserved instance.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
