Updated on 2023-11-21 GMT+08:00

Obtaining DLI Group Resources

Run the ma-cli dli-job get-resource command to obtain details about DLI resources, such as the resource name and resource type.

$ ma-cli dli-job get-resource -h
Usage: ma-cli dli-job get-resource [OPTIONS]

  Get DLI resource info.

  Example:

  # Get DLI resource details by resource name
  ma-cli dli-job get-resource --resource-name ${resource_name}

Options:
  -n, --resource-name TEXT        Get DLI resource details by resource name.
  -k, --kind [jar|pyFile|file|modelFile]
                                  DLI resources type.
  -g, --group TEXT                Get DLI resources by group.
  -tags, --tags TEXT              Get DLI resources by tags.
  -C, --config-file TEXT          Configure file path for authorization.
  -D, --debug                     Debug Mode. Shows full stack trace when error occurs.
  -P, --profile TEXT              CLI connection profile to use. The default profile is "DEFAULT".
  -H, -h, --help                  Show this message and exit.
Table 1 Parameters

Parameter

Type

Mandatory

Description

-n / --resource-name

String

No

Obtain details about DLI group resources by resource name.

-k / --kind

String

No

Obtain details about DLI group resources by resource type, which can be JAR, PyFile, file, or modelFile.

-g / --group

String

No

Obtain details about DLI group resources by group name.

-tags / --tags

String

No

Obtain details about DLI group resources by resource tag.

Examples

Obtain all DLI group resources.

ma-cli dli-job get-resource