Skip to content

Commit efc9c12

Browse files
committed
Fix: update rename bt endpoint, #34
1 parent 9b200d4 commit efc9c12

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

act.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v21.4.0"
3-
ACT_LAST_COMMIT="4c2d9a48c1272ccab4fc3b39e3a7d11027e146dc"
3+
ACT_LAST_COMMIT="9b200d473e5c26fa65f6aa112a34c648a3dc0645"
44
USER_CONFIG="$HOME/.appdynamics/act/config.sh"
55
GLOBAL_CONFIG="/etc/appdynamics/act/config.sh"
66
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
@@ -184,7 +184,7 @@ bt_get() { apiCall '/controller/rest/applications/{{a:application}}/business-tra
184184
rde bt_get "Get a BT." "Provide as parameters bt id (-b) and application id (-a)." "-a 29 -b 13"
185185
bt_list() { apiCall '/controller/rest/applications/{{a:application}}/business-transactions' "$@" ; }
186186
rde bt_list "List all BTs." "Provide the application id as parameter (-a)" "-a 29"
187-
bt_rename() { apiCall -X POST -d '{{n:business_transaction_name}}' '/controller/restui/bt/renameBT?id={{b:business_transaction}}' "$@" ; }
187+
bt_rename() { apiCall -X POST -d '{{n:business_transaction_name}}' '/controller/restui/v1/bt/renameBT?id={{b:business_transaction}}' "$@" ; }
188188
rde bt_rename "Rename a BT." "Provide the bt id (-b) and the new name (-n) as parameters" "-b 13 -n Checkout"
189189
doc configuration << EOF
190190
The configuration API enables you read and modify selected Controller configuration settings programmatically.

commands.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ bt:
292292
description: Provide the bt id (-b) and the new name (-n) as parameters
293293
example: -b 13 -n Checkout
294294
method: POST
295-
endpoint: /controller/restui/bt/renameBT?id={{b:business_transaction}}
295+
endpoint: /controller/restui/v1/bt/renameBT?id={{b:business_transaction}}
296296
payload: {{n:business_transaction_name}}
297297
creategroup:
298298
title: Create a BT group.
@@ -832,4 +832,4 @@ informationPoint:
832832
example: -i 1326,1327
833833
method: POST
834834
endpoint: /controller/restui/informationPointUiService/deleteInformationPoints
835-
payload: [{{i:information_points}}]
835+
payload: [{{i:information_points}}]

postman-collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,11 +1219,11 @@
12191219
"raw": "{{business_transaction_name}}"
12201220
},
12211221
"url": {
1222-
"raw": "{{controller_host}}/controller/restui/bt/renameBT?id={{b:business_transaction}}",
1222+
"raw": "{{controller_host}}/controller/restui/v1/bt/renameBT?id={{b:business_transaction}}",
12231223
"host": [
12241224
"{{controller_host}}"
12251225
],
1226-
"path": ["controller","restui","bt","renameBT"],
1226+
"path": ["controller","restui","v1","bt","renameBT"],
12271227
"query": [{"key": "id","value": "{{business_transaction}}"}]
12281228
},
12291229
"description": "Provide the bt id (-b) and the new name (-n) as parameters"

0 commit comments

Comments
 (0)