public class FileSnapshots extends ProjectResources<FileSnapshotRestRep> implements TaskResources<FileSnapshotRestRep>
Base URL: /file/snapshots
| Constructor and Description |
|---|
FileSnapshots(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Task<FileSnapshotRestRep> |
createForFileSystem(java.net.URI fileSystemId,
FileSystemSnapshotParam input)
Creates a file snapshot for the given file system by ID.
|
Task<FileSnapshotRestRep> |
deactivate(java.net.URI id)
Begins deactivating a file snapshot by ID.
|
Task<FileSnapshotRestRep> |
deleteAllExport(java.net.URI id,
java.lang.Boolean allDir) |
Task<FileSnapshotRestRep> |
deleteExport(java.net.URI id,
java.lang.Boolean allDir,
java.lang.String subDir)
Delete file system export rules
API Call: DELETE /file/snapshots/{id}/export
|
Task<FileSnapshotRestRep> |
deleteShareACL(java.net.URI id,
java.lang.String shareName)
Begins removing a share ACL from the given snapshot by ID.
|
Task<FileSnapshotRestRep> |
export(java.net.URI id,
FileSystemExportParam input)
Begins exporting a given file snapshot by ID.
|
java.util.List<FileSnapshotRestRep> |
getByFileSystem(java.net.URI fileSystemId)
Gets the list of file snapshots for the given file system by ID.
|
java.util.List<FileSnapshotRestRep> |
getByFileSystem(java.net.URI fileSystemId,
ResourceFilter<FileSnapshotRestRep> filter)
Gets the list of file snapshots for the given file system by ID, optionally filtering the results.
|
java.util.List<ExportRule> |
getExport(java.net.URI id,
boolean allDirs,
java.lang.String subDir)
Gets the list of export rules for the given file system by ID.
|
java.util.List<FileSystemExportParam> |
getExports(java.net.URI id)
Gets the exports for the given file snapshot by ID.
|
java.util.List<ShareACL> |
getShareACLs(java.net.URI id,
java.lang.String shareName)
Gets the share ACLs for the given snapshot by ID.
|
java.util.List<SmbShareResponse> |
getShares(java.net.URI id)
Gets the shares for the given file snapshot by ID.
|
Task<FileSnapshotRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<FileSnapshotRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByFileSystem(java.net.URI fileSystemId)
Lists the file snapshots for the given file system by ID.
|
Task<FileSnapshotRestRep> |
removeExport(java.net.URI id,
java.lang.String protocol,
java.lang.String securityType,
java.lang.String permissions,
java.lang.String rootUserMapping)
Removes a single export from a file snapshot by ID.
|
Task<FileSnapshotRestRep> |
removeShare(java.net.URI id,
java.lang.String shareName)
Removes a share of the given file snapshot by ID.
|
Task<FileSnapshotRestRep> |
restore(java.net.URI id)
Begins restoring a file snapshot by ID.
|
Task<FileSnapshotRestRep> |
share(java.net.URI id,
FileSystemShareParam input)
Begins sharing a file snapshot by ID.
|
Task<FileSnapshotRestRep> |
updateExport(java.net.URI id,
java.lang.String subDirectory,
SnapshotExportUpdateParams input)
Update file system exports
API Call: PUT /file/snapshots/{id}/export
|
Task<FileSnapshotRestRep> |
updateShareACL(java.net.URI id,
java.lang.String shareName,
SnapshotCifsShareACLUpdateParams param)
Update snapshot share ACL
API Call: PUT /file/snapshots/{id}/shares/{shareName}/acl
|
FileSnapshots |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
FileSnapshots |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
findByProject, findByProject, findByProject, findByProject, searchgetByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, updateTagspublic FileSnapshots(ViPRCoreClient parent, RestClient client)
public FileSnapshots withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<FileSnapshotRestRep>inactive - whether to include inactive resources.public FileSnapshots withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<FileSnapshotRestRep>internal - whether to include internal resources.public Tasks<FileSnapshotRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<FileSnapshotRestRep>id - the resource ID.public Task<FileSnapshotRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<FileSnapshotRestRep>id - the resource ID.taskId - the task ID.public Task<FileSnapshotRestRep> restore(java.net.URI id)
API Call: POST /file/snapshots/{id}/restore
id - the ID of the file snapshot to restore.public Task<FileSnapshotRestRep> deactivate(java.net.URI id)
API Call: POST /file/snapshots/{id}/deactivate
id - the ID of the file snapshot to deactivate.public java.util.List<FileSystemExportParam> getExports(java.net.URI id)
API Call: GET /file/snapshots/{id}/exports
id - the ID of the file snapshot.public java.util.List<ExportRule> getExport(java.net.URI id, boolean allDirs, java.lang.String subDir)
API Call: GET /file/snapshots/{id}/exports
id - the ID of the snapshot.allDirs - boolean value for indicating for all directoriessubDir - string indicating on what subdirectory to querypublic Task<FileSnapshotRestRep> export(java.net.URI id, FileSystemExportParam input)
API Call: POST /file/snapshots/{id}/exports
id - the ID of the file snapshot to export.input - the export configuration.public Task<FileSnapshotRestRep> removeExport(java.net.URI id, java.lang.String protocol, java.lang.String securityType, java.lang.String permissions, java.lang.String rootUserMapping)
API Call: DELETE /file/snapshots/{id}/exports/{protocol},{securityType},{permissions},{rootUserMapping}
id - the ID of the file snapshot.protocol - the protocol of the export to remove.securityType - the security type of the export to remove.permissions - the permissions of the export to remove.rootUserMapping - the root user mapping of the export to remove.public java.util.List<SmbShareResponse> getShares(java.net.URI id)
API Call: GET /file/snapshots/{id}/shares
id - the ID of the file snapshot.public Task<FileSnapshotRestRep> share(java.net.URI id, FileSystemShareParam input)
API Call: POST /file/snapshots/{id}/shares
id - the ID of the file snapshot.input - the share configuration.public Task<FileSnapshotRestRep> removeShare(java.net.URI id, java.lang.String shareName)
API Call: DELETE /file/snapshots/{id}/shares/{shareName}
id - the ID of the file snapshot.shareName - the name of the share to remove.public java.util.List<NamedRelatedResourceRep> listByFileSystem(java.net.URI fileSystemId)
API Call: GET /file/filesystems/{fileSystemId}/protection/snapshots
fileSystemId - the ID of the file system.public java.util.List<FileSnapshotRestRep> getByFileSystem(java.net.URI fileSystemId)
This is a convenience method for: getByRefs(listByFileSystem(fileSystemId))
fileSystemId - the ID of the file system.public java.util.List<FileSnapshotRestRep> getByFileSystem(java.net.URI fileSystemId, ResourceFilter<FileSnapshotRestRep> filter)
This is a convenience method for: getByRefs(listByFileSystem(fileSystemId), filter)
fileSystemId - the ID of the file system.filter - the resource filter to apply to the results as they are returned (optional).public Task<FileSnapshotRestRep> createForFileSystem(java.net.URI fileSystemId, FileSystemSnapshotParam input)
API Call: POST /block/volumes/{volumeId}/protection/snapshots
fileSystemId - the ID of the file system.input - the create configuration.public Task<FileSnapshotRestRep> updateExport(java.net.URI id, java.lang.String subDirectory, SnapshotExportUpdateParams input)
id - the ID of the snapshotsubDirectory - the subdirectory to be exportedinput - the update/create configurationpublic Task<FileSnapshotRestRep> deleteExport(java.net.URI id, java.lang.Boolean allDir, java.lang.String subDir)
id - the ID of the snapshotallDir - Boolean to specify all directoriessubDir - specific directory to delete export rulespublic Task<FileSnapshotRestRep> deleteAllExport(java.net.URI id, java.lang.Boolean allDir)
public java.util.List<ShareACL> getShareACLs(java.net.URI id, java.lang.String shareName)
API Call: GET /file/snapshots/{id}/shares/{shareName}/acl
id - the ID of the snapshot.shareName - the shareName to get list of ACLS associated.public Task<FileSnapshotRestRep> updateShareACL(java.net.URI id, java.lang.String shareName, SnapshotCifsShareACLUpdateParams param)
id - the ID of the snapshot.shareName - the shareName to update associated ACLsparam - the update/create configurationpublic Task<FileSnapshotRestRep> deleteShareACL(java.net.URI id, java.lang.String shareName)
API Call: Delete /file/snapshots/{id}/shares/{shareName}/acl
id - the ID of the snapshot.shareName - the name of the share to remove associated ACLs.