Feature #3497
closedResource create/update should provide option to associate Orgs
Description
Description of problem:
In the UI, we can associate organization with a proxy. There does not appear to be a way to do that in the CLI, however. Would be nice to have.
Something like
hammer -u admin -p admin proxy create --name foobar --url https://example.com:9090 --add_org org_name
hammer -u admin -p admin proxy create --name foobar --url https://example.com:9090 --remove_org org_name
hammer -u admin -p admin proxy update --name foobar --remove_org org_name
hammer -u admin -p admin proxy update --name foobar --remove_org org_name
and even possibly comma-separated, e.g.,
--add_org NorthAmerica,EMEA,APAC
Updated by Dominic Cleal about 11 years ago
It's possible to do this via the organization/location subcommands, but I don't think you can through the resource being associated.
Updated by Dominic Cleal about 11 years ago
- Related to Feature #2844: Associating resources with locations and orgs added
Updated by Tomáš Strachota about 8 years ago
- Category changed from Foreman commands (obsolete) to Proxy
- Status changed from New to Closed
Closing, current release hammer provides standard associating options and commands for proxies:
[~|vm 2.3]hammer proxy create -h Usage: hammer proxy create [OPTIONS] Options: --download-policy DOWNLOAD_POLICY Download Policy of the capsule, must be one of immediate, on_demand, background, inherit --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. --locations LOCATION_NAMES Comma separated list of values. --name NAME --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. --organizations ORGANIZATION_NAMES Comma separated list of values. --url URL -h, --help print help [~|vm 2.3]hammer proxy update -h Usage: hammer proxy update [OPTIONS] Options: --download-policy DOWNLOAD_POLICY Download Policy of the capsule, must be one of immediate, on_demand, background, inherit --id ID --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. --locations LOCATION_NAMES Comma separated list of values. --name NAME Name to search by --new-name NEW_NAME --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. --organizations ORGANIZATION_NAMES Comma separated list of values. --url URL -h, --help print help [~|vm 2.3]hammer organization -h | grep proxy add-smart-proxy Associate a smart proxy remove-smart-proxy Disassociate a smart proxy [~|vm 2.3]hammer --version hammer (0.8.0) * hammer_cli_foreman (0.8.0) * hammer_cli_foreman_tasks (0.0.10) * hammer_cli_katello (0.0.26)