knife
command line tool allows management of various nodes within those environments. The knife-ionoscloud
plugin utilizes the IONOS Cloud REST API to provision and manage various cloud resources on the IONOS Cloud platform.knife-ionoscloud
plugin can be installed as a gem:knife.rb
configuration file.knife.rb
which reduces the need to include the --datacenter-id [datacenter_id]
parameter for each action within the data center.knife.rb
configuration file:--extra-config EXTRA_CONFIG_FILE_PATH
or -e EXTRA_CONFIG_FILE_PATH
. The file is expected to contain a JSON which should map the name of arguments to their expected values. Here is an example of such a file.knife ionoscloud datacenter create --extra-config EXTRA_CONFIG_FILE_PATH
where EXTRA_CONFIG_FILE_PATH is the name of the file containing the JSON above, the arguments described in the file will be used.knife ionoscloud datacenter create --location us/las --extra-config EXTRA_CONFIG_FILE_PATH
will create a datacenter in the 'us/las' location. In the same way if the values for ionoscloud_username and ionoscloud_password are already set in the knife.rb file, the contents from the JSON will be ignored.--url NEW_URL
ionoscloud_url
key, and passing the file to the command like described in the section above