tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCvmInstancesModification
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query cvm instances modification.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getCvmInstancesModification({
instanceIds: ["ins-xxxxxxx"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_cvm_instances_modification(instance_ids=["ins-xxxxxxx"])
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.GetCvmInstancesModification(ctx, &tencentcloud.GetCvmInstancesModificationArgs{
InstanceIds: []string{
"ins-xxxxxxx",
},
}, 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 foo = Tencentcloud.GetCvmInstancesModification.Invoke(new()
{
InstanceIds = new[]
{
"ins-xxxxxxx",
},
});
});
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.GetCvmInstancesModificationArgs;
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 foo = TencentcloudFunctions.getCvmInstancesModification(GetCvmInstancesModificationArgs.builder()
.instanceIds("ins-xxxxxxx")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getCvmInstancesModification
arguments:
instanceIds:
- ins-xxxxxxx
Using getCvmInstancesModification
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 getCvmInstancesModification(args: GetCvmInstancesModificationArgs, opts?: InvokeOptions): Promise<GetCvmInstancesModificationResult>
function getCvmInstancesModificationOutput(args: GetCvmInstancesModificationOutputArgs, opts?: InvokeOptions): Output<GetCvmInstancesModificationResult>
def get_cvm_instances_modification(filters: Optional[Sequence[GetCvmInstancesModificationFilter]] = None,
id: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCvmInstancesModificationResult
def get_cvm_instances_modification_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCvmInstancesModificationFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCvmInstancesModificationResult]
func GetCvmInstancesModification(ctx *Context, args *GetCvmInstancesModificationArgs, opts ...InvokeOption) (*GetCvmInstancesModificationResult, error)
func GetCvmInstancesModificationOutput(ctx *Context, args *GetCvmInstancesModificationOutputArgs, opts ...InvokeOption) GetCvmInstancesModificationResultOutput
> Note: This function is named GetCvmInstancesModification
in the Go SDK.
public static class GetCvmInstancesModification
{
public static Task<GetCvmInstancesModificationResult> InvokeAsync(GetCvmInstancesModificationArgs args, InvokeOptions? opts = null)
public static Output<GetCvmInstancesModificationResult> Invoke(GetCvmInstancesModificationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCvmInstancesModificationResult> getCvmInstancesModification(GetCvmInstancesModificationArgs args, InvokeOptions options)
public static Output<GetCvmInstancesModificationResult> getCvmInstancesModification(GetCvmInstancesModificationArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCvmInstancesModification:getCvmInstancesModification
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Cvm Instances Modification Filter> - The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- Id string
- Instance
Ids List<string> - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- Result
Output stringFile - Used to save results.
- Filters
[]Get
Cvm Instances Modification Filter - The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- Id string
- Instance
Ids []string - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- Result
Output stringFile - Used to save results.
- filters
List<Get
Cvm Instances Modification Filter> - The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- id String
- instance
Ids List<String> - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- result
Output StringFile - Used to save results.
- filters
Get
Cvm Instances Modification Filter[] - The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- id string
- instance
Ids string[] - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- result
Output stringFile - Used to save results.
- filters
Sequence[Get
Cvm Instances Modification Filter] - The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- id str
- instance_
ids Sequence[str] - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- result_
output_ strfile - Used to save results.
- filters List<Property Map>
- The upper limit of Filters for each request is 10 and the upper limit for Filter.Values is 2.
- id String
- instance
Ids List<String> - One or more instance ID to be queried. It can be obtained from the InstanceId in the returned value of API DescribeInstances. The maximum number of instances in batch for each request is 20.
- result
Output StringFile - Used to save results.
getCvmInstancesModification Result
The following output properties are available:
- Id string
- Instance
Type List<GetConfig Status Lists Cvm Instances Modification Instance Type Config Status List> - The list of model configurations that can be adjusted by the instance.
- Filters
List<Get
Cvm Instances Modification Filter> - Instance
Ids List<string> - Result
Output stringFile
- Id string
- Instance
Type []GetConfig Status Lists Cvm Instances Modification Instance Type Config Status List - The list of model configurations that can be adjusted by the instance.
- Filters
[]Get
Cvm Instances Modification Filter - Instance
Ids []string - Result
Output stringFile
- id String
- instance
Type List<GetConfig Status Lists Cvm Instances Modification Instance Type Config Status List> - The list of model configurations that can be adjusted by the instance.
- filters
List<Get
Cvm Instances Modification Filter> - instance
Ids List<String> - result
Output StringFile
- id string
- instance
Type GetConfig Status Lists Cvm Instances Modification Instance Type Config Status List[] - The list of model configurations that can be adjusted by the instance.
- filters
Get
Cvm Instances Modification Filter[] - instance
Ids string[] - result
Output stringFile
- id str
- instance_
type_ Sequence[Getconfig_ status_ lists Cvm Instances Modification Instance Type Config Status List] - The list of model configurations that can be adjusted by the instance.
- filters
Sequence[Get
Cvm Instances Modification Filter] - instance_
ids Sequence[str] - result_
output_ strfile
- id String
- instance
Type List<Property Map>Config Status Lists - The list of model configurations that can be adjusted by the instance.
- filters List<Property Map>
- instance
Ids List<String> - result
Output StringFile
Supporting Types
GetCvmInstancesModificationFilter
GetCvmInstancesModificationInstanceTypeConfigStatusList
- Instance
Type List<GetConfigs Cvm Instances Modification Instance Type Config Status List Instance Type Config> - Configuration information.
- Message string
- Status description information.
- Status string
- State description.
- Instance
Type []GetConfigs Cvm Instances Modification Instance Type Config Status List Instance Type Config - Configuration information.
- Message string
- Status description information.
- Status string
- State description.
- instance
Type List<GetConfigs Cvm Instances Modification Instance Type Config Status List Instance Type Config> - Configuration information.
- message String
- Status description information.
- status String
- State description.
- instance
Type GetConfigs Cvm Instances Modification Instance Type Config Status List Instance Type Config[] - Configuration information.
- message string
- Status description information.
- status string
- State description.
- instance_
type_ Sequence[Getconfigs Cvm Instances Modification Instance Type Config Status List Instance Type Config] - Configuration information.
- message str
- Status description information.
- status str
- State description.
- instance
Type List<Property Map>Configs - Configuration information.
- message String
- Status description information.
- status String
- State description.
GetCvmInstancesModificationInstanceTypeConfigStatusListInstanceTypeConfig
- Cpu double
- The number of CPU kernels, in cores.
- Fpga double
- The number of FPGA kernels, in cores.
- Gpu double
- The number of GPU kernels, in cores.
- Instance
Family string - Instance family.
- Instance
Type string - Instance type.
- Memory double
- Memory capacity (in GB).
- Zone string
- Availability zone.
- Cpu float64
- The number of CPU kernels, in cores.
- Fpga float64
- The number of FPGA kernels, in cores.
- Gpu float64
- The number of GPU kernels, in cores.
- Instance
Family string - Instance family.
- Instance
Type string - Instance type.
- Memory float64
- Memory capacity (in GB).
- Zone string
- Availability zone.
- cpu Double
- The number of CPU kernels, in cores.
- fpga Double
- The number of FPGA kernels, in cores.
- gpu Double
- The number of GPU kernels, in cores.
- instance
Family String - Instance family.
- instance
Type String - Instance type.
- memory Double
- Memory capacity (in GB).
- zone String
- Availability zone.
- cpu number
- The number of CPU kernels, in cores.
- fpga number
- The number of FPGA kernels, in cores.
- gpu number
- The number of GPU kernels, in cores.
- instance
Family string - Instance family.
- instance
Type string - Instance type.
- memory number
- Memory capacity (in GB).
- zone string
- Availability zone.
- cpu float
- The number of CPU kernels, in cores.
- fpga float
- The number of FPGA kernels, in cores.
- gpu float
- The number of GPU kernels, in cores.
- instance_
family str - Instance family.
- instance_
type str - Instance type.
- memory float
- Memory capacity (in GB).
- zone str
- Availability zone.
- cpu Number
- The number of CPU kernels, in cores.
- fpga Number
- The number of FPGA kernels, in cores.
- gpu Number
- The number of GPU kernels, in cores.
- instance
Family String - Instance family.
- instance
Type String - Instance type.
- memory Number
- Memory capacity (in GB).
- zone String
- Availability zone.
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