Class: Ansible::Ruby::Modules::Oneandone_server
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Oneandone_server
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb
Overview
Create, destroy, update, start, stop, and reboot a 1&1 Host server. When the server is created it can optionally wait for it to be ‘running’ before returning.
Instance Method Summary collapse
-
#api_url ⇒ Object?
Custom API URL.
-
#appliance ⇒ String?
The operating system name or ID for the server.
-
#auth_token ⇒ String
Authenticating API token provided by 1&1.
-
#auto_increment ⇒ :yes, ...
When creating multiple servers at once, whether to differentiate hostnames by appending a count after them or substituting the count where there is a %02d or %03d in the hostname string.
-
#cores_per_processor ⇒ Integer?
The number of cores per processor.
-
#count ⇒ Integer?
The number of servers to create.
-
#datacenter ⇒ :US, ...
The datacenter location.
-
#description ⇒ Object?
The description of the server.
-
#firewall_policy ⇒ Object?
The firewall policy name or ID.
-
#fixed_instance_size ⇒ :S, ...
The instance size name or ID of the server.
-
#hdds ⇒ Array<Hash>, ...
A list of hard disks with nested “size” and “is_main” properties.
-
#hostname ⇒ String?
The hostname or ID of the server.
-
#load_balancer ⇒ Object?
The load balancer name or ID.
-
#monitoring_policy ⇒ Object?
The monitoring policy name or ID.
-
#private_network ⇒ Object?
The private network name or ID.
-
#ram ⇒ Float?
The amount of RAM memory.
-
#server ⇒ String?
Server identifier (ID or hostname).
-
#server_type ⇒ :cloud, ...
The type of server to be built.
-
#ssh_key ⇒ String?
User’s public SSH key (contents, not path).
-
#state ⇒ :present, ...
Define a server’s state to create, remove, start or stop it.
-
#vcore ⇒ Integer?
The total number of processors.
-
#wait ⇒ :yes, ...
Wait for the server to be in state ‘running’ before returning.
-
#wait_interval ⇒ Integer?
Defines the number of seconds to wait when using the wait_for methods.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#api_url ⇒ Object?
Returns Custom API URL. Overrides the ONEANDONE_API_URL environement variable.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 20 attribute :api_url |
#appliance ⇒ String?
Returns The operating system name or ID for the server. It is required only for ‘present’ state.
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 34 attribute :appliance |
#auth_token ⇒ String
Returns Authenticating API token provided by 1&1. Overrides the ONEANDONE_AUTH_TOKEN environement variable.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 16 attribute :auth_token |
#auto_increment ⇒ :yes, ...
Returns When creating multiple servers at once, whether to differentiate hostnames by appending a count after them or substituting the count where there is a %02d or %03d in the hostname string.
98 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 98 attribute :auto_increment |
#cores_per_processor ⇒ Integer?
Returns The number of cores per processor. It must be provided with vcore, ram, and hdds parameters.
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 46 attribute :cores_per_processor |
#count ⇒ Integer?
Returns The number of servers to create.
74 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 74 attribute :count |
#datacenter ⇒ :US, ...
Returns The datacenter location.
23 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 23 attribute :datacenter |
#description ⇒ Object?
Returns The description of the server.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 31 attribute :description |
#firewall_policy ⇒ Object?
Returns The firewall policy name or ID.
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 61 attribute :firewall_policy |
#fixed_instance_size ⇒ :S, ...
Returns The instance size name or ID of the server. It is required only for ‘present’ state, and it is mutually exclusive with vcore, cores_per_processor, ram, and hdds parameters.
38 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 38 attribute :fixed_instance_size |
#hdds ⇒ Array<Hash>, ...
Returns A list of hard disks with nested “size” and “is_main” properties. It must be provided with vcore, cores_per_processor, and ram parameters.
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 54 attribute :hdds |
#hostname ⇒ String?
Returns The hostname or ID of the server. Only used when state is ‘present’.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 27 attribute :hostname |
#load_balancer ⇒ Object?
Returns The load balancer name or ID.
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 64 attribute :load_balancer |
#monitoring_policy ⇒ Object?
Returns The monitoring policy name or ID.
67 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 67 attribute :monitoring_policy |
#private_network ⇒ Object?
Returns The private network name or ID.
58 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 58 attribute :private_network |
#ram ⇒ Float?
Returns The amount of RAM memory. It must be provided with with vcore, cores_per_processor, and hdds parameters.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 50 attribute :ram |
#server ⇒ String?
Returns Server identifier (ID or hostname). It is required for all states except ‘running’ and ‘present’.
70 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 70 attribute :server |
#server_type ⇒ :cloud, ...
Returns The type of server to be built.
82 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 82 attribute :server_type |
#ssh_key ⇒ String?
Returns User’s public SSH key (contents, not path).
78 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 78 attribute :ssh_key |
#state ⇒ :present, ...
Returns Define a server’s state to create, remove, start or stop it.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 12 attribute :state |
#vcore ⇒ Integer?
Returns The total number of processors. It must be provided with cores_per_processor, ram, and hdds parameters.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 42 attribute :vcore |
#wait ⇒ :yes, ...
Returns Wait for the server to be in state ‘running’ before returning. Also used for delete operation (set to ‘false’ if you don’t want to wait for each individual server to be deleted before moving on with other tasks.).
86 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 86 attribute :wait |
#wait_interval ⇒ Integer?
Returns Defines the number of seconds to wait when using the wait_for methods.
94 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 94 attribute :wait_interval |
#wait_timeout ⇒ Integer?
Returns how long before wait gives up, in seconds.
90 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_server.rb', line 90 attribute :wait_timeout |