Skip to content

Commit eeee5b0

Browse files
committed
Added several native bluexp samples.
1 parent 9fa7fc3 commit eeee5b0

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Management-Utilities/Workload-Factory-API-Samples/bluexp_fsxn_discovery

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ environment variables:
4141
export PASSWORD=<password>
4242
4343
NOTES:
44-
o You must provide either a SECRET_NAME or a passowrd.
44+
o You must provide either a SECRET_NAME or a password.
4545
o 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.
4747
o If you provide a username and a secret, the username provided
@@ -95,7 +95,7 @@ done
9595
#
9696
# Declare an array of required options and the error message to display if they are not set.
9797
declare -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'
100100
required_options["BLUEXP_ACCOUNT_ID"]='Error: A BlueXP account ID is required to run this script.
101101
You can get the list of accounts you have access to by running the "list_bluexp_accts" script

Management-Utilities/Workload-Factory-API-Samples/bluexp_organization_add

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
################################################################################
88
usage () {
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
1212
Where: 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
@@ -56,7 +56,7 @@ done
5656
#
5757
# Declare an array of required options and the error message to display if they are not set.
5858
declare -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'
6161
required_options["ORGANIZATION_NAME"]='Error: You must provide the name of the organization you want to create.\n\n'
6262

Management-Utilities/Workload-Factory-API-Samples/bluexp_organization_delete

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
################################################################################
88
usage () {
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
1212
Where: 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
@@ -56,7 +56,7 @@ done
5656
#
5757
# Declare an array of required options and the error message to display if they are not set.
5858
declare -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'
6161
required_options["ORGANIZATION_ID"]='Error: You must provide the name of the organization you want to delete.
6262
You can get the list of organization you have access to by running the "list_bluexp_accts" script

Management-Utilities/Workload-Factory-API-Samples/list_bluexp_connectors

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -67,7 +67,7 @@ done
6767
#
6868
# Declare an array of required options and the error message to display if they are not set.
6969
declare -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'
7272
required_options["BLUEXP_ACCOUNT_ID"]='Error: A BlueXP account ID is required to run this script.
7373
You can get the list of accounts you have access to by running the "list_bluexp_accts" script

Management-Utilities/Workload-Factory-API-Samples/list_bluexp_workspaces

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -67,7 +67,7 @@ done
6767
#
6868
# Declare an array of required options and the error message to display if they are not set.
6969
declare -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'
7272
required_options["BLUEXP_ACCOUNT_ID"]='Error: A BlueXP account ID is required to run this script.
7373
You can get the list of accounts you have access to by running the "list_bluexp_accts" script

Management-Utilities/Workload-Factory-API-Samples/wf_utils

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)