Skip to content

dataset resource Command Group¤

List, inspect or delete dataset file resources.

File resources are identified by their paths and project IDs.

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 metadata.
                         This is useful for piping the IDs into other
                         commands.
--filter <TEXT TEXT>...  Filter file resources based on metadata. 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]...

There are three selection mechanisms: with specific IDs, only those specified resources will be deleted; by using --filter, resources based on the filter type and value will be deleted; 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 metadata. 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 metadata 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