Skip to content

Commit 45d4bb8

Browse files
committed
doc: Add command to disable storage intgration for device
1 parent 89383de commit 45d4bb8

3 files changed

Lines changed: 72 additions & 29 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Disable
3+
description: ""
4+
summary: Disable Storage Integration for applications and end-devices.
5+
weight: 30
6+
---
7+
8+
The Storage Integration is implemented as an [Application Package]({{< ref "/reference/application-packages" >}}). In order to disable it, you have to delete a default association for an application and a package association for an end-device.
9+
10+
{{< cli-only >}}
11+
12+
## Disable for an Application
13+
14+
Delete the default association:
15+
16+
```bash
17+
# List default associations
18+
$ ttn-lw-cli applications packages default-associations list "app1"
19+
{
20+
"defaults": [
21+
{
22+
"ids": {
23+
"application_ids": {
24+
"application_id": "app1"
25+
},
26+
"f_port": 100
27+
},
28+
"created_at": "2020-08-24T21:09:44.649890166Z",
29+
"updated_at": "2020-08-24T21:09:44.649890166Z",
30+
"package_name": "storage-integration"
31+
}
32+
]
33+
}
34+
```
35+
36+
```bash
37+
$ ttn-lw-cli applications packages default-associations delete "app1" 100
38+
```
39+
40+
## Disable for an End Device
41+
42+
Delete the package association:
43+
44+
```bash
45+
# List package associations
46+
$ ttn-lw-cli applications packages associations list "app1" "dev1"
47+
{
48+
"associations": [
49+
{
50+
"ids": {
51+
"end_device_ids": {
52+
"device_id": "dev1",
53+
"application_ids": {
54+
"application_id": "app1"
55+
}
56+
},
57+
"f_port": 100
58+
},
59+
"created_at": "2020-08-24T21:09:44.649890166Z",
60+
"updated_at": "2020-08-24T21:09:44.649890166Z",
61+
"package_name": "storage-integration"
62+
}
63+
]
64+
}
65+
66+
67+
```
68+
69+
```bash
70+
$ ttn-lw-cli applications packages associations delete "app1" "dev1" 100
71+
```

doc/content/integrations/storage/enable.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,3 @@ $ ttn-lw-cli applications packages associations set "app1" "dev1" 100 --package-
3232
{{< note >}} The `f_port` value is irrelevant. {{</ note >}}
3333

3434
{{< warning >}} **Do not configure multiple associations for the same end device**, since that will lead to storing duplicate uplinks in the persistent storage. {{</ warning >}}
35-
36-
## Disable the Storage Integration
37-
38-
Delete the package association, or the default association:
39-
40-
```bash
41-
# List default associations
42-
$ ttn-lw-cli applications packages default-associations list "app1"
43-
{
44-
"defaults": [
45-
{
46-
"ids": {
47-
"application_ids": {
48-
"application_id": "app1"
49-
},
50-
"f_port": 100
51-
},
52-
"created_at": "2020-08-24T21:09:44.649890166Z",
53-
"updated_at": "2020-08-24T21:09:44.649890166Z",
54-
"package_name": "storage-integration"
55-
}
56-
]
57-
}
58-
```
59-
60-
```bash
61-
$ ttn-lw-cli applications packages default-associations delete "app1" 100
62-
```

doc/content/integrations/storage/retrieve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Retrieve messages
33
summary: Retrieve historical data using the HTTP API
4-
weight: 30
4+
weight: 40
55
---
66

77
The Storage Integration offers the `ApplicationUpStorage` gRPC service and the respective HTTP endpoints for retrieving historical data. This page merely contains a few examples, see [Reference]({{< ref "/reference/api/storage_integration" >}}) for more details.

0 commit comments

Comments
 (0)