tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getAsScalingGroups
Start a Neo task
Explain and create a tencentcloud.getAsScalingGroups resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query the detail information of an existing autoscaling group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const asScalingGroups = tencentcloud.getAsScalingGroups({
scalingGroupName: "myasgroup",
configurationId: "asc-oqio4yyj",
resultOutputFile: "my_test_path",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
as_scaling_groups = tencentcloud.get_as_scaling_groups(scaling_group_name="myasgroup",
configuration_id="asc-oqio4yyj",
result_output_file="my_test_path")
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.GetAsScalingGroups(ctx, &tencentcloud.GetAsScalingGroupsArgs{
ScalingGroupName: pulumi.StringRef("myasgroup"),
ConfigurationId: pulumi.StringRef("asc-oqio4yyj"),
ResultOutputFile: pulumi.StringRef("my_test_path"),
}, 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 asScalingGroups = Tencentcloud.GetAsScalingGroups.Invoke(new()
{
ScalingGroupName = "myasgroup",
ConfigurationId = "asc-oqio4yyj",
ResultOutputFile = "my_test_path",
});
});
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.GetAsScalingGroupsArgs;
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 asScalingGroups = TencentcloudFunctions.getAsScalingGroups(GetAsScalingGroupsArgs.builder()
.scalingGroupName("myasgroup")
.configurationId("asc-oqio4yyj")
.resultOutputFile("my_test_path")
.build());
}
}
variables:
asScalingGroups:
fn::invoke:
function: tencentcloud:getAsScalingGroups
arguments:
scalingGroupName: myasgroup
configurationId: asc-oqio4yyj
resultOutputFile: my_test_path
Using getAsScalingGroups
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 getAsScalingGroups(args: GetAsScalingGroupsArgs, opts?: InvokeOptions): Promise<GetAsScalingGroupsResult>
function getAsScalingGroupsOutput(args: GetAsScalingGroupsOutputArgs, opts?: InvokeOptions): Output<GetAsScalingGroupsResult>def get_as_scaling_groups(configuration_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scaling_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetAsScalingGroupsResult
def get_as_scaling_groups_output(configuration_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
scaling_group_id: Optional[pulumi.Input[str]] = None,
scaling_group_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAsScalingGroupsResult]func GetAsScalingGroups(ctx *Context, args *GetAsScalingGroupsArgs, opts ...InvokeOption) (*GetAsScalingGroupsResult, error)
func GetAsScalingGroupsOutput(ctx *Context, args *GetAsScalingGroupsOutputArgs, opts ...InvokeOption) GetAsScalingGroupsResultOutput> Note: This function is named GetAsScalingGroups in the Go SDK.
public static class GetAsScalingGroups
{
public static Task<GetAsScalingGroupsResult> InvokeAsync(GetAsScalingGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetAsScalingGroupsResult> Invoke(GetAsScalingGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAsScalingGroupsResult> getAsScalingGroups(GetAsScalingGroupsArgs args, InvokeOptions options)
public static Output<GetAsScalingGroupsResult> getAsScalingGroups(GetAsScalingGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getAsScalingGroups:getAsScalingGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Configuration
Id string - Filter results by launch configuration ID.
- Id string
- Result
Output stringFile - Used to save results.
- Scaling
Group stringId - A specified scaling group ID used to query.
- Scaling
Group stringName - A scaling group name used to query.
- Dictionary<string, string>
- Tags used to query.
- Configuration
Id string - Filter results by launch configuration ID.
- Id string
- Result
Output stringFile - Used to save results.
- Scaling
Group stringId - A specified scaling group ID used to query.
- Scaling
Group stringName - A scaling group name used to query.
- map[string]string
- Tags used to query.
- configuration
Id String - Filter results by launch configuration ID.
- id String
- result
Output StringFile - Used to save results.
- scaling
Group StringId - A specified scaling group ID used to query.
- scaling
Group StringName - A scaling group name used to query.
- Map<String,String>
- Tags used to query.
- configuration
Id string - Filter results by launch configuration ID.
- id string
- result
Output stringFile - Used to save results.
- scaling
Group stringId - A specified scaling group ID used to query.
- scaling
Group stringName - A scaling group name used to query.
- {[key: string]: string}
- Tags used to query.
- configuration_
id str - Filter results by launch configuration ID.
- id str
- result_
output_ strfile - Used to save results.
- scaling_
group_ strid - A specified scaling group ID used to query.
- scaling_
group_ strname - A scaling group name used to query.
- Mapping[str, str]
- Tags used to query.
- configuration
Id String - Filter results by launch configuration ID.
- id String
- result
Output StringFile - Used to save results.
- scaling
Group StringId - A specified scaling group ID used to query.
- scaling
Group StringName - A scaling group name used to query.
- Map<String>
- Tags used to query.
getAsScalingGroups Result
The following output properties are available:
- Id string
- Scaling
Group List<GetLists As Scaling Groups Scaling Group List> - A list of scaling group. Each element contains the following attributes:
- Configuration
Id string - Launch configuration ID.
- Result
Output stringFile - Scaling
Group stringId - Auto scaling group ID.
- Scaling
Group stringName - Auto scaling group name.
- Dictionary<string, string>
- Tags of the scaling group.
- Id string
- Scaling
Group []GetLists As Scaling Groups Scaling Group List - A list of scaling group. Each element contains the following attributes:
- Configuration
Id string - Launch configuration ID.
- Result
Output stringFile - Scaling
Group stringId - Auto scaling group ID.
- Scaling
Group stringName - Auto scaling group name.
- map[string]string
- Tags of the scaling group.
- id String
- scaling
Group List<GetLists As Scaling Groups Scaling Group List> - A list of scaling group. Each element contains the following attributes:
- configuration
Id String - Launch configuration ID.
- result
Output StringFile - scaling
Group StringId - Auto scaling group ID.
- scaling
Group StringName - Auto scaling group name.
- Map<String,String>
- Tags of the scaling group.
- id string
- scaling
Group GetLists As Scaling Groups Scaling Group List[] - A list of scaling group. Each element contains the following attributes:
- configuration
Id string - Launch configuration ID.
- result
Output stringFile - scaling
Group stringId - Auto scaling group ID.
- scaling
Group stringName - Auto scaling group name.
- {[key: string]: string}
- Tags of the scaling group.
- id str
- scaling_
group_ Sequence[Getlists As Scaling Groups Scaling Group List] - A list of scaling group. Each element contains the following attributes:
- configuration_
id str - Launch configuration ID.
- result_
output_ strfile - scaling_
group_ strid - Auto scaling group ID.
- scaling_
group_ strname - Auto scaling group name.
- Mapping[str, str]
- Tags of the scaling group.
- id String
- scaling
Group List<Property Map>Lists - A list of scaling group. Each element contains the following attributes:
- configuration
Id String - Launch configuration ID.
- result
Output StringFile - scaling
Group StringId - Auto scaling group ID.
- scaling
Group StringName - Auto scaling group name.
- Map<String>
- Tags of the scaling group.
Supporting Types
GetAsScalingGroupsScalingGroupList
- Configuration
Id string - Filter results by launch configuration ID.
- Create
Time string - The time when the AS group was created.
- Default
Cooldown double - Default cooldown time of scaling group.
- Desired
Capacity double - The desired number of CVM instances.
- Forward
Balancer List<GetIds As Scaling Groups Scaling Group List Forward Balancer Id> - A list of application clb ids.
- Instance
Count double - Number of instance.
- Load
Balancer List<string>Ids - A list of traditional clb ids which the CVM instances attached to.
- Max
Size double - The maximum number of CVM instances.
- Min
Size double - The minimum number of CVM instances.
- Multi
Zone stringSubnet Policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- Project
Id double - ID of the project to which the scaling group belongs. Default value is 0.
- Retry
Policy string - A retry policy can be used when a creation fails.
- Scaling
Group stringId - A specified scaling group ID used to query.
- Scaling
Group stringName - A scaling group name used to query.
- Status string
- Current status of a scaling group.
- Subnet
Ids List<string> - A list of subnet IDs.
- Dictionary<string, string>
- Tags used to query.
- Termination
Policies List<string> - A policy used to select a CVM instance to be terminated from the scaling group.
- Vpc
Id string - ID of the vpc with which the instance is associated.
- Zones List<string>
- A list of available zones.
- Configuration
Id string - Filter results by launch configuration ID.
- Create
Time string - The time when the AS group was created.
- Default
Cooldown float64 - Default cooldown time of scaling group.
- Desired
Capacity float64 - The desired number of CVM instances.
- Forward
Balancer []GetIds As Scaling Groups Scaling Group List Forward Balancer Id - A list of application clb ids.
- Instance
Count float64 - Number of instance.
- Load
Balancer []stringIds - A list of traditional clb ids which the CVM instances attached to.
- Max
Size float64 - The maximum number of CVM instances.
- Min
Size float64 - The minimum number of CVM instances.
- Multi
Zone stringSubnet Policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- Project
Id float64 - ID of the project to which the scaling group belongs. Default value is 0.
- Retry
Policy string - A retry policy can be used when a creation fails.
- Scaling
Group stringId - A specified scaling group ID used to query.
- Scaling
Group stringName - A scaling group name used to query.
- Status string
- Current status of a scaling group.
- Subnet
Ids []string - A list of subnet IDs.
- map[string]string
- Tags used to query.
- Termination
Policies []string - A policy used to select a CVM instance to be terminated from the scaling group.
- Vpc
Id string - ID of the vpc with which the instance is associated.
- Zones []string
- A list of available zones.
- configuration
Id String - Filter results by launch configuration ID.
- create
Time String - The time when the AS group was created.
- default
Cooldown Double - Default cooldown time of scaling group.
- desired
Capacity Double - The desired number of CVM instances.
- forward
Balancer List<GetIds As Scaling Groups Scaling Group List Forward Balancer Id> - A list of application clb ids.
- instance
Count Double - Number of instance.
- load
Balancer List<String>Ids - A list of traditional clb ids which the CVM instances attached to.
- max
Size Double - The maximum number of CVM instances.
- min
Size Double - The minimum number of CVM instances.
- multi
Zone StringSubnet Policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- project
Id Double - ID of the project to which the scaling group belongs. Default value is 0.
- retry
Policy String - A retry policy can be used when a creation fails.
- scaling
Group StringId - A specified scaling group ID used to query.
- scaling
Group StringName - A scaling group name used to query.
- status String
- Current status of a scaling group.
- subnet
Ids List<String> - A list of subnet IDs.
- Map<String,String>
- Tags used to query.
- termination
Policies List<String> - A policy used to select a CVM instance to be terminated from the scaling group.
- vpc
Id String - ID of the vpc with which the instance is associated.
- zones List<String>
- A list of available zones.
- configuration
Id string - Filter results by launch configuration ID.
- create
Time string - The time when the AS group was created.
- default
Cooldown number - Default cooldown time of scaling group.
- desired
Capacity number - The desired number of CVM instances.
- forward
Balancer GetIds As Scaling Groups Scaling Group List Forward Balancer Id[] - A list of application clb ids.
- instance
Count number - Number of instance.
- load
Balancer string[]Ids - A list of traditional clb ids which the CVM instances attached to.
- max
Size number - The maximum number of CVM instances.
- min
Size number - The minimum number of CVM instances.
- multi
Zone stringSubnet Policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- project
Id number - ID of the project to which the scaling group belongs. Default value is 0.
- retry
Policy string - A retry policy can be used when a creation fails.
- scaling
Group stringId - A specified scaling group ID used to query.
- scaling
Group stringName - A scaling group name used to query.
- status string
- Current status of a scaling group.
- subnet
Ids string[] - A list of subnet IDs.
- {[key: string]: string}
- Tags used to query.
- termination
Policies string[] - A policy used to select a CVM instance to be terminated from the scaling group.
- vpc
Id string - ID of the vpc with which the instance is associated.
- zones string[]
- A list of available zones.
- configuration_
id str - Filter results by launch configuration ID.
- create_
time str - The time when the AS group was created.
- default_
cooldown float - Default cooldown time of scaling group.
- desired_
capacity float - The desired number of CVM instances.
- forward_
balancer_ Sequence[Getids As Scaling Groups Scaling Group List Forward Balancer Id] - A list of application clb ids.
- instance_
count float - Number of instance.
- load_
balancer_ Sequence[str]ids - A list of traditional clb ids which the CVM instances attached to.
- max_
size float - The maximum number of CVM instances.
- min_
size float - The minimum number of CVM instances.
- multi_
zone_ strsubnet_ policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- project_
id float - ID of the project to which the scaling group belongs. Default value is 0.
- retry_
policy str - A retry policy can be used when a creation fails.
- scaling_
group_ strid - A specified scaling group ID used to query.
- scaling_
group_ strname - A scaling group name used to query.
- status str
- Current status of a scaling group.
- subnet_
ids Sequence[str] - A list of subnet IDs.
- Mapping[str, str]
- Tags used to query.
- termination_
policies Sequence[str] - A policy used to select a CVM instance to be terminated from the scaling group.
- vpc_
id str - ID of the vpc with which the instance is associated.
- zones Sequence[str]
- A list of available zones.
- configuration
Id String - Filter results by launch configuration ID.
- create
Time String - The time when the AS group was created.
- default
Cooldown Number - Default cooldown time of scaling group.
- desired
Capacity Number - The desired number of CVM instances.
- forward
Balancer List<Property Map>Ids - A list of application clb ids.
- instance
Count Number - Number of instance.
- load
Balancer List<String>Ids - A list of traditional clb ids which the CVM instances attached to.
- max
Size Number - The maximum number of CVM instances.
- min
Size Number - The minimum number of CVM instances.
- multi
Zone StringSubnet Policy - Multi zone or subnet strategy, Valid values: PRIORITY and EQUALITY.
- project
Id Number - ID of the project to which the scaling group belongs. Default value is 0.
- retry
Policy String - A retry policy can be used when a creation fails.
- scaling
Group StringId - A specified scaling group ID used to query.
- scaling
Group StringName - A scaling group name used to query.
- status String
- Current status of a scaling group.
- subnet
Ids List<String> - A list of subnet IDs.
- Map<String>
- Tags used to query.
- termination
Policies List<String> - A policy used to select a CVM instance to be terminated from the scaling group.
- vpc
Id String - ID of the vpc with which the instance is associated.
- zones List<String>
- A list of available zones.
GetAsScalingGroupsScalingGroupListForwardBalancerId
- Listener
Id string - Listener ID for application load balancers.
- Load
Balancer stringId - ID of available load balancers.
- Location
Id string - ID of forwarding rules.
- Target
Attributes List<GetAs Scaling Groups Scaling Group List Forward Balancer Id Target Attribute> - Attribute list of target rules.
- Listener
Id string - Listener ID for application load balancers.
- Load
Balancer stringId - ID of available load balancers.
- Location
Id string - ID of forwarding rules.
- Target
Attributes []GetAs Scaling Groups Scaling Group List Forward Balancer Id Target Attribute - Attribute list of target rules.
- listener
Id String - Listener ID for application load balancers.
- load
Balancer StringId - ID of available load balancers.
- location
Id String - ID of forwarding rules.
- target
Attributes List<GetAs Scaling Groups Scaling Group List Forward Balancer Id Target Attribute> - Attribute list of target rules.
- listener
Id string - Listener ID for application load balancers.
- load
Balancer stringId - ID of available load balancers.
- location
Id string - ID of forwarding rules.
- target
Attributes GetAs Scaling Groups Scaling Group List Forward Balancer Id Target Attribute[] - Attribute list of target rules.
- listener_
id str - Listener ID for application load balancers.
- load_
balancer_ strid - ID of available load balancers.
- location_
id str - ID of forwarding rules.
- target_
attributes Sequence[GetAs Scaling Groups Scaling Group List Forward Balancer Id Target Attribute] - Attribute list of target rules.
- listener
Id String - Listener ID for application load balancers.
- load
Balancer StringId - ID of available load balancers.
- location
Id String - ID of forwarding rules.
- target
Attributes List<Property Map> - Attribute list of target rules.
GetAsScalingGroupsScalingGroupListForwardBalancerIdTargetAttribute
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
