Interface CloudControllerClient
-
- All Known Implementing Classes:
CloudControllerClientImpl
public interface CloudControllerClientThe interface defining operations making up the Cloud Foundry Java client's API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDomain(String domainName)Add a private domain in the current organization.voidaddRoute(String host, String domainName, String path)Register a new route to the a domain.CloudPackageasyncUploadApplication(String applicationName, Path file)CloudPackageasyncUploadApplication(String applicationName, Path file, UploadStatusCallback callback)voidbindDropletToApp(UUID dropletGuid, UUID applicationGuid)Optional<String>bindServiceInstance(String applicationName, String serviceInstanceName)Associate (provision) a service with an application.Optional<String>bindServiceInstance(String applicationName, String serviceInstanceName, Map<String,Object> parameters, ApplicationServicesUpdateCallback updateServicesCallback)Associate (provision) a service with an application.CloudTaskcancelTask(UUID taskGuid)Cancel the given task.CloudServiceKeycreateAndFetchServiceKey(CloudServiceKey keyModel, String serviceInstanceName)voidcreateApplication(ApplicationToCreateDto applicationToCreateDto)Create applicationCloudBuildcreateBuild(UUID packageGuid)CloudPackagecreateDockerPackage(UUID applicationGuid, DockerInfo dockerInfo)StringcreateServiceBroker(CloudServiceBroker serviceBroker)Create a service broker.voidcreateServiceInstance(CloudServiceInstance serviceInstance)Create a service instance.Optional<String>createServiceKey(CloudServiceKey keyModel, String serviceInstanceName)Optional<String>createServiceKey(String serviceInstanceName, String serviceKeyName, Map<String,Object> parameters)Create a service key.voidcreateUserProvidedServiceInstance(CloudServiceInstance serviceInstance)Create a user-provided service instance.voiddeleteApplication(String applicationName)Delete application.voiddeleteDomain(String domainName)Delete a private domain in the current organization.voiddeleteOrphanedRoutes()Delete routes that do not have any application which is assigned to them.voiddeleteRoute(String host, String domainName, String path)Delete a registered route from the space of the current session.Optional<String>deleteServiceBinding(String serviceInstanceName, String serviceKeyName)Delete a service binding.Optional<String>deleteServiceBinding(UUID bindingGuid)Delete a service binding.Optional<String>deleteServiceBinding(UUID bindingGuid, ServiceBindingOperationCallback serviceBindingOperationCallback)Delete a service binding.StringdeleteServiceBroker(String name)Delete a service broker.voiddeleteServiceInstance(CloudServiceInstance serviceInstance)voiddeleteServiceInstance(String serviceInstance)Delete cloud service instance.List<CloudServiceBinding>getAppBindings(UUID applicationGuid)Get the bindings for a particular application.CloudApplicationgetApplication(String applicationName)Get cloud application with the specified name.CloudApplicationgetApplication(String applicationName, boolean required)Get cloud application with the specified name.Map<String,String>getApplicationEnvironment(String applicationName)Get application environment variables for the app with the specified name.Map<String,String>getApplicationEnvironment(UUID applicationGuid)Get application environment variables for the app with the specified GUID.List<CloudEvent>getApplicationEvents(String applicationName)Get application events.UUIDgetApplicationGuid(String applicationName)Get the GUID of the cloud application with the specified name.InstancesInfogetApplicationInstances(CloudApplication app)Get application instances info for application.InstancesInfogetApplicationInstances(UUID applicationGuid)StringgetApplicationName(UUID applicationGuid)CloudProcessgetApplicationProcess(UUID applicationGuid)List<CloudRoute>getApplicationRoutes(UUID applicationGuid)List<CloudApplication>getApplications()Get all applications in the currently targeted space.List<CloudApplication>getApplicationsByMetadataLabelSelector(String labelSelector)booleangetApplicationSshEnabled(UUID applicationGuid)CloudAsyncJobgetAsyncJob(String jobId)CloudBuildgetBuild(UUID buildGuid)List<CloudBuild>getBuildsForApplication(UUID applicationGuid)List<CloudBuild>getBuildsForPackage(UUID packageGuid)DropletInfogetCurrentDropletForApplication(UUID applicationGuid)CloudDomaingetDefaultDomain()Gets the default domain for the current org, which is the first shared domain.List<CloudDomain>getDomains()Get list of all domain shared and private domains.List<CloudDomain>getDomainsForOrganization()Get list of all domain registered for the current organization.List<CloudEvent>getEvents()Get system events.List<CloudEvent>getEventsByActee(UUID uuid)CloudPackagegetPackage(UUID packageGuid)List<CloudPackage>getPackagesForApplication(UUID applicationGuid)List<CloudDomain>getPrivateDomains()Get list of all private domains.UUIDgetRequiredServiceInstanceGuid(String serviceInstanceName)Get the GUID of a service instance.List<CloudRoute>getRoutes(String domainName)Get the info for all routes for a domain.List<CloudServiceBinding>getServiceAppBindings(UUID serviceInstanceGuid)Get the bindings for a particular service instance.CloudServiceBindinggetServiceBinding(UUID serviceBindingId)Get a service bindingCloudServiceBindinggetServiceBindingForApplication(UUID applicationId, UUID serviceInstanceGuid)Get the binding between an application and a service instance.Map<String,Object>getServiceBindingParameters(UUID guid)Get all service binding parameters.CloudServiceBrokergetServiceBroker(String name)Get a service broker.CloudServiceBrokergetServiceBroker(String name, boolean required)Get a service broker.List<CloudServiceBroker>getServiceBrokers()Get all service brokers.CloudServiceInstancegetServiceInstance(String serviceInstanceName)Get a service instance.CloudServiceInstancegetServiceInstance(String serviceInstanceName, boolean required)Get a service instance.StringgetServiceInstanceName(UUID serviceInstanceGuid)Get a service instance name.Map<String,Object>getServiceInstanceParameters(UUID guid)Get all service instance parameters.List<CloudServiceInstance>getServiceInstancesByMetadataLabelSelector(String labelSelector)List<CloudServiceInstance>getServiceInstancesWithoutAuxiliaryContentByMetadataLabelSelector(String labelSelector)List<CloudServiceInstance>getServiceInstancesWithoutAuxiliaryContentByNames(List<String> names)CloudServiceInstancegetServiceInstanceWithoutAuxiliaryContent(String serviceInstanceName)Get a service instance.CloudServiceInstancegetServiceInstanceWithoutAuxiliaryContent(String serviceInstanceName, boolean required)Get a service instance.CloudServiceKeygetServiceKey(String serviceInstanceName, String serviceKeyName)Get a service key.List<CloudServiceKey>getServiceKeys(CloudServiceInstance serviceInstance)Get service keys for a service instance.List<CloudServiceKey>getServiceKeys(String serviceInstanceName)Get service keys for a service instance.List<CloudServiceKey>getServiceKeysWithCredentials(CloudServiceInstance serviceInstance)List<CloudServiceKey>getServiceKeysWithCredentials(String serviceInstanceName)List<CloudServiceOffering>getServiceOfferings()Get all service offerings.List<CloudDomain>getSharedDomains()Get list of all shared domains.CloudStackgetStack(String name)Get a stack by name.CloudStackgetStack(String name, boolean required)Get a stack by name.List<CloudStack>getStacks()Get the list of stacks available for staging applications.CloudSpacegetTarget()CloudTaskgetTask(UUID taskGuid)List<CloudTask>getTasks(String applicationName)Get the list of one-off tasks currently known for the given application.UploadgetUploadStatus(UUID packageGuid)Map<String,Object>getUserProvidedServiceInstanceParameters(UUID guid)Get all user-provided service instance parametersSet<UserRole>getUserRolesBySpaceAndUser(UUID spaceGuid, UUID userGuid)voidrename(String applicationName, String newName)Rename an application.voidrestartApplication(String applicationName)Restart application.CloudTaskrunTask(String applicationName, CloudTask task)Run a one-off task on an application.voidstartApplication(String applicationName)Start application.voidstopApplication(String applicationName)Stop application.Optional<String>unbindServiceInstance(String applicationName, String serviceInstanceName)Un-associate (unprovision) a service from an application.Optional<String>unbindServiceInstance(String applicationName, String serviceInstanceName, ApplicationServicesUpdateCallback applicationServicesUpdateCallback)Un-associate (unprovision) a service from an application.Optional<String>unbindServiceInstance(UUID applicationGuid, UUID serviceInstanceGuid)Un-associate (unprovision) a service from an application.voidupdateApplicationDiskQuota(String applicationName, int disk)Update application disk quota.voidupdateApplicationEnv(String applicationName, Map<String,String> env)Update application env using a map where the key specifies the name of the environment variable and the value the value of the environment variable..voidupdateApplicationInstances(String applicationName, int instances)Update application instances.voidupdateApplicationMemory(String applicationName, int memory)Update application memory.voidupdateApplicationMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)voidupdateApplicationRoutes(String applicationName, Set<CloudRoute> routes)Update application Routes.voidupdateApplicationStaging(String applicationName, Staging staging)Update application staging information.voidupdateServiceBindingMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)StringupdateServiceBroker(CloudServiceBroker serviceBroker)Update a service broker (unchanged forces catalog refresh).voidupdateServiceInstanceMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)voidupdateServiceParameters(String serviceName, Map<String,Object> parameters)voidupdateServicePlan(String serviceName, String planName)voidupdateServicePlanVisibilityForBroker(String name, ServicePlanVisibility visibility)Service plans are private by default when a service broker's catalog is fetched/updated.voidupdateServiceSyslogDrainUrl(String serviceName, String syslogDrainUrl)voidupdateServiceTags(String serviceName, List<String> tags)
-
-
-
Method Detail
-
getTarget
CloudSpace getTarget()
-
addDomain
void addDomain(String domainName)
Add a private domain in the current organization.- Parameters:
domainName- the domain to add
-
addRoute
void addRoute(String host, String domainName, String path)
Register a new route to the a domain.- Parameters:
host- the host of the route to registerdomainName- the domain of the route to register
-
bindServiceInstance
Optional<String> bindServiceInstance(String applicationName, String serviceInstanceName)
Associate (provision) a service with an application.- Parameters:
applicationName- the application nameserviceInstanceName- the service instance name- Returns:
- job id for async polling if present
-
bindServiceInstance
Optional<String> bindServiceInstance(String applicationName, String serviceInstanceName, Map<String,Object> parameters, ApplicationServicesUpdateCallback updateServicesCallback)
Associate (provision) a service with an application.- Parameters:
applicationName- the application nameserviceInstanceName- the service instance nameparameters- the binding parametersupdateServicesCallback- callback used for error handling- Returns:
- job id for async polling if present
-
createApplication
void createApplication(ApplicationToCreateDto applicationToCreateDto)
Create application- Parameters:
applicationToCreateDto- the application's parameters used for its creation
-
createServiceInstance
void createServiceInstance(CloudServiceInstance serviceInstance)
Create a service instance.- Parameters:
serviceInstance- cloud service instance info
-
createServiceBroker
String createServiceBroker(CloudServiceBroker serviceBroker)
Create a service broker.- Parameters:
serviceBroker- cloud service broker info- Returns:
- job id for async poll
-
createAndFetchServiceKey
CloudServiceKey createAndFetchServiceKey(CloudServiceKey keyModel, String serviceInstanceName)
- Parameters:
keyModel- service-key cloud objectserviceInstanceName- name of related service instance- Returns:
- the service-key object populated with new guid
-
createServiceKey
Optional<String> createServiceKey(CloudServiceKey keyModel, String serviceInstanceName)
- Parameters:
keyModel- service-key cloud objectserviceInstanceName- name of related service instance- Returns:
- job id for async polling if present
-
createServiceKey
Optional<String> createServiceKey(String serviceInstanceName, String serviceKeyName, Map<String,Object> parameters)
Create a service key.- Parameters:
serviceInstanceName- name of service instanceserviceKeyName- name of service-keyparameters- parameters of service-key- Returns:
- job id for async polling if present
-
createUserProvidedServiceInstance
void createUserProvidedServiceInstance(CloudServiceInstance serviceInstance)
Create a user-provided service instance.- Parameters:
serviceInstance- cloud service instance info
-
deleteApplication
void deleteApplication(String applicationName)
Delete application.- Parameters:
applicationName- name of application
-
deleteDomain
void deleteDomain(String domainName)
Delete a private domain in the current organization.- Parameters:
domainName- the domain to delete
-
deleteOrphanedRoutes
void deleteOrphanedRoutes()
Delete routes that do not have any application which is assigned to them.
-
deleteRoute
void deleteRoute(String host, String domainName, String path)
Delete a registered route from the space of the current session.- Parameters:
host- the host of the route to deletedomainName- the domain of the route to delete
-
deleteServiceInstance
void deleteServiceInstance(String serviceInstance)
Delete cloud service instance.- Parameters:
serviceInstance- name of service instance
-
deleteServiceInstance
void deleteServiceInstance(CloudServiceInstance serviceInstance)
- Parameters:
serviceInstance-CloudServiceInstance
-
deleteServiceBroker
String deleteServiceBroker(String name)
Delete a service broker.- Parameters:
name- the service broker name- Returns:
- async job id
-
getServiceBinding
CloudServiceBinding getServiceBinding(UUID serviceBindingId)
Get a service binding- Parameters:
serviceBindingId- the id of the service binding- Returns:
- the service binding
-
deleteServiceBinding
Optional<String> deleteServiceBinding(String serviceInstanceName, String serviceKeyName)
Delete a service binding.- Parameters:
serviceInstanceName- name of service instanceserviceKeyName- name of service key- Returns:
- job id for async polling if present
-
deleteServiceBinding
Optional<String> deleteServiceBinding(UUID bindingGuid, ServiceBindingOperationCallback serviceBindingOperationCallback)
Delete a service binding.- Parameters:
bindingGuid- The GUID of the bindingserviceBindingOperationCallback- callback used for error handling- Returns:
- job id for async polling if present
-
deleteServiceBinding
Optional<String> deleteServiceBinding(UUID bindingGuid)
Delete a service binding.- Parameters:
bindingGuid- The GUID of the binding- Returns:
- job id for async polling if present
-
getApplication
CloudApplication getApplication(String applicationName)
Get cloud application with the specified name.- Parameters:
applicationName- name of the app- Returns:
- the cloud application
-
getApplication
CloudApplication getApplication(String applicationName, boolean required)
Get cloud application with the specified name.- Parameters:
applicationName- name of the apprequired- if true, and organization is not found, throw an exception- Returns:
- the cloud application
-
getApplicationGuid
UUID getApplicationGuid(String applicationName)
Get the GUID of the cloud application with the specified name.- Parameters:
applicationName- name of the app- Returns:
- the cloud application's guid
-
getApplicationEnvironment
Map<String,String> getApplicationEnvironment(String applicationName)
Get application environment variables for the app with the specified name.- Parameters:
applicationName- name of the app- Returns:
- the cloud application environment variables
-
getApplicationEnvironment
Map<String,String> getApplicationEnvironment(UUID applicationGuid)
Get application environment variables for the app with the specified GUID.- Parameters:
applicationGuid- GUID of the app- Returns:
- the cloud application environment variables
-
getApplicationEvents
List<CloudEvent> getApplicationEvents(String applicationName)
Get application events.- Parameters:
applicationName- name of application- Returns:
- application events
-
getEventsByActee
List<CloudEvent> getEventsByActee(UUID uuid)
-
getApplicationInstances
InstancesInfo getApplicationInstances(CloudApplication app)
Get application instances info for application.- Parameters:
app- the application.- Returns:
- instances info
-
getApplicationInstances
InstancesInfo getApplicationInstances(UUID applicationGuid)
-
getApplicationProcess
CloudProcess getApplicationProcess(UUID applicationGuid)
-
getApplicationRoutes
List<CloudRoute> getApplicationRoutes(UUID applicationGuid)
-
getApplicationSshEnabled
boolean getApplicationSshEnabled(UUID applicationGuid)
-
getApplications
List<CloudApplication> getApplications()
Get all applications in the currently targeted space. This method has EXTREMELY poor performance for spaces with a lot of applications.- Returns:
- list of applications
-
getDefaultDomain
CloudDomain getDefaultDomain()
Gets the default domain for the current org, which is the first shared domain.- Returns:
- the default domain
-
getDomains
List<CloudDomain> getDomains()
Get list of all domain shared and private domains.- Returns:
- list of domains
-
getDomainsForOrganization
List<CloudDomain> getDomainsForOrganization()
Get list of all domain registered for the current organization.- Returns:
- list of domains
-
getEvents
List<CloudEvent> getEvents()
Get system events.- Returns:
- all system events
-
getPrivateDomains
List<CloudDomain> getPrivateDomains()
Get list of all private domains.- Returns:
- list of private domains
-
getRoutes
List<CloudRoute> getRoutes(String domainName)
Get the info for all routes for a domain.- Parameters:
domainName- the domain the routes belong to- Returns:
- list of routes
-
getServiceBroker
CloudServiceBroker getServiceBroker(String name)
Get a service broker.- Parameters:
name- the service broker name- Returns:
- the service broker
-
getServiceBroker
CloudServiceBroker getServiceBroker(String name, boolean required)
Get a service broker.- Parameters:
name- the service broker namerequired- if true, and organization is not found, throw an exception- Returns:
- the service broker
-
getServiceBrokers
List<CloudServiceBroker> getServiceBrokers()
Get all service brokers.- Returns:
- the service brokers
-
getRequiredServiceInstanceGuid
UUID getRequiredServiceInstanceGuid(String serviceInstanceName)
Get the GUID of a service instance.- Parameters:
serviceInstanceName- the name of the service instance- Returns:
- the service instance GUID
-
getServiceInstance
CloudServiceInstance getServiceInstance(String serviceInstanceName)
Get a service instance.- Parameters:
serviceInstanceName- name of the service instance- Returns:
- the service instance info
-
getServiceInstance
CloudServiceInstance getServiceInstance(String serviceInstanceName, boolean required)
Get a service instance.- Parameters:
serviceInstanceName- name of the service instancerequired- if true, and service instance is not found, throw an exception- Returns:
- the service instance info
-
getServiceInstanceName
String getServiceInstanceName(UUID serviceInstanceGuid)
Get a service instance name.- Parameters:
serviceInstanceGuid- GUID of the service instance- Returns:
- the service instance name
-
getServiceInstanceWithoutAuxiliaryContent
CloudServiceInstance getServiceInstanceWithoutAuxiliaryContent(String serviceInstanceName)
Get a service instance.- Parameters:
serviceInstanceName- name of the service instance- Returns:
- the service instance info
-
getServiceInstanceWithoutAuxiliaryContent
CloudServiceInstance getServiceInstanceWithoutAuxiliaryContent(String serviceInstanceName, boolean required)
Get a service instance.- Parameters:
serviceInstanceName- name of the service instancerequired- if true, and service instance is not found, throw an exception- Returns:
- the service instance info
-
getServiceAppBindings
List<CloudServiceBinding> getServiceAppBindings(UUID serviceInstanceGuid)
Get the bindings for a particular service instance.- Parameters:
serviceInstanceGuid- the GUID of the service instance- Returns:
- the bindings
-
getAppBindings
List<CloudServiceBinding> getAppBindings(UUID applicationGuid)
Get the bindings for a particular application.- Parameters:
applicationGuid- the GUID of the application- Returns:
- the bindings
-
getServiceBindingForApplication
CloudServiceBinding getServiceBindingForApplication(UUID applicationId, UUID serviceInstanceGuid)
Get the binding between an application and a service instance.- Parameters:
applicationId- the GUID of the applicationserviceInstanceGuid- the GUID of the service instance- Returns:
- the binding
-
getServiceInstanceParameters
Map<String,Object> getServiceInstanceParameters(UUID guid)
Get all service instance parameters.- Parameters:
guid- The service instance guid- Returns:
- service instance parameters in key-value pairs
-
getUserProvidedServiceInstanceParameters
Map<String,Object> getUserProvidedServiceInstanceParameters(UUID guid)
Get all user-provided service instance parameters- Parameters:
guid- The service instance guid- Returns:
- user-provided service instance parameters in key-value pairs
-
getServiceBindingParameters
Map<String,Object> getServiceBindingParameters(UUID guid)
Get all service binding parameters.- Parameters:
guid- The service binding guid- Returns:
- service binding parameters in key-value pairs
-
getServiceKey
CloudServiceKey getServiceKey(String serviceInstanceName, String serviceKeyName)
Get a service key.- Parameters:
serviceInstanceName- The service instance nameserviceKeyName- The service key name- Returns:
- the service key info
-
getServiceKeys
List<CloudServiceKey> getServiceKeys(String serviceInstanceName)
Get service keys for a service instance.- Parameters:
serviceInstanceName- name containing service keys- Returns:
- the service keys info
-
getServiceKeysWithCredentials
List<CloudServiceKey> getServiceKeysWithCredentials(String serviceInstanceName)
-
getServiceKeys
List<CloudServiceKey> getServiceKeys(CloudServiceInstance serviceInstance)
Get service keys for a service instance.- Parameters:
serviceInstance- instance containing service keys- Returns:
- the service keys info
-
getServiceKeysWithCredentials
List<CloudServiceKey> getServiceKeysWithCredentials(CloudServiceInstance serviceInstance)
-
getServiceOfferings
List<CloudServiceOffering> getServiceOfferings()
Get all service offerings.- Returns:
- list of service offerings
-
getSharedDomains
List<CloudDomain> getSharedDomains()
Get list of all shared domains.- Returns:
- list of shared domains
-
getStack
CloudStack getStack(String name)
Get a stack by name.- Parameters:
name- the name of the stack to get- Returns:
- the stack
-
getStack
CloudStack getStack(String name, boolean required)
Get a stack by name.- Parameters:
name- the name of the stack to getrequired- if true, and organization is not found, throw an exception- Returns:
- the stack, or null if not found
-
getStacks
List<CloudStack> getStacks()
Get the list of stacks available for staging applications.- Returns:
- the list of available stacks
-
rename
void rename(String applicationName, String newName)
Rename an application.- Parameters:
applicationName- the current namenewName- the new name
-
restartApplication
void restartApplication(String applicationName)
Restart application.- Parameters:
applicationName- name of application
-
startApplication
void startApplication(String applicationName)
Start application. May return starting info if the response obtained after the start request contains headers . If the response does not contain headers, null is returned instead.- Parameters:
applicationName- name of application
-
stopApplication
void stopApplication(String applicationName)
Stop application.- Parameters:
applicationName- name of application
-
unbindServiceInstance
Optional<String> unbindServiceInstance(String applicationName, String serviceInstanceName, ApplicationServicesUpdateCallback applicationServicesUpdateCallback)
Un-associate (unprovision) a service from an application.- Parameters:
applicationName- the application nameserviceInstanceName- the service instance nameapplicationServicesUpdateCallback- callback used for error handling- Returns:
- job id for async polling if present
-
unbindServiceInstance
Optional<String> unbindServiceInstance(String applicationName, String serviceInstanceName)
Un-associate (unprovision) a service from an application.- Parameters:
applicationName- the application nameserviceInstanceName- the service instance name- Returns:
- job id for async polling if present
-
unbindServiceInstance
Optional<String> unbindServiceInstance(UUID applicationGuid, UUID serviceInstanceGuid)
Un-associate (unprovision) a service from an application.- Parameters:
applicationGuid- the application guidserviceInstanceGuid- the service instance guid- Returns:
- job id for async polling if present
-
updateApplicationDiskQuota
void updateApplicationDiskQuota(String applicationName, int disk)
Update application disk quota.- Parameters:
applicationName- name of applicationdisk- new disk setting in MB
-
updateApplicationEnv
void updateApplicationEnv(String applicationName, Map<String,String> env)
Update application env using a map where the key specifies the name of the environment variable and the value the value of the environment variable..- Parameters:
applicationName- name of applicationenv- map of environment settings
-
updateApplicationInstances
void updateApplicationInstances(String applicationName, int instances)
Update application instances.- Parameters:
applicationName- name of applicationinstances- number of instances to use
-
updateApplicationMemory
void updateApplicationMemory(String applicationName, int memory)
Update application memory.- Parameters:
applicationName- name of applicationmemory- new memory setting in MB
-
updateApplicationStaging
void updateApplicationStaging(String applicationName, Staging staging)
Update application staging information.- Parameters:
applicationName- name of appplicationstaging- staging information for the app
-
updateApplicationRoutes
void updateApplicationRoutes(String applicationName, Set<CloudRoute> routes)
Update application Routes.- Parameters:
applicationName- name of applicationroutes- list of route summary info for the routes the app should use
-
updateServiceBroker
String updateServiceBroker(CloudServiceBroker serviceBroker)
Update a service broker (unchanged forces catalog refresh).- Parameters:
serviceBroker- cloud service broker info- Returns:
- async job id
-
updateServicePlanVisibilityForBroker
void updateServicePlanVisibilityForBroker(String name, ServicePlanVisibility visibility)
Service plans are private by default when a service broker's catalog is fetched/updated. This method will update the visibility of all plans for a broker to either public or private.- Parameters:
name- the service broker namevisibility- true for public, false for private
-
updateServiceParameters
void updateServiceParameters(String serviceName, Map<String,Object> parameters)
-
updateServiceSyslogDrainUrl
void updateServiceSyslogDrainUrl(String serviceName, String syslogDrainUrl)
-
asyncUploadApplication
CloudPackage asyncUploadApplication(String applicationName, Path file)
-
asyncUploadApplication
CloudPackage asyncUploadApplication(String applicationName, Path file, UploadStatusCallback callback)
-
getTasks
List<CloudTask> getTasks(String applicationName)
Get the list of one-off tasks currently known for the given application.- Parameters:
applicationName- the application to look for tasks- Returns:
- the list of known tasks
- Throws:
UnsupportedOperationException- if the targeted controller does not support tasks
-
runTask
CloudTask runTask(String applicationName, CloudTask task)
Run a one-off task on an application.- Parameters:
applicationName- the application to run the task ontask- the task to run- Returns:
- the ran task
- Throws:
UnsupportedOperationException- if the targeted controller does not support tasks
-
cancelTask
CloudTask cancelTask(UUID taskGuid)
Cancel the given task.- Parameters:
taskGuid- the GUID of the task to cancel- Returns:
- the cancelled task
-
createBuild
CloudBuild createBuild(UUID packageGuid)
-
getBuild
CloudBuild getBuild(UUID buildGuid)
-
getBuildsForApplication
List<CloudBuild> getBuildsForApplication(UUID applicationGuid)
-
getBuildsForPackage
List<CloudBuild> getBuildsForPackage(UUID packageGuid)
-
getApplicationsByMetadataLabelSelector
List<CloudApplication> getApplicationsByMetadataLabelSelector(String labelSelector)
-
updateApplicationMetadata
void updateApplicationMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)
-
updateServiceInstanceMetadata
void updateServiceInstanceMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)
-
updateServiceBindingMetadata
void updateServiceBindingMetadata(UUID guid, org.cloudfoundry.client.v3.Metadata metadata)
-
getServiceInstancesWithoutAuxiliaryContentByNames
List<CloudServiceInstance> getServiceInstancesWithoutAuxiliaryContentByNames(List<String> names)
-
getServiceInstancesByMetadataLabelSelector
List<CloudServiceInstance> getServiceInstancesByMetadataLabelSelector(String labelSelector)
-
getServiceInstancesWithoutAuxiliaryContentByMetadataLabelSelector
List<CloudServiceInstance> getServiceInstancesWithoutAuxiliaryContentByMetadataLabelSelector(String labelSelector)
-
getCurrentDropletForApplication
DropletInfo getCurrentDropletForApplication(UUID applicationGuid)
-
getPackage
CloudPackage getPackage(UUID packageGuid)
-
getPackagesForApplication
List<CloudPackage> getPackagesForApplication(UUID applicationGuid)
-
createDockerPackage
CloudPackage createDockerPackage(UUID applicationGuid, DockerInfo dockerInfo)
-
getAsyncJob
CloudAsyncJob getAsyncJob(String jobId)
-
-