File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
Management-Utilities/Workload-Factory-API-Samples Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ environment variables:
4141 export PASSWORD=<password>
4242
4343NOTES:
44- o You must provide either a SECRET_NAME or a passowrd .
44+ o You must provide either a SECRET_NAME or a password .
4545o If you don't provide a username, it will default to fsxadmin unless
4646 you use a secret and the secret has a username field.
4747o If you provide a username and a secret, the username provided
9595#
9696# Declare an array of required options and the error message to display if they are not set.
9797declare -A required_options
98- required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh tokon is required to run this script. It can be obtain from this web page:
98+ required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh token is required to run this script. It can be obtained from this web page:
9999 https://services.cloud.netapp.com/refresh-token\n\n'
100100required_options[" BLUEXP_ACCOUNT_ID" ]=' Error: A BlueXP account ID is required to run this script.
101101You can get the list of accounts you have access to by running the "list_bluexp_accts" script
Original file line number Diff line number Diff line change 77# ###############################################################################
88usage () {
99 cat 1>&2 << EOF
10- Usage: $( basename $0 ) -t REFRESH_TOKEN -o ORAGANIZATION_NAME
10+ Usage: $( basename $0 ) -t REFRESH_TOKEN -o ORGANIZATION_NAME
1111
1212Where: REFRESH_TOKEN - Is a refresh token used to obtain an access token needed
1313 to run the Workload Factory APIs. You can obtain a refresh
5656#
5757# Declare an array of required options and the error message to display if they are not set.
5858declare -A required_options
59- required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh tokon is required to run this script. It can be obtain from this web page:
59+ required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh token is required to run this script. It can be obtained from this web page:
6060 https://services.cloud.netapp.com/refresh-token\n\n'
6161required_options[" ORGANIZATION_NAME" ]=' Error: You must provide the name of the organization you want to create.\n\n'
6262
Original file line number Diff line number Diff line change 77# ###############################################################################
88usage () {
99 cat 1>&2 << EOF
10- Usage: $( basename $0 ) -t REFRESH_TOKEN -o ORAGANIZATION_ID
10+ Usage: $( basename $0 ) -t REFRESH_TOKEN -o ORGANIZATION_ID
1111
1212Where: REFRESH_TOKEN - Is a refresh token used to obtain an access token needed
1313 to run the Workload Factory APIs. You can obtain a refresh
5656#
5757# Declare an array of required options and the error message to display if they are not set.
5858declare -A required_options
59- required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh tokon is required to run this script. It can be obtain from this web page:
59+ required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh token is required to run this script. It can be obtained from this web page:
6060 https://services.cloud.netapp.com/refresh-token\n\n'
6161required_options[" ORGANIZATION_ID" ]=' Error: You must provide the name of the organization you want to delete.
6262You can get the list of organization you have access to by running the "list_bluexp_accts" script
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # This script is used to list all the connetors that a user has
3+ # This script is used to list all the BlueXP connectors that a user has
44# access to.
55#
66# It is dependent on the 'wf_utils' file that is included in this repo. That
6767#
6868# Declare an array of required options and the error message to display if they are not set.
6969declare -A required_options
70- required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh tokon is required to run this script. It can be obtain from this web page:
70+ required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh token is required to run this script. It can be obtained from this web page:
7171 https://services.cloud.netapp.com/refresh-token\n\n'
7272required_options[" BLUEXP_ACCOUNT_ID" ]=' Error: A BlueXP account ID is required to run this script.
7373You can get the list of accounts you have access to by running the "list_bluexp_accts" script
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # This script is used to list all the connetors that a user has
3+ # This script is used to list all the BlueXP workspaces that a user has
44# access to.
55#
66# It is dependent on the 'wf_utils' file that is included in this repo. That
6767#
6868# Declare an array of required options and the error message to display if they are not set.
6969declare -A required_options
70- required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh tokon is required to run this script. It can be obtain from this web page:
70+ required_options[" REFRESH_TOKEN" ]=' Error: A BlueXP refresh token is required to run this script. It can be obtained from this web page:
7171 https://services.cloud.netapp.com/refresh-token\n\n'
7272required_options[" BLUEXP_ACCOUNT_ID" ]=' Error: A BlueXP account ID is required to run this script.
7373You can get the list of accounts you have access to by running the "list_bluexp_accts" script
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ run_curl () {
119119 GET)
120120 curl -sw " %{stderr}%{http_code},%{errormsg}" " $url " \
121121 -H " Accept: $accept " " ${extraHeaders[@]} " \
122- -H " Authorization: Bearer $token " ${extraHeaders[*]} > $output 2> $errorOutput
122+ -H " Authorization: Bearer $token " > $output 2> $errorOutput
123123 exitCode=$?
124124 ;;
125125 POST|PUT)
You can’t perform that action at this time.
0 commit comments