Skip to content

Commit

Permalink
Fix: update rename bt endpoint, #34
Browse files Browse the repository at this point in the history
  • Loading branch information
svrnm committed Dec 10, 2021
1 parent 9b200d4 commit efc9c12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions act.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -832,4 +832,4 @@ informationPoint:
example: -i 1326,1327
method: POST
endpoint: /controller/restui/informationPointUiService/deleteInformationPoints
payload: [{{i:information_points}}]
payload: [{{i:information_points}}]
4 changes: 2 additions & 2 deletions postman-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit efc9c12

Please sign in to comment.