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 Summary
Fields 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 Summary
Constructors Constructor Description ResourceController(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `ResourceController` client.
-
Method Summary
All 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.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final java.lang.String DEFAULT_SERVICE_NAME
Default service name used when configuring the `ResourceController` client.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final java.lang.String DEFAULT_SERVICE_URL
Default service endpoint URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceController
public 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 instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public 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
-
newInstance
public 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
-
listResourceInstances
public 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- theListResourceInstancesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstancesList
-
listResourceInstances
public 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
-
createResourceInstance
public 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- theCreateResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
getResourceInstance
public 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- theGetResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
deleteResourceInstance
public 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- theDeleteResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateResourceInstance
public 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- theUpdateResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
listResourceAliasesForInstance
public 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- theListResourceAliasesForInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceAliasesList
-
listResourceKeysForInstance
public 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- theListResourceKeysForInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceKeysList
-
lockResourceInstance
public 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- theLockResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
unlockResourceInstance
public 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- theUnlockResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
cancelLastopResourceInstance
public 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- theCancelLastopResourceInstanceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceInstance
-
listResourceKeys
public 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- theListResourceKeysOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceKeysList
-
listResourceKeys
public 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
-
createResourceKey
public 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- theCreateResourceKeyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceKey
-
getResourceKey
public 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- theGetResourceKeyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceKey
-
deleteResourceKey
public 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- theDeleteResourceKeyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateResourceKey
public 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- theUpdateResourceKeyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceKey
-
listResourceBindings
public 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- theListResourceBindingsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceBindingsList
-
listResourceBindings
public 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
-
createResourceBinding
public 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- theCreateResourceBindingOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceBinding
-
getResourceBinding
public 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- theGetResourceBindingOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceBinding
-
deleteResourceBinding
public 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- theDeleteResourceBindingOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateResourceBinding
public 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- theUpdateResourceBindingOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceBinding
-
listResourceAliases
public 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- theListResourceAliasesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceAliasesList
-
listResourceAliases
public 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
-
createResourceAlias
public 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- theCreateResourceAliasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceAlias
-
getResourceAlias
public 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- theGetResourceAliasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceAlias
-
deleteResourceAlias
public 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- theDeleteResourceAliasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateResourceAlias
public 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- theUpdateResourceAliasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceAlias
-
listResourceBindingsForAlias
public 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- theListResourceBindingsForAliasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeResourceBindingsList
-
listReclamations
public 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- theListReclamationsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeReclamationsList
-
listReclamations
public 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
-
runReclamationAction
public 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- theRunReclamationActionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeReclamation
-
-