Skip to main content

template show

Contributors
Suggest changes

Display templates

Availability: This command is available to cluster administrators at the admin privilege level.

Description

The template show command displays information about templates. The command output depends on the parameter or parameters specified with the command. If no parameters are specified, then the command displays the following information about all the templates:

  • Template Name

  • Permission (readonly or readwrite )

To display detailed information about a single template, run the command with the -name parameter. The detailed view provides all of the information in the previous list with the following additional information:

  • Parent Template Name

  • Description

  • Version

  • UUID of the Template

To display detailed information about all templates, run the command with the -instance parameter.

You can specify additional parameters to display information that matches only those parameters. For example, to display information only about templates with readonly permissions, run the command with the -permission readonly parameter.

Parameters

{ [-fields <fieldname>,…​]

This parameter specifies the fields that need to be displayed.

| [-instance ] }

If this parameter is specified, the command displays information about all entries.

[-name <template name>] - Name of the template

If this parameter is specified, the command displays the detailed information about the template that matches the specified name.

[-permission <template_permission>] - Permission

If this parameter is specified, the command displays information about the template or templates that matches the specified permission.

[-parent-template <text>] - Parent template name

If this parameter is specified, the command displays information about the template or templates that matches the specified parent template name.

[-description <text>] - Description

If this parameter is specified, the command displays information about the template or templates that matches the specified description.

[-version <text>] - Version

If this parameter is specified, the command displays information about the template or templates that matches the specified version.

[-uuid <UUID>] - UUID of the template

If this parameter is specified, the command displays information about the template or templates that matches the specified uuid.

Examples

The following example displays information about all templates in the cluster:

cluster1::> template show
Template                           Permission
---------------------------------- ----------
template1                          readonly
template2                          readwrite

The following example displays detailed information about a template named template1:

cluster1::> template show -name template1
 Name of the Template: template1
           Permission: readonly
 Parent Template Name: -
          Description: Template to configure Vserver Environment
              Version: 1.0
 UUID of the Template: c8dfeb58-b5c5-5697-a829-18d4ee0ba202