Skip to content

Commit 85d5a61

Browse files
committed
Add fix for sep update
1 parent 6632402 commit 85d5a61

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ List service endpoints
374374
| Command | Description | Example |
375375
| ------- | ----------- | ------- |
376376
| list | List all SEPs. Provide an application id (-a). | `act.sh sep list -a 29` |
377-
| update | Insert or Update SEPs. Provide an application id (-a) and a jason string or a @file (-d) as parameter. | `act.sh sep update -a 29 -d @examples/sep.json` |
377+
| update | Insert or Update SEPs. Provide an application id (-a) and a json string or a @file (-d) as parameter. | `act.sh sep update -a 29 -d @examples/sep.json` |
378378

379379

380380
## server

act.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v0.5.0"
3-
ACT_LAST_COMMIT="6630a07da02f01b8a872b194aba2f3927ef35c8d"
3+
ACT_LAST_COMMIT="6632402dabc8d70da79a1e855b4625e40ac985d6"
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"
@@ -289,8 +289,8 @@ List service endpoints
289289
EOF
290290
sep_list() { apiCall '/controller/api/accounts/{{i:accountid}}/applications/{{a:application}}/sep' "$@" ; }
291291
rde sep_list "List all SEPs." "Provide an application id (-a)." "-a 29"
292-
sep_update() { apiCall -X POST '/controller/api/accounts/{{i:accountid}}/applications/{a:application}/sep' "$@" ; }
293-
rde sep_update "Insert or Update SEPs." "Provide an application id (-a) and a jason string or a @file (-d) as parameter." "-a 29 -d @examples/sep.json"
292+
sep_update() { apiCall -X POST -d '{{d:sep_json}}' '/controller/api/accounts/{{i:accountid}}/applications/{{a:application}}/sep' "$@" ; }
293+
rde sep_update "Insert or Update SEPs." "Provide an application id (-a) and a json string or a @file (-d) as parameter." "-a 29 -d @examples/sep.json"
294294
doc server << EOF
295295
List servers, their properties and metrics
296296
EOF

commands.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,11 @@ sep:
549549
endpoint: /controller/api/accounts/{{i:accountid}}/applications/{{a:application}}/sep
550550
update:
551551
title: Insert or Update SEPs.
552-
description: Provide an application id (-a) and a jason string or a @file (-d) as parameter.
552+
description: Provide an application id (-a) and a json string or a @file (-d) as parameter.
553553
example: -a 29 -d @examples/sep.json
554554
method: POST
555-
endpoint: /controller/api/accounts/{{i:accountid}}/applications/{a:application}/sep
555+
endpoint: /controller/api/accounts/{{i:accountid}}/applications/{{a:application}}/sep
556+
payload: {{d:sep_json}}
556557
server:
557558
title: Server & Infrastructure Monitoring API
558559
description: List servers, their properties and metrics

postman-collection.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,17 +2236,17 @@
22362236
],
22372237
"body": {
22382238
"mode": "raw",
2239-
"raw": ""
2239+
"raw": "{{sep_json}}"
22402240
},
22412241
"url": {
2242-
"raw": "{{controller_host}}/controller/api/accounts/{{i:accountid}}/applications/{a:application}/sep",
2242+
"raw": "{{controller_host}}/controller/api/accounts/{{i:accountid}}/applications/{{a:application}}/sep",
22432243
"host": [
22442244
"{{controller_host}}"
22452245
],
2246-
"path": ["controller","api","accounts","{{accountid}}","applications","{a:application}","sep"],
2246+
"path": ["controller","api","accounts","{{accountid}}","applications","{{application}}","sep"],
22472247
"query": []
22482248
},
2249-
"description": "Provide an application id (-a) and a jason string or a @file (-d) as parameter."
2249+
"description": "Provide an application id (-a) and a json string or a @file (-d) as parameter."
22502250
}
22512251
}]},{"name": "server","item": [{
22522252
"name": "Delete a machine.",

0 commit comments

Comments
 (0)