/order_svc

Order CloudForms services via the API in bulk.

Primary LanguageShell

order_svc.sh

Purpose

Order Red Hat CloudForms (or ManageIQ) services in bulk via the API. You must provide a catalog name and catalog item (in text format).

Username

-u <text> If you do not provide a user name, you will be prompted for one.

Password

-P <text> If you do not provide a password, you will be prompted for one.

Total Requests

-t <n> - Total requests specifies the amount of services you wish to order in total.

Group Count and Wait

-g <n> - Group count allows you to break up the orders into groups equaling the number of services specified.

-p <n> - Group wait will pause ordering between groups.

API Wait

-a <n> - Api wait specifies a quick pause between API calls in the same group.

URI

-w <n> - Uri is the URI of your CloudForms/ManageIQ appliance.

Insecure SSL

-N allow insecure SSL.

Keypairs

-d <key1=value1;key2=value2…​> - Using the this flag you can specify keypairs to fill out the dialog (if any) in the order form. They are semicolon delimited key value pairs and the key must equal the "Name" value in the service dialog.

Non-Interactive

Use -n if you don’t want to be prompted if you are sure you wish to continue. Use at your own risk!

Usage

# order_svc.sh -c <catalog name> -i <item name> [ -u <username> -P <password> -t <totalRequests> -g <groupCount> -p <groupWait> -a <apiWait> -w <uri> -d <key1=value1;key2=value2...> -n ]

get_svcs.sh

Purpose

Get a list of your ordered services (to get GUIDs)

Username

-u <text> If you do not provide a user name, you will be prompted for one.

Password

-P <text> If you do not provide a password, you will be prompted for one.

URI

-w <n> - Uri is the URI of your CloudForms/ManageIQ appliance.

Insecure SSL

-N allow insecure SSL.

Usage

# get_svcs.sh -c <catalog name> -i <item name> -u <username> -o <outfile> [ -P <password> -w <uri> -N ]

retire_svcs.sh

Purpose

Immediately retire/delete ALL services that you own. Be very careful that you actually want to do this.

Username

-u <text> If you do not provide a user name, you will be prompted for one.

Password

-P <text> If you do not provide a password, you will be prompted for one.

URI

-w <n> - Uri is the URI of your CloudForms/ManageIQ appliance.

Insecure SSL

-N allow insecure SSL.

Non-Interactive

Use -n if you don’t want to be prompted if you are sure you wish to continue. Use at your own risk!

Usage

# retire_svcs.sh -c <catalog name> -i <item name> -u <username> [ -w <uri> -n -N ]