docs/reference.md in profitbricks-sdk-ruby-1.0.3 vs docs/reference.md in profitbricks-sdk-ruby-1.0.4
- old
+ new
@@ -68,10 +68,18 @@
Create a server:
datacenter = Datacenter.get(datacenter_id)
server = datacenter.create_server(name: "server1", cores: 2, ram: 4096)
+Create a composite server:
+
+ volumes = [ { name: "server2-os", size: 10, image: "4dc4585c-505a-11e5-bfc6-52540066fee9", bus: "VIRTIO", imagePassword: "secretpassword" }, { name: "server2-data", size: 5, bus: "VIRTIO", licenceType: "UNKNOWN" } ]
+ fwrules = [ { name: "SSH", protocol: "TCP", portRangeStart: 22, portRangeEnd: 22 } ]
+ nics = [ { name: "public", lan: 1, firewallrules: fwrules }, { name: "private", lan: 2 } ]
+
+ server = datacenter.create_server(name: "server2", cores: 1, ram: 1024, volumes: volumes, nics: nics)
+
Update a server:
server.update(description: "My Server", cores: 4)
Remove a server:
@@ -371,6 +379,6 @@
request = Request.get(request_id)
Retrieve status of a request:
- request.status
\ No newline at end of file
+ request.status