Project

General

Profile

Actions

Bug #9468

closed

Associate config-template-ids by name

Added by Christine Fouant about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Currently the resources can be associated only by id. API already supports association by name directly so it should be no problem to add it to the cli.

Eg. current:

$ hammer domain create --dns-id DNS_ID

Should also offer:
$ hammer domain create --dns DNS_NAME

Similarly:

$ hammer os create --config-template-ids ID1,ID2 ...

vs
$ hammer os create --config-templates NAME1,NAME2 ...

etc.


Related issues 1 (0 open1 closed)

Copied from Hammer CLI - Bug #3630: Associate resources by nameClosed11/12/2013Actions
Actions #1

Updated by Christine Fouant about 9 years ago

  • Copied from Bug #3630: Associate resources by name added
Actions #2

Updated by Tomáš Strachota over 6 years ago

  • Status changed from New to Closed

This issue is fixed in hammer-cli-foreman 0.11.0:

> hammer os create -h
Usage:
    hammer os create [OPTIONS]

Options:
 --architecture-ids ARCHITECTURE_IDS                   Ids of associated architectures
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --architectures ARCHITECTURE_NAMES                    Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --config-template-ids CONFIG_TEMPLATE_IDS             Ids of associated provisioning templates
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --config-templates CONFIG_TEMPLATE_NAMES              Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --debug BREAKPOINT                                    Start pry at a given breakpoint
                                                       possible value(s): 'execute', 'params', 'transform_result', 'handle_exception'
 --description DESCRIPTION                              
 --family FAMILY                                        
 --major MAJOR                                          
 --media MEDIUM_NAMES                                  Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --medium-ids MEDIUM_IDS                               Ids of associated media
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --minor MINOR                                          
 --name NAME                                            
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES   Array of parameters
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --partition-table-ids PARTITION_TABLE_IDS             Ids of associated partition tables
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --partition-tables PARTITION_TABLE_NAMES              Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --password-hash PASSWORD_HASH                         Root password hash function to use, one of md5, sha256, sha512, base64
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Ids of associated provisioning templates
                                                       comma separated list of values. values containing comma should be quoted or escaped with backslash
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES  Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --release-name RELEASE_NAME                            
 -h, --help                                            Print help

> hammer domain create -h
Usage:
    hammer domain create [OPTIONS]

Options:
 --debug BREAKPOINT                        Start pry at a given breakpoint
                                           possible value(s): 'execute', 'params', 'transform_result', 'handle_exception'
 --description DESC                        Full name describing the domain
 --dns DNS_NAME                            Name of dns proxy to use within this domain
 --dns-id DNS_ID                           Id of dns proxy to use within this domain
 --location-ids LOCATION_IDS               Replace locations with given ids
                                           comma separated list of values. values containing comma should be quoted or escaped with backslash
 --location-titles LOCATION_TITLES         Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --locations LOCATION_NAMES                Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --name NAME                               The full dns domain name
 --organization-ids ORGANIZATION_IDS       Replace organizations with given ids.
                                           comma separated list of values. values containing comma should be quoted or escaped with backslash
 --organization-titles ORGANIZATION_TITLES Comma separated list of values. values containing comma should be quoted or escaped with backslash
 --organizations ORGANIZATION_NAMES        Comma separated list of values. values containing comma should be quoted or escaped with backslash
 -h, --help                                Print help
Actions

Also available in: Atom PDF