From efc9c1266341f1ef62e684b41c3021693b73146a Mon Sep 17 00:00:00 2001 From: svrnm Date: Fri, 10 Dec 2021 10:16:28 +0100 Subject: [PATCH] Fix: update rename bt endpoint, #34 --- act.sh | 4 ++-- commands.yml | 4 ++-- postman-collection.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/act.sh b/act.sh index ab2bc97..093a044 100755 --- a/act.sh +++ b/act.sh @@ -1,6 +1,6 @@ #!/bin/bash ACT_VERSION="v21.4.0" -ACT_LAST_COMMIT="4c2d9a48c1272ccab4fc3b39e3a7d11027e146dc" +ACT_LAST_COMMIT="9b200d473e5c26fa65f6aa112a34c648a3dc0645" USER_CONFIG="$HOME/.appdynamics/act/config.sh" GLOBAL_CONFIG="/etc/appdynamics/act/config.sh" CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt" @@ -184,7 +184,7 @@ bt_get() { apiCall '/controller/rest/applications/{{a:application}}/business-tra rde bt_get "Get a BT." "Provide as parameters bt id (-b) and application id (-a)." "-a 29 -b 13" bt_list() { apiCall '/controller/rest/applications/{{a:application}}/business-transactions' "$@" ; } rde bt_list "List all BTs." "Provide the application id as parameter (-a)" "-a 29" -bt_rename() { apiCall -X POST -d '{{n:business_transaction_name}}' '/controller/restui/bt/renameBT?id={{b:business_transaction}}' "$@" ; } +bt_rename() { apiCall -X POST -d '{{n:business_transaction_name}}' '/controller/restui/v1/bt/renameBT?id={{b:business_transaction}}' "$@" ; } rde bt_rename "Rename a BT." "Provide the bt id (-b) and the new name (-n) as parameters" "-b 13 -n Checkout" doc configuration << EOF The configuration API enables you read and modify selected Controller configuration settings programmatically. diff --git a/commands.yml b/commands.yml index b9e4f75..05ffa82 100644 --- a/commands.yml +++ b/commands.yml @@ -292,7 +292,7 @@ bt: description: Provide the bt id (-b) and the new name (-n) as parameters example: -b 13 -n Checkout method: POST - endpoint: /controller/restui/bt/renameBT?id={{b:business_transaction}} + endpoint: /controller/restui/v1/bt/renameBT?id={{b:business_transaction}} payload: {{n:business_transaction_name}} creategroup: title: Create a BT group. @@ -832,4 +832,4 @@ informationPoint: example: -i 1326,1327 method: POST endpoint: /controller/restui/informationPointUiService/deleteInformationPoints - payload: [{{i:information_points}}] \ No newline at end of file + payload: [{{i:information_points}}] diff --git a/postman-collection.json b/postman-collection.json index 94f68a7..3f4918d 100644 --- a/postman-collection.json +++ b/postman-collection.json @@ -1219,11 +1219,11 @@ "raw": "{{business_transaction_name}}" }, "url": { - "raw": "{{controller_host}}/controller/restui/bt/renameBT?id={{b:business_transaction}}", + "raw": "{{controller_host}}/controller/restui/v1/bt/renameBT?id={{b:business_transaction}}", "host": [ "{{controller_host}}" ], - "path": ["controller","restui","bt","renameBT"], + "path": ["controller","restui","v1","bt","renameBT"], "query": [{"key": "id","value": "{{business_transaction}}"}] }, "description": "Provide the bt id (-b) and the new name (-n) as parameters"