create-company-catalog

Note

Creating a company catalog requires manage the company catalog authority. Refer to Catalogs for more details. You can check to see if a company catalog has been created by issuing the testenv command.

Note

It is unnecessary to create a company catalog as Dell Cloud Manager will automatically create the company catalog the first time a user in that company creates a blueprint intended for the company catalog.

Help

create-company_catalog -h
usage: Create company catalog [-h] [--customerid CUSTOMERID]
                              [--displayname DISPLAYNAME]
                              [--description DESCRIPTION]
                              [--ownername OWNERNAME]
                              [--owneremail OWNEREMAIL]

optional arguments:
  -h, --help            show this help message and exit
  --customerid CUSTOMERID
                        Customer ID, defaults to customer of the callers
                        ApiKey.
  --displayname DISPLAYNAME
                        Catalog display name, defaults to Customer name + word
                        Catalog.
  --description DESCRIPTION
                        Optional description text for the catalog.
  --ownername OWNERNAME
                        Owner name for of catalog. Defaults to Customer name
  --owneremail OWNEREMAIL
                        Optional email address of owner of catalog.

Example 1

Create the catalog for your company. You do not need to specify the company. Note the parameters --displayname, --description, --ownername and --owneremail are optional.

create-company-catalog --displayname "ACME Company Catalog" --description "ACME Company Catalog for it's blueprints" --ownername "Gary Forghetti" --owneremail "gary.forghetti@acme.com"
Loading API environment
  API access validated
  API access key type is User, userId: 10
  Found public catalog, id= 10
Defaulting company to: 200
New catalog created, id: 11 for company: 200
  Display name:  ACME Company Catalog
  Description :  ACME Company Catalog for it's blueprints
  Owner Name  :  Gary Forghetti
  Owner Email :  gary.forghetti@acme.com

Example 2

Create the catalog for another company. You need to determine the Dell Cloud Manager internal customer identifier of the other company and specify it on the create-company-catalog command. You will also need to use a system level API key.

Determine the customer_id for the customer (e.g. the customer in this example is XYZ).

Attention

The mysql client command will be used to perform the display below. Refer to the Dell Cloud Manager Administrator’s Guide MySQL Client for more information on how to setup the environment for running the mysql command.

You will need to run the following MySQL command on the Dell Cloud Manager server.

mysql -uroot -p${MYSQL_DB_PASSWORD} provisioning -e 'select enstratus_customer_id,name from enstratus_customer;'
+-----------------------+------------------------+
| enstratus_customer_id | name                   |
+-----------------------+------------------------+
|                   100 | enStratus Networks LLC |
|                   200 | ACME                   |
|                   300 | XYZ                    |
+-----------------------+------------------------+

Create the catalog and specify the Customer ID.

create-company-catalog --customerid 300 --displayname "XYZ Company Catalog" --description "XYZ Company Catalog for it's blueprints" --ownername "Gary Forghetti" --owneremail "gary.forghetti@xyz.com"
Loading API environment
  API access validated
  API access key type is System
  Found public catalog, id= 10
New catalog created, id: 12 for company: 300
   Display name:  XYZ Company Catalog
   Description :  XYZ Company Catalog for it's blueprints
   Owner Name  :  Gary Forghetti
   Owner Email :  gary.forghetti@xyz.com