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

tencentcloud.getAsScalingConfigs

Explore with Pulumi AI

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

    Use this data source to query scaling configuration information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const asConfigs = tencentcloud.getAsScalingConfigs({
        configurationId: "asc-oqio4yyj",
        resultOutputFile: "my_test_path",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    as_configs = tencentcloud.get_as_scaling_configs(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.GetAsScalingConfigs(ctx, &tencentcloud.GetAsScalingConfigsArgs{
    			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 asConfigs = Tencentcloud.GetAsScalingConfigs.Invoke(new()
        {
            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.GetAsScalingConfigsArgs;
    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 asConfigs = TencentcloudFunctions.getAsScalingConfigs(GetAsScalingConfigsArgs.builder()
                .configurationId("asc-oqio4yyj")
                .resultOutputFile("my_test_path")
                .build());
    
        }
    }
    
    variables:
      asConfigs:
        fn::invoke:
          function: tencentcloud:getAsScalingConfigs
          arguments:
            configurationId: asc-oqio4yyj
            resultOutputFile: my_test_path
    

    Using getAsScalingConfigs

    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 getAsScalingConfigs(args: GetAsScalingConfigsArgs, opts?: InvokeOptions): Promise<GetAsScalingConfigsResult>
    function getAsScalingConfigsOutput(args: GetAsScalingConfigsOutputArgs, opts?: InvokeOptions): Output<GetAsScalingConfigsResult>
    def get_as_scaling_configs(configuration_id: Optional[str] = None,
                               configuration_name: Optional[str] = None,
                               id: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAsScalingConfigsResult
    def get_as_scaling_configs_output(configuration_id: Optional[pulumi.Input[str]] = None,
                               configuration_name: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               result_output_file: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAsScalingConfigsResult]
    func GetAsScalingConfigs(ctx *Context, args *GetAsScalingConfigsArgs, opts ...InvokeOption) (*GetAsScalingConfigsResult, error)
    func GetAsScalingConfigsOutput(ctx *Context, args *GetAsScalingConfigsOutputArgs, opts ...InvokeOption) GetAsScalingConfigsResultOutput

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

    public static class GetAsScalingConfigs 
    {
        public static Task<GetAsScalingConfigsResult> InvokeAsync(GetAsScalingConfigsArgs args, InvokeOptions? opts = null)
        public static Output<GetAsScalingConfigsResult> Invoke(GetAsScalingConfigsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAsScalingConfigsResult> getAsScalingConfigs(GetAsScalingConfigsArgs args, InvokeOptions options)
    public static Output<GetAsScalingConfigsResult> getAsScalingConfigs(GetAsScalingConfigsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getAsScalingConfigs:getAsScalingConfigs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    Id string
    ResultOutputFile string
    Used to save results.
    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    Id string
    ResultOutputFile string
    Used to save results.
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    id String
    resultOutputFile String
    Used to save results.
    configurationId string
    Launch configuration ID.
    configurationName string
    Launch configuration name.
    id string
    resultOutputFile string
    Used to save results.
    configuration_id str
    Launch configuration ID.
    configuration_name str
    Launch configuration name.
    id str
    result_output_file str
    Used to save results.
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    id String
    resultOutputFile String
    Used to save results.

    getAsScalingConfigs Result

    The following output properties are available:

    ConfigurationLists List<GetAsScalingConfigsConfigurationList>
    A list of configuration. Each element contains the following attributes:
    Id string
    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    ResultOutputFile string
    ConfigurationLists []GetAsScalingConfigsConfigurationList
    A list of configuration. Each element contains the following attributes:
    Id string
    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    ResultOutputFile string
    configurationLists List<GetAsScalingConfigsConfigurationList>
    A list of configuration. Each element contains the following attributes:
    id String
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    resultOutputFile String
    configurationLists GetAsScalingConfigsConfigurationList[]
    A list of configuration. Each element contains the following attributes:
    id string
    configurationId string
    Launch configuration ID.
    configurationName string
    Launch configuration name.
    resultOutputFile string
    configuration_lists Sequence[GetAsScalingConfigsConfigurationList]
    A list of configuration. Each element contains the following attributes:
    id str
    configuration_id str
    Launch configuration ID.
    configuration_name str
    Launch configuration name.
    result_output_file str
    configurationLists List<Property Map>
    A list of configuration. Each element contains the following attributes:
    id String
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    resultOutputFile String

    Supporting Types

    GetAsScalingConfigsConfigurationList

    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    CreateTime string
    The time when the launch configuration was created.
    DataDisks List<GetAsScalingConfigsConfigurationListDataDisk>
    Configurations of data disk.
    DiskTypePolicy string
    Policy of cloud disk type.
    EnhancedMonitorService bool
    Whether to activate cloud monitor service.
    EnhancedSecurityService bool
    Whether to activate cloud security service.
    ImageId string
    ID of available image, for example img-8toqc6s3.
    InstanceTags Dictionary<string, string>
    A tag list associates with an instance.
    InstanceTypes List<string>
    Instance type list of the scaling configuration.
    InternetChargeType string
    Charge types for network traffic.
    InternetMaxBandwidthOut double
    Max bandwidth of Internet access in Mbps.
    KeyIds List<string>
    ID list of login keys.
    ProjectId double
    ID of the project to which the configuration belongs. Default value is 0.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds List<string>
    Security groups to which the instance belongs.
    Status string
    Current status of a launch configuration.
    SystemDiskSize double
    System disk size of the scaling configuration in GB.
    SystemDiskType string
    System disk category of the scaling configuration.
    UserData string
    Base64-encoded User Data text.
    VersionNumber double
    Version Number.
    ConfigurationId string
    Launch configuration ID.
    ConfigurationName string
    Launch configuration name.
    CreateTime string
    The time when the launch configuration was created.
    DataDisks []GetAsScalingConfigsConfigurationListDataDisk
    Configurations of data disk.
    DiskTypePolicy string
    Policy of cloud disk type.
    EnhancedMonitorService bool
    Whether to activate cloud monitor service.
    EnhancedSecurityService bool
    Whether to activate cloud security service.
    ImageId string
    ID of available image, for example img-8toqc6s3.
    InstanceTags map[string]string
    A tag list associates with an instance.
    InstanceTypes []string
    Instance type list of the scaling configuration.
    InternetChargeType string
    Charge types for network traffic.
    InternetMaxBandwidthOut float64
    Max bandwidth of Internet access in Mbps.
    KeyIds []string
    ID list of login keys.
    ProjectId float64
    ID of the project to which the configuration belongs. Default value is 0.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds []string
    Security groups to which the instance belongs.
    Status string
    Current status of a launch configuration.
    SystemDiskSize float64
    System disk size of the scaling configuration in GB.
    SystemDiskType string
    System disk category of the scaling configuration.
    UserData string
    Base64-encoded User Data text.
    VersionNumber float64
    Version Number.
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    createTime String
    The time when the launch configuration was created.
    dataDisks List<GetAsScalingConfigsConfigurationListDataDisk>
    Configurations of data disk.
    diskTypePolicy String
    Policy of cloud disk type.
    enhancedMonitorService Boolean
    Whether to activate cloud monitor service.
    enhancedSecurityService Boolean
    Whether to activate cloud security service.
    imageId String
    ID of available image, for example img-8toqc6s3.
    instanceTags Map<String,String>
    A tag list associates with an instance.
    instanceTypes List<String>
    Instance type list of the scaling configuration.
    internetChargeType String
    Charge types for network traffic.
    internetMaxBandwidthOut Double
    Max bandwidth of Internet access in Mbps.
    keyIds List<String>
    ID list of login keys.
    projectId Double
    ID of the project to which the configuration belongs. Default value is 0.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which the instance belongs.
    status String
    Current status of a launch configuration.
    systemDiskSize Double
    System disk size of the scaling configuration in GB.
    systemDiskType String
    System disk category of the scaling configuration.
    userData String
    Base64-encoded User Data text.
    versionNumber Double
    Version Number.
    configurationId string
    Launch configuration ID.
    configurationName string
    Launch configuration name.
    createTime string
    The time when the launch configuration was created.
    dataDisks GetAsScalingConfigsConfigurationListDataDisk[]
    Configurations of data disk.
    diskTypePolicy string
    Policy of cloud disk type.
    enhancedMonitorService boolean
    Whether to activate cloud monitor service.
    enhancedSecurityService boolean
    Whether to activate cloud security service.
    imageId string
    ID of available image, for example img-8toqc6s3.
    instanceTags {[key: string]: string}
    A tag list associates with an instance.
    instanceTypes string[]
    Instance type list of the scaling configuration.
    internetChargeType string
    Charge types for network traffic.
    internetMaxBandwidthOut number
    Max bandwidth of Internet access in Mbps.
    keyIds string[]
    ID list of login keys.
    projectId number
    ID of the project to which the configuration belongs. Default value is 0.
    publicIpAssigned boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds string[]
    Security groups to which the instance belongs.
    status string
    Current status of a launch configuration.
    systemDiskSize number
    System disk size of the scaling configuration in GB.
    systemDiskType string
    System disk category of the scaling configuration.
    userData string
    Base64-encoded User Data text.
    versionNumber number
    Version Number.
    configuration_id str
    Launch configuration ID.
    configuration_name str
    Launch configuration name.
    create_time str
    The time when the launch configuration was created.
    data_disks Sequence[GetAsScalingConfigsConfigurationListDataDisk]
    Configurations of data disk.
    disk_type_policy str
    Policy of cloud disk type.
    enhanced_monitor_service bool
    Whether to activate cloud monitor service.
    enhanced_security_service bool
    Whether to activate cloud security service.
    image_id str
    ID of available image, for example img-8toqc6s3.
    instance_tags Mapping[str, str]
    A tag list associates with an instance.
    instance_types Sequence[str]
    Instance type list of the scaling configuration.
    internet_charge_type str
    Charge types for network traffic.
    internet_max_bandwidth_out float
    Max bandwidth of Internet access in Mbps.
    key_ids Sequence[str]
    ID list of login keys.
    project_id float
    ID of the project to which the configuration belongs. Default value is 0.
    public_ip_assigned bool
    Specify whether to assign an Internet IP address.
    security_group_ids Sequence[str]
    Security groups to which the instance belongs.
    status str
    Current status of a launch configuration.
    system_disk_size float
    System disk size of the scaling configuration in GB.
    system_disk_type str
    System disk category of the scaling configuration.
    user_data str
    Base64-encoded User Data text.
    version_number float
    Version Number.
    configurationId String
    Launch configuration ID.
    configurationName String
    Launch configuration name.
    createTime String
    The time when the launch configuration was created.
    dataDisks List<Property Map>
    Configurations of data disk.
    diskTypePolicy String
    Policy of cloud disk type.
    enhancedMonitorService Boolean
    Whether to activate cloud monitor service.
    enhancedSecurityService Boolean
    Whether to activate cloud security service.
    imageId String
    ID of available image, for example img-8toqc6s3.
    instanceTags Map<String>
    A tag list associates with an instance.
    instanceTypes List<String>
    Instance type list of the scaling configuration.
    internetChargeType String
    Charge types for network traffic.
    internetMaxBandwidthOut Number
    Max bandwidth of Internet access in Mbps.
    keyIds List<String>
    ID list of login keys.
    projectId Number
    ID of the project to which the configuration belongs. Default value is 0.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which the instance belongs.
    status String
    Current status of a launch configuration.
    systemDiskSize Number
    System disk size of the scaling configuration in GB.
    systemDiskType String
    System disk category of the scaling configuration.
    userData String
    Base64-encoded User Data text.
    versionNumber Number
    Version Number.

    GetAsScalingConfigsConfigurationListDataDisk

    DeleteWithInstance bool
    Indicates whether the disk remove after instance terminated.
    DiskSize double
    Volume of disk in GB. Default is 0.
    DiskType string
    Type of disk.
    SnapshotId string
    Data disk snapshot ID.
    DeleteWithInstance bool
    Indicates whether the disk remove after instance terminated.
    DiskSize float64
    Volume of disk in GB. Default is 0.
    DiskType string
    Type of disk.
    SnapshotId string
    Data disk snapshot ID.
    deleteWithInstance Boolean
    Indicates whether the disk remove after instance terminated.
    diskSize Double
    Volume of disk in GB. Default is 0.
    diskType String
    Type of disk.
    snapshotId String
    Data disk snapshot ID.
    deleteWithInstance boolean
    Indicates whether the disk remove after instance terminated.
    diskSize number
    Volume of disk in GB. Default is 0.
    diskType string
    Type of disk.
    snapshotId string
    Data disk snapshot ID.
    delete_with_instance bool
    Indicates whether the disk remove after instance terminated.
    disk_size float
    Volume of disk in GB. Default is 0.
    disk_type str
    Type of disk.
    snapshot_id str
    Data disk snapshot ID.
    deleteWithInstance Boolean
    Indicates whether the disk remove after instance terminated.
    diskSize Number
    Volume of disk in GB. Default is 0.
    diskType String
    Type of disk.
    snapshotId String
    Data disk snapshot ID.

    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