Class ResourceController
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.platform_services.resource_controller.v2.ResourceController
 
 
- 
 public class ResourceController extends com.ibm.cloud.sdk.core.service.BaseServiceManage lifecycle of your Cloud resources using Resource Controller APIs. Resources are provisioned globally in an account scope. Supports asynchronous provisioning of resources. Enables consumption of a global resource through a Cloud Foundry space in any region. API Version: 2.0
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringDEFAULT_SERVICE_NAMEDefault service name used when configuring the `ResourceController` client.static java.lang.StringDEFAULT_SERVICE_URLDefault service endpoint URL.
 - 
Constructor SummaryConstructors Constructor Description ResourceController(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `ResourceController` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>cancelLastopResourceInstance(CancelLastopResourceInstanceOptions cancelLastopResourceInstanceOptions)Cancel the in progress last operation of the resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias>createResourceAlias(CreateResourceAliasOptions createResourceAliasOptions)Create a new resource alias.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding>createResourceBinding(CreateResourceBindingOptions createResourceBindingOptions)Create a new resource binding.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>createResourceInstance(CreateResourceInstanceOptions createResourceInstanceOptions)Create (provision) a new resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey>createResourceKey(CreateResourceKeyOptions createResourceKeyOptions)Create a new resource key.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteResourceAlias(DeleteResourceAliasOptions deleteResourceAliasOptions)Delete a resource alias.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteResourceBinding(DeleteResourceBindingOptions deleteResourceBindingOptions)Delete a resource binding.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteResourceInstance(DeleteResourceInstanceOptions deleteResourceInstanceOptions)Delete a resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteResourceKey(DeleteResourceKeyOptions deleteResourceKeyOptions)Delete a resource key.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias>getResourceAlias(GetResourceAliasOptions getResourceAliasOptions)Get a resource alias.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding>getResourceBinding(GetResourceBindingOptions getResourceBindingOptions)Get a resource binding.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>getResourceInstance(GetResourceInstanceOptions getResourceInstanceOptions)Get a resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey>getResourceKey(GetResourceKeyOptions getResourceKeyOptions)Get resource key.com.ibm.cloud.sdk.core.http.ServiceCall<ReclamationsList>listReclamations()Get a list of all reclamations.com.ibm.cloud.sdk.core.http.ServiceCall<ReclamationsList>listReclamations(ListReclamationsOptions listReclamationsOptions)Get a list of all reclamations.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList>listResourceAliases()Get a list of all resource aliases.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList>listResourceAliases(ListResourceAliasesOptions listResourceAliasesOptions)Get a list of all resource aliases.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList>listResourceAliasesForInstance(ListResourceAliasesForInstanceOptions listResourceAliasesForInstanceOptions)Get a list of all resource aliases for the instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList>listResourceBindings()Get a list of all resource bindings.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList>listResourceBindings(ListResourceBindingsOptions listResourceBindingsOptions)Get a list of all resource bindings.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList>listResourceBindingsForAlias(ListResourceBindingsForAliasOptions listResourceBindingsForAliasOptions)Get a list of all resource bindings for the alias.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstancesList>listResourceInstances()Get a list of all resource instances.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstancesList>listResourceInstances(ListResourceInstancesOptions listResourceInstancesOptions)Get a list of all resource instances.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList>listResourceKeys()Get a list of all of the resource keys.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList>listResourceKeys(ListResourceKeysOptions listResourceKeysOptions)Get a list of all of the resource keys.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList>listResourceKeysForInstance(ListResourceKeysForInstanceOptions listResourceKeysForInstanceOptions)Get a list of all the resource keys for the instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>lockResourceInstance(LockResourceInstanceOptions lockResourceInstanceOptions)Lock a resource instance.static ResourceControllernewInstance()Class method which constructs an instance of the `ResourceController` client.static ResourceControllernewInstance(java.lang.String serviceName)Class method which constructs an instance of the `ResourceController` client.com.ibm.cloud.sdk.core.http.ServiceCall<Reclamation>runReclamationAction(RunReclamationActionOptions runReclamationActionOptions)Perform a reclamation action.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>unlockResourceInstance(UnlockResourceInstanceOptions unlockResourceInstanceOptions)Unlock a resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias>updateResourceAlias(UpdateResourceAliasOptions updateResourceAliasOptions)Update a resource alias.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding>updateResourceBinding(UpdateResourceBindingOptions updateResourceBindingOptions)Update a resource binding.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance>updateResourceInstance(UpdateResourceInstanceOptions updateResourceInstanceOptions)Update a resource instance.com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey>updateResourceKey(UpdateResourceKeyOptions updateResourceKeyOptions)Update a resource key.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final java.lang.String DEFAULT_SERVICE_NAME Default service name used when configuring the `ResourceController` client.- See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final java.lang.String DEFAULT_SERVICE_URL Default service endpoint URL.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ResourceControllerpublic ResourceController(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `ResourceController` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static ResourceController newInstance() Class method which constructs an instance of the `ResourceController` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `ResourceController` client using external configuration
 
 - 
newInstancepublic static ResourceController newInstance(java.lang.String serviceName) Class method which constructs an instance of the `ResourceController` client. The specified service name is used to configure the client instance.- Parameters:
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `ResourceController` client using external configuration
 
 - 
listResourceInstancespublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstancesList> listResourceInstances(ListResourceInstancesOptions listResourceInstancesOptions) Get a list of all resource instances. View a list of all available resource instances. Resources is a broad term that could mean anything from a service instance to a virtual machine associated with the customer account.- Parameters:
- listResourceInstancesOptions- the- ListResourceInstancesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstancesList
 
 - 
listResourceInstancespublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstancesList> listResourceInstances() Get a list of all resource instances. View a list of all available resource instances. Resources is a broad term that could mean anything from a service instance to a virtual machine associated with the customer account.- Returns:
- a ServiceCallwith a result of typeResourceInstancesList
 
 - 
createResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> createResourceInstance(CreateResourceInstanceOptions createResourceInstanceOptions) Create (provision) a new resource instance. When you provision a service you get an instance of that service. An instance represents the resource with which you create, and additionally, represents a chargeable record of which billing can occur.- Parameters:
- createResourceInstanceOptions- the- CreateResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
getResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> getResourceInstance(GetResourceInstanceOptions getResourceInstanceOptions) Get a resource instance. Retrieve a resource instance by URL-encoded CRN or GUID. Find more details on a particular instance, like when it was provisioned and who provisioned it.- Parameters:
- getResourceInstanceOptions- the- GetResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
deleteResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteResourceInstance(DeleteResourceInstanceOptions deleteResourceInstanceOptions) Delete a resource instance. Delete a resource instance by URL-encoded CRN or GUID. If the resource instance has any resource keys or aliases associated with it, use the `recursive=true` parameter to delete it.- Parameters:
- deleteResourceInstanceOptions- the- DeleteResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a void result
 
 - 
updateResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> updateResourceInstance(UpdateResourceInstanceOptions updateResourceInstanceOptions) Update a resource instance. Use the resource instance URL-encoded CRN or GUID to make updates to the resource instance, like changing the name or plan.- Parameters:
- updateResourceInstanceOptions- the- UpdateResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
listResourceAliasesForInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList> listResourceAliasesForInstance(ListResourceAliasesForInstanceOptions listResourceAliasesForInstanceOptions) Get a list of all resource aliases for the instance. Retrieving a list of all resource aliases can help you find out who's using the resource instance.- Parameters:
- listResourceAliasesForInstanceOptions- the- ListResourceAliasesForInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceAliasesList
 
 - 
listResourceKeysForInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList> listResourceKeysForInstance(ListResourceKeysForInstanceOptions listResourceKeysForInstanceOptions) Get a list of all the resource keys for the instance. You may have many resource keys for one resource instance. For example, you may have a different resource key for each user or each role.- Parameters:
- listResourceKeysForInstanceOptions- the- ListResourceKeysForInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceKeysList
 
 - 
lockResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> lockResourceInstance(LockResourceInstanceOptions lockResourceInstanceOptions) Lock a resource instance. Locks a resource instance. A locked instance can not be updated or deleted. It does not affect actions performed on child resources like aliases, bindings, or keys.- Parameters:
- lockResourceInstanceOptions- the- LockResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
unlockResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> unlockResourceInstance(UnlockResourceInstanceOptions unlockResourceInstanceOptions) Unlock a resource instance. Unlock a resource instance to update or delete it. Unlocking a resource instance does not affect child resources like aliases, bindings or keys.- Parameters:
- unlockResourceInstanceOptions- the- UnlockResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
cancelLastopResourceInstancepublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceInstance> cancelLastopResourceInstance(CancelLastopResourceInstanceOptions cancelLastopResourceInstanceOptions) Cancel the in progress last operation of the resource instance. Cancel the in progress last operation of the resource instance. After successful cancellation, the resource instance is removed.- Parameters:
- cancelLastopResourceInstanceOptions- the- CancelLastopResourceInstanceOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceInstance
 
 - 
listResourceKeyspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList> listResourceKeys(ListResourceKeysOptions listResourceKeysOptions) Get a list of all of the resource keys. View all of the resource keys that exist for all of your resource instances.- Parameters:
- listResourceKeysOptions- the- ListResourceKeysOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceKeysList
 
 - 
listResourceKeyspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKeysList> listResourceKeys() Get a list of all of the resource keys. View all of the resource keys that exist for all of your resource instances.- Returns:
- a ServiceCallwith a result of typeResourceKeysList
 
 - 
createResourceKeypublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey> createResourceKey(CreateResourceKeyOptions createResourceKeyOptions) Create a new resource key. A resource key is a saved credential you can use to authenticate with a resource instance.- Parameters:
- createResourceKeyOptions- the- CreateResourceKeyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceKey
 
 - 
getResourceKeypublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey> getResourceKey(GetResourceKeyOptions getResourceKeyOptions) Get resource key. View the details of a resource key by URL-encoded CRN or GUID, like the credentials for the key and who created it.- Parameters:
- getResourceKeyOptions- the- GetResourceKeyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceKey
 
 - 
deleteResourceKeypublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteResourceKey(DeleteResourceKeyOptions deleteResourceKeyOptions) Delete a resource key. Deleting a resource key does not affect any resource instance or resource alias associated with the key.- Parameters:
- deleteResourceKeyOptions- the- DeleteResourceKeyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a void result
 
 - 
updateResourceKeypublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceKey> updateResourceKey(UpdateResourceKeyOptions updateResourceKeyOptions) Update a resource key. Use the resource key URL-encoded CRN or GUID to update the resource key.- Parameters:
- updateResourceKeyOptions- the- UpdateResourceKeyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceKey
 
 - 
listResourceBindingspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList> listResourceBindings(ListResourceBindingsOptions listResourceBindingsOptions) Get a list of all resource bindings. View all of the resource bindings that exist for all of your resource aliases.- Parameters:
- listResourceBindingsOptions- the- ListResourceBindingsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceBindingsList
 
 - 
listResourceBindingspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList> listResourceBindings() Get a list of all resource bindings. View all of the resource bindings that exist for all of your resource aliases.- Returns:
- a ServiceCallwith a result of typeResourceBindingsList
 
 - 
createResourceBindingpublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding> createResourceBinding(CreateResourceBindingOptions createResourceBindingOptions) Create a new resource binding. A resource binding connects credentials to a resource alias. The credentials are in the form of a resource key.- Parameters:
- createResourceBindingOptions- the- CreateResourceBindingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceBinding
 
 - 
getResourceBindingpublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding> getResourceBinding(GetResourceBindingOptions getResourceBindingOptions) Get a resource binding. View a resource binding and all of its details, like who created it, the credential, and the resource alias that the binding is associated with.- Parameters:
- getResourceBindingOptions- the- GetResourceBindingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceBinding
 
 - 
deleteResourceBindingpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteResourceBinding(DeleteResourceBindingOptions deleteResourceBindingOptions) Delete a resource binding. Deleting a resource binding does not affect the resource alias that the binding is associated with.- Parameters:
- deleteResourceBindingOptions- the- DeleteResourceBindingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a void result
 
 - 
updateResourceBindingpublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBinding> updateResourceBinding(UpdateResourceBindingOptions updateResourceBindingOptions) Update a resource binding. Use the resource binding URL-encoded CRN or GUID to update the resource binding.- Parameters:
- updateResourceBindingOptions- the- UpdateResourceBindingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceBinding
 
 - 
listResourceAliasespublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList> listResourceAliases(ListResourceAliasesOptions listResourceAliasesOptions) Get a list of all resource aliases. View all of the resource aliases that exist for every resource instance.- Parameters:
- listResourceAliasesOptions- the- ListResourceAliasesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceAliasesList
 
 - 
listResourceAliasespublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAliasesList> listResourceAliases() Get a list of all resource aliases. View all of the resource aliases that exist for every resource instance.- Returns:
- a ServiceCallwith a result of typeResourceAliasesList
 
 - 
createResourceAliaspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias> createResourceAlias(CreateResourceAliasOptions createResourceAliasOptions) Create a new resource alias. Alias a resource instance into a targeted environment's (name)space.- Parameters:
- createResourceAliasOptions- the- CreateResourceAliasOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceAlias
 
 - 
getResourceAliaspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias> getResourceAlias(GetResourceAliasOptions getResourceAliasOptions) Get a resource alias. View a resource alias and all of its details, like who created it and the resource instance that it's associated with.- Parameters:
- getResourceAliasOptions- the- GetResourceAliasOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceAlias
 
 - 
deleteResourceAliaspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteResourceAlias(DeleteResourceAliasOptions deleteResourceAliasOptions) Delete a resource alias. Delete a resource alias by URL-encoded CRN or GUID. If the resource alias has any resource keys or bindings associated with it, use the `recursive=true` parameter to delete it.- Parameters:
- deleteResourceAliasOptions- the- DeleteResourceAliasOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a void result
 
 - 
updateResourceAliaspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceAlias> updateResourceAlias(UpdateResourceAliasOptions updateResourceAliasOptions) Update a resource alias. Use the resource alias URL-encoded CRN or GUID to update the resource alias.- Parameters:
- updateResourceAliasOptions- the- UpdateResourceAliasOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceAlias
 
 - 
listResourceBindingsForAliaspublic com.ibm.cloud.sdk.core.http.ServiceCall<ResourceBindingsList> listResourceBindingsForAlias(ListResourceBindingsForAliasOptions listResourceBindingsForAliasOptions) Get a list of all resource bindings for the alias. View all of the resource bindings associated with a specific resource alias.- Parameters:
- listResourceBindingsForAliasOptions- the- ListResourceBindingsForAliasOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeResourceBindingsList
 
 - 
listReclamationspublic com.ibm.cloud.sdk.core.http.ServiceCall<ReclamationsList> listReclamations(ListReclamationsOptions listReclamationsOptions) Get a list of all reclamations. View all of the resource reclamations that exist for every resource instance.- Parameters:
- listReclamationsOptions- the- ListReclamationsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeReclamationsList
 
 - 
listReclamationspublic com.ibm.cloud.sdk.core.http.ServiceCall<ReclamationsList> listReclamations() Get a list of all reclamations. View all of the resource reclamations that exist for every resource instance.- Returns:
- a ServiceCallwith a result of typeReclamationsList
 
 - 
runReclamationActionpublic com.ibm.cloud.sdk.core.http.ServiceCall<Reclamation> runReclamationAction(RunReclamationActionOptions runReclamationActionOptions) Perform a reclamation action. Reclaim a resource instance so that it can no longer be used, or restore the resource instance so that it's usable again.- Parameters:
- runReclamationActionOptions- the- RunReclamationActionOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeReclamation
 
 
- 
 
-