Class: Ansible::Ruby::Modules::Vmware_guest_snapshot
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_guest_snapshot
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb
Overview
This module can be used to create, delete and update snapshot(s) of the given virtual machine. All parameters and VMware object names are case sensitive.
Instance Method Summary collapse
-
#datacenter ⇒ String
Destination datacenter for the deploy operation.
-
#description ⇒ String?
Define an arbitrary description to attach to snapshot.
-
#folder ⇒ String?
Destination folder, absolute or relative path to find an existing guest.,This is required parameter, if C(name) is supplied.,The folder should include the datacenter.
-
#memory_dump ⇒ Symbol?
If set to C(true), memory dump of virtual machine is also included in snapshot.,Note that memory snapshots take time and resources, this will take longer time to create.,If virtual machine does not provide capability to take memory snapshot, then this flag is set to C(false).
-
#name ⇒ String?
Name of the virtual machine to work with.,This is required parameter, if C(uuid) is not supplied.
-
#name_match ⇒ :first, ...
If multiple VMs matching the name, use the first or last found.
-
#new_description ⇒ String?
Value to change the description of an existing snapshot to.
-
#new_snapshot_name ⇒ String?
Value to rename the existing snapshot to.
-
#quiesce ⇒ Symbol?
If set to C(true) and virtual machine is powered on, it will quiesce the file system in virtual machine.,Note that VMWare Tools are required for this flag.,If virtual machine is powered off or VMware Tools are not available, then this flag is set to C(false).,If virtual machine does not provide capability to take quiesce snapshot, then this flag is set to C(false).
-
#remove_children ⇒ Symbol?
If set to C(true) and state is set to C(absent), then entire snapshot subtree is set for removal.
-
#snapshot_name ⇒ String?
Sets the snapshot name to manage.,This param is required only if state is not C(remove_all).
-
#state ⇒ :present, ...
Manage snapshot(s) attached to a specific virtual machine.,If set to C(present) and snapshot absent, then will create a new snapshot with the given name.,If set to C(present) and snapshot present, then no changes are made.,If set to C(absent) and snapshot present, then snapshot with the given name is removed.,If set to C(absent) and snapshot absent, then no changes are made.,If set to C(revert) and snapshot present, then virtual machine state is reverted to the given snapshot.,If set to C(revert) and snapshot absent, then no changes are made.,If set to C(remove_all) and snapshot(s) present, then all snapshot(s) will be removed.,If set to C(remove_all) and snapshot(s) absent, then no changes are made.
-
#uuid ⇒ Object?
UUID of the instance to manage if known, this is VMware’s unique identifier.,This is required parameter, if C(name) is not supplied.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#datacenter ⇒ String
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 32 attribute :datacenter |
#description ⇒ String?
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 40 attribute :description |
#folder ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 28 attribute :folder |
#memory_dump ⇒ Symbol?
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 48 attribute :memory_dump |
#name ⇒ String?
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 17 attribute :name |
#name_match ⇒ :first, ...
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 21 attribute :name_match |
#new_description ⇒ String?
60 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 60 attribute :new_description |
#new_snapshot_name ⇒ String?
56 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 56 attribute :new_snapshot_name |
#quiesce ⇒ Symbol?
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 44 attribute :quiesce |
#remove_children ⇒ Symbol?
52 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 52 attribute :remove_children |
#snapshot_name ⇒ String?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 36 attribute :snapshot_name |
#state ⇒ :present, ...
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 13 attribute :state |
#uuid ⇒ Object?
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_snapshot.rb', line 25 attribute :uuid |