-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestConnection.txt
31 lines (31 loc) · 1.03 KB
/
testConnection.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
curl -X POST -i -u devops:foobar -H 'Content-Type: application/json' -d '{
"targetActorSelection": "/system/sharding/connection",
"headers": {
"aggregate": false
},
"piggybackCommand": {
"type": "connectivity.commands:testConnection",
"connection": {
"id": "mqtt-udmiduino-0",
"connectionType": "mqtt",
"connectionStatus": "open",
"failoverEnabled": true,
"uri": "black-pearl.clients.global.arup.com:1883",
"sources": [
{
"addresses": [
"arup-8-fitzroy-street/#"
],
"authorizationContext": ["nginx:ditto"],
"qos": 0,
"filters": []
}
],
"targets": [{
"address": "arup-8-fitzroy-street/{{ thing:id }}",
"authorizationContext": ["nginx:ditto"],
"qos": 0
}]
}
}
}' http://localhost:8080/devops/piggyback/connectivity