pipeline version get-template

Returns code (YAML template, Orchestration Flow JSON embedded in a string) that contains the specified pipeline version's description, parameters, and metadata. You must specify either project_id or space_id.

Syntax

cpdctl pipeline version get-template \
[--format FORMAT] \
[--project-id PROJECT-ID] \
[--space-id SPACE-ID] \
--version-id VERSION-ID

Options

Table 1: Command options
Option Description
--format (string)

The format of the code to retrieve.

The default value is template. Allowable values are template, flow, all.

--project-id (UUID)

The ID of the project.

The maximum length is 36 characters. The minimum length is 36 characters. The value must match the regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.

--space-id (UUID)

The ID of the space.

The maximum length is 36 characters. The minimum length is 36 characters. The value must match the regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.

--version-id (string)

The ID of the pipeline version whose template is to be retrieved. Required.