wx-ai prompt-session get-lock

Retrieves the current locked state of a prompt session.

Syntax

cpd-cli wx-ai prompt-session
get-lock \
--session-id=<session-id>
[--cpd-scope=<cpd-scope>] \
[--project-id=<project-id>]

Options

Table 1: Command options
Option Description
--cpd-scope The IBM Software Hub space, project, or catalog scope. For example, cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
Status
Optional.
Syntax
--cpd-scope=<cpd-scope>
Input type
string
Default value
No default.
--project-id The project that contains the deployment. Either space_id or project_id must be given.
Status
Optional.
Syntax
--project-id=<project-id>
Input type
string
Default value
No default.
--session-id Prompt Session ID. The value must match the regular expression /[a-zA-Z0-9-]*/.
Status
Optional.
Syntax
--session-id=<session-id>
Default value
No default.
Input type
string

Examples

cpdctl wx-ai prompt-session get-lock \
--session-id exampleString \
--project-id exampleString