Repository: jclouds-labs Updated Branches: refs/heads/master 35c68cd71 -> cfb4311f2
http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/cfb4311f/profitbricks-rest/src/test/resources/server/list.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/server/list.json b/profitbricks-rest/src/test/resources/server/list.json new file mode 100644 index 0000000..8851eb4 --- /dev/null +++ b/profitbricks-rest/src/test/resources/server/list.json @@ -0,0 +1,770 @@ +{ + "id": "b0ac144e-e294-415f-ba39-6737d5a9d419/servers", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers", + "items": [ + { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "docker001", + "cores": 1, + "ram": 1024, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/cdroms", + "items": [] + }, + "volumes": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "items": [ + { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + }, + { + "id": "5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "metadata": { + "createdDate": "2015-03-18T21:31:10Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Docker Registry Volume", + "type": "HDD", + "size": 50, + "image": null, + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 2 + } + } + ] + }, + "nics": { + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics", + "items": [ + { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d", + "metadata": { + "createdDate": "2015-02-09T22:46:38Z", + "createdBy": "[email protected]", + "etag": "b4854a82738079d2c7f43b5324bd92e3", + "lastModifiedDate": "2015-02-09T22:46:38Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:94:9e:f4:a9", + "ips": [ + "208.94.39.76" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/nics/01ea3bd9-047c-4941-85cf-ed6b7a2d1d7d/firewallrules", + "items": [] + } + } + } + ] + } + } + }, + { + "id": "430ccbff-e67b-43de-bfce-097e068e57ba", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba", + "metadata": { + "createdDate": "2015-04-28T13:19:42Z", + "createdBy": "[email protected]", + "etag": "1c542f43914756144e950e37f1a6f3ad", + "lastModifiedDate": "2015-04-28T13:19:42Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "dockerui001", + "cores": 1, + "ram": 1024, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": null + }, + "entities": { + "cdroms": { + "id": "430ccbff-e67b-43de-bfce-097e068e57ba/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba/cdroms", + "items": [] + }, + "volumes": { + "id": "430ccbff-e67b-43de-bfce-097e068e57ba/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba/volumes", + "items": [ + { + "id": "af473785-b791-4724-bb01-242035bf88ef", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/af473785-b791-4724-bb01-242035bf88ef", + "metadata": { + "createdDate": "2015-04-28T13:19:42Z", + "createdBy": "[email protected]", + "etag": "1c542f43914756144e950e37f1a6f3ad", + "lastModifiedDate": "2015-04-28T13:19:42Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "default-dockerui001-ul0w", + "type": "HDD", + "size": 10, + "image": "4e4e2f60-d81f-11e4-aea4-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + ] + }, + "nics": { + "id": "430ccbff-e67b-43de-bfce-097e068e57ba/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba/nics", + "items": [ + { + "id": "a41611d4-3605-4367-84aa-a7593e1ce108", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba/nics/a41611d4-3605-4367-84aa-a7593e1ce108", + "metadata": { + "createdDate": "2015-04-28T13:19:42Z", + "createdBy": "[email protected]", + "etag": "1c542f43914756144e950e37f1a6f3ad", + "lastModifiedDate": "2015-04-28T13:19:42Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:be:98:e8:0b", + "ips": [ + "162.254.25.206" + ], + "dhcp": true, + "lan": 3, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "a41611d4-3605-4367-84aa-a7593e1ce108/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/430ccbff-e67b-43de-bfce-097e068e57ba/nics/a41611d4-3605-4367-84aa-a7593e1ce108/firewallrules", + "items": [] + } + } + } + ] + } + } + }, + { + "id": "97bd33ed-b97e-4312-acc1-96f44c6e4465", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465", + "metadata": { + "createdDate": "2015-05-12T17:21:54Z", + "createdBy": "[email protected]", + "etag": "4e256e4cd927eea2337cf9b1b189c71a", + "lastModifiedDate": "2015-05-12T17:21:54Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "dockerui002", + "cores": 1, + "ram": 1024, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "dc2f35f4-7335-46f2-b30f-96e31c5ba54d", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/dc2f35f4-7335-46f2-b30f-96e31c5ba54d", + "metadata": { + "createdDate": "2015-05-12T17:20:21Z", + "createdBy": "[email protected]", + "etag": "95c6a09c3aa29672c4baf3c52abb2506", + "lastModifiedDate": "2015-05-12T17:20:21Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "default-dockerui002-6386", + "type": "HDD", + "size": 20, + "image": "c1fc45a9-efb2-11e4-9660-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "97bd33ed-b97e-4312-acc1-96f44c6e4465/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465/cdroms", + "items": [] + }, + "volumes": { + "id": "97bd33ed-b97e-4312-acc1-96f44c6e4465/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465/volumes", + "items": [ + { + "id": "dc2f35f4-7335-46f2-b30f-96e31c5ba54d", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/dc2f35f4-7335-46f2-b30f-96e31c5ba54d", + "metadata": { + "createdDate": "2015-05-12T17:20:21Z", + "createdBy": "[email protected]", + "etag": "95c6a09c3aa29672c4baf3c52abb2506", + "lastModifiedDate": "2015-05-12T17:20:21Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "default-dockerui002-6386", + "type": "HDD", + "size": 20, + "image": "c1fc45a9-efb2-11e4-9660-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + ] + }, + "nics": { + "id": "97bd33ed-b97e-4312-acc1-96f44c6e4465/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465/nics", + "items": [ + { + "id": "bf15f10d-c451-4bd9-b519-62a4bbe02a7b", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465/nics/bf15f10d-c451-4bd9-b519-62a4bbe02a7b", + "metadata": { + "createdDate": "2015-05-12T17:21:54Z", + "createdBy": "[email protected]", + "etag": "4e256e4cd927eea2337cf9b1b189c71a", + "lastModifiedDate": "2015-05-12T17:21:54Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:d9:e0:5c:b8", + "ips": [ + "208.94.38.136" + ], + "dhcp": true, + "lan": 4, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "bf15f10d-c451-4bd9-b519-62a4bbe02a7b/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/97bd33ed-b97e-4312-acc1-96f44c6e4465/nics/bf15f10d-c451-4bd9-b519-62a4bbe02a7b/firewallrules", + "items": [] + } + } + } + ] + } + } + }, + { + "id": "93e2efc3-752c-4c08-8997-e688891e53bf", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "faa67fbacb1c0e2e02cf9650657251f1", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "master 1 Server", + "cores": 2, + "ram": 2048, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "f9217444-4711-477f-83d8-24adea5d9557", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/f9217444-4711-477f-83d8-24adea5d9557", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "c4a2fde6ba91a038ff953b939cc21efe", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "master 1 Storage", + "type": "HDD", + "size": 50, + "image": "681673e7-bfc2-11e4-850c-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "93e2efc3-752c-4c08-8997-e688891e53bf/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/cdroms", + "items": [] + }, + "volumes": { + "id": "93e2efc3-752c-4c08-8997-e688891e53bf/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/volumes", + "items": [ + { + "id": "f9217444-4711-477f-83d8-24adea5d9557", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/f9217444-4711-477f-83d8-24adea5d9557", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "c4a2fde6ba91a038ff953b939cc21efe", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "master 1 Storage", + "type": "HDD", + "size": 50, + "image": "681673e7-bfc2-11e4-850c-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + ] + }, + "nics": { + "id": "93e2efc3-752c-4c08-8997-e688891e53bf/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/nics", + "items": [ + { + "id": "cf6d01d3-295d-48bd-8d07-568cce63cbbc", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/nics/cf6d01d3-295d-48bd-8d07-568cce63cbbc", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "faa67fbacb1c0e2e02cf9650657251f1", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:70:bf:d4:8e", + "ips": [ + "192.96.159.188" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "cf6d01d3-295d-48bd-8d07-568cce63cbbc/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/nics/cf6d01d3-295d-48bd-8d07-568cce63cbbc/firewallrules", + "items": [] + } + } + }, + { + "id": "f5dd8afa-2438-4270-83b4-0e55994f1e8c", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/nics/f5dd8afa-2438-4270-83b4-0e55994f1e8c", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "faa67fbacb1c0e2e02cf9650657251f1", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:37:5f:09:dc", + "ips": [ + "10.9.194.12" + ], + "dhcp": true, + "lan": 2, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "f5dd8afa-2438-4270-83b4-0e55994f1e8c/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/93e2efc3-752c-4c08-8997-e688891e53bf/nics/f5dd8afa-2438-4270-83b4-0e55994f1e8c/firewallrules", + "items": [] + } + } + } + ] + } + } + }, + { + "id": "8345c895-727f-496c-80af-1e7224b2f34e", + "type": "server", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "fe5f7398133ba0859b034b8dfe3688f2", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "node Server", + "cores": 2, + "ram": 2048, + "availabilityZone": "AUTO", + "vmState": "RUNNING", + "bootCdrom": null, + "bootVolume": { + "id": "0eea1824-8079-4c80-8e18-4e1e41a80368", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/0eea1824-8079-4c80-8e18-4e1e41a80368", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "c4a2fde6ba91a038ff953b939cc21efe", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "node Storage", + "type": "HDD", + "size": 50, + "image": "681673e7-bfc2-11e4-850c-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + }, + "entities": { + "cdroms": { + "id": "8345c895-727f-496c-80af-1e7224b2f34e/cdroms", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/cdroms", + "items": [] + }, + "volumes": { + "id": "8345c895-727f-496c-80af-1e7224b2f34e/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/volumes", + "items": [ + { + "id": "0eea1824-8079-4c80-8e18-4e1e41a80368", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/0eea1824-8079-4c80-8e18-4e1e41a80368", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "c4a2fde6ba91a038ff953b939cc21efe", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "node Storage", + "type": "HDD", + "size": 50, + "image": "681673e7-bfc2-11e4-850c-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + } + ] + }, + "nics": { + "id": "8345c895-727f-496c-80af-1e7224b2f34e/nics", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/nics", + "items": [ + { + "id": "3f0f69c0-5a09-4d0a-8737-24c1dc67e9b2", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/nics/3f0f69c0-5a09-4d0a-8737-24c1dc67e9b2", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "fe5f7398133ba0859b034b8dfe3688f2", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:f8:1f:46:fc", + "ips": [ + "10.9.194.11" + ], + "dhcp": true, + "lan": 2, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "3f0f69c0-5a09-4d0a-8737-24c1dc67e9b2/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/nics/3f0f69c0-5a09-4d0a-8737-24c1dc67e9b2/firewallrules", + "items": [] + } + } + }, + { + "id": "18e45eaa-3d48-4fa6-8bc9-c07c173a27fe", + "type": "nic", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/nics/18e45eaa-3d48-4fa6-8bc9-c07c173a27fe", + "metadata": { + "createdDate": "2015-03-18T19:00:51Z", + "createdBy": "[email protected]", + "etag": "fe5f7398133ba0859b034b8dfe3688f2", + "lastModifiedDate": "2015-03-18T19:00:51Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": null, + "mac": "02:01:61:b7:59:8a", + "ips": [ + "192.96.159.187" + ], + "dhcp": true, + "lan": 1, + "firewallActive": false + }, + "entities": { + "firewallrules": { + "id": "18e45eaa-3d48-4fa6-8bc9-c07c173a27fe/firewallrules", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/8345c895-727f-496c-80af-1e7224b2f34e/nics/18e45eaa-3d48-4fa6-8bc9-c07c173a27fe/firewallrules", + "items": [] + } + } + } + ] + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/cfb4311f/profitbricks-rest/src/test/resources/server/volume.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/server/volume.json b/profitbricks-rest/src/test/resources/server/volume.json new file mode 100644 index 0000000..22a9096 --- /dev/null +++ b/profitbricks-rest/src/test/resources/server/volume.json @@ -0,0 +1,33 @@ +{ + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/cfb4311f/profitbricks-rest/src/test/resources/server/volumes.json ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/test/resources/server/volumes.json b/profitbricks-rest/src/test/resources/server/volumes.json new file mode 100644 index 0000000..5f46881 --- /dev/null +++ b/profitbricks-rest/src/test/resources/server/volumes.json @@ -0,0 +1,73 @@ +{ + "id": "364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "type": "collection", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/servers/364f0f1c-7384-462b-8f0c-cfc4c3f6e2b2/volumes", + "items": [ + { + "id": "c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/c04a2198-7e60-4bc0-b869-6e9c9dbcb8e1", + "metadata": { + "createdDate": "2014-10-20T21:20:46Z", + "createdBy": "[email protected]", + "etag": "7a539b539d8ca9e08c5ac5e63c9c4c8f", + "lastModifiedDate": "2014-10-20T21:20:46Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Storage", + "type": "HDD", + "size": 50, + "image": "4f363db0-4955-11e4-b362-52540066fee9", + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "LINUX", + "cpuHotPlug": true, + "cpuHotUnplug": false, + "ramHotPlug": true, + "ramHotUnplug": false, + "nicHotPlug": true, + "nicHotUnplug": true, + "discVirtioHotPlug": true, + "discVirtioHotUnplug": true, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 1 + } + }, + { + "id": "5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "type": "volume", + "href": "https://api.profitbricks.com/rest/datacenters/b0ac144e-e294-415f-ba39-6737d5a9d419/volumes/5c4d37ca-d620-4546-8b24-f92e3c608c2c", + "metadata": { + "createdDate": "2015-03-18T21:31:10Z", + "createdBy": "[email protected]", + "etag": "0018832d7a7ba455db74ac41ae9f11fe", + "lastModifiedDate": "2015-03-18T21:31:10Z", + "lastModifiedBy": "[email protected]", + "state": "AVAILABLE" + }, + "properties": { + "name": "Docker Registry Volume", + "type": "HDD", + "size": 50, + "image": null, + "imagePassword": null, + "bus": "VIRTIO", + "licenceType": "OTHER", + "cpuHotPlug": false, + "cpuHotUnplug": false, + "ramHotPlug": false, + "ramHotUnplug": false, + "nicHotPlug": false, + "nicHotUnplug": false, + "discVirtioHotPlug": false, + "discVirtioHotUnplug": false, + "discScsiHotPlug": false, + "discScsiHotUnplug": false, + "deviceNumber": 2 + } + } + ] +} \ No newline at end of file
