Package com.strongdm.api
Class Resources
java.lang.Object
com.strongdm.api.Resources
- All Implemented Interfaces:
SnapshotResources
Resources are databases, servers, clusters, websites, or clouds that strongDM
delegates access to.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate registers a new Resource.Delete removes a Resource by ID.enumerateTags
(String filter, Object... args) EnumerateTags gets a list of the filter matching tags.Get reads one Resource by ID.healthcheck
(String id) Healthcheck triggers a remote healthcheck.List gets a list of Resources matching a given set of criteria.Update replaces all the fields of a Resource by ID.withDeadlineAfter
(long duration, TimeUnit units) This function returns a copy of the Resources service which has the given deadline set for all method calls.
-
Constructor Details
-
Resources
-
-
Method Details
-
withDeadlineAfter
This function returns a copy of the Resources service which has the given deadline set for all method calls. -
enumerateTags
EnumerateTags gets a list of the filter matching tags.- Throws:
RpcException
-
create
Create registers a new Resource.- Throws:
RpcException
-
get
Get reads one Resource by ID.- Specified by:
get
in interfaceSnapshotResources
- Throws:
RpcException
-
update
Update replaces all the fields of a Resource by ID.- Throws:
RpcException
-
delete
Delete removes a Resource by ID.- Throws:
RpcException
-
list
List gets a list of Resources matching a given set of criteria.- Specified by:
list
in interfaceSnapshotResources
- Throws:
RpcException
-
healthcheck
Healthcheck triggers a remote healthcheck. It may take minutes to propagate across a large network of Nodes. The call will return immediately, and the updated health of the Resource can be retrieved via Get or List.- Throws:
RpcException
-