Resources
Definition
A resource is a kind of data, owned by a workspace.
There are many kinds of resource in M&NTIS platform: scenario, topology, basebox and datasets.
Prerequisites
The M&ntis user CLI mantis
lets you manage ressources with ease. You have to be logged in.
Select workspace
Using the M&NTIS CLI, one can select the workspace that will be used as the default workspace for other CLI commands.
$ mantis workspace select another-workspace
You successfully selected the workspace 'another-workspace' (542d8b22-a34f-46c8-b959-cc36d10e3da4)
User has to be authorized to access a workspace, otherwise the CLI will deny the request as all subsequent action on this workspace would fail.
$ mantis workspace select invalid-workspace
You are not a member of this workspace. Action denied.
Upload resource
Use the M&ntis CLI to upload some resources. Depending on the kind of data, a specific subcommand shall be used. For example: mantis <kind> upload <resource>
.
$ mantis dataset upload --workspace='a-workspace-name' my_dataset.zip
Resource 'my_dataset.zip' uploaded (905dd812-ebfe-4b4c-aed4-94b4c8af83c2) now belongs to workspace 'a-workspace-name' (421ae7bc-3a77-4b01-b49c-29dec3b46e7d).
Note: the given workspace name must be part of the organization in which the user belongs. In other case, the request will be forbidden.
Note: if the user does not provide a workspace, the CLI will upload it to the current workspace configured.