no parent links and in total ignorance about the depth API parameter).
If there is an error, you will see an exception with the cause.įor resources that exist within the context of another resource, that other resource must also be properly instantiated and injected.įor example: to successfully operate on a network interface, the entity ( NIC) must also contain proper Server and LAN instances, while in turn the Server and LAN instances must contain a proper DataCenter instance (which needs just a valid id). all: This property implements a list operation to fetch UUIDs of existing REST resources.Īn entity must be sufficiently populated in order for the associated REST request to succeed.delete(): Delete an existing resource ( HTTP DELETE).update(): Send an update to an existing REST resource ( HTTP PUT).read(): Fetch an existing REST resource by its UUID ( HTTP GET).create(): Effectively send a resource creation REST request ( HTTP CREATE).There is essentially only one usage pattern: Create an entity, then invoke one of the CRUD methods on it: This guide will show you how to programmatically perform infrastructure management operations with it. This Groovy SDK provides a convenient way to use the ProfitBricks Cloud API from JVM based applications.