Flows
- Setup/Prepare GoGrid signature
- Generic API call
- Get server rams list
- Get unassigned public IP
- Get public image list
- Add server
Setup/Prepare GoGrid signature
Each GoGrid API call needs to include a signature with a secret personal API Key and a current time stamp, all encoded with MD5. This flow prepares the signature to be used in calls and is generaly used in the generic API call flow.
Generic API call
This is the basis for most of the other flows in this application component. The flow expects two parameters to be set prior to its execution; ApiCall and ApiCallParameters. ApiCall denotes the end part of the API URI. For example, when retrieving a list of IP addresses the ApiCall parameter will be set to grid/ip/list. The ApiCallParameters parameter is a string of URL parameters that gets added to the end of the API call. For example: ip.state=Unassigned&ip.type=Public.
Get server rams list
This flow uses the base flows and actions described above to make an API call and retrieve a list of RAM names that is needed when adding a new server. Most of the other task specific flows follow the same logic. First the ApiCall and ApiCallParameters parameters are set by overriding base actions Set parameter ApiCall and Set parameter ApiCallParameters. Then the Generic API call flow is called and the response is parsed by using another generic action Generic Xpath that retrieves the desired values and adds them to the ServerRams array parameter.
Get unassigned public IP
When a new server instance is added to the GoGrid cloud, it must have a unique and public IP address. This flow fetches the list of available IP addresses and attaches one of them to the UnassignedIpAddress parameter.
Get public image list
Retrieves the list of available public images and stores them in the Images array parameter.
Add server
This flow, that adds a new server instance to the GoGrid cloud, really sums up all the other flows' usage examples. First retrieving the IPs, image list, and RAM types, the user is requested to choose the desired values that are then used in the final API call to create the new server.



[...] the other day and quickly put together another Application Component Library especially for GoGrid. Here you can find half a dozen out-of-the-box workflows for managing operations via their API. Of course [...]