1
- # Broker Scripts
1
+ # FIWARE Broker Scripts
2
2
3
3
This document describes the scripts available in the ` scripts ` directory that
4
- help manage the context broker.
4
+ help manage the FIWARE context broker.
5
+
6
+ - [ Register All Subscriptions] ( #register-all-subscriptions )
7
+ - [ Delete All Subscriptions] ( #delete-all-subscriptions )
5
8
6
9
## Register All Subscriptions
7
10
@@ -27,22 +30,22 @@ URL specified in the header for each subscription.
27
30
28
31
- ` REDMINE_API_KEY ` : The API key for your Redmine instance. This is used if the
29
32
` api_key ` argument is not provided.
30
- - ` ORION_URL ` : The base URL for your Orion Context Broker. Defaults to
33
+ - ` BROKER_URL ` : The base URL for your Orion Context Broker. Defaults to
31
34
` http://app.local:1026 ` if not set.
32
35
33
- ** Note:** Make sure to set the ` REDMINE_API_KEY ` and ` ORION_URL ` environment
34
- variables before running this script if you're not providing them as arguments .
36
+ ** Note:** Make sure to set the ` BROKER_URL ` environment variable to your context
37
+ broker URL before running this script.
35
38
36
39
To prepend an environment variable to a command in the terminal, you can do so
37
40
like this:
38
41
39
42
``` bash
40
- REDMINE_API_KEY=your_api_key ORION_URL=your_orion_url ./scripts/register_all_subscriptions.sh
43
+ BROKER_URL=your_broker_url ./scripts/register_all_subscriptions.sh < your_api_key >
41
44
```
42
45
43
- Replace ` your_api_key ` with your actual Redmine API key and ` your_orion_url `
44
- with the correct URL. This will set the ` REDMINE_API_KEY ` and ` ORION_URL `
45
- environment variables for the duration of the ` register_all_subscriptions.sh ` script.
46
+ Replace ` your_api_key ` with your actual Redmine API key and ` your_broker_url `
47
+ with the correct URL. This will set the ` BROKER_URL ` environment variables for
48
+ the duration of the ` register_all_subscriptions.sh ` script.
46
49
47
50
## Delete All Subscriptions
48
51
@@ -61,19 +64,19 @@ subscriptions, and then makes DELETE requests to the
61
64
62
65
** Environment Variables:**
63
66
64
- - ` ORION_URL ` : The base URL for your Orion Context Broker. Defaults to
67
+ - ` BROKER_URL ` : The base URL for your Orion Context Broker. Defaults to
65
68
` http://app.local:1026 ` if not set.
66
69
67
70
** Note:** This script does not require any arguments. Make sure to set the
68
- ` ORION_URL ` environment variable to your context broker URL before running this script.
71
+ ` BROKER_URL ` environment variable to your context broker URL before running this script.
69
72
70
73
To prepend an environment variable to a command in the terminal, you can do so
71
74
like this:
72
75
73
76
``` bash
74
- ORION_URL=your_orion_url ./scripts/delete_all_subscriptions.sh
77
+ BROKER_URL=your_broker_url ./scripts/delete_all_subscriptions.sh
75
78
```
76
79
77
- Replace ` your_orion_url ` with your actual Redmine API key. This will set the
78
- ` ORION_URL ` environment variable for the duration of the
80
+ Replace ` your_broker_url ` with your actual Redmine API key. This will set the
81
+ ` BROKER_URL ` environment variable for the duration of the
79
82
` delete_all_subscriptions.sh ` script.
0 commit comments