opentelekomcloud.AsGroupV1
Explore with Pulumi AI
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:
- Delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - 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
andfalse
. - Networks
List<As
Group V1Network> - An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
- Scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Vpc
Id string - The VPC ID. Changing this creates a new group.
- As
Group stringV1Id - Available
Zones 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.
- Cool
Down doubleTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- Desire
Instance doubleNumber - 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 doubleAudit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - Health
Periodic doubleAudit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - Lb
Listener stringId - 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
. - Lbaas
Listeners List<AsGroup V1Lbaas Listener> - 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
. Thelbaas_listeners
object structure is documented below. - Max
Instance doubleNumber - The maximum number of instances. The default value is 0.
- Min
Instance doubleNumber - 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
- Scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- Security
Groups AsGroup V1Security Groups - 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. - Dictionary<string, string>
- See Argument Reference above.
- Timeouts
As
Group V1Timeouts
- Delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - 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
andfalse
. - Networks
[]As
Group V1Network Args - An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
- Scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Vpc
Id string - The VPC ID. Changing this creates a new group.
- As
Group stringV1Id - Available
Zones []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.
- Cool
Down float64Time - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- Desire
Instance float64Number - 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 float64Audit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - Health
Periodic float64Audit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - Lb
Listener stringId - 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
. - Lbaas
Listeners []AsGroup V1Lbaas Listener Args - 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
. Thelbaas_listeners
object structure is documented below. - Max
Instance float64Number - The maximum number of instances. The default value is 0.
- Min
Instance float64Number - 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
- Scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- Security
Groups AsGroup V1Security Groups Args - 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. - map[string]string
- See Argument Reference above.
- Timeouts
As
Group V1Timeouts Args
- delete
Instances String - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip Boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - networks
List<As
Group V1Network> - An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
- scaling
Group StringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- vpc
Id String - The VPC ID. Changing this creates a new group.
- as
Group StringV1Id - available
Zones 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.
- cool
Down DoubleTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- desire
Instance DoubleNumber - 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 DoubleAudit Grace Period - 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 StringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic DoubleAudit Time - 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 StringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - lb
Listener StringId - 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
. - lbaas
Listeners List<AsGroup V1Lbaas Listener> - 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
. Thelbaas_listeners
object structure is documented below. - max
Instance DoubleNumber - The maximum number of instances. The default value is 0.
- min
Instance DoubleNumber - 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
- scaling
Configuration StringId - The configuration ID which defines configurations of instances in the AS group.
- security
Groups AsGroup V1Security Groups - 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. - Map<String,String>
- See Argument Reference above.
- timeouts
As
Group V1Timeouts
- delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - networks
As
Group V1Network[] - An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
- scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- vpc
Id string - The VPC ID. Changing this creates a new group.
- as
Group stringV1Id - available
Zones 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.
- cool
Down numberTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- desire
Instance numberNumber - 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 numberAudit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic numberAudit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - lb
Listener stringId - 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
. - lbaas
Listeners AsGroup V1Lbaas Listener[] - 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
. Thelbaas_listeners
object structure is documented below. - max
Instance numberNumber - The maximum number of instances. The default value is 0.
- min
Instance numberNumber - 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
- scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- security
Groups AsGroup V1Security Groups - 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. - {[key: string]: string}
- See Argument Reference above.
- timeouts
As
Group V1Timeouts
- delete_
instances str - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - 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
andfalse
. - networks
Sequence[As
Group V1Network Args] - An array of one or more network IDs. The system supports up to five networks. The networks object structure is documented below.
- scaling_
group_ strname - 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_ strv1_ id - 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_ floattime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- desire_
instance_ floatnumber - 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_ floataudit_ grace_ period - 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_ straudit_ method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health_
periodic_ floataudit_ time - 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_ strpolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - lb_
listener_ strid - 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
. - lbaas_
listeners Sequence[AsGroup V1Lbaas Listener Args] - 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
. Thelbaas_listeners
object structure is documented below. - max_
instance_ floatnumber - The maximum number of instances. The default value is 0.
- min_
instance_ floatnumber - 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_ strid - The configuration ID which defines configurations of instances in the AS group.
- security_
groups AsGroup V1Security Groups Args - 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. - Mapping[str, str]
- See Argument Reference above.
- timeouts
As
Group V1Timeouts Args
- delete
Instances String - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip Boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - 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.
- scaling
Group StringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- vpc
Id String - The VPC ID. Changing this creates a new group.
- as
Group StringV1Id - available
Zones 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.
- cool
Down NumberTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- desire
Instance NumberNumber - 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 NumberAudit Grace Period - 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 StringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic NumberAudit Time - 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 StringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - lb
Listener StringId - 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
. - lbaas
Listeners 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
. Thelbaas_listeners
object structure is documented below. - max
Instance NumberNumber - The maximum number of instances. The default value is 0.
- min
Instance NumberNumber - 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
- scaling
Configuration StringId - The configuration ID which defines configurations of instances in the AS group.
- security
Groups 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. - 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:
- Current
Instance doubleNumber - 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.
- Current
Instance float64Number - 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 DoubleNumber - 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.
- current
Instance numberNumber - 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_ floatnumber - 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.
- current
Instance NumberNumber - 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.
- As
Group stringV1Id - Available
Zones 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.
- Cool
Down doubleTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- Current
Instance doubleNumber - Indicates the number of current instances in the AS group.
- Delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - 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
andfalse
. - Desire
Instance doubleNumber - 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 doubleAudit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - Health
Periodic doubleAudit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - Instances List<string>
- The instances IDs of the AS group.
- Lb
Listener stringId - 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
. - Lbaas
Listeners List<AsGroup V1Lbaas Listener> - 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
. Thelbaas_listeners
object structure is documented below. - Max
Instance doubleNumber - The maximum number of instances. The default value is 0.
- Min
Instance doubleNumber - The minimum number of instances. The default value is 0.
- Networks
List<As
Group V1Network> - 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
- Scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- Scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Security
Groups AsGroup V1Security Groups - 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.
- Dictionary<string, string>
- See Argument Reference above.
- Timeouts
As
Group V1Timeouts - Vpc
Id string - The VPC ID. Changing this creates a new group.
- As
Group stringV1Id - Available
Zones []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.
- Cool
Down float64Time - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- Current
Instance float64Number - Indicates the number of current instances in the AS group.
- Delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - 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
andfalse
. - Desire
Instance float64Number - 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 float64Audit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - Health
Periodic float64Audit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - Instances []string
- The instances IDs of the AS group.
- Lb
Listener stringId - 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
. - Lbaas
Listeners []AsGroup V1Lbaas Listener Args - 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
. Thelbaas_listeners
object structure is documented below. - Max
Instance float64Number - The maximum number of instances. The default value is 0.
- Min
Instance float64Number - The minimum number of instances. The default value is 0.
- Networks
[]As
Group V1Network Args - 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
- Scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- Scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Security
Groups AsGroup V1Security Groups Args - 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.
- map[string]string
- See Argument Reference above.
- Timeouts
As
Group V1Timeouts Args - Vpc
Id string - The VPC ID. Changing this creates a new group.
- as
Group StringV1Id - available
Zones 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.
- cool
Down DoubleTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- current
Instance DoubleNumber - Indicates the number of current instances in the AS group.
- delete
Instances String - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip Boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - desire
Instance DoubleNumber - 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 DoubleAudit Grace Period - 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 StringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic DoubleAudit Time - 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 StringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - instances List<String>
- The instances IDs of the AS group.
- lb
Listener StringId - 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
. - lbaas
Listeners List<AsGroup V1Lbaas Listener> - 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
. Thelbaas_listeners
object structure is documented below. - max
Instance DoubleNumber - The maximum number of instances. The default value is 0.
- min
Instance DoubleNumber - The minimum number of instances. The default value is 0.
- networks
List<As
Group V1Network> - 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
- scaling
Configuration StringId - The configuration ID which defines configurations of instances in the AS group.
- scaling
Group StringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- security
Groups AsGroup V1Security Groups - 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.
- Map<String,String>
- See Argument Reference above.
- timeouts
As
Group V1Timeouts - vpc
Id String - The VPC ID. Changing this creates a new group.
- as
Group stringV1Id - available
Zones 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.
- cool
Down numberTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- current
Instance numberNumber - Indicates the number of current instances in the AS group.
- delete
Instances string - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - desire
Instance numberNumber - 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 numberAudit Grace Period - 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 stringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic numberAudit Time - 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 stringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - instances string[]
- The instances IDs of the AS group.
- lb
Listener stringId - 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
. - lbaas
Listeners AsGroup V1Lbaas Listener[] - 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
. Thelbaas_listeners
object structure is documented below. - max
Instance numberNumber - The maximum number of instances. The default value is 0.
- min
Instance numberNumber - The minimum number of instances. The default value is 0.
- networks
As
Group V1Network[] - 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
- scaling
Configuration stringId - The configuration ID which defines configurations of instances in the AS group.
- scaling
Group stringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- security
Groups AsGroup V1Security Groups - 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.
- {[key: string]: string}
- See Argument Reference above.
- timeouts
As
Group V1Timeouts - vpc
Id string - The VPC ID. Changing this creates a new group.
- as_
group_ strv1_ id - 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_ floattime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- current_
instance_ floatnumber - 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
andno
. - 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
andfalse
. - desire_
instance_ floatnumber - 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_ floataudit_ grace_ period - 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_ straudit_ method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health_
periodic_ floataudit_ time - 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_ strpolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - instances Sequence[str]
- The instances IDs of the AS group.
- lb_
listener_ strid - 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
. - lbaas_
listeners Sequence[AsGroup V1Lbaas Listener Args] - 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
. Thelbaas_listeners
object structure is documented below. - max_
instance_ floatnumber - The maximum number of instances. The default value is 0.
- min_
instance_ floatnumber - The minimum number of instances. The default value is 0.
- networks
Sequence[As
Group V1Network Args] - 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_ strid - The configuration ID which defines configurations of instances in the AS group.
- scaling_
group_ strname - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- security_
groups AsGroup V1Security Groups Args - 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.
- Mapping[str, str]
- See Argument Reference above.
- timeouts
As
Group V1Timeouts Args - vpc_
id str - The VPC ID. Changing this creates a new group.
- as
Group StringV1Id - available
Zones 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.
- cool
Down NumberTime - The cooling duration (in seconds). The value ranges from 0 to 86400, and is 900 by default.
- current
Instance NumberNumber - Indicates the number of current instances in the AS group.
- delete
Instances String - Whether to delete the instances in the AS group
when deleting the AS group. The options are
yes
andno
. - delete
Publicip Boolean - Whether to delete the elastic IP address bound to the
instances of AS group when deleting the instances. The options are
true
andfalse
. - desire
Instance NumberNumber - 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 NumberAudit Grace Period - 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 StringAudit Method - The health check method for instances
in the AS group. The health check methods include
ELB_AUDIT
andNOVA_AUDIT
. If load balancing is configured, the default value of this parameter isELB_AUDIT
. Otherwise, the default value isNOVA_AUDIT
. - health
Periodic NumberAudit Time - 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 StringPolicy - The instance removal policy. The policy has
four options:
OLD_CONFIG_OLD_INSTANCE
(default),OLD_CONFIG_NEW_INSTANCE
,OLD_INSTANCE
, andNEW_INSTANCE
. - instances List<String>
- The instances IDs of the AS group.
- lb
Listener StringId - 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
. - lbaas
Listeners 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
. Thelbaas_listeners
object structure is documented below. - max
Instance NumberNumber - The maximum number of instances. The default value is 0.
- min
Instance NumberNumber - 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
- scaling
Configuration StringId - The configuration ID which defines configurations of instances in the AS group.
- scaling
Group StringName - The name of the scaling group. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- security
Groups 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.
- Map<String>
- See Argument Reference above.
- timeouts Property Map
- vpc
Id String - The VPC ID. Changing this creates a new group.
Supporting Types
AsGroupV1LbaasListener, AsGroupV1LbaasListenerArgs
- Pool
Id string - Specifies the backend ECS group ID.
- Protocol
Port 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.
- Pool
Id string - Specifies the backend ECS group ID.
- Protocol
Port 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.
- pool
Id String - Specifies the backend ECS group ID.
- protocol
Port 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.
- pool
Id string - Specifies the backend ECS group ID.
- protocol
Port 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.
- pool
Id String - Specifies the backend ECS group ID.
- protocol
Port 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
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.