Skip to content

dataset resource Command Group¤

List, inspect or delete dataset file resources.

File resources are identified by its name and project ID.

dataset resource list¤

List available file resources.

Usage
$ cmemc dataset resource list [OPTIONS]

Outputs a table or a list of dataset resources (files).

Options
--raw                    Outputs raw JSON.
--id-only                Lists only resource names and no other meta data.
                         This is useful for piping the IDs into other
                         commands.

--filter <TEXT TEXT>...  Filter file resources based on a meta data. First
                         parameter CHOICE can be one of ['project',
                         'regex']. The second parameter is based on CHOICE,
                         e.g. a project ID or a regular expression string.

dataset resource delete¤

Delete file resources.

Usage
$ cmemc dataset resource delete [OPTIONS] [RESOURCE_IDS]...

You have three selection mechanisms: with specific IDs, you will delete only these resources; by using --filter your will delete resources based on the filter type and value; by using --all will delete all resources.

Options
--force                  Delete resource even if in use by a task.
-a, --all                Delete all resources. This is a dangerous option,
                         so use it with care.

--filter <TEXT TEXT>...  Filter file resources based on a meta data. First
                         parameter CHOICE can be one of ['project',
                         'regex']. The second parameter is based on CHOICE,
                         e.g. a project ID or a regular expression string.

dataset resource inspect¤

Display all meta data of a file resource.

Usage
$ cmemc dataset resource inspect [OPTIONS] RESOURCE_ID
Options
--raw       Outputs raw JSON.

dataset resource usage¤

Display all usage data of a file resource.

Usage
$ cmemc dataset resource usage [OPTIONS] RESOURCE_ID
Options
--raw       Outputs raw JSON.

Comments