VM Autoscaling Group
vm_autoscaling_group
Example Syntax
name: Create VM Autoscaling Group
ionoscloudsdk.ionoscloud.vm_autoscaling_group:
datacenter: 'AnsibleVMAutoscaling'
name: 'AnsibleVMAutoscalingGroup'
max_replica_count: '5'
min_replica_count: '1'
metric: 'INSTANCE_CPU_UTILIZATION_AVERAGE'
range: 'PT24H'
unit: 'PER_HOUR'
scale_in_threshold: '33'
scale_out_threshold: '77'
scale_in_action: '{'amount': 1, 'amount_type': 'ABSOLUTE', 'cooldown_period': 'PT5M', 'termination_policy': 'RANDOM', 'delete_volumes': True}'
scale_out_action: '{'amount': 1, 'amount_type': 'ABSOLUTE', 'cooldown_period': 'PT5M'}'
availability_zone: 'AUTO'
cores: '2'
cpu_family: 'INTEL_XEON'
ram: '1024'
nics: '[{'lan': 1, 'name': 'SDK_TEST_NIC1', 'dhcp': True}, {'lan': 1, 'name': 'SDK_TEST_NIC2', 'dhcp': False}]'
volumes: '[{'image': '0ede69ec-eeab-11ef-8fa7-aee9942a25aa', 'image_password': 'test12345', 'name': 'SDK_TEST_VOLUME', 'size': 50, 'type': 'HDD', 'bus': 'IDE', 'boot_order': 'AUTO'}]'
register: vm_autoscaling_group_response
name: Update VM Ausocaling Group
ionoscloudsdk.ionoscloud.vm_autoscaling_group:
vm_autoscaling_group: ''
datacenter: 'AnsibleVMAutoscalingUpdate'
name: 'AnsibleVMAutoscalingGroupUPDATED'
max_replica_count: '1'
min_replica_count: '0'
metric: 'INSTANCE_NETWORK_IN_BYTES'
range: 'PT12H'
unit: 'PER_MINUTE'
scale_in_threshold: '30'
scale_out_threshold: '86'
scale_in_action: '{'amount': 50, 'amount_type': 'PERCENTAGE', 'cooldown_period': 'PT10M', 'termination_policy': 'RANDOM', 'delete_volumes': False}'
scale_out_action: '{'amount': 2, 'amount_type': 'ABSOLUTE', 'cooldown_period': 'PT15M'}'
availability_zone: 'AUTO'
cores: '1'
cpu_family: 'INTEL_SKYLAKE'
ram: '2048'
nics: '[{'lan': 1, 'name': 'SDK_TEST_NIC1', 'dhcp': True, 'firewall_active': True, 'firewall_rules': [{'name': 'test2', 'protocol': 'TCP', 'port_range_end': 12}]}]'
volumes: '[{'image': 'b5548883-108b-11f0-8ffe-266d89ffd7f8', 'image_password': 'test12345', 'name': 'SDK_TEST_VOLUME_UPDATE', 'size': 75, 'type': 'SSD', 'bus': 'IDE', 'boot_order': 'AUTO'}]'
do_not_replace: false
state: update
register: vm_autoscaling_group_response
name: Remove VM Ausocaling Group
ionoscloudsdk.ionoscloud.vm_autoscaling_group:
vm_autoscaling_group: 'AnsibleVMAutoscalingGroup'
state: absent
register: vm_autoscaling_group_response
Returned object
For more examples please check out the tests here.
Parameters that can trigger a resource replacement:
state: present
Available parameters for state present:
Name
Required
Description
state: absent
Available parameters for state absent:
Name
Required
Description
state: update
Available parameters for state update:
Name
Required
Description
Last updated
