wx-ai deployment update
Updates the deployment metadata.
Extended description
The following parameters of deployment metadata are supported for the patch operation.
/name/description/tags/custom/online/parameters/asset/prompt_template/hardware_spec
The patch operation with path specified as /online/parameters can be used to
update the serving_name.
Patching /asset or /prompt_template must be used when these
fields exist.
Syntax
cpd-cli wx-ai deployment update \
--deployment-id=<deployment-id-or-serving-name> \
--version=<version> \
[--asset=<Rel>] \
[--custom=<map<key,value>>] \
[--description=<deployment-description>] \
[--name=<deployment-name>] \
[--project-id=<project-id>] \
[--space-id=<space-identifier>] \
[--tags=<tag1,tag2,...>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--asset |
Specify a reference to a
deployment. This JSON option can instead be provided by setting individual fields with other options
such as the --asset-id option. It is mutually exclusive with those
options.
|
--custom |
Specify user-defined properties as
key-value pairs.
|
--deployment-id |
Specify either the 'deployment_id'
that identifies the deployment or a 'serving_name' that allows a predefined URL to post a
prediction.
|
--description |
A description of the
deployment.
|
--json-patch |
Specify a JSON array of patch
operations as defined in RFC 6902. For more information, see
http://jsonpatch.com.
|
--name |
Specify the name of the
deployment.
|
--project-id
|
The project that contains
the deployment. Either space_id or project_id must be
given.
|
--space-id |
The space that contains the
deployment. Either space_id or project_id must be given.
|
--tags |
A list of tags for this
deployment.
|
--version |
Display the cpdctl command version
information.
|
Examples
Standard run.
cpd-cli wx-ai deployment update \
--asset '{"id": "4cedab6d-e8e4-4214-b81a-2ddb122db2ab", "rev": "2"}' \
--custom '{"anyKey": "anyValue"}' \
--description 'This is my first resource.' \
--name my-resource \
--tags= t1,t2