ml model upload-content
Upload content for a specific model.
Syntax
cpd-cli ml model upload-content \
[--body=<upload-file-content>] \
--content-format=<content-format> \
[--content-type=<content-type>] \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--cpd-scope=<cpd-config-location>] \
[--deployment-id=<deployment-id>] \
[--jmes-query=<jmespath-query>] \
--model-id=<model-identifier> \
[--name=<attachment-name>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
[--pipeline-node-id=<pipeline-node-identifier>] \
--profile=<cpd-configuration-profile-name> \
[--project-id=<cpd-project-id>] \
[--quiet] \
[--raw-output=true|false] \
[--space-id=<space-identifier>] \
[--upload-content=<model-file-content>] \
[--verbose]
Arguments
The ml model upload-content
command
has no arguments.
Options
Option | Description |
---|---|
--body |
Specify the content of the file to upload.
|
--content-format |
Specify the content format.
|
--content-type |
Specify the input type. A character encoding can be specified by including a 'charset' parameter (for example, 'text/plain;charset=utf-8').
|
--context |
Specify the configuration context
name.
|
--cpd-config |
The Cloud Pak for Data
configuration location (for example, $HOME/.cpd-cli/config).
|
--cpd-scope |
The Cloud Pak for Data space, project, or catalog scope (for example, cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135).
|
--deployment-id |
Specify a 'deployment_id' to use. Only resources that match the specified 'deployment_id' are returned. The setting is relevant only when the 'content_format' option value is 'coreml'.
|
|
Display command
help.
|
--jmes-query |
Provide a JMESPath query to customize the output.
|
--model-id |
Specify the model identifier.
|
--name |
Specify the attachment name.
|
--output |
Specify an output format.
Valid formats include json, yaml, or text (the default
format).
|
--output-file |
Specify a file path where all output is redirected.
|
--pipeline-node-id |
Specify a pipeline node identifier. Only resources that match the specified identifier are returned. The setting is relevant only when the 'content_format' option value is 'pipeline-node'.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--project-id |
Specify a Cloud Pak for Data project instance that contains the resource.
|
--quiet |
Suppress verbose messages.
|
--raw-output |
When set to true, single values in
JSON output mode are not surrounded by quotes.
|
--space-id |
Specify a space identifier.
|
--upload-content |
Specify the model file content to upload.
|
--verbose |
Logs include more detailed
messages.
|