README.md in knife-profitbricks-1.0.0 vs README.md in knife-profitbricks-1.1.1

- old
+ new

@@ -109,10 +109,14 @@ ### knife profitbricks nic list List all available NICs connected to a server. +### knife profitbricks composite server create + +Creates a new composite server with attached volume and NIC in a specified data center. + ### knife profitbricks server create Creates a new server within a specified data center. ### knife profitbricks server delete @@ -171,11 +175,11 @@ knife profitbricks datacenter create --name "Production" --description "Production webserver environment" --location "us/las" Once the data center is provisioned, both a server and volume can be created. The volume will use an existing image as identified above. knife profitbricks server create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --name "Frontend Webserver" --cores 1 --ram 1024 --availability-zone ZONE_1 - knife profitbricks volume create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --name "OS Volume" --size 5 --image c4263e0f-e75e-11e4-91fd-8fa3eaae9f6b + knife profitbricks volume create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --name "OS Volume" --size 5 --type HDD --image c4263e0f-e75e-11e4-91fd-8fa3eaae9f6b --ssh-keys "ssh-rsa AAAAB3NzaC1..." The volume can then be attached to the server. knife profitbricks volume attach --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --server-id 2e438d3b-02f0-47d0-8594-4ace38ed2804 9b45f734-01ec-46ca-b163-d06c5a9d707f @@ -184,9 +188,13 @@ knife profitbricks nic create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --server-id 2e438d3b-02f0-47d0-8594-4ace38ed2804 --name "Primary NIC" --lan 1 Here is an example of adding a firewall rule to the newly created NIC. knife profitbricks firewall create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --server-id 2e438d3b-02f0-47d0-8594-4ace38ed2804 --nic-id e4270ecc-e9c5-4de0-940a-8a0a99d962fd --name "SSH" --protocol TCP --port-range-start 22 --port-range-end 22 --source-ip 203.0.113.10 + +A composite server can also be created with attached volume and NIC in a single command. + + knife profitbricks composite server create --datacenter-id ade28808-9253-4d4e-9f5d-f1f7f1038fb1 --name "Backend Database" --cores 1 --ram 8192 --size 5 --type HDD --lan 1 --image 2ead2908-df61-11e5-80a4-52540005ab80 --ssh-keys "ssh-rsa AAAAB3NzaC1..." The new data center and **all resources within that data center** can be deleted. knife profitbricks datacenter delete ade28808-9253-4d4e-9f5d-f1f7f1038fb1