Automation

Automate transfers and fetch information about mounted tapes using Canister's API.

circle-info

A Pro license is required to use the Canister API. Mac support is coming soon.

How it works

The Canister API responds to URLs beginning with canister://. These can be triggered from a browser, shell, or script. Deployment callsarrow-up-right can be included in your automated workflows.

Example script usage

Using Python:

import os
os.system("start canister://open")

Add Archive

Archive a source to all mounted tapes:

canister://addarchive?sources="E:\Important footage"
URL Parameter
Type
Required?

sources

String

Mandatory

A Collection of different sources, files, or folders can be combined using the | ("pipe") operator. Source paths must either be wrapped in quotes or URL encoded.

canister://addarchive?sources="E:\Important footage 1"|"F:\Important footage 2"

Optional parameters for choosing a destination tape and folder are available:

URL Parameter
Type
Required?

destinationtape

string

optional

destinationfolder

string

optional

Putting it together:

Add Retrieve

Retrieve folders or files from tape:

URL Parameter
Type
Required?

sources

string

mandatory

sourcetape

string

mandatory

destinationpath

string

mandatory

Get Tapes

Generate a JSON list of mounted tapes using gettapes. Set an optional path for the dump using the path parameter:

URL Parameter
Type
Required?

path

String

optional

Sample output:

Last updated