public interface ArtifactsBundleClient extends SearchableResource<ArtifactsBundle>, CreatableResource<CreateArtifactsBundle>, DeletableResource
Modifier and Type | Interface and Description |
---|---|
static class |
ArtifactsBundleClient.ExtractBundleRequestInterceptor |
SearchableResource.GetByNameRequestInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACTS_BUNDLE_ARCHIVE_URI |
static String |
ARTIFACTS_BUNDLE_BACKUPS_URI |
static String |
ARTIFACTS_BUNDLE_DOWNLOAD_URI |
static String |
ARTIFACTS_BUNDLE_STOP_ARTIFACT_CREATE_URI |
static String |
ARTIFACTS_BUNDLE_URI |
Modifier and Type | Method and Description |
---|---|
TaskResource |
create(File file,
RequestOption... options)
Creates an artifact bundle according to the provided
file object. |
TaskResource |
createBackupArchiveBundle(File file,
String deploymentGrpUri,
RequestOption... options)
Uploads a backup bundle from a local drive and extract all the artifacts present in the uploaded file.
|
TaskResource |
createBackupBundle(UserBackupParams userBackupParams,
RequestOption... options)
Creates a backup bundle with all the artifacts present on the appliance.
|
String |
downloadBackupArchiveBundle(String resourceId,
RequestOption... options)
Downloads the backup archive bundle identified by the provided
resourceId . |
String |
downloadBundle(String resourceId,
RequestOption... options)
Downloads the content of the selected artifacts bundle to the admin's local drive.
|
TaskResource |
extractBackupBundle(String resourceId,
UserBackupParams userBackupParams,
RequestOption... options)
Extracts the existing backup bundle on the appliance and creates all the artifacts.
|
TaskResource |
extractBundle(String resourceId,
RequestOption... options)
Extracts the selected artifact bundle and creates the artifacts on the appliance.
|
ArtifactsBundle |
getBackupBundle(String resourceId)
Retrieves the backup bundle identified by the given
resourceId . |
ResourceCollection<ArtifactsBundle> |
getBackupBundles()
Retrieves a paginated collection (
ResourceCollection ) containing the details for the
available backup bundles. |
String |
stopBundleCreation(String resourceId,
TaskUri taskUri)
Stops the creation of the selected artifact bundle, if the associated task is not in completed state.
|
ArtifactsBundle |
update(String resourceId,
ArtifactsBundle resource)
Updates the resource identified by
resourceId according to the
provided resource object. |
getByName
get, get, getAll, getAll, getById
create
delete
static final String ARTIFACTS_BUNDLE_URI
static final String ARTIFACTS_BUNDLE_BACKUPS_URI
static final String ARTIFACTS_BUNDLE_ARCHIVE_URI
static final String ARTIFACTS_BUNDLE_DOWNLOAD_URI
static final String ARTIFACTS_BUNDLE_STOP_ARTIFACT_CREATE_URI
TaskResource create(File file, RequestOption... options)
file
object.file
- File
instance containing the artifacts bundle file.options
- varargs of RequestOption
which can be used to specify
some request options.TaskResource
task containing the result of this request.ResourceCollection<ArtifactsBundle> getBackupBundles()
ResourceCollection
) containing the details for the
available backup bundles.ResourceCollection
collection containing the details for the
available resources.TaskResource createBackupBundle(UserBackupParams userBackupParams, RequestOption... options)
userBackupParams
- attributes of the backup bundle.options
- varargs of RequestOption
which can be used to specify
some request options.TaskResource
task containing the result of this request.TaskResource createBackupArchiveBundle(File file, String deploymentGrpUri, RequestOption... options)
file
- File
instance containing the backup artifacts bundle file.deploymentGrpUri
- deployment group uri.options
- varargs of RequestOption
which can be used to specify
some request options.TaskResource
task containing the result of this request.String downloadBackupArchiveBundle(String resourceId, RequestOption... options)
resourceId
.resourceId
- artifacts bundle identifier.options
- varargs of RequestOption
which can be used to specify
some request options.String
representing the path to the downloaded bundle.ArtifactsBundle getBackupBundle(String resourceId)
resourceId
.resourceId
- artifacts bundle resource identifier.ArtifactsBundle
object containing the result of this request.TaskResource extractBackupBundle(String resourceId, UserBackupParams userBackupParams, RequestOption... options)
resourceId
- artifacts bundle resource identifier.userBackupParams
- attributes of the backup.options
- varargs of RequestOption
which can be used to specify
some request options.TaskResource
task containing the result of this request.String downloadBundle(String resourceId, RequestOption... options)
resourceId
- artifacts bundle resource identifier.options
- varargs of RequestOption
which can be used to specify
some request options.String
representing the path to the downloaded bundle.TaskResource extractBundle(String resourceId, RequestOption... options)
resourceId
- artifacts bundle resource identifier.options
- varargs of RequestOption
which can be used to specify
some request options.TaskResource
task containing the result of this request.String stopBundleCreation(String resourceId, TaskUri taskUri)
resourceId
- artifacts bundle resource identifier.taskUri
- object containing the URI of the task that should be interrupted.String
object containing the result of this request.ArtifactsBundle update(String resourceId, ArtifactsBundle resource)
resourceId
according to the
provided resource
object.resourceId
- artifacts bundle resource identifier.resource
- object containing the details of the resource that should be updated.ArtifactsBundle
object containing the result of this request.Copyright © 2016. All rights reserved.