The Query API is a HTTP-based programming interface that provides operations for managing the CloudBees services and resources.
An example implementation of this can be found here https://github.com/cloudbees/cloudbees-api-client
Deploys an application archive using the specified app_id. If the application ID does not exist, it will be created.
Note: this method uploads files, so it uses the HTTP multipart/form-data content type instead of application/form-url-encoded.
Parameters
Deletes an application
Parameters:
application.info
Returns basic information about an application (id, title, create date, status, urls)
Parameters:
Returns a list of the applications that the authenticated requestor is a member of.
Parameters: none
Redeploys the specified application using the currently active snapshot.
Parameters:
Updates the application metadata fields
Parameters:
Starts a stopped application
Parameters:
Undeploys an application from all servers, and displays a "service unavailable" message for inbound application requests.
Parameters:
Creates a new MySQL database
Parameters:
Deletes a MySQL database
Parameters:
Retrieves the basic info about a database (owner, username, password, create date, status, host, port)
Parameters:
Returns the list of databases available to the authenticated requestor.
Parameters: none
Query requests are GET or POST HTTP requests that are composed of:
a set of common parameters that must be specified in all requests (see common query parameters below)
a parameter named action (see [api:actions])
a set parameters supported by the specified action.
The HTTP endpoint for all requests is:
All Query API requests support a common set of parameters that are used to setup various aspects of the query invocation.
api_key (required) - ID assigned by CloudBees for api requests. For the 0.1 version of the API, this is your CloudBees username.
format (optional, default: xml) - the format of the result. Currently, only the xml format is supported.
sig - the authentication signature of the request. See 'Query API authentication' below to calculate this value.
sig_version (required) - the version of the signature algorithm used to sign the request (expected value: 1)
timestamp (required) - the time that the query was generated formatted as the number of seconds since Jan 1, 1970 UTC.
v (required) - the version of the api being used (expected value: 0.1)
All requests to the query API include a signature parameter which is used to validate that the request was generated by a sender that knows the secret associated with the API key. The method for creating the signature is as follows:
Whenever a query API request is received by the server, the server will calculate the signature for the request based upon this same method, using the secret associated with the api_key included in the request. If the signature sent by the client does not match the signature calculated by the server, then the request will be rejected