Skip to content

Commit 999fc13

Browse files
authored
Merge pull request #260 from NetApp/update_usage
Fixed some issues with the output from the 'usage' function.
2 parents 653b66a + 5b8fdad commit 999fc13

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@
1414
################################################################################
1515
usage () {
1616
cat >&2 <<EOF
17-
This script is used to list all the BlueXP connectors that you have access to.
17+
This script is used to list all the BlueXP workspaces that you have access to.
1818
19-
Usage is: $(basename $0) -t refresh_token -a blueXP_account_ID [-x]
19+
Usage is: $(basename $0) -t refresh_token -a blueXP_account_ID
2020
2121
Where: refresh_token - Is a refresh token used to obtain an access token needed
2222
to run the Workload Factory APIs. You can obtain a refresh
2323
token by going to https://services.cloud.netapp.com/refresh-token
2424
blueXP_account_ID - is the BlueXP account ID. Run 'list_bluexp_accts' to get a
2525
list of accounts you have access to.
26-
-x - Means to show all the inactive connectors as well.
2726
2827
Note, instead of passing parameters on the command line, you can set the
2928
following environment variables instead:
@@ -55,12 +54,10 @@ fi
5554
. "$wf_utils"
5655
#
5756
# Parse the command line options.
58-
showAll=false
59-
while getopts ht:a:x opt; do
57+
while getopts ht:a: opt; do
6058
case $opt in
6159
t) REFRESH_TOKEN="$OPTARG" ;;
6260
a) BLUEXP_ACCOUNT_ID="$OPTARG" ;;
63-
x) showAll=true ;;
6461
*) usage ;;
6562
esac
6663
done

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ fi
9696

9797
jq_query='.items[] | if(.type == "connector") then "\(.name);\(.id);\(.type);\(.state.status);N/A;N/A;N/A;\(.associatedTargets.items)" else "\(.name);\(.id);\(.type);\(.state.status);\(.region);\(.vpcId);\(.cloudResourceId | split(":") | .[6]);\(.associatedTargets.items)" end'
9898

99-
#filter=$(urlencode "type eq 'lambda'")
100-
#run_curl GET "$token" "https://api.workloads.netapp.com/accounts/${BLUEXP_ACCOUNT_ID}/links/v1/links?filter=${filter}&include=associatedTargets,state,features" $tmpout $tmperr
10199
run_curl GET "$token" "https://api.workloads.netapp.com/accounts/${BLUEXP_ACCOUNT_ID}/links/v1/links?include=associatedTargets,state,features" $tmpout $tmperr
102100
if jq -r "$jq_query" $tmpout > $tmpout2 2> $tmperr; then
103101
:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Where: refresh_token - Is a refresh token used to obtain an access token needed
2626
token by going to https://services.cloud.netapp.com/refresh-token
2727
blueXP_account_ID - is the BlueXP account ID. Run 'list_bluexp_accts' to get a
2828
list of accounts you have access to
29-
aws_region - is the AWS region where you want the list of FSx file system from.
3029
throttle - is the network throughput limit during transfers (optional, defaults to 100 MiB/s. 0 means unlimited)
3130
schedule - is the schedule to use for the SnapMirror relationship (optional, defaults to "hourly")
3231
3332
source_credentials_ID - is the Workload Factory credentials ID for the AWS account. Run
34-
'list_credentials' to get a list of credentials you have access to
35-
source_aws_region - is the AWS region of the source file system
36-
source_fs_ID - is the file system ID of the FSx file system that is the source of the SnapMirror relationship
33+
'list_credentials' to get a list of credentials you have access to.
34+
source_aws_region - is the AWS region of the source file system. Not required if the source is on-prem.
35+
source_fs_ID - is the file system ID of the file system that is the source of the SnapMirror relationship. Run
36+
'list_filesystems' to get a list of file systems you have access to.
3737
source_svm_ID - is the SVM ID on the source file system where you want the volume replicated from
3838
source_svm_name - is the name of the SVM on the source file system where you want the volume replicated from
3939
source_type - is the file system type of the source cluster. Either 'FSx' or 'on-prem' (optional, defaults to "FSx")

0 commit comments

Comments
 (0)