list-blueprints-admin

The list-blueprints-admin command displays a list of the top level blueprints in a catalog. A top level blueprint is either the active blueprint or the highest version of a blueprint in a version set if none are marked as active. What catalog the blueprints are displayed from is determined by one of the options in the order below:

  1. By specifying the --publicCatalog command argument.
  2. By specifying the desired company catalog with the command argument --catalogid
  3. Otherwise the company catalog associated with the customer of the user running the command is used.

Help

list-blueprints-admin -h
usage: list-blueprints-admin [-h] [--catalogid CATALOGID] [--publicCatalog]

Provides a top level admin view of all blueprints. Either the Active version
is displayed for blueprints with mulitple versions, or the base version if
there is no Active Version.

optional arguments:
  -h, --help            show this help message and exit
  --catalogid CATALOGID
                        Optional catalogId to add blueprint to, defaults to
                        company catalog
  --publicCatalog       Use public catalog

Note

Listing blueprints requires that the Dell Cloud Manager user (user API key) has the necessary access rights to access blueprints.

Example 1

List the top level blueprints in the public catalog.

list-blueprints-admin --publicCatalog
Loading API environment
  API access validated
  API access key type is User, userId: 10
  Found public catalog, id= 15
  Found Company catalog, id= 10

Number of Blueprints found: 3

+----+--------+-----------------------------------------------+---------+---------------+------------------------------+---------+
| Id | Parent | Name                                          | Version | ActiveVersion | Created                      | Updated |
+----+--------+-----------------------------------------------+---------+---------------+------------------------------+---------+
| 35 | 32     | Docker Apache Server on Linux                 | 2.00    | True          | 2015-09-04T17:29:23.327+0000 | None    |
| 38 | 38     | Drupal Two Server Stack using Chef            | 1.00    | True          | 2015-09-04T17:31:10.610+0000 | None    |
| 36 | 36     | Tomcat Wildbook Three Server Stack using Chef | 1.00    | False         | 2015-09-04T17:30:51.540+0000 | None    |
+----+--------+-----------------------------------------------+---------+---------------+------------------------------+---------+

Example 2

List the top level blueprints in the company catalog

list-blueprints-admin
Loading API environment
  API access validated
  API access key type is User, userId: 10
  Found public catalog, id= 15
  Found Company catalog, id= 10
Defaulting to Company catalog, id: 10

Number of Blueprints found: 2

+----+--------+------------------------------------+---------+---------------+------------------------------+---------+
| Id | Parent | Name                               | Version | ActiveVersion | Created                      | Updated |
+----+--------+------------------------------------+---------+---------------+------------------------------+---------+
| 26 | 25     | Apache Web Server on Linux         | 1.01    | True          | 2015-09-04T14:59:48.927+0000 | None    |
| 27 | 27     | Joomla Two Server Stack using Chef | 1.00    | True          | 2015-09-04T17:18:28.937+0000 | None    |
+----+--------+------------------------------------+---------+---------------+------------------------------+---------+