From 24729f8fa085dcb6829e970ee31eb7a4a765dfa7 Mon Sep 17 00:00:00 2001 From: appdess Date: Wed, 5 May 2021 14:55:02 +0200 Subject: [PATCH] update nsx-t-rout-table-endpoint --- shell/1 | 2 ++ shell/list_vmc_nsxt_route_table.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 shell/1 diff --git a/shell/1 b/shell/1 new file mode 100644 index 0000000..5d88090 --- /dev/null +++ b/shell/1 @@ -0,0 +1,2 @@ +jq is /usr/local/bin/jq +./list_vmc_nsxt_route_table.sh: line 10: type: 2: not found diff --git a/shell/list_vmc_nsxt_route_table.sh b/shell/list_vmc_nsxt_route_table.sh index be85e65..4f7e923 100755 --- a/shell/list_vmc_nsxt_route_table.sh +++ b/shell/list_vmc_nsxt_route_table.sh @@ -23,7 +23,7 @@ CSP_ACCESS_TOKEN=$(echo $RESULTS | jq -r .access_token) curl -s -X GET -H "Content-Type: application/json" -H "csp-auth-token: ${CSP_ACCESS_TOKEN}" -o SDDC_RESULTS "https://vmc.vmware.com/vmc/api/orgs/${ORGID}/sddcs/${SDDCID}" NSXT_PROXY_URL=$(cat SDDC_RESULTS|jq -r .resource_config.nsx_api_public_endpoint_url) -NSXT_ROUTING_TABLE_URL="${NSXT_PROXY_URL}/policy/api/v1/infra/tier-0s/vmc/routing-table?enforcement_point_path=/infra/deployment-zones/default/enforcement-points/vmc-enforcementpoint" +NSXT_ROUTING_TABLE_URL="${NSXT_PROXY_URL}/policy/api/v1/infra/tier-0s/vmc/routing-table?enforcement_point_path=/infra/sites/default/enforcement-points/vmc-enforcementpoint" RESULTS=$(curl -s -X GET -H "Content-Type: application/json" -H "csp-auth-token: ${CSP_ACCESS_TOKEN}" ${NSXT_ROUTING_TABLE_URL}) echo ${RESULTS} | jq \ No newline at end of file