wx-ai deployment list
Retrieves the list of deployments for the specified space or project.
Syntax
cpd-cli wx-ai deployment list \
[--asset-id=<asset-id>] \
[--conflict=<conflict>] \
[--name=<deployment-name>] \
[--project-id=<project-id>] \
[--prompt-template-id=<prompt-template-id>] \
[--serving-name=<serving-name>] \
[--space-id=<space-identifier>] \
[n=<state-filter-value>] \
[--tag-value=<comma-separated-tag-value-list>] \
[--type=<deployment-type>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--asset-id |
The ID of the referenced
deployment. This option provides a value for a sub-field of the JSON option asset. It is mutually
exclusive with the asset option.
|
--conflict |
Returns whether 'serving_name' is
available for use. This option cannot be used with any other option except for
'serving_name'.
|
--name |
Specify the name of the
deployment.
|
--project-id |
The project that contains
the deployment. Either space_id or project_id must be
given.
|
--prompt-template-id |
The ID of the referenced
deployment. The prompt-template-id option provides a value for a sub-field of the JSON option
prompt-template. It is mutually exclusive with the prompt-template
option.
|
--serving-name |
Specify a 'serving_name'. The
deployment (if any) that contains the specified 'serving_name' is
returned.
|
--space-id |
The space that contains the
deployment. Either space_id or project_id must be given.
|
n |
Specify a state filter value to
retrieve resources. Allowed values are 'initializing', 'updating', 'ready' and
'failed'.
|
--tag-value |
Specify a comma-separated tag
value list. Only resources with the specified tag values are
returned.
|
--type |
Retrieves the resources that
are filtered with the specified type.
|
Examples
cpd-cli wx-ai deployment list \
--asset-id exampleString \
--conflict false \
--name exampleString \
--project-id a77190a2-f52d-4f2a-be3d-7867b5f46edc \
--prompt-template-id exampleString \
--serving-name classification \
--space-id 63dc4cf1-252f-424b-b52d-5cdd9814987f \
n exampleString \
--tag-value exampleString \
--type exampleString
Example output
Get all prompt tune deployments.
{
"limit" : 10,
"first" : {
"href" : "https://us-south.ml.cloud.ibm.com/ml/v4/deployments"
},
"resources" : [ {
"metadata" : {
"id" : "6213cf1-252f-424b-b52d-5cdd9814956c",
"created_at" : "2023-05-02T16:27:51Z",
"project_id" : "12ac4cf1-252f-424b-b52d-5cdd9814987f",
"name" : "text_classification",
"description" : "Classification prompt tuned model deployment",
"tags" : [ "classification" ]
},
"entity" : {
"asset" : {
"id" : "4cedab6d-e8e4-4214-b81a-2ddb122db2ab"
},
"deployed_asset_type" : "prompt_tune",
"online" : { },
"base_model_id" : "google/flan-t5-xl",
"status" : {
"state" : "ready",
"message" : {
"level" : "info",
"text" : "The deployment is successful"
},
"inference" : [ {
"url" : "https://us-south.ml.cloud.ibm.com/ml/v1/deployments/2cd0bcda-581d-4f04-8028-ec2bc90cc375/text/generation"
}, {
"url" : "https://us-south.ml.cloud.ibm.com/ml/v1/deployments/2cd0bcda-581d-4f04-8028-ec2bc90cc375/text/generation_stream",
"sse" : true
} ]
}
}
} ]
}