Methods
| Modifier and Type |
Method and Description |
AccountKeysResponse |
accountKeys(String domain,
String user,
String password) |
AccountListResponse |
accountList() |
CBUser |
addUserToAccount(CBAccount account,
CBUser user) |
ApplicationCheckSumsResponse |
applicationCheckSums(String appId) |
ApplicationCheckSumsResponse |
applicationCheckSums(String appId,
boolean traceResponse) |
ApplicationDeleteResponse |
applicationDelete(String appId) |
ApplicationDeployArchiveResponse |
applicationDeployArchive(ApplicationDeployArgs args) |
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
File earFile,
File srcFile,
String archiveType,
boolean deltaDeploy,
Map<String,String> parameters,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
File earFile,
File srcFile,
String archiveType,
boolean deltaDeploy,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
File earFile,
File srcFile,
String archiveType,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
String earFile,
String srcFile,
String archiveType,
boolean deltaDeploy,
Map<String,String> parameters,
com.cloudbees.api.UploadProgress progress)
|
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
String earFile,
String srcFile,
String archiveType,
boolean deltaDeploy,
com.cloudbees.api.UploadProgress progress)
|
ApplicationDeployArchiveResponse |
applicationDeployArchive(String appId,
String environment,
String description,
String earFile,
String srcFile,
String archiveType,
com.cloudbees.api.UploadProgress progress)
|
ApplicationDeployArchiveResponse |
applicationDeployEar(String appId,
String environment,
String description,
File earFile,
File srcFile,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployEar(String appId,
String environment,
String description,
String earFile,
String srcFile,
com.cloudbees.api.UploadProgress progress)
|
ApplicationDeployArchiveResponse |
applicationDeployWar(String appId,
String environment,
String description,
File warFile,
File srcFile,
boolean deltaDeploy,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployWar(String appId,
String environment,
String description,
File warFile,
File srcFile,
com.cloudbees.api.UploadProgress progress) |
ApplicationDeployArchiveResponse |
applicationDeployWar(String appId,
String environment,
String description,
String warFile,
String srcFile,
boolean deltaDeploy,
com.cloudbees.api.UploadProgress progress)
|
ApplicationDeployArchiveResponse |
applicationDeployWar(String appId,
String environment,
String description,
String warFile,
String srcFile,
com.cloudbees.api.UploadProgress progress)
|
ApplicationGetSourceUrlResponse |
applicationGetSourceUrl(String appId) |
ApplicationStatusResponse |
applicationHibernate(String appId) |
ApplicationInfo |
applicationInfo(String appId) |
ApplicationJarHashesResponse |
applicationJarCrcs(String appId,
Map<String,String> hashes)
Deprecated.
|
ApplicationJarHashesResponse |
applicationJarHashes(String appId,
Map<String,String> hashes) |
ApplicationListResponse |
applicationList()
Returns all the applications in all the account sthat you belong to.
|
ApplicationListResponse |
applicationList(String account)
Returns all the applications in the specified account.
|
ApplicationRestartResponse |
applicationRestart(String appId) |
ApplicationScaleResponse |
applicationScale(String appId,
int unit) |
ApplicationSetMetaResponse |
applicationSetMeta(String appId,
Map<String,String> metaAttrs) |
ApplicationSnapshotListResponse |
applicationSnapshotList(String appId) |
ApplicationStatusResponse |
applicationStart(String appId) |
ApplicationStatusResponse |
applicationStop(String appId) |
String |
call(String action,
Map<String,String> params) |
ConfigurationParametersResponse |
configurationParameters(String resourceId,
String configType) |
ConfigParameters |
configurationParametersAsObject(String resourceId,
String configType)
|
ConfigurationParametersDeleteResponse |
configurationParametersDelete(String resourceId,
String configType) |
ConfigurationParametersUpdateResponse |
configurationParametersUpdate(String resourceId,
String configType,
ConfigParameters model)
Updates the configuration of the given resource from the configuration object model.
|
ConfigurationParametersUpdateResponse |
configurationParametersUpdate(String resourceId,
String configType,
File resourceFile) |
protected String |
createParameter(Map<String,String> parameters) |
CBUser |
createUser(CBUser user)
Creates an user, including a partial user creation.
|
DatabaseCreateResponse |
databaseCreate(String domain,
String dbId,
String username,
String password) |
DatabaseDeleteResponse |
databaseDelete(String dbId) |
DatabaseInfo |
databaseInfo(String dbId,
boolean fetchPassword) |
DatabaseListResponse |
databaseList()
Returns all the databases in all the account sthat you belong to.
|
DatabaseListResponse |
databaseList(String account)
Returns all the databases in the specified account.
|
DatabaseSetPasswordResponse |
databaseSetPassword(String dbId,
String password) |
DatabaseSnapshotInfo |
databaseSnapshotCreate(String dbId,
String snapshotTitle) |
DatabaseSnapshotDeleteResponse |
databaseSnapshotDelete(String dbId,
String snapshotId) |
DatabaseSnapshotDeployResponse |
databaseSnapshotDeploy(String dbId,
String snapshotId) |
DatabaseSnapshotListResponse |
databaseSnapshotList(String dbId) |
void |
deleteUser(String id)
Deletes an user.
|
static String |
encodePassword(String password,
String version) |
CBAccount |
getAccount(String name) |
protected static ApplicationConfiguration |
getAppConfig(File deployZip,
String[] environments,
String[] implicitEnvironments) |
ApplicationConfiguration |
getApplicationConfiguration(String warFilePath,
String account,
String[] environments) |
CBUser |
getUser(String id)
Looks up the user by ID.
|
CBUser |
getUserByFingerprint(String sshPublicKeyFingerprint)
Looks up the user by the public key fingerprint
|
protected com.thoughtworks.xstream.XStream |
getXStream() |
protected <T> T |
jsonPOJORequest(String apiTail,
Object request,
Class<T> type,
String method)
The actual engine behind the REST API call.
|
HttpReply |
jsonRequest(String urlTail,
String method,
Map<String,String> headers,
String jsonContent)
Sends a request in JSON and expects a JSON response back.
|
void |
main(String[] args) |
void |
mainCall(String[] args) |
protected Object |
readResponse(String response) |
ServiceResourceBindingListResponse |
resourceBindingList(String service,
String resourceId) |
ServiceResourceBindingListResponse |
resourceBindingList(String service,
String resourceId,
boolean bidirectional) |
SayHelloResponse |
sayHello(String message) |
ServiceListResponse |
serviceList(String account) |
ServiceResourceInfo |
serviceResourceInfo(String service,
String resourceId) |
ServiceResourceListResponse |
serviceResourceList(String service,
String account,
String resourceType) |
ServiceSubscriptionInfo |
serviceSubscribe(String service,
String plan,
String account,
Map<String,String> settings) |
ServiceSubscriptionInfo |
serviceSubscriptionInfo(String service,
String subscriptionId) |
ServiceSubscriptionListResponse |
serviceSubscriptionList(String account) |
ServiceSubscriptionInfo |
serviceSubscriptionUpdate(String service,
String plan,
String subscriptionId,
Map<String,String> settings) |
ServiceSubscriptionDeleteResponse |
serviceUnSubscribe(String service,
String subscriptionId) |
void |
tailLog(String appId,
String logName,
OutputStream out) |
CBUser |
updateUser(String id,
CBUser user)
Updates the user record.
|