1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. AsGroupV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.AsGroupV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for AS group you can get at documentation portal

    Manages a V1 Autoscaling Group resource within OpenTelekomCloud.

    Example Usage

    Basic Autoscaling Group

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const asGroup = new opentelekomcloud.AsGroupV1("asGroup", {
        deleteInstances: "yes",
        deletePublicip: true,
        desireInstanceNumber: 2,
        maxInstanceNumber: 10,
        minInstanceNumber: 0,
        networks: [{
            id: "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        scalingConfigurationId: "37e310f5-db9d-446e-9135-c625f9c2bbfc",
        scalingGroupName: "as_group",
        securityGroups: {
            id: "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        tags: {
            muh: "kuh",
        },
        vpcId: "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    as_group = opentelekomcloud.AsGroupV1("asGroup",
        delete_instances="yes",
        delete_publicip=True,
        desire_instance_number=2,
        max_instance_number=10,
        min_instance_number=0,
        networks=[{
            "id": "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        scaling_configuration_id="37e310f5-db9d-446e-9135-c625f9c2bbfc",
        scaling_group_name="as_group",
        security_groups={
            "id": "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        tags={
            "muh": "kuh",
        },
        vpc_id="1d8f7e7c-fe04-4cf5-85ac-08b478c290e9")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewAsGroupV1(ctx, "asGroup", &opentelekomcloud.AsGroupV1Args{
    			DeleteInstances:      pulumi.String("yes"),
    			DeletePublicip:       pulumi.Bool(true),
    			DesireInstanceNumber: pulumi.Float64(2),
    			MaxInstanceNumber:    pulumi.Float64(10),
    			MinInstanceNumber:    pulumi.Float64(0),
    			Networks: opentelekomcloud.AsGroupV1NetworkArray{
    				&opentelekomcloud.AsGroupV1NetworkArgs{
    					Id: pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
    				},
    			},
    			ScalingConfigurationId: pulumi.String("37e310f5-db9d-446e-9135-c625f9c2bbfc"),
    			ScalingGroupName:       pulumi.String("as_group"),
    			SecurityGroups: &opentelekomcloud.AsGroupV1SecurityGroupsArgs{
    				Id: pulumi.String("45e4c6de-6bf0-4843-8953-2babde3d4810"),
    			},
    			Tags: pulumi.StringMap{
    				"muh": pulumi.String("kuh"),
    			},
    			VpcId: pulumi.String("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var asGroup = new Opentelekomcloud.AsGroupV1("asGroup", new()
        {
            DeleteInstances = "yes",
            DeletePublicip = true,
            DesireInstanceNumber = 2,
            MaxInstanceNumber = 10,
            MinInstanceNumber = 0,
            Networks = new[]
            {
                new Opentelekomcloud.Inputs.AsGroupV1NetworkArgs
                {
                    Id = "ad091b52-742f-469e-8f3c-fd81cadf0743",
                },
            },
            ScalingConfigurationId = "37e310f5-db9d-446e-9135-c625f9c2bbfc",
            ScalingGroupName = "as_group",
            SecurityGroups = new Opentelekomcloud.Inputs.AsGroupV1SecurityGroupsArgs
            {
                Id = "45e4c6de-6bf0-4843-8953-2babde3d4810",
            },
            Tags = 
            {
                { "muh", "kuh" },
            },
            VpcId = "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.AsGroupV1;
    import com.pulumi.opentelekomcloud.AsGroupV1Args;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1NetworkArgs;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1SecurityGroupsArgs;
    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) {
            var asGroup = new AsGroupV1("asGroup", AsGroupV1Args.builder()
                .deleteInstances("yes")
                .deletePublicip(true)
                .desireInstanceNumber(2)
                .maxInstanceNumber(10)
                .minInstanceNumber(0)
                .networks(AsGroupV1NetworkArgs.builder()
                    .id("ad091b52-742f-469e-8f3c-fd81cadf0743")
                    .build())
                .scalingConfigurationId("37e310f5-db9d-446e-9135-c625f9c2bbfc")
                .scalingGroupName("as_group")
                .securityGroups(AsGroupV1SecurityGroupsArgs.builder()
                    .id("45e4c6de-6bf0-4843-8953-2babde3d4810")
                    .build())
                .tags(Map.of("muh", "kuh"))
                .vpcId("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9")
                .build());
    
        }
    }
    
    resources:
      asGroup:
        type: opentelekomcloud:AsGroupV1
        properties:
          deleteInstances: yes
          deletePublicip: true
          desireInstanceNumber: 2
          maxInstanceNumber: 10
          minInstanceNumber: 0
          networks:
            - id: ad091b52-742f-469e-8f3c-fd81cadf0743
          scalingConfigurationId: 37e310f5-db9d-446e-9135-c625f9c2bbfc
          scalingGroupName: as_group
          securityGroups:
            id: 45e4c6de-6bf0-4843-8953-2babde3d4810
          tags:
            muh: kuh
          vpcId: 1d8f7e7c-fe04-4cf5-85ac-08b478c290e9
    

    Autoscaling Group Only Remove Members When Scaling Down

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const asGroupOnlyRemoveMembers = new opentelekomcloud.AsGroupV1("asGroupOnlyRemoveMembers", {
        deleteInstances: "no",
        deletePublicip: true,
        desireInstanceNumber: 2,
        maxInstanceNumber: 10,
        minInstanceNumber: 0,
        networks: [{
            id: "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        scalingConfigurationId: "37e310f5-db9d-446e-9135-c625f9c2bbfc",
        scalingGroupName: "as_group_only_remove_members",
        securityGroups: {
            id: "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        vpcId: "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    as_group_only_remove_members = opentelekomcloud.AsGroupV1("asGroupOnlyRemoveMembers",
        delete_instances="no",
        delete_publicip=True,
        desire_instance_number=2,
        max_instance_number=10,
        min_instance_number=0,
        networks=[{
            "id": "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        scaling_configuration_id="37e310f5-db9d-446e-9135-c625f9c2bbfc",
        scaling_group_name="as_group_only_remove_members",
        security_groups={
            "id": "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        vpc_id="1d8f7e7c-fe04-4cf5-85ac-08b478c290e9")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewAsGroupV1(ctx, "asGroupOnlyRemoveMembers", &opentelekomcloud.AsGroupV1Args{
    			DeleteInstances:      pulumi.String("no"),
    			DeletePublicip:       pulumi.Bool(true),
    			DesireInstanceNumber: pulumi.Float64(2),
    			MaxInstanceNumber:    pulumi.Float64(10),
    			MinInstanceNumber:    pulumi.Float64(0),
    			Networks: opentelekomcloud.AsGroupV1NetworkArray{
    				&opentelekomcloud.AsGroupV1NetworkArgs{
    					Id: pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
    				},
    			},
    			ScalingConfigurationId: pulumi.String("37e310f5-db9d-446e-9135-c625f9c2bbfc"),
    			ScalingGroupName:       pulumi.String("as_group_only_remove_members"),
    			SecurityGroups: &opentelekomcloud.AsGroupV1SecurityGroupsArgs{
    				Id: pulumi.String("45e4c6de-6bf0-4843-8953-2babde3d4810"),
    			},
    			VpcId: pulumi.String("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var asGroupOnlyRemoveMembers = new Opentelekomcloud.AsGroupV1("asGroupOnlyRemoveMembers", new()
        {
            DeleteInstances = "no",
            DeletePublicip = true,
            DesireInstanceNumber = 2,
            MaxInstanceNumber = 10,
            MinInstanceNumber = 0,
            Networks = new[]
            {
                new Opentelekomcloud.Inputs.AsGroupV1NetworkArgs
                {
                    Id = "ad091b52-742f-469e-8f3c-fd81cadf0743",
                },
            },
            ScalingConfigurationId = "37e310f5-db9d-446e-9135-c625f9c2bbfc",
            ScalingGroupName = "as_group_only_remove_members",
            SecurityGroups = new Opentelekomcloud.Inputs.AsGroupV1SecurityGroupsArgs
            {
                Id = "45e4c6de-6bf0-4843-8953-2babde3d4810",
            },
            VpcId = "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.AsGroupV1;
    import com.pulumi.opentelekomcloud.AsGroupV1Args;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1NetworkArgs;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1SecurityGroupsArgs;
    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) {
            var asGroupOnlyRemoveMembers = new AsGroupV1("asGroupOnlyRemoveMembers", AsGroupV1Args.builder()
                .deleteInstances("no")
                .deletePublicip(true)
                .desireInstanceNumber(2)
                .maxInstanceNumber(10)
                .minInstanceNumber(0)
                .networks(AsGroupV1NetworkArgs.builder()
                    .id("ad091b52-742f-469e-8f3c-fd81cadf0743")
                    .build())
                .scalingConfigurationId("37e310f5-db9d-446e-9135-c625f9c2bbfc")
                .scalingGroupName("as_group_only_remove_members")
                .securityGroups(AsGroupV1SecurityGroupsArgs.builder()
                    .id("45e4c6de-6bf0-4843-8953-2babde3d4810")
                    .build())
                .vpcId("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9")
                .build());
    
        }
    }
    
    resources:
      asGroupOnlyRemoveMembers:
        type: opentelekomcloud:AsGroupV1
        properties:
          deleteInstances: no
          deletePublicip: true
          desireInstanceNumber: 2
          maxInstanceNumber: 10
          minInstanceNumber: 0
          networks:
            - id: ad091b52-742f-469e-8f3c-fd81cadf0743
          scalingConfigurationId: 37e310f5-db9d-446e-9135-c625f9c2bbfc
          scalingGroupName: as_group_only_remove_members
          securityGroups:
            id: 45e4c6de-6bf0-4843-8953-2babde3d4810
          vpcId: 1d8f7e7c-fe04-4cf5-85ac-08b478c290e9
    

    Autoscaling Group With ELB Listener

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const asListener = new opentelekomcloud.LbListenerV2("asListener", {
        description: "as test listener",
        protocol: "TCP",
        protocolPort: 80,
        loadbalancerId: "cba48790-baf5-4446-adb3-02069a916e97",
    });
    const pool1 = new opentelekomcloud.LbPoolV2("pool1", {
        protocol: "HTTP",
        lbMethod: "ROUND_ROBIN",
        listenerId: asListener.lbListenerV2Id,
    });
    const asGroupWithElb = new opentelekomcloud.AsGroupV1("asGroupWithElb", {
        scalingGroupName: "as_group_with_elb",
        scalingConfigurationId: "37e310f5-db9d-446e-9135-c625f9c2bbfc",
        desireInstanceNumber: 2,
        minInstanceNumber: 0,
        maxInstanceNumber: 10,
        networks: [{
            id: "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        securityGroups: {
            id: "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        vpcId: "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
        deletePublicip: true,
        deleteInstances: "yes",
        lbaasListeners: [{
            poolId: pool1.lbPoolV2Id,
            protocolPort: asListener.protocolPort,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    as_listener = opentelekomcloud.LbListenerV2("asListener",
        description="as test listener",
        protocol="TCP",
        protocol_port=80,
        loadbalancer_id="cba48790-baf5-4446-adb3-02069a916e97")
    pool1 = opentelekomcloud.LbPoolV2("pool1",
        protocol="HTTP",
        lb_method="ROUND_ROBIN",
        listener_id=as_listener.lb_listener_v2_id)
    as_group_with_elb = opentelekomcloud.AsGroupV1("asGroupWithElb",
        scaling_group_name="as_group_with_elb",
        scaling_configuration_id="37e310f5-db9d-446e-9135-c625f9c2bbfc",
        desire_instance_number=2,
        min_instance_number=0,
        max_instance_number=10,
        networks=[{
            "id": "ad091b52-742f-469e-8f3c-fd81cadf0743",
        }],
        security_groups={
            "id": "45e4c6de-6bf0-4843-8953-2babde3d4810",
        },
        vpc_id="1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
        delete_publicip=True,
        delete_instances="yes",
        lbaas_listeners=[{
            "pool_id": pool1.lb_pool_v2_id,
            "protocol_port": as_listener.protocol_port,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		asListener, err := opentelekomcloud.NewLbListenerV2(ctx, "asListener", &opentelekomcloud.LbListenerV2Args{
    			Description:    pulumi.String("as test listener"),
    			Protocol:       pulumi.String("TCP"),
    			ProtocolPort:   pulumi.Float64(80),
    			LoadbalancerId: pulumi.String("cba48790-baf5-4446-adb3-02069a916e97"),
    		})
    		if err != nil {
    			return err
    		}
    		pool1, err := opentelekomcloud.NewLbPoolV2(ctx, "pool1", &opentelekomcloud.LbPoolV2Args{
    			Protocol:   pulumi.String("HTTP"),
    			LbMethod:   pulumi.String("ROUND_ROBIN"),
    			ListenerId: asListener.LbListenerV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewAsGroupV1(ctx, "asGroupWithElb", &opentelekomcloud.AsGroupV1Args{
    			ScalingGroupName:       pulumi.String("as_group_with_elb"),
    			ScalingConfigurationId: pulumi.String("37e310f5-db9d-446e-9135-c625f9c2bbfc"),
    			DesireInstanceNumber:   pulumi.Float64(2),
    			MinInstanceNumber:      pulumi.Float64(0),
    			MaxInstanceNumber:      pulumi.Float64(10),
    			Networks: opentelekomcloud.AsGroupV1NetworkArray{
    				&opentelekomcloud.AsGroupV1NetworkArgs{
    					Id: pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
    				},
    			},
    			SecurityGroups: &opentelekomcloud.AsGroupV1SecurityGroupsArgs{
    				Id: pulumi.String("45e4c6de-6bf0-4843-8953-2babde3d4810"),
    			},
    			VpcId:           pulumi.String("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9"),
    			DeletePublicip:  pulumi.Bool(true),
    			DeleteInstances: pulumi.String("yes"),
    			LbaasListeners: opentelekomcloud.AsGroupV1LbaasListenerArray{
    				&opentelekomcloud.AsGroupV1LbaasListenerArgs{
    					PoolId:       pool1.LbPoolV2Id,
    					ProtocolPort: asListener.ProtocolPort,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var asListener = new Opentelekomcloud.LbListenerV2("asListener", new()
        {
            Description = "as test listener",
            Protocol = "TCP",
            ProtocolPort = 80,
            LoadbalancerId = "cba48790-baf5-4446-adb3-02069a916e97",
        });
    
        var pool1 = new Opentelekomcloud.LbPoolV2("pool1", new()
        {
            Protocol = "HTTP",
            LbMethod = "ROUND_ROBIN",
            ListenerId = asListener.LbListenerV2Id,
        });
    
        var asGroupWithElb = new Opentelekomcloud.AsGroupV1("asGroupWithElb", new()
        {
            ScalingGroupName = "as_group_with_elb",
            ScalingConfigurationId = "37e310f5-db9d-446e-9135-c625f9c2bbfc",
            DesireInstanceNumber = 2,
            MinInstanceNumber = 0,
            MaxInstanceNumber = 10,
            Networks = new[]
            {
                new Opentelekomcloud.Inputs.AsGroupV1NetworkArgs
                {
                    Id = "ad091b52-742f-469e-8f3c-fd81cadf0743",
                },
            },
            SecurityGroups = new Opentelekomcloud.Inputs.AsGroupV1SecurityGroupsArgs
            {
                Id = "45e4c6de-6bf0-4843-8953-2babde3d4810",
            },
            VpcId = "1d8f7e7c-fe04-4cf5-85ac-08b478c290e9",
            DeletePublicip = true,
            DeleteInstances = "yes",
            LbaasListeners = new[]
            {
                new Opentelekomcloud.Inputs.AsGroupV1LbaasListenerArgs
                {
                    PoolId = pool1.LbPoolV2Id,
                    ProtocolPort = asListener.ProtocolPort,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbListenerV2;
    import com.pulumi.opentelekomcloud.LbListenerV2Args;
    import com.pulumi.opentelekomcloud.LbPoolV2;
    import com.pulumi.opentelekomcloud.LbPoolV2Args;
    import com.pulumi.opentelekomcloud.AsGroupV1;
    import com.pulumi.opentelekomcloud.AsGroupV1Args;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1NetworkArgs;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1SecurityGroupsArgs;
    import com.pulumi.opentelekomcloud.inputs.AsGroupV1LbaasListenerArgs;
    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) {
            var asListener = new LbListenerV2("asListener", LbListenerV2Args.builder()
                .description("as test listener")
                .protocol("TCP")
                .protocolPort(80)
                .loadbalancerId("cba48790-baf5-4446-adb3-02069a916e97")
                .build());
    
            var pool1 = new LbPoolV2("pool1", LbPoolV2Args.builder()
                .protocol("HTTP")
                .lbMethod("ROUND_ROBIN")
                .listenerId(asListener.lbListenerV2Id())
                .build());
    
            var asGroupWithElb = new AsGroupV1("asGroupWithElb", AsGroupV1Args.builder()
                .scalingGroupName("as_group_with_elb")
                .scalingConfigurationId("37e310f5-db9d-446e-9135-c625f9c2bbfc")
                .desireInstanceNumber(2)
                .minInstanceNumber(0)
                .maxInstanceNumber(10)
                .networks(AsGroupV1NetworkArgs.builder()
                    .id("ad091b52-742f-469e-8f3c-fd81cadf0743")
                    .build())
                .securityGroups(AsGroupV1SecurityGroupsArgs.builder()
                    .id("45e4c6de-6bf0-4843-8953-2babde3d4810")
                    .build())
                .vpcId("1d8f7e7c-fe04-4cf5-85ac-08b478c290e9")
                .deletePublicip(true)
                .deleteInstances("yes")
                .lbaasListeners(AsGroupV1LbaasListenerArgs.builder()
                    .poolId(pool1.lbPoolV2Id())
                    .protocolPort(asListener.protocolPort())
                    .build())
                .build());
    
        }
    }
    
    resources:
      asGroupWithElb:
        type: opentelekomcloud:AsGroupV1
        properties:
          scalingGroupName: as_group_with_elb
          scalingConfigurationId: 37e310f5-db9d-446e-9135-c625f9c2bbfc
          desireInstanceNumber: 2
          minInstanceNumber: 0
          maxInstanceNumber: 10
          networks:
            - id: ad091b52-742f-469e-8f3c-fd81cadf0743
          securityGroups:
            id: 45e4c6de-6bf0-4843-8953-2babde3d4810
          vpcId: 1d8f7e7c-fe04-4cf5-85ac-08b478c290e9
          deletePublicip: true
          deleteInstances: yes
          lbaasListeners:
            - poolId: ${pool1.lbPoolV2Id}
              protocolPort: ${asListener.protocolPort}
      asListener:
        type: opentelekomcloud:LbListenerV2
        properties:
          description: as test listener
          protocol: TCP
          protocolPort: 80
          loadbalancerId: cba48790-baf5-4446-adb3-02069a916e97
      pool1:
        type: opentelekomcloud:LbPoolV2
        properties:
          protocol: HTTP
          lbMethod: ROUND_ROBIN
          listenerId: ${asListener.lbListenerV2Id}
    

    Create AsGroupV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AsGroupV1(name: string, args: AsGroupV1Args, opts?: CustomResourceOptions);
    @overload
    def AsGroupV1(resource_name: str,
                  args: AsGroupV1Args,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AsGroupV1(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  networks: Optional[Sequence[AsGroupV1NetworkArgs]] = None,
                  vpc_id: Optional[str] = None,
                  scaling_group_name: Optional[str] = None,
                  delete_instances: Optional[str] = None,
                  delete_publicip: Optional[bool] = None,
                  lb_listener_id: Optional[str] = None,
                  desire_instance_number: Optional[float] = None,
                  health_periodic_audit_method: Optional[str] = None,
                  health_periodic_audit_time: Optional[float] = None,
                  instance_terminate_policy: Optional[str] = None,
                  as_group_v1_id: Optional[str] = None,
                  lbaas_listeners: Optional[Sequence[AsGroupV1LbaasListenerArgs]] = None,
                  max_instance_number: Optional[float] = None,
                  min_instance_number: Optional[float] = None,
                  health_periodic_audit_grace_period: Optional[float] = None,
                  notifications: Optional[Sequence[str]] = None,
                  region: Optional[str] = None,
                  scaling_configuration_id: Optional[str] = None,
                  cool_down_time: Optional[float] = None,
                  security_groups: Optional[AsGroupV1SecurityGroupsArgs] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  timeouts: Optional[AsGroupV1TimeoutsArgs] = None,
                  available_zones: Optional[Sequence[str]] = None)
    func NewAsGroupV1(ctx *Context, name string, args AsGroupV1Args, opts ...ResourceOption) (*AsGroupV1, error)
    public AsGroupV1(string name, AsGroupV1Args args, CustomResourceOptions? opts = null)
    public AsGroupV1(String name, AsGroupV1Args args)
    public AsGroupV1(String name, AsGroupV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:AsGroupV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AsGroupV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AsGroupV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AsGroupV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AsGroupV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AsGroupV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var asGroupV1Resource = new Opentelekomcloud.AsGroupV1("asGroupV1Resource", new()
    {
        Networks = new[]
        {
            new Opentelekomcloud.Inputs.AsGroupV1NetworkArgs
            {
                Id = "string",
            },
        },
        VpcId = "string",
        ScalingGroupName = "string",
        DeleteInstances = "string",
        DeletePublicip = false,
        DesireInstanceNumber = 0,
        HealthPeriodicAuditMethod = "string",
        HealthPeriodicAuditTime = 0,
        InstanceTerminatePolicy = "string",
        AsGroupV1Id = "string",
        LbaasListeners = new[]
        {
            new Opentelekomcloud.Inputs.AsGroupV1LbaasListenerArgs
            {
                PoolId = "string",
                ProtocolPort = 0,
                Weight = 0,
            },
        },
        MaxInstanceNumber = 0,
        MinInstanceNumber = 0,
        HealthPeriodicAuditGracePeriod = 0,
        Notifications = new[]
        {
            "string",
        },
        Region = "string",
        ScalingConfigurationId = "string",
        CoolDownTime = 0,
        SecurityGroups = new Opentelekomcloud.Inputs.AsGroupV1SecurityGroupsArgs
        {
            Id = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.AsGroupV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        AvailableZones = new[]
        {
            "string",
        },
    });
    
    example, err := opentelekomcloud.NewAsGroupV1(ctx, "asGroupV1Resource", &opentelekomcloud.AsGroupV1Args{
    	Networks: opentelekomcloud.AsGroupV1NetworkArray{
    		&opentelekomcloud.AsGroupV1NetworkArgs{
    			Id: pulumi.String("string"),
    		},
    	},
    	VpcId:                     pulumi.String("string"),
    	ScalingGroupName:          pulumi.String("string"),
    	DeleteInstances:           pulumi.String("string"),
    	DeletePublicip:            pulumi.Bool(false),
    	DesireInstanceNumber:      pulumi.Float64(0),
    	HealthPeriodicAuditMethod: pulumi.String("string"),
    	HealthPeriodicAuditTime:   pulumi.Float64(0),
    	InstanceTerminatePolicy:   pulumi.String("string"),
    	AsGroupV1Id:               pulumi.String("string"),
    	LbaasListeners: opentelekomcloud.AsGroupV1LbaasListenerArray{
    		&opentelekomcloud.AsGroupV1LbaasListenerArgs{
    			PoolId:       pulumi.String("string"),
    			ProtocolPort: pulumi.Float64(0),
    			Weight:       pulumi.Float64(0),
    		},
    	},
    	MaxInstanceNumber:              pulumi.Float64(0),
    	MinInstanceNumber:              pulumi.Float64(0),
    	HealthPeriodicAuditGracePeriod: pulumi.Float64(0),
    	Notifications: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Region:                 pulumi.String("string"),
    	ScalingConfigurationId: pulumi.String("string"),
    	CoolDownTime:           pulumi.Float64(0),
    	SecurityGroups: &opentelekomcloud.AsGroupV1SecurityGroupsArgs{
    		Id: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.AsGroupV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	AvailableZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var asGroupV1Resource = new AsGroupV1("asGroupV1Resource", AsGroupV1Args.builder()
        .networks(AsGroupV1NetworkArgs.builder()
            .id("string")
            .build())
        .vpcId("string")
        .scalingGroupName("string")
        .deleteInstances("string")
        .deletePublicip(false)
        .desireInstanceNumber(0)
        .healthPeriodicAuditMethod("string")
        .healthPeriodicAuditTime(0)
        .instanceTerminatePolicy("string")
        .asGroupV1Id("string")
        .lbaasListeners(AsGroupV1LbaasListenerArgs.builder()
            .poolId("string")
            .protocolPort(0)
            .weight(0)
            .build())
        .maxInstanceNumber(0)
        .minInstanceNumber(0)
        .healthPeriodicAuditGracePeriod(0)
        .notifications("string")
        .region("string")
        .scalingConfigurationId("string")
        .coolDownTime(0)
        .securityGroups(AsGroupV1SecurityGroupsArgs.builder()
            .id("string")
            .build())
        .tags(Map.of("string", "string"))
        .timeouts(AsGroupV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .availableZones("string")
        .build());
    
    as_group_v1_resource = opentelekomcloud.AsGroupV1("asGroupV1Resource",
        networks=[{
            "id": "string",
        }],
        vpc_id="string",
        scaling_group_name="string",
        delete_instances="string",
        delete_publicip=False,
        desire_instance_number=0,
        health_periodic_audit_method="string",
        health_periodic_audit_time=0,
        instance_terminate_policy="string",
        as_group_v1_id="string",
        lbaas_listeners=[{
            "pool_id": "string",
            "protocol_port": 0,
            "weight": 0,
        }],
        max_instance_number=0,
        min_instance_number=0,
        health_periodic_audit_grace_period=0,
        notifications=["string"],
        region="string",
        scaling_configuration_id="string",
        cool_down_time=0,
        security_groups={
            "id": "string",
        },
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        },
        available_zones=["string"])
    
    const asGroupV1Resource = new opentelekomcloud.AsGroupV1("asGroupV1Resource", {
        networks: [{
            id: "string",
        }],
        vpcId: "string",
        scalingGroupName: "string",
        deleteInstances: "string",
        deletePublicip: false,
        desireInstanceNumber: 0,
        healthPeriodicAuditMethod: "string",
        healthPeriodicAuditTime: 0,
        instanceTerminatePolicy: "string",
        asGroupV1Id: "string",
        lbaasListeners: [{
            poolId: "string",
            protocolPort: 0,
            weight: 0,
        }],
        maxInstanceNumber: 0,
        minInstanceNumber: 0,
        healthPeriodicAuditGracePeriod: 0,
        notifications: ["string"],
        region: "string",
        scalingConfigurationId: "string",
        coolDownTime: 0,
        securityGroups: {
            id: "string",
        },
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        availableZones: ["string"],
    });
    
    type: opentelekomcloud:AsGroupV1
    properties:
        asGroupV1Id: string
        availableZones:
            - string
        coolDownTime: 0
        deleteInstances: string
        deletePublicip: false
        desireInstanceNumber: 0
        healthPeriodicAuditGracePeriod: 0
        healthPeriodicAuditMethod: string
        healthPeriodicAuditTime: 0
        instanceTerminatePolicy: string
        lbaasListeners:
            - poolId: string
              protocolPort: 0
              weight: 0
        maxInstanceNumber: 0
        minInstanceNumber: 0
        networks:
            - id: string
        notifications:
            - string
        region: string
        scalingConfigurationId: string
        scalingGroupName: string
        securityGroups:
            id: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
        vpcId: string
    

    AsGroupV1 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AsGroupV1 resource accepts the following input properties:

    DeleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    DeletePublicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    Networks List<AsGroupV1Network>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    ScalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    VpcId string
    The VPC ID. Changing this creates a new group.
    AsGroupV1Id string
    AvailableZones List<string>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    CoolDownTime double
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    DesireInstanceNumber double
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    HealthPeriodicAuditGracePeriod double
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    HealthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    HealthPeriodicAuditTime double
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    InstanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    LbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    LbaasListeners List<AsGroupV1LbaasListener>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    MaxInstanceNumber double
    The maximum number of instances. The default value is 0.
    MinInstanceNumber double
    The minimum number of instances. The default value is 0.
    Notifications List<string>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    Region string
    ScalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    SecurityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    Tags Dictionary<string, string>
    See Argument Reference above.
    Timeouts AsGroupV1Timeouts
    DeleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    DeletePublicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    Networks []AsGroupV1NetworkArgs
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    ScalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    VpcId string
    The VPC ID. Changing this creates a new group.
    AsGroupV1Id string
    AvailableZones []string
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    CoolDownTime float64
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    DesireInstanceNumber float64
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    HealthPeriodicAuditGracePeriod float64
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    HealthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    HealthPeriodicAuditTime float64
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    InstanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    LbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    LbaasListeners []AsGroupV1LbaasListenerArgs
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    MaxInstanceNumber float64
    The maximum number of instances. The default value is 0.
    MinInstanceNumber float64
    The minimum number of instances. The default value is 0.
    Notifications []string
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    Region string
    ScalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    SecurityGroups AsGroupV1SecurityGroupsArgs
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    Tags map[string]string
    See Argument Reference above.
    Timeouts AsGroupV1TimeoutsArgs
    deleteInstances String
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip Boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    networks List<AsGroupV1Network>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    scalingGroupName String
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    vpcId String
    The VPC ID. Changing this creates a new group.
    asGroupV1Id String
    availableZones List<String>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime Double
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    desireInstanceNumber Double
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod Double
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod String
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime Double
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy String
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    lbListenerId String
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners List<AsGroupV1LbaasListener>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber Double
    The maximum number of instances. The default value is 0.
    minInstanceNumber Double
    The minimum number of instances. The default value is 0.
    notifications List<String>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region String
    scalingConfigurationId String
    The configuration ID which defines configurations of instances in the AS group.
    securityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    tags Map<String,String>
    See Argument Reference above.
    timeouts AsGroupV1Timeouts
    deleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    networks AsGroupV1Network[]
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    scalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    vpcId string
    The VPC ID. Changing this creates a new group.
    asGroupV1Id string
    availableZones string[]
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime number
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    desireInstanceNumber number
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod number
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime number
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    lbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners AsGroupV1LbaasListener[]
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber number
    The maximum number of instances. The default value is 0.
    minInstanceNumber number
    The minimum number of instances. The default value is 0.
    notifications string[]
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region string
    scalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    securityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    tags {[key: string]: string}
    See Argument Reference above.
    timeouts AsGroupV1Timeouts
    delete_instances str
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    delete_publicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    networks Sequence[AsGroupV1NetworkArgs]
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    scaling_group_name str
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    vpc_id str
    The VPC ID. Changing this creates a new group.
    as_group_v1_id str
    available_zones Sequence[str]
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    cool_down_time float
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    desire_instance_number float
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    health_periodic_audit_grace_period float
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    health_periodic_audit_method str
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    health_periodic_audit_time float
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instance_terminate_policy str
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    lb_listener_id str
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaas_listeners Sequence[AsGroupV1LbaasListenerArgs]
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    max_instance_number float
    The maximum number of instances. The default value is 0.
    min_instance_number float
    The minimum number of instances. The default value is 0.
    notifications Sequence[str]
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region str
    scaling_configuration_id str
    The configuration ID which defines configurations of instances in the AS group.
    security_groups AsGroupV1SecurityGroupsArgs
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    tags Mapping[str, str]
    See Argument Reference above.
    timeouts AsGroupV1TimeoutsArgs
    deleteInstances String
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip Boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    networks List<Property Map>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    scalingGroupName String
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    vpcId String
    The VPC ID. Changing this creates a new group.
    asGroupV1Id String
    availableZones List<String>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime Number
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    desireInstanceNumber Number
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod Number
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod String
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime Number
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy String
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    lbListenerId String
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners List<Property Map>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber Number
    The maximum number of instances. The default value is 0.
    minInstanceNumber Number
    The minimum number of instances. The default value is 0.
    notifications List<String>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region String
    scalingConfigurationId String
    The configuration ID which defines configurations of instances in the AS group.
    securityGroups Property Map
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    tags Map<String>
    See Argument Reference above.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AsGroupV1 resource produces the following output properties:

    CurrentInstanceNumber double
    Indicates the number of current instances in the AS group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances List<string>
    The instances IDs of the AS group.
    Status string
    Indicates the status of the AS group.
    CurrentInstanceNumber float64
    Indicates the number of current instances in the AS group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances []string
    The instances IDs of the AS group.
    Status string
    Indicates the status of the AS group.
    currentInstanceNumber Double
    Indicates the number of current instances in the AS group.
    id String
    The provider-assigned unique ID for this managed resource.
    instances List<String>
    The instances IDs of the AS group.
    status String
    Indicates the status of the AS group.
    currentInstanceNumber number
    Indicates the number of current instances in the AS group.
    id string
    The provider-assigned unique ID for this managed resource.
    instances string[]
    The instances IDs of the AS group.
    status string
    Indicates the status of the AS group.
    current_instance_number float
    Indicates the number of current instances in the AS group.
    id str
    The provider-assigned unique ID for this managed resource.
    instances Sequence[str]
    The instances IDs of the AS group.
    status str
    Indicates the status of the AS group.
    currentInstanceNumber Number
    Indicates the number of current instances in the AS group.
    id String
    The provider-assigned unique ID for this managed resource.
    instances List<String>
    The instances IDs of the AS group.
    status String
    Indicates the status of the AS group.

    Look up Existing AsGroupV1 Resource

    Get an existing AsGroupV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AsGroupV1State, opts?: CustomResourceOptions): AsGroupV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            as_group_v1_id: Optional[str] = None,
            available_zones: Optional[Sequence[str]] = None,
            cool_down_time: Optional[float] = None,
            current_instance_number: Optional[float] = None,
            delete_instances: Optional[str] = None,
            delete_publicip: Optional[bool] = None,
            desire_instance_number: Optional[float] = None,
            health_periodic_audit_grace_period: Optional[float] = None,
            health_periodic_audit_method: Optional[str] = None,
            health_periodic_audit_time: Optional[float] = None,
            instance_terminate_policy: Optional[str] = None,
            instances: Optional[Sequence[str]] = None,
            lb_listener_id: Optional[str] = None,
            lbaas_listeners: Optional[Sequence[AsGroupV1LbaasListenerArgs]] = None,
            max_instance_number: Optional[float] = None,
            min_instance_number: Optional[float] = None,
            networks: Optional[Sequence[AsGroupV1NetworkArgs]] = None,
            notifications: Optional[Sequence[str]] = None,
            region: Optional[str] = None,
            scaling_configuration_id: Optional[str] = None,
            scaling_group_name: Optional[str] = None,
            security_groups: Optional[AsGroupV1SecurityGroupsArgs] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[AsGroupV1TimeoutsArgs] = None,
            vpc_id: Optional[str] = None) -> AsGroupV1
    func GetAsGroupV1(ctx *Context, name string, id IDInput, state *AsGroupV1State, opts ...ResourceOption) (*AsGroupV1, error)
    public static AsGroupV1 Get(string name, Input<string> id, AsGroupV1State? state, CustomResourceOptions? opts = null)
    public static AsGroupV1 get(String name, Output<String> id, AsGroupV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:AsGroupV1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AsGroupV1Id string
    AvailableZones List<string>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    CoolDownTime double
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    CurrentInstanceNumber double
    Indicates the number of current instances in the AS group.
    DeleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    DeletePublicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    DesireInstanceNumber double
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    HealthPeriodicAuditGracePeriod double
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    HealthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    HealthPeriodicAuditTime double
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    InstanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    Instances List<string>
    The instances IDs of the AS group.
    LbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    LbaasListeners List<AsGroupV1LbaasListener>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    MaxInstanceNumber double
    The maximum number of instances. The default value is 0.
    MinInstanceNumber double
    The minimum number of instances. The default value is 0.
    Networks List<AsGroupV1Network>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    Notifications List<string>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    Region string
    ScalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    ScalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    SecurityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    Status string
    Indicates the status of the AS group.
    Tags Dictionary<string, string>
    See Argument Reference above.
    Timeouts AsGroupV1Timeouts
    VpcId string
    The VPC ID. Changing this creates a new group.
    AsGroupV1Id string
    AvailableZones []string
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    CoolDownTime float64
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    CurrentInstanceNumber float64
    Indicates the number of current instances in the AS group.
    DeleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    DeletePublicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    DesireInstanceNumber float64
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    HealthPeriodicAuditGracePeriod float64
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    HealthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    HealthPeriodicAuditTime float64
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    InstanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    Instances []string
    The instances IDs of the AS group.
    LbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    LbaasListeners []AsGroupV1LbaasListenerArgs
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    MaxInstanceNumber float64
    The maximum number of instances. The default value is 0.
    MinInstanceNumber float64
    The minimum number of instances. The default value is 0.
    Networks []AsGroupV1NetworkArgs
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    Notifications []string
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    Region string
    ScalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    ScalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    SecurityGroups AsGroupV1SecurityGroupsArgs
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    Status string
    Indicates the status of the AS group.
    Tags map[string]string
    See Argument Reference above.
    Timeouts AsGroupV1TimeoutsArgs
    VpcId string
    The VPC ID. Changing this creates a new group.
    asGroupV1Id String
    availableZones List<String>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime Double
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    currentInstanceNumber Double
    Indicates the number of current instances in the AS group.
    deleteInstances String
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip Boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    desireInstanceNumber Double
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod Double
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod String
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime Double
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy String
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    instances List<String>
    The instances IDs of the AS group.
    lbListenerId String
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners List<AsGroupV1LbaasListener>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber Double
    The maximum number of instances. The default value is 0.
    minInstanceNumber Double
    The minimum number of instances. The default value is 0.
    networks List<AsGroupV1Network>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    notifications List<String>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region String
    scalingConfigurationId String
    The configuration ID which defines configurations of instances in the AS group.
    scalingGroupName String
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    securityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    status String
    Indicates the status of the AS group.
    tags Map<String,String>
    See Argument Reference above.
    timeouts AsGroupV1Timeouts
    vpcId String
    The VPC ID. Changing this creates a new group.
    asGroupV1Id string
    availableZones string[]
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime number
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    currentInstanceNumber number
    Indicates the number of current instances in the AS group.
    deleteInstances string
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    desireInstanceNumber number
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod number
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod string
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime number
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy string
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    instances string[]
    The instances IDs of the AS group.
    lbListenerId string
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners AsGroupV1LbaasListener[]
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber number
    The maximum number of instances. The default value is 0.
    minInstanceNumber number
    The minimum number of instances. The default value is 0.
    networks AsGroupV1Network[]
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    notifications string[]
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region string
    scalingConfigurationId string
    The configuration ID which defines configurations of instances in the AS group.
    scalingGroupName string
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    securityGroups AsGroupV1SecurityGroups
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    status string
    Indicates the status of the AS group.
    tags {[key: string]: string}
    See Argument Reference above.
    timeouts AsGroupV1Timeouts
    vpcId string
    The VPC ID. Changing this creates a new group.
    as_group_v1_id str
    available_zones Sequence[str]
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    cool_down_time float
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    current_instance_number float
    Indicates the number of current instances in the AS group.
    delete_instances str
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    delete_publicip bool
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    desire_instance_number float
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    health_periodic_audit_grace_period float
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    health_periodic_audit_method str
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    health_periodic_audit_time float
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instance_terminate_policy str
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    instances Sequence[str]
    The instances IDs of the AS group.
    lb_listener_id str
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaas_listeners Sequence[AsGroupV1LbaasListenerArgs]
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    max_instance_number float
    The maximum number of instances. The default value is 0.
    min_instance_number float
    The minimum number of instances. The default value is 0.
    networks Sequence[AsGroupV1NetworkArgs]
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    notifications Sequence[str]
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region str
    scaling_configuration_id str
    The configuration ID which defines configurations of instances in the AS group.
    scaling_group_name str
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    security_groups AsGroupV1SecurityGroupsArgs
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    status str
    Indicates the status of the AS group.
    tags Mapping[str, str]
    See Argument Reference above.
    timeouts AsGroupV1TimeoutsArgs
    vpc_id str
    The VPC ID. Changing this creates a new group.
    asGroupV1Id String
    availableZones List<String>
    Specifies the AZ information. The ECS associated with a scaling action will be created in a specified AZ. If you do not specify an AZ, the system automatically specifies one.
    coolDownTime Number
    The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
    currentInstanceNumber Number
    Indicates the number of current instances in the AS group.
    deleteInstances String
    Whether to delete the instances in the AS group when deleting the AS group. The options are yes and no.
    deletePublicip Boolean
    Whether to delete the elastic IP address bound to the instances of AS group when deleting the instances. The options are true and false.
    desireInstanceNumber Number
    The expected number of instances. The default value is the minimum number of instances. The value ranges from the minimum number of instances to the maximum number of instances.
    healthPeriodicAuditGracePeriod Number
    The grace period for instance health check. The unit is second and value range is 0-86400. The default value is 600. The health check grace period starts after an instance is added to an AS group and is enabled. The AS group will start checking the instance status only after the grace period ends. This parameter is valid only when the instance health check method of the AS group is ELB_AUDIT.
    healthPeriodicAuditMethod String
    The health check method for instances in the AS group. The health check methods include ELB_AUDIT and NOVA_AUDIT. If load balancing is configured, the default value of this parameter is ELB_AUDIT. Otherwise, the default value is NOVA_AUDIT.
    healthPeriodicAuditTime Number
    The health check period for instances. The value can be 1, 5, 15, 60, or 180 in the unit of minutes. If this parameter is not specified, the default value is 5. If the value is set to 0, health check is performed every 10 seconds.
    instanceTerminatePolicy String
    The instance removal policy. The policy has four options: OLD_CONFIG_OLD_INSTANCE (default), OLD_CONFIG_NEW_INSTANCE, OLD_INSTANCE, and NEW_INSTANCE.
    instances List<String>
    The instances IDs of the AS group.
    lbListenerId String
    DEPRECATED - (Optional) The Classic LB listener IDs. The system supports up to six Classic LB listeners, the IDs of which are separated using a comma (,). This parameter is alternative to lbaas_listeners.

    Deprecated: Deprecated

    lbaasListeners List<Property Map>
    An array of one or more Enhanced Load Balancer. The system supports the binding of up to six Enhanced Load Balancers. The field is alternative to lb_listener_id. The lbaas_listeners object structure is documented below.
    maxInstanceNumber Number
    The maximum number of instances. The default value is 0.
    minInstanceNumber Number
    The minimum number of instances. The default value is 0.
    networks List<Property Map>
    An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
    notifications List<String>
    The notification mode. The system only supports EMAIL mode which refers to notification by email.
    region String
    scalingConfigurationId String
    The configuration ID which defines configurations of instances in the AS group.
    scalingGroupName String
    The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    securityGroups Property Map
    An array of security group IDs to associate with the group. A maximum of one security group can be selected. The security_groups object structure is documented below.
    status String
    Indicates the status of the AS group.
    tags Map<String>
    See Argument Reference above.
    timeouts Property Map
    vpcId String
    The VPC ID. Changing this creates a new group.

    Supporting Types

    AsGroupV1LbaasListener, AsGroupV1LbaasListenerArgs

    PoolId string
    Specifies the backend ECS group ID.
    ProtocolPort double
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    Weight double
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.
    PoolId string
    Specifies the backend ECS group ID.
    ProtocolPort float64
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    Weight float64
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.
    poolId String
    Specifies the backend ECS group ID.
    protocolPort Double
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    weight Double
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.
    poolId string
    Specifies the backend ECS group ID.
    protocolPort number
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    weight number
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.
    pool_id str
    Specifies the backend ECS group ID.
    protocol_port float
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    weight float
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.
    poolId String
    Specifies the backend ECS group ID.
    protocolPort Number
    Specifies the backend protocol, which is the port on which a backend ECS listens for traffic. The number of the port ranges from 1 to 65535.
    weight Number
    Specifies the weight, which determines the portion of requests a backend ECS processes compared to other backend ECSs added to the same listener. The value of this parameter ranges from 0 to 100. The default value is 1.

    AsGroupV1Network, AsGroupV1NetworkArgs

    Id string
    The network UUID.
    Id string
    The network UUID.
    id String
    The network UUID.
    id string
    The network UUID.
    id str
    The network UUID.
    id String
    The network UUID.

    AsGroupV1SecurityGroups, AsGroupV1SecurityGroupsArgs

    Id string
    The UUID of the security group.
    Id string
    The UUID of the security group.
    id String
    The UUID of the security group.
    id string
    The UUID of the security group.
    id str
    The UUID of the security group.
    id String
    The UUID of the security group.

    AsGroupV1Timeouts, AsGroupV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud