ibm.IsInstanceGroupManagerAction
Explore with Pulumi AI
Create, update, or delete an instance group manager action on VPC. For more information, about instance group manager action, see creating an instance group for auto scaling.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: exampleIsVpc.isVpcId,
zone: "us-south-2",
ipv4CidrBlock: "10.240.64.0/28",
});
const exampleIsSshKey = new ibm.IsSshKey("exampleIsSshKey", {publicKey: "SSH_KEY"});
const exampleIsInstanceTemplate = new ibm.IsInstanceTemplate("exampleIsInstanceTemplate", {
image: ibm_is_image.example.id,
profile: "bx2-8x32",
primaryNetworkInterface: {
subnet: exampleIsSubnet.isSubnetId,
},
vpc: exampleIsVpc.isVpcId,
zone: "us-south-2",
keys: [exampleIsSshKey.isSshKeyId],
});
const exampleIsInstanceGroup = new ibm.IsInstanceGroup("exampleIsInstanceGroup", {
instanceTemplate: exampleIsInstanceTemplate.isInstanceTemplateId,
instanceCount: 2,
subnets: [exampleIsSubnet.isSubnetId],
});
const exampleIsInstanceGroupManager = new ibm.IsInstanceGroupManager("exampleIsInstanceGroupManager", {
instanceGroup: exampleIsInstanceGroup.isInstanceGroupId,
managerType: "scheduled",
enableManager: true,
});
const exampleIsInstanceGroupManagerAction = new ibm.IsInstanceGroupManagerAction("exampleIsInstanceGroupManagerAction", {
instanceGroup: exampleIsInstanceGroup.isInstanceGroupId,
instanceGroupManager: exampleIsInstanceGroupManager.managerId,
cronSpec: "*/5 1,2,3 * * *",
membershipCount: 1,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=example_is_vpc.is_vpc_id,
zone="us-south-2",
ipv4_cidr_block="10.240.64.0/28")
example_is_ssh_key = ibm.IsSshKey("exampleIsSshKey", public_key="SSH_KEY")
example_is_instance_template = ibm.IsInstanceTemplate("exampleIsInstanceTemplate",
image=ibm_is_image["example"]["id"],
profile="bx2-8x32",
primary_network_interface={
"subnet": example_is_subnet.is_subnet_id,
},
vpc=example_is_vpc.is_vpc_id,
zone="us-south-2",
keys=[example_is_ssh_key.is_ssh_key_id])
example_is_instance_group = ibm.IsInstanceGroup("exampleIsInstanceGroup",
instance_template=example_is_instance_template.is_instance_template_id,
instance_count=2,
subnets=[example_is_subnet.is_subnet_id])
example_is_instance_group_manager = ibm.IsInstanceGroupManager("exampleIsInstanceGroupManager",
instance_group=example_is_instance_group.is_instance_group_id,
manager_type="scheduled",
enable_manager=True)
example_is_instance_group_manager_action = ibm.IsInstanceGroupManagerAction("exampleIsInstanceGroupManagerAction",
instance_group=example_is_instance_group.is_instance_group_id,
instance_group_manager=example_is_instance_group_manager.manager_id,
cron_spec="*/5 1,2,3 * * *",
membership_count=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("us-south-2"),
Ipv4CidrBlock: pulumi.String("10.240.64.0/28"),
})
if err != nil {
return err
}
exampleIsSshKey, err := ibm.NewIsSshKey(ctx, "exampleIsSshKey", &ibm.IsSshKeyArgs{
PublicKey: pulumi.String("SSH_KEY"),
})
if err != nil {
return err
}
exampleIsInstanceTemplate, err := ibm.NewIsInstanceTemplate(ctx, "exampleIsInstanceTemplate", &ibm.IsInstanceTemplateArgs{
Image: pulumi.Any(ibm_is_image.Example.Id),
Profile: pulumi.String("bx2-8x32"),
PrimaryNetworkInterface: &ibm.IsInstanceTemplatePrimaryNetworkInterfaceArgs{
Subnet: exampleIsSubnet.IsSubnetId,
},
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("us-south-2"),
Keys: pulumi.StringArray{
exampleIsSshKey.IsSshKeyId,
},
})
if err != nil {
return err
}
exampleIsInstanceGroup, err := ibm.NewIsInstanceGroup(ctx, "exampleIsInstanceGroup", &ibm.IsInstanceGroupArgs{
InstanceTemplate: exampleIsInstanceTemplate.IsInstanceTemplateId,
InstanceCount: pulumi.Float64(2),
Subnets: pulumi.StringArray{
exampleIsSubnet.IsSubnetId,
},
})
if err != nil {
return err
}
exampleIsInstanceGroupManager, err := ibm.NewIsInstanceGroupManager(ctx, "exampleIsInstanceGroupManager", &ibm.IsInstanceGroupManagerArgs{
InstanceGroup: exampleIsInstanceGroup.IsInstanceGroupId,
ManagerType: pulumi.String("scheduled"),
EnableManager: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = ibm.NewIsInstanceGroupManagerAction(ctx, "exampleIsInstanceGroupManagerAction", &ibm.IsInstanceGroupManagerActionArgs{
InstanceGroup: exampleIsInstanceGroup.IsInstanceGroupId,
InstanceGroupManager: exampleIsInstanceGroupManager.ManagerId,
CronSpec: pulumi.String("*/5 1,2,3 * * *"),
MembershipCount: pulumi.Float64(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-2",
Ipv4CidrBlock = "10.240.64.0/28",
});
var exampleIsSshKey = new Ibm.IsSshKey("exampleIsSshKey", new()
{
PublicKey = "SSH_KEY",
});
var exampleIsInstanceTemplate = new Ibm.IsInstanceTemplate("exampleIsInstanceTemplate", new()
{
Image = ibm_is_image.Example.Id,
Profile = "bx2-8x32",
PrimaryNetworkInterface = new Ibm.Inputs.IsInstanceTemplatePrimaryNetworkInterfaceArgs
{
Subnet = exampleIsSubnet.IsSubnetId,
},
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-2",
Keys = new[]
{
exampleIsSshKey.IsSshKeyId,
},
});
var exampleIsInstanceGroup = new Ibm.IsInstanceGroup("exampleIsInstanceGroup", new()
{
InstanceTemplate = exampleIsInstanceTemplate.IsInstanceTemplateId,
InstanceCount = 2,
Subnets = new[]
{
exampleIsSubnet.IsSubnetId,
},
});
var exampleIsInstanceGroupManager = new Ibm.IsInstanceGroupManager("exampleIsInstanceGroupManager", new()
{
InstanceGroup = exampleIsInstanceGroup.IsInstanceGroupId,
ManagerType = "scheduled",
EnableManager = true,
});
var exampleIsInstanceGroupManagerAction = new Ibm.IsInstanceGroupManagerAction("exampleIsInstanceGroupManagerAction", new()
{
InstanceGroup = exampleIsInstanceGroup.IsInstanceGroupId,
InstanceGroupManager = exampleIsInstanceGroupManager.ManagerId,
CronSpec = "*/5 1,2,3 * * *",
MembershipCount = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsSshKey;
import com.pulumi.ibm.IsSshKeyArgs;
import com.pulumi.ibm.IsInstanceTemplate;
import com.pulumi.ibm.IsInstanceTemplateArgs;
import com.pulumi.ibm.inputs.IsInstanceTemplatePrimaryNetworkInterfaceArgs;
import com.pulumi.ibm.IsInstanceGroup;
import com.pulumi.ibm.IsInstanceGroupArgs;
import com.pulumi.ibm.IsInstanceGroupManager;
import com.pulumi.ibm.IsInstanceGroupManagerArgs;
import com.pulumi.ibm.IsInstanceGroupManagerAction;
import com.pulumi.ibm.IsInstanceGroupManagerActionArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-2")
.ipv4CidrBlock("10.240.64.0/28")
.build());
var exampleIsSshKey = new IsSshKey("exampleIsSshKey", IsSshKeyArgs.builder()
.publicKey("SSH_KEY")
.build());
var exampleIsInstanceTemplate = new IsInstanceTemplate("exampleIsInstanceTemplate", IsInstanceTemplateArgs.builder()
.image(ibm_is_image.example().id())
.profile("bx2-8x32")
.primaryNetworkInterface(IsInstanceTemplatePrimaryNetworkInterfaceArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.build())
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-2")
.keys(exampleIsSshKey.isSshKeyId())
.build());
var exampleIsInstanceGroup = new IsInstanceGroup("exampleIsInstanceGroup", IsInstanceGroupArgs.builder()
.instanceTemplate(exampleIsInstanceTemplate.isInstanceTemplateId())
.instanceCount(2)
.subnets(exampleIsSubnet.isSubnetId())
.build());
var exampleIsInstanceGroupManager = new IsInstanceGroupManager("exampleIsInstanceGroupManager", IsInstanceGroupManagerArgs.builder()
.instanceGroup(exampleIsInstanceGroup.isInstanceGroupId())
.managerType("scheduled")
.enableManager(true)
.build());
var exampleIsInstanceGroupManagerAction = new IsInstanceGroupManagerAction("exampleIsInstanceGroupManagerAction", IsInstanceGroupManagerActionArgs.builder()
.instanceGroup(exampleIsInstanceGroup.isInstanceGroupId())
.instanceGroupManager(exampleIsInstanceGroupManager.managerId())
.cronSpec("*/5 1,2,3 * * *")
.membershipCount(1)
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-2
ipv4CidrBlock: 10.240.64.0/28
exampleIsSshKey:
type: ibm:IsSshKey
properties:
publicKey: SSH_KEY
exampleIsInstanceTemplate:
type: ibm:IsInstanceTemplate
properties:
image: ${ibm_is_image.example.id}
profile: bx2-8x32
primaryNetworkInterface:
subnet: ${exampleIsSubnet.isSubnetId}
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-2
keys:
- ${exampleIsSshKey.isSshKeyId}
exampleIsInstanceGroup:
type: ibm:IsInstanceGroup
properties:
instanceTemplate: ${exampleIsInstanceTemplate.isInstanceTemplateId}
instanceCount: 2
subnets:
- ${exampleIsSubnet.isSubnetId}
exampleIsInstanceGroupManager:
type: ibm:IsInstanceGroupManager
properties:
instanceGroup: ${exampleIsInstanceGroup.isInstanceGroupId}
managerType: scheduled
enableManager: true
exampleIsInstanceGroupManagerAction:
type: ibm:IsInstanceGroupManagerAction
properties:
instanceGroup: ${exampleIsInstanceGroup.isInstanceGroupId}
instanceGroupManager: ${exampleIsInstanceGroupManager.managerId}
cronSpec: '*/5 1,2,3 * * *'
membershipCount: 1
Create IsInstanceGroupManagerAction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsInstanceGroupManagerAction(name: string, args: IsInstanceGroupManagerActionArgs, opts?: CustomResourceOptions);
@overload
def IsInstanceGroupManagerAction(resource_name: str,
args: IsInstanceGroupManagerActionInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsInstanceGroupManagerAction(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_group: Optional[str] = None,
instance_group_manager: Optional[str] = None,
cron_spec: Optional[str] = None,
is_instance_group_manager_action_id: Optional[str] = None,
max_membership_count: Optional[float] = None,
membership_count: Optional[float] = None,
min_membership_count: Optional[float] = None,
name: Optional[str] = None,
run_at: Optional[str] = None,
target_manager: Optional[str] = None,
timeouts: Optional[IsInstanceGroupManagerActionTimeoutsArgs] = None)
func NewIsInstanceGroupManagerAction(ctx *Context, name string, args IsInstanceGroupManagerActionArgs, opts ...ResourceOption) (*IsInstanceGroupManagerAction, error)
public IsInstanceGroupManagerAction(string name, IsInstanceGroupManagerActionArgs args, CustomResourceOptions? opts = null)
public IsInstanceGroupManagerAction(String name, IsInstanceGroupManagerActionArgs args)
public IsInstanceGroupManagerAction(String name, IsInstanceGroupManagerActionArgs args, CustomResourceOptions options)
type: ibm:IsInstanceGroupManagerAction
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 IsInstanceGroupManagerActionArgs
- 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 IsInstanceGroupManagerActionInitArgs
- 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 IsInstanceGroupManagerActionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsInstanceGroupManagerActionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsInstanceGroupManagerActionArgs
- 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 isInstanceGroupManagerActionResource = new Ibm.IsInstanceGroupManagerAction("isInstanceGroupManagerActionResource", new()
{
InstanceGroup = "string",
InstanceGroupManager = "string",
CronSpec = "string",
IsInstanceGroupManagerActionId = "string",
MaxMembershipCount = 0,
MembershipCount = 0,
MinMembershipCount = 0,
Name = "string",
RunAt = "string",
TargetManager = "string",
Timeouts = new Ibm.Inputs.IsInstanceGroupManagerActionTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewIsInstanceGroupManagerAction(ctx, "isInstanceGroupManagerActionResource", &ibm.IsInstanceGroupManagerActionArgs{
InstanceGroup: pulumi.String("string"),
InstanceGroupManager: pulumi.String("string"),
CronSpec: pulumi.String("string"),
IsInstanceGroupManagerActionId: pulumi.String("string"),
MaxMembershipCount: pulumi.Float64(0),
MembershipCount: pulumi.Float64(0),
MinMembershipCount: pulumi.Float64(0),
Name: pulumi.String("string"),
RunAt: pulumi.String("string"),
TargetManager: pulumi.String("string"),
Timeouts: &ibm.IsInstanceGroupManagerActionTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var isInstanceGroupManagerActionResource = new IsInstanceGroupManagerAction("isInstanceGroupManagerActionResource", IsInstanceGroupManagerActionArgs.builder()
.instanceGroup("string")
.instanceGroupManager("string")
.cronSpec("string")
.isInstanceGroupManagerActionId("string")
.maxMembershipCount(0)
.membershipCount(0)
.minMembershipCount(0)
.name("string")
.runAt("string")
.targetManager("string")
.timeouts(IsInstanceGroupManagerActionTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
is_instance_group_manager_action_resource = ibm.IsInstanceGroupManagerAction("isInstanceGroupManagerActionResource",
instance_group="string",
instance_group_manager="string",
cron_spec="string",
is_instance_group_manager_action_id="string",
max_membership_count=0,
membership_count=0,
min_membership_count=0,
name="string",
run_at="string",
target_manager="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const isInstanceGroupManagerActionResource = new ibm.IsInstanceGroupManagerAction("isInstanceGroupManagerActionResource", {
instanceGroup: "string",
instanceGroupManager: "string",
cronSpec: "string",
isInstanceGroupManagerActionId: "string",
maxMembershipCount: 0,
membershipCount: 0,
minMembershipCount: 0,
name: "string",
runAt: "string",
targetManager: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:IsInstanceGroupManagerAction
properties:
cronSpec: string
instanceGroup: string
instanceGroupManager: string
isInstanceGroupManagerActionId: string
maxMembershipCount: 0
membershipCount: 0
minMembershipCount: 0
name: string
runAt: string
targetManager: string
timeouts:
create: string
delete: string
update: string
IsInstanceGroupManagerAction 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 IsInstanceGroupManagerAction resource accepts the following input properties:
- Instance
Group string - The instance group identifier.
- Instance
Group stringManager - The instance group manager identifier of type scheduled.
- Cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- Is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- Max
Membership doubleCount - The maximum number of members the instance group should have at the scheduled time.
- Membership
Count double - The number of members the instance group should have at the scheduled time.
- Min
Membership doubleCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- Name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- Run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- Target
Manager string - The unique identifier for this instance group manager of type autoscale.
- Timeouts
Is
Instance Group Manager Action Timeouts
- Instance
Group string - The instance group identifier.
- Instance
Group stringManager - The instance group manager identifier of type scheduled.
- Cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- Is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- Max
Membership float64Count - The maximum number of members the instance group should have at the scheduled time.
- Membership
Count float64 - The number of members the instance group should have at the scheduled time.
- Min
Membership float64Count - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- Name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- Run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- Target
Manager string - The unique identifier for this instance group manager of type autoscale.
- Timeouts
Is
Instance Group Manager Action Timeouts Args
- instance
Group String - The instance group identifier.
- instance
Group StringManager - The instance group manager identifier of type scheduled.
- cron
Spec String - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- is
Instance StringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- max
Membership DoubleCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count Double - The number of members the instance group should have at the scheduled time.
- min
Membership DoubleCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name String
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- run
At String - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- target
Manager String - The unique identifier for this instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts
- instance
Group string - The instance group identifier.
- instance
Group stringManager - The instance group manager identifier of type scheduled.
- cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- max
Membership numberCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count number - The number of members the instance group should have at the scheduled time.
- min
Membership numberCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- target
Manager string - The unique identifier for this instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts
- instance_
group str - The instance group identifier.
- instance_
group_ strmanager - The instance group manager identifier of type scheduled.
- cron_
spec str - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- is_
instance_ strgroup_ manager_ action_ id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- max_
membership_ floatcount - The maximum number of members the instance group should have at the scheduled time.
- membership_
count float - The number of members the instance group should have at the scheduled time.
- min_
membership_ floatcount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name str
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- run_
at str - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- target_
manager str - The unique identifier for this instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts Args
- instance
Group String - The instance group identifier.
- instance
Group StringManager - The instance group manager identifier of type scheduled.
- cron
Spec String - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- is
Instance StringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- max
Membership NumberCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count Number - The number of members the instance group should have at the scheduled time.
- min
Membership NumberCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name String
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- run
At String - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- target
Manager String - The unique identifier for this instance group manager of type autoscale.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsInstanceGroupManagerAction resource produces the following output properties:
- Action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - Action
Type string - (String) The type of action for the instance group.
- Auto
Delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - Auto
Delete doubleTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - Created
At string - (Timestamp) The date and time that the instance group manager action was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- Next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the instance group action.
- Target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- Updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- Action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - Action
Type string - (String) The type of action for the instance group.
- Auto
Delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - Auto
Delete float64Timeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - Created
At string - (Timestamp) The date and time that the instance group manager action was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- Next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the instance group action.
- Target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- Updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id String - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type String - (String) The type of action for the instance group.
- auto
Delete Boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete DoubleTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At String - (Timestamp) The date and time that the instance group manager action was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Applied StringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- next
Run StringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the instance group action.
- target
Manager StringName - (String) The name of the instance group manager of type autoscale.
- updated
At String - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type string - (String) The type of action for the instance group.
- auto
Delete boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete numberTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At string - (Timestamp) The date and time that the instance group manager action was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type string - (String) The resource type.
- status string
- (String) The status of the instance group action.
- target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- action_
id str - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action_
type str - (String) The type of action for the instance group.
- auto_
delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto_
delete_ floattimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created_
at str - (Timestamp) The date and time that the instance group manager action was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
applied_ strat - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- next_
run_ strat - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource_
type str - (String) The resource type.
- status str
- (String) The status of the instance group action.
- target_
manager_ strname - (String) The name of the instance group manager of type autoscale.
- updated_
at str - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id String - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type String - (String) The type of action for the instance group.
- auto
Delete Boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete NumberTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At String - (Timestamp) The date and time that the instance group manager action was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Applied StringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- next
Run StringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the instance group action.
- target
Manager StringName - (String) The name of the instance group manager of type autoscale.
- updated
At String - (Timestamp) The date and time that the instance group manager action was modified.
Look up Existing IsInstanceGroupManagerAction Resource
Get an existing IsInstanceGroupManagerAction 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?: IsInstanceGroupManagerActionState, opts?: CustomResourceOptions): IsInstanceGroupManagerAction
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_id: Optional[str] = None,
action_type: Optional[str] = None,
auto_delete: Optional[bool] = None,
auto_delete_timeout: Optional[float] = None,
created_at: Optional[str] = None,
cron_spec: Optional[str] = None,
instance_group: Optional[str] = None,
instance_group_manager: Optional[str] = None,
is_instance_group_manager_action_id: Optional[str] = None,
last_applied_at: Optional[str] = None,
max_membership_count: Optional[float] = None,
membership_count: Optional[float] = None,
min_membership_count: Optional[float] = None,
name: Optional[str] = None,
next_run_at: Optional[str] = None,
resource_type: Optional[str] = None,
run_at: Optional[str] = None,
status: Optional[str] = None,
target_manager: Optional[str] = None,
target_manager_name: Optional[str] = None,
timeouts: Optional[IsInstanceGroupManagerActionTimeoutsArgs] = None,
updated_at: Optional[str] = None) -> IsInstanceGroupManagerAction
func GetIsInstanceGroupManagerAction(ctx *Context, name string, id IDInput, state *IsInstanceGroupManagerActionState, opts ...ResourceOption) (*IsInstanceGroupManagerAction, error)
public static IsInstanceGroupManagerAction Get(string name, Input<string> id, IsInstanceGroupManagerActionState? state, CustomResourceOptions? opts = null)
public static IsInstanceGroupManagerAction get(String name, Output<String> id, IsInstanceGroupManagerActionState state, CustomResourceOptions options)
resources: _: type: ibm:IsInstanceGroupManagerAction 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.
- Action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - Action
Type string - (String) The type of action for the instance group.
- Auto
Delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - Auto
Delete doubleTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - Created
At string - (Timestamp) The date and time that the instance group manager action was created.
- Cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- Instance
Group string - The instance group identifier.
- Instance
Group stringManager - The instance group manager identifier of type scheduled.
- Is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- Last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- Max
Membership doubleCount - The maximum number of members the instance group should have at the scheduled time.
- Membership
Count double - The number of members the instance group should have at the scheduled time.
- Min
Membership doubleCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- Name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- Next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- Resource
Type string - (String) The resource type.
- Run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- Status string
- (String) The status of the instance group action.
- Target
Manager string - The unique identifier for this instance group manager of type autoscale.
- Target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- Timeouts
Is
Instance Group Manager Action Timeouts - Updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- Action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - Action
Type string - (String) The type of action for the instance group.
- Auto
Delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - Auto
Delete float64Timeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - Created
At string - (Timestamp) The date and time that the instance group manager action was created.
- Cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- Instance
Group string - The instance group identifier.
- Instance
Group stringManager - The instance group manager identifier of type scheduled.
- Is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- Last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- Max
Membership float64Count - The maximum number of members the instance group should have at the scheduled time.
- Membership
Count float64 - The number of members the instance group should have at the scheduled time.
- Min
Membership float64Count - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- Name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- Next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- Resource
Type string - (String) The resource type.
- Run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- Status string
- (String) The status of the instance group action.
- Target
Manager string - The unique identifier for this instance group manager of type autoscale.
- Target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- Timeouts
Is
Instance Group Manager Action Timeouts Args - Updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id String - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type String - (String) The type of action for the instance group.
- auto
Delete Boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete DoubleTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At String - (Timestamp) The date and time that the instance group manager action was created.
- cron
Spec String - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- instance
Group String - The instance group identifier.
- instance
Group StringManager - The instance group manager identifier of type scheduled.
- is
Instance StringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- last
Applied StringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- max
Membership DoubleCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count Double - The number of members the instance group should have at the scheduled time.
- min
Membership DoubleCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name String
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- next
Run StringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type String - (String) The resource type.
- run
At String - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- status String
- (String) The status of the instance group action.
- target
Manager String - The unique identifier for this instance group manager of type autoscale.
- target
Manager StringName - (String) The name of the instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts - updated
At String - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id string - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type string - (String) The type of action for the instance group.
- auto
Delete boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete numberTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At string - (Timestamp) The date and time that the instance group manager action was created.
- cron
Spec string - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- instance
Group string - The instance group identifier.
- instance
Group stringManager - The instance group manager identifier of type scheduled.
- is
Instance stringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- last
Applied stringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- max
Membership numberCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count number - The number of members the instance group should have at the scheduled time.
- min
Membership numberCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name string
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- next
Run stringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type string - (String) The resource type.
- run
At string - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- status string
- (String) The status of the instance group action.
- target
Manager string - The unique identifier for this instance group manager of type autoscale.
- target
Manager stringName - (String) The name of the instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts - updated
At string - (Timestamp) The date and time that the instance group manager action was modified.
- action_
id str - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action_
type str - (String) The type of action for the instance group.
- auto_
delete bool - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto_
delete_ floattimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created_
at str - (Timestamp) The date and time that the instance group manager action was created.
- cron_
spec str - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- instance_
group str - The instance group identifier.
- instance_
group_ strmanager - The instance group manager identifier of type scheduled.
- is_
instance_ strgroup_ manager_ action_ id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- last_
applied_ strat - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- max_
membership_ floatcount - The maximum number of members the instance group should have at the scheduled time.
- membership_
count float - The number of members the instance group should have at the scheduled time.
- min_
membership_ floatcount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name str
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- next_
run_ strat - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource_
type str - (String) The resource type.
- run_
at str - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- status str
- (String) The status of the instance group action.
- target_
manager str - The unique identifier for this instance group manager of type autoscale.
- target_
manager_ strname - (String) The name of the instance group manager of type autoscale.
- timeouts
Is
Instance Group Manager Action Timeouts Args - updated_
at str - (Timestamp) The date and time that the instance group manager action was modified.
- action
Id String - (String) The unique identifier of the
ibm.IsInstanceGroupManagerAction
. - action
Type String - (String) The type of action for the instance group.
- auto
Delete Boolean - (Bool) If set to true, this scheduled action automatically deletes after finishing and the
auto_delete_timeout
time has passed. - auto
Delete NumberTimeout - (String) An amount of time in hours that are required to pass before the scheduled action is automatically deleted once it is finish. If this value is
0
, the action will be deleted on completion. - created
At String - (Timestamp) The date and time that the instance group manager action was created.
- cron
Spec String - The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.
- instance
Group String - The instance group identifier.
- instance
Group StringManager - The instance group manager identifier of type scheduled.
- is
Instance StringGroup Manager Action Id - (String) The combination ID of the instance group ID, instance group manager ID and instance group manager action ID.
- last
Applied StringAt - (Timestamp) The date and time the scheduled action last applied. If empty the action has never been applied.
- max
Membership NumberCount - The maximum number of members the instance group should have at the scheduled time.
- membership
Count Number - The number of members the instance group should have at the scheduled time.
- min
Membership NumberCount - The minimum number of members the instance group should have at the scheduled time. Default value is set to 1.
- name String
- The user-defined name for this instance group manager action. Names must be unique within the instance group manager.
- next
Run StringAt - (Timestamp) The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.
- resource
Type String - (String) The resource type.
- run
At String - The date and time that is specified for the scheduled action. The format is in ISO 8601 format. Example: 2024-03-05T15:31:50.701Z or 2024-03-05T15:31:50.701+8:00.
- status String
- (String) The status of the instance group action.
- target
Manager String - The unique identifier for this instance group manager of type autoscale.
- target
Manager StringName - (String) The name of the instance group manager of type autoscale.
- timeouts Property Map
- updated
At String - (Timestamp) The date and time that the instance group manager action was modified.
Supporting Types
IsInstanceGroupManagerActionTimeouts, IsInstanceGroupManagerActionTimeoutsArgs
Import
The ibm_is_instance_group_manager_action
resource can be imported by using instance group ID, instance group manager ID and instance group manager action ID.
Example
$ pulumi import ibm:index/isInstanceGroupManagerAction:IsInstanceGroupManagerAction action r006-eea6b0b7-babd-47a8-82c5-ad73d1e10bef/r006-160b9a68-58c8-4ec3-84b0-ad553ccb1e5a/r006-94d99d1d-be65-4939-9006-1a1a767245b5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.