All URIs are relative to https://elements.local
Method | HTTP request | Description |
---|---|---|
archiveToTape | POST /api/2/archive/tape/archive | |
cancelAllTapeArchiveJobs | POST /api/2/archive/tape/jobs/cancel-all | |
checkTape | POST /api/2/archive/tape/library/check | |
createTape | POST /api/2/archive/tape/tapes | |
createTapeGroup | POST /api/2/archive/tape/groups | |
deleteTape | DELETE /api/2/archive/tape/tapes/{id} | |
deleteTapeArchiveJob | DELETE /api/2/archive/tape/jobs/{id} | |
deleteTapeGroup | DELETE /api/2/archive/tape/groups/{id} | |
formatTape | POST /api/2/archive/tape/library/format | |
getAllArchivedFileEntries | GET /api/2/archive/tape/files | |
getAllTapeArchiveJobs | GET /api/2/archive/tape/jobs | |
getAllTapeGroups | GET /api/2/archive/tape/groups | |
getAllTapes | GET /api/2/archive/tape/tapes | |
getArchivedFileEntry | GET /api/2/archive/tape/files/{id} | |
getTape | GET /api/2/archive/tape/tapes/{id} | |
getTapeArchiveJob | GET /api/2/archive/tape/jobs/{id} | |
getTapeArchiveJobSources | GET /api/2/archive/tape/jobs/{id}/sources | |
getTapeGroup | GET /api/2/archive/tape/groups/{id} | |
getTapeLibraryState | GET /api/2/archive/tape/library | |
loadTape | POST /api/2/archive/tape/library/load | |
moveTape | POST /api/2/archive/tape/library/move | |
patchTape | PATCH /api/2/archive/tape/tapes/{id} | |
patchTapeGroup | PATCH /api/2/archive/tape/groups/{id} | |
pauseTapeArchiveJob | POST /api/2/archive/tape/jobs/{id}/pause | |
refreshTapeLibraryState | POST /api/2/archive/tape/library/refresh | |
reindexTape | POST /api/2/archive/tape/library/reindex | |
removeFinishedTapeArchiveJobs | POST /api/2/archive/tape/jobs/remove-finished | |
restartTapeArchiveJob | POST /api/2/archive/tape/jobs/{id}/restart | |
restoreFromTape | POST /api/2/archive/tape/restore | |
resumeTapeArchiveJob | POST /api/2/archive/tape/jobs/{id}/resume | |
searchTapeArchive | POST /api/2/archive/tape/search | |
unloadTape | POST /api/2/archive/tape/library/unload | |
updateTape | PUT /api/2/archive/tape/tapes/{id} | |
updateTapeGroup | PUT /api/2/archive/tape/groups/{id} |
open class func archiveToTape( archiveEndpointRequest: ArchiveEndpointRequest) -> Promise<[TapeJob]>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let archiveEndpointRequest = ArchiveEndpointRequest(source: [TapeJobSource(path: "path_example", options: "TODO", include: "include_example")], startDate: Date(), name: "name_example", group: 123, group2: 123, export: false, export2: false) // ArchiveEndpointRequest |
TapeArchiveAPI.archiveToTape(archiveEndpointRequest: archiveEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
archiveEndpointRequest | ArchiveEndpointRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func cancelAllTapeArchiveJobs() -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
TapeArchiveAPI.cancelAllTapeArchiveJobs().then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
This endpoint does not need any parameter.
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func checkTape( tapeLibraryFsckEndpointRequest: TapeLibraryFsckEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryFsckEndpointRequest = TapeLibraryFsckEndpointRequest(barcode: "barcode_example") // TapeLibraryFsckEndpointRequest |
TapeArchiveAPI.checkTape(tapeLibraryFsckEndpointRequest: tapeLibraryFsckEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryFsckEndpointRequest | TapeLibraryFsckEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func createTape( tapeUpdate: TapeUpdate) -> Promise<Tape>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeUpdate = TapeUpdate(name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123) // TapeUpdate |
TapeArchiveAPI.createTape(tapeUpdate: tapeUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeUpdate | TapeUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func createTapeGroup( tapeGroupUpdate: TapeGroupUpdate) -> Promise<TapeGroup>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeGroupUpdate = TapeGroupUpdate(tapes: [TapeReference(id: 123, rootEntry: 123, name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123)], name: "name_example") // TapeGroupUpdate |
TapeArchiveAPI.createTapeGroup(tapeGroupUpdate: tapeGroupUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeGroupUpdate | TapeGroupUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func deleteTape( id: Int) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape.
TapeArchiveAPI.deleteTape(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape. |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func deleteTapeArchiveJob( id: String) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.deleteTapeArchiveJob(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func deleteTapeGroup( id: Int) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape group.
TapeArchiveAPI.deleteTapeGroup(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape group. |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func formatTape( tapeLibraryFormatEndpointRequest: TapeLibraryFormatEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryFormatEndpointRequest = TapeLibraryFormatEndpointRequest(barcode: "barcode_example") // TapeLibraryFormatEndpointRequest |
TapeArchiveAPI.formatTape(tapeLibraryFormatEndpointRequest: tapeLibraryFormatEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryFormatEndpointRequest | TapeLibraryFormatEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllArchivedFileEntries( id: Double? = nil, isDir: String? = nil, name: String? = nil, fullpath: String? = nil, parent: Double? = nil, ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[TapeFile]>
Required permissions * User account permission: ltfs:search
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Double | Filter the returned list by `id`. (optional)
let isDir = "isDir_example" // String | Filter the returned list by `is_dir`. (optional)
let name = "name_example" // String | Filter the returned list by `name`. (optional)
let fullpath = "fullpath_example" // String | Filter the returned list by `fullpath`. (optional)
let parent = 987 // Double | Filter the returned list by `parent`. (optional)
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
TapeArchiveAPI.getAllArchivedFileEntries(id: id, isDir: isDir, name: name, fullpath: fullpath, parent: parent, ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Double | Filter the returned list by `id`. | [optional] |
isDir | String | Filter the returned list by `is_dir`. | [optional] |
name | String | Filter the returned list by `name`. | [optional] |
fullpath | String | Filter the returned list by `fullpath`. | [optional] |
parent | Double | Filter the returned list by `parent`. | [optional] |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllTapeArchiveJobs( ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[TapeJob]>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
TapeArchiveAPI.getAllTapeArchiveJobs(ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllTapeGroups( id: Double? = nil, name: String? = nil, ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[TapeGroup]>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Double | Filter the returned list by `id`. (optional)
let name = "name_example" // String | Filter the returned list by `name`. (optional)
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
TapeArchiveAPI.getAllTapeGroups(id: id, name: name, ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Double | Filter the returned list by `id`. | [optional] |
name | String | Filter the returned list by `name`. | [optional] |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllTapes( id: Double? = nil, name: String? = nil, group: Double? = nil, groupIsnull: String? = nil, ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[Tape]>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Double | Filter the returned list by `id`. (optional)
let name = "name_example" // String | Filter the returned list by `name`. (optional)
let group = 987 // Double | Filter the returned list by `group`. (optional)
let groupIsnull = "groupIsnull_example" // String | Filter the returned list by `group__isnull`. (optional)
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
TapeArchiveAPI.getAllTapes(id: id, name: name, group: group, groupIsnull: groupIsnull, ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Double | Filter the returned list by `id`. | [optional] |
name | String | Filter the returned list by `name`. | [optional] |
group | Double | Filter the returned list by `group`. | [optional] |
groupIsnull | String | Filter the returned list by `group__isnull`. | [optional] |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getArchivedFileEntry( id: Int) -> Promise<TapeFile>
Required permissions * User account permission: ltfs:search
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Archived file entry.
TapeArchiveAPI.getArchivedFileEntry(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Archived file entry. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTape( id: Int) -> Promise<Tape>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape.
TapeArchiveAPI.getTape(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTapeArchiveJob( id: String) -> Promise<TapeJob>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.getTapeArchiveJob(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTapeArchiveJobSources( id: String) -> Promise<[TapeJobSource]>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.getTapeArchiveJobSources(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTapeGroup( id: Int) -> Promise<TapeGroup>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape group.
TapeArchiveAPI.getTapeGroup(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape group. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTapeLibraryState() -> Promise<TapeLibraryEndpointResponse>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
TapeArchiveAPI.getTapeLibraryState().then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func loadTape( tapeLibraryLoadEndpointRequest: TapeLibraryLoadEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryLoadEndpointRequest = TapeLibraryLoadEndpointRequest(barcode: "barcode_example") // TapeLibraryLoadEndpointRequest |
TapeArchiveAPI.loadTape(tapeLibraryLoadEndpointRequest: tapeLibraryLoadEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryLoadEndpointRequest | TapeLibraryLoadEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func moveTape( tapeLibraryMoveEndpointRequest: TapeLibraryMoveEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryMoveEndpointRequest = TapeLibraryMoveEndpointRequest(barcode: "barcode_example", slot: 123) // TapeLibraryMoveEndpointRequest |
TapeArchiveAPI.moveTape(tapeLibraryMoveEndpointRequest: tapeLibraryMoveEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryMoveEndpointRequest | TapeLibraryMoveEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func patchTape( id: Int, tapePartialUpdate: TapePartialUpdate) -> Promise<Tape>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape.
let tapePartialUpdate = TapePartialUpdate(name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123) // TapePartialUpdate |
TapeArchiveAPI.patchTape(id: id, tapePartialUpdate: tapePartialUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape. | |
tapePartialUpdate | TapePartialUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func patchTapeGroup( id: Int, tapeGroupPartialUpdate: TapeGroupPartialUpdate) -> Promise<TapeGroup>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape group.
let tapeGroupPartialUpdate = TapeGroupPartialUpdate(tapes: [TapeReference(id: 123, rootEntry: 123, name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123)], name: "name_example") // TapeGroupPartialUpdate |
TapeArchiveAPI.patchTapeGroup(id: id, tapeGroupPartialUpdate: tapeGroupPartialUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape group. | |
tapeGroupPartialUpdate | TapeGroupPartialUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func pauseTapeArchiveJob( id: String) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.pauseTapeArchiveJob(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func refreshTapeLibraryState() -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
TapeArchiveAPI.refreshTapeLibraryState().then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
This endpoint does not need any parameter.
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func reindexTape( tapeLibraryReindexEndpointRequest: TapeLibraryReindexEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryReindexEndpointRequest = TapeLibraryReindexEndpointRequest(barcode: "barcode_example") // TapeLibraryReindexEndpointRequest |
TapeArchiveAPI.reindexTape(tapeLibraryReindexEndpointRequest: tapeLibraryReindexEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryReindexEndpointRequest | TapeLibraryReindexEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func removeFinishedTapeArchiveJobs() -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
TapeArchiveAPI.removeFinishedTapeArchiveJobs().then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
This endpoint does not need any parameter.
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func restartTapeArchiveJob( id: String) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.restartTapeArchiveJob(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func restoreFromTape( restoreEndpointRequest: RestoreEndpointRequest) -> Promise<TapeJob>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let restoreEndpointRequest = RestoreEndpointRequest(name: "name_example", source: [TapeJobSource(path: "path_example", options: "TODO", include: "include_example")], exclude: ["exclude_example"], tape: "tape_example", export: false, startDate: Date()) // RestoreEndpointRequest |
TapeArchiveAPI.restoreFromTape(restoreEndpointRequest: restoreEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
restoreEndpointRequest | RestoreEndpointRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func resumeTapeArchiveJob( id: String) -> Promise<Void>
Required permissions * User account permission: None
(read) / ltfs:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = "id_example" // String |
TapeArchiveAPI.resumeTapeArchiveJob(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func searchTapeArchive( searchEndpointRequest: SearchEndpointRequest) -> Promise<SearchEndpointResponse>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let searchEndpointRequest = SearchEndpointRequest(query: "query_example", exclude: "exclude_example", offset: 123, limit: 123, dirsOnly: false, namesOnly: false, tapes: false) // SearchEndpointRequest |
TapeArchiveAPI.searchTapeArchive(searchEndpointRequest: searchEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
searchEndpointRequest | SearchEndpointRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func unloadTape( tapeLibraryUnloadEndpointRequest: TapeLibraryUnloadEndpointRequest) -> Promise<Void>
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let tapeLibraryUnloadEndpointRequest = TapeLibraryUnloadEndpointRequest(barcode: "barcode_example") // TapeLibraryUnloadEndpointRequest |
TapeArchiveAPI.unloadTape(tapeLibraryUnloadEndpointRequest: tapeLibraryUnloadEndpointRequest).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
tapeLibraryUnloadEndpointRequest | TapeLibraryUnloadEndpointRequest |
Void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func updateTape( id: Int, tapeUpdate: TapeUpdate) -> Promise<Tape>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape.
let tapeUpdate = TapeUpdate(name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123) // TapeUpdate |
TapeArchiveAPI.updateTape(id: id, tapeUpdate: tapeUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape. | |
tapeUpdate | TapeUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func updateTapeGroup( id: Int, tapeGroupUpdate: TapeGroupUpdate) -> Promise<TapeGroup>
Required permissions * User account permission: None
(read) / ltfs:tapegroups:manage
(write) * License component: ltfs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this tape group.
let tapeGroupUpdate = TapeGroupUpdate(tapes: [TapeReference(id: 123, rootEntry: 123, name: "name_example", uuid: "uuid_example", generation: 123, customA: "customA_example", customB: "customB_example", customC: "customC_example", customD: "customD_example", freeSpace: 123, loadCounter: 123, errorCounter: 123, errorReason: "errorReason_example", active: false, lto: "lto_example", group: 123)], name: "name_example") // TapeGroupUpdate |
TapeArchiveAPI.updateTapeGroup(id: id, tapeGroupUpdate: tapeGroupUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this tape group. | |
tapeGroupUpdate | TapeGroupUpdate |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]