xref: /aosp_15_r20/external/ot-br-posix/src/rest/openapi.yaml (revision 4a64e381480ef79f0532b2421e44e6ee336b8e0d)
1*4a64e381SAndroid Build Coastguard Workeropenapi: 3.0.3
2*4a64e381SAndroid Build Coastguard Workerinfo:
3*4a64e381SAndroid Build Coastguard Worker  title: Swagger OpenThread REST API
4*4a64e381SAndroid Build Coastguard Worker  description: |-
5*4a64e381SAndroid Build Coastguard Worker    This describes the OpenThread Border Router REST API. The API is provided by the otbr-agent, if the cmake flag `OTBR_REST=ON` is set. By default
6*4a64e381SAndroid Build Coastguard Worker    the REST API listens on any address on port 8081.
7*4a64e381SAndroid Build Coastguard Worker
8*4a64e381SAndroid Build Coastguard Worker    Some useful links:
9*4a64e381SAndroid Build Coastguard Worker    - [OpenThread Border Router repository](github.com/openthread/ot-br-posix/)
10*4a64e381SAndroid Build Coastguard Worker  license:
11*4a64e381SAndroid Build Coastguard Worker    name: BSD 3-Clause
12*4a64e381SAndroid Build Coastguard Worker    url: https://github.com/openthread/ot-br-posix/blob/main/LICENSE
13*4a64e381SAndroid Build Coastguard Worker  version: 0.3.0
14*4a64e381SAndroid Build Coastguard Workerservers:
15*4a64e381SAndroid Build Coastguard Worker  - url: http://localhost:8081
16*4a64e381SAndroid Build Coastguard Workertags:
17*4a64e381SAndroid Build Coastguard Worker  - name: node
18*4a64e381SAndroid Build Coastguard Worker    description: Thread parameters of this node.
19*4a64e381SAndroid Build Coastguard Worker  - name: diagnostics
20*4a64e381SAndroid Build Coastguard Worker    description: Thread network diagnostic.
21*4a64e381SAndroid Build Coastguard Workerpaths:
22*4a64e381SAndroid Build Coastguard Worker  /diagnostics:
23*4a64e381SAndroid Build Coastguard Worker    get:
24*4a64e381SAndroid Build Coastguard Worker      tags:
25*4a64e381SAndroid Build Coastguard Worker        - diagnostics
26*4a64e381SAndroid Build Coastguard Worker      summary: Get Thread network diagnostics
27*4a64e381SAndroid Build Coastguard Worker      responses:
28*4a64e381SAndroid Build Coastguard Worker        "200":
29*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
30*4a64e381SAndroid Build Coastguard Worker          content:
31*4a64e381SAndroid Build Coastguard Worker            application/json:
32*4a64e381SAndroid Build Coastguard Worker              schema:
33*4a64e381SAndroid Build Coastguard Worker                type: object
34*4a64e381SAndroid Build Coastguard Worker  /node:
35*4a64e381SAndroid Build Coastguard Worker    get:
36*4a64e381SAndroid Build Coastguard Worker      tags:
37*4a64e381SAndroid Build Coastguard Worker        - node
38*4a64e381SAndroid Build Coastguard Worker      summary: Get current active node parameters
39*4a64e381SAndroid Build Coastguard Worker      responses:
40*4a64e381SAndroid Build Coastguard Worker        "200":
41*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
42*4a64e381SAndroid Build Coastguard Worker          content:
43*4a64e381SAndroid Build Coastguard Worker            application/json:
44*4a64e381SAndroid Build Coastguard Worker              schema:
45*4a64e381SAndroid Build Coastguard Worker                type: object
46*4a64e381SAndroid Build Coastguard Worker    delete:
47*4a64e381SAndroid Build Coastguard Worker      tags:
48*4a64e381SAndroid Build Coastguard Worker        - node
49*4a64e381SAndroid Build Coastguard Worker      summary: Erase all persistent information, essentially factory reset the Border Router.
50*4a64e381SAndroid Build Coastguard Worker      responses:
51*4a64e381SAndroid Build Coastguard Worker        "200":
52*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
53*4a64e381SAndroid Build Coastguard Worker        "409":
54*4a64e381SAndroid Build Coastguard Worker          description: Thread interface is in wrong state.
55*4a64e381SAndroid Build Coastguard Worker  /node/ba-id:
56*4a64e381SAndroid Build Coastguard Worker    get:
57*4a64e381SAndroid Build Coastguard Worker      tags:
58*4a64e381SAndroid Build Coastguard Worker        - node
59*4a64e381SAndroid Build Coastguard Worker      summary: Get the border agent ID
60*4a64e381SAndroid Build Coastguard Worker      responses:
61*4a64e381SAndroid Build Coastguard Worker        "200":
62*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
63*4a64e381SAndroid Build Coastguard Worker          content:
64*4a64e381SAndroid Build Coastguard Worker            application/json:
65*4a64e381SAndroid Build Coastguard Worker              schema:
66*4a64e381SAndroid Build Coastguard Worker                type: string
67*4a64e381SAndroid Build Coastguard Worker                description: 16 byte border agent ID as hex string.
68*4a64e381SAndroid Build Coastguard Worker                example: "AA897CA8A67F6E6DD6166133AD1562A5"
69*4a64e381SAndroid Build Coastguard Worker  /node/rloc:
70*4a64e381SAndroid Build Coastguard Worker    get:
71*4a64e381SAndroid Build Coastguard Worker      tags:
72*4a64e381SAndroid Build Coastguard Worker        - node
73*4a64e381SAndroid Build Coastguard Worker      summary: Routing Locator IPv6 address of this Thread node.
74*4a64e381SAndroid Build Coastguard Worker      responses:
75*4a64e381SAndroid Build Coastguard Worker        "200":
76*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
77*4a64e381SAndroid Build Coastguard Worker          content:
78*4a64e381SAndroid Build Coastguard Worker            application/json:
79*4a64e381SAndroid Build Coastguard Worker              schema:
80*4a64e381SAndroid Build Coastguard Worker                type: string
81*4a64e381SAndroid Build Coastguard Worker                description: RLOC IPv6 address
82*4a64e381SAndroid Build Coastguard Worker                example: "fda4:728e:4b39:bc4a:0:ff:fe00:1000"
83*4a64e381SAndroid Build Coastguard Worker  /node/rloc16:
84*4a64e381SAndroid Build Coastguard Worker    get:
85*4a64e381SAndroid Build Coastguard Worker      tags:
86*4a64e381SAndroid Build Coastguard Worker        - node
87*4a64e381SAndroid Build Coastguard Worker      summary: Routing Locator Router and Child ID (RLOC16).
88*4a64e381SAndroid Build Coastguard Worker      description: Last 16-bit of the Routing Locator IPv6 consisting of the Router ID and a Child ID.
89*4a64e381SAndroid Build Coastguard Worker      responses:
90*4a64e381SAndroid Build Coastguard Worker        "200":
91*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
92*4a64e381SAndroid Build Coastguard Worker          content:
93*4a64e381SAndroid Build Coastguard Worker            application/json:
94*4a64e381SAndroid Build Coastguard Worker              schema:
95*4a64e381SAndroid Build Coastguard Worker                type: number
96*4a64e381SAndroid Build Coastguard Worker                description: RLOC16 address
97*4a64e381SAndroid Build Coastguard Worker                example: 4096
98*4a64e381SAndroid Build Coastguard Worker  /node/ext-address:
99*4a64e381SAndroid Build Coastguard Worker    get:
100*4a64e381SAndroid Build Coastguard Worker      tags:
101*4a64e381SAndroid Build Coastguard Worker        - node
102*4a64e381SAndroid Build Coastguard Worker      summary: IEEE 802.15.4 Extended Address (EUI-64).
103*4a64e381SAndroid Build Coastguard Worker      responses:
104*4a64e381SAndroid Build Coastguard Worker        "200":
105*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
106*4a64e381SAndroid Build Coastguard Worker          content:
107*4a64e381SAndroid Build Coastguard Worker            application/json:
108*4a64e381SAndroid Build Coastguard Worker              schema:
109*4a64e381SAndroid Build Coastguard Worker                type: string
110*4a64e381SAndroid Build Coastguard Worker                description: 8-byte IEEE 802.15.4 Extended Address of this node as hex string.
111*4a64e381SAndroid Build Coastguard Worker                example: "C21F906BE0352A4C"
112*4a64e381SAndroid Build Coastguard Worker  /node/state:
113*4a64e381SAndroid Build Coastguard Worker    get:
114*4a64e381SAndroid Build Coastguard Worker      tags:
115*4a64e381SAndroid Build Coastguard Worker        - node
116*4a64e381SAndroid Build Coastguard Worker      summary: Get current Thread state.
117*4a64e381SAndroid Build Coastguard Worker      description: |-
118*4a64e381SAndroid Build Coastguard Worker        State describing the current Thread role of this Thread node.
119*4a64e381SAndroid Build Coastguard Worker        - disabled: The Thread stack is disabled.
120*4a64e381SAndroid Build Coastguard Worker        - detached: Not currently participating in a Thread network/partition.
121*4a64e381SAndroid Build Coastguard Worker        - child: The Thread Child role.
122*4a64e381SAndroid Build Coastguard Worker        - router: The Thread Router role.
123*4a64e381SAndroid Build Coastguard Worker        - leader: The Thread Leader role.
124*4a64e381SAndroid Build Coastguard Worker      responses:
125*4a64e381SAndroid Build Coastguard Worker        "200":
126*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
127*4a64e381SAndroid Build Coastguard Worker          content:
128*4a64e381SAndroid Build Coastguard Worker            application/json:
129*4a64e381SAndroid Build Coastguard Worker              schema:
130*4a64e381SAndroid Build Coastguard Worker                type: string
131*4a64e381SAndroid Build Coastguard Worker                description: Current state
132*4a64e381SAndroid Build Coastguard Worker                example: "leader"
133*4a64e381SAndroid Build Coastguard Worker    put:
134*4a64e381SAndroid Build Coastguard Worker      tags:
135*4a64e381SAndroid Build Coastguard Worker        - node
136*4a64e381SAndroid Build Coastguard Worker      summary: Set current Thread state.
137*4a64e381SAndroid Build Coastguard Worker      description: |-
138*4a64e381SAndroid Build Coastguard Worker        Enable and disable the Thread protocol operation. If network interface
139*4a64e381SAndroid Build Coastguard Worker        hasn't been started yet, it will get started automatically.
140*4a64e381SAndroid Build Coastguard Worker      responses:
141*4a64e381SAndroid Build Coastguard Worker        "200":
142*4a64e381SAndroid Build Coastguard Worker          description: Successful operation.
143*4a64e381SAndroid Build Coastguard Worker      requestBody:
144*4a64e381SAndroid Build Coastguard Worker        description: New Thread state
145*4a64e381SAndroid Build Coastguard Worker        content:
146*4a64e381SAndroid Build Coastguard Worker          application/json:
147*4a64e381SAndroid Build Coastguard Worker            schema:
148*4a64e381SAndroid Build Coastguard Worker              type: string
149*4a64e381SAndroid Build Coastguard Worker              description: Can be "enable" or "disable".
150*4a64e381SAndroid Build Coastguard Worker              example: "enable"
151*4a64e381SAndroid Build Coastguard Worker  /node/network-name:
152*4a64e381SAndroid Build Coastguard Worker    get:
153*4a64e381SAndroid Build Coastguard Worker      tags:
154*4a64e381SAndroid Build Coastguard Worker        - node
155*4a64e381SAndroid Build Coastguard Worker      summary: Thread network name this node is part of.
156*4a64e381SAndroid Build Coastguard Worker      responses:
157*4a64e381SAndroid Build Coastguard Worker        "200":
158*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
159*4a64e381SAndroid Build Coastguard Worker          content:
160*4a64e381SAndroid Build Coastguard Worker            application/json:
161*4a64e381SAndroid Build Coastguard Worker              schema:
162*4a64e381SAndroid Build Coastguard Worker                type: string
163*4a64e381SAndroid Build Coastguard Worker                description: Thread network name.
164*4a64e381SAndroid Build Coastguard Worker                example: "OpenThread-e445"
165*4a64e381SAndroid Build Coastguard Worker  /node/leader-data:
166*4a64e381SAndroid Build Coastguard Worker    get:
167*4a64e381SAndroid Build Coastguard Worker      tags:
168*4a64e381SAndroid Build Coastguard Worker        - node
169*4a64e381SAndroid Build Coastguard Worker      summary: Gets the network's leader data.
170*4a64e381SAndroid Build Coastguard Worker      responses:
171*4a64e381SAndroid Build Coastguard Worker        "200":
172*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
173*4a64e381SAndroid Build Coastguard Worker          content:
174*4a64e381SAndroid Build Coastguard Worker            application/json:
175*4a64e381SAndroid Build Coastguard Worker              schema:
176*4a64e381SAndroid Build Coastguard Worker                $ref: "#/components/schemas/LeaderData"
177*4a64e381SAndroid Build Coastguard Worker  /node/ext-panid:
178*4a64e381SAndroid Build Coastguard Worker    get:
179*4a64e381SAndroid Build Coastguard Worker      tags:
180*4a64e381SAndroid Build Coastguard Worker        - node
181*4a64e381SAndroid Build Coastguard Worker      summary: Extended PAN ID.
182*4a64e381SAndroid Build Coastguard Worker      responses:
183*4a64e381SAndroid Build Coastguard Worker        "200":
184*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
185*4a64e381SAndroid Build Coastguard Worker          content:
186*4a64e381SAndroid Build Coastguard Worker            application/json:
187*4a64e381SAndroid Build Coastguard Worker              schema:
188*4a64e381SAndroid Build Coastguard Worker                type: string
189*4a64e381SAndroid Build Coastguard Worker                description: 8-byte extended PAN ID as hex string.
190*4a64e381SAndroid Build Coastguard Worker                example: "3CAB144450CF407E"
191*4a64e381SAndroid Build Coastguard Worker  /node/num-of-router:
192*4a64e381SAndroid Build Coastguard Worker    get:
193*4a64e381SAndroid Build Coastguard Worker      tags:
194*4a64e381SAndroid Build Coastguard Worker        - node
195*4a64e381SAndroid Build Coastguard Worker      summary: Get number of router devices
196*4a64e381SAndroid Build Coastguard Worker      responses:
197*4a64e381SAndroid Build Coastguard Worker        "200":
198*4a64e381SAndroid Build Coastguard Worker          description: Successful operation
199*4a64e381SAndroid Build Coastguard Worker          content:
200*4a64e381SAndroid Build Coastguard Worker            application/json:
201*4a64e381SAndroid Build Coastguard Worker              schema:
202*4a64e381SAndroid Build Coastguard Worker                type: number
203*4a64e381SAndroid Build Coastguard Worker                description: Number of routers
204*4a64e381SAndroid Build Coastguard Worker                example: 1
205*4a64e381SAndroid Build Coastguard Worker  /node/dataset/active:
206*4a64e381SAndroid Build Coastguard Worker    get:
207*4a64e381SAndroid Build Coastguard Worker      tags:
208*4a64e381SAndroid Build Coastguard Worker        - node
209*4a64e381SAndroid Build Coastguard Worker      summary: Get current active operational dataset
210*4a64e381SAndroid Build Coastguard Worker      responses:
211*4a64e381SAndroid Build Coastguard Worker        "200":
212*4a64e381SAndroid Build Coastguard Worker          description: Returns currently active operational dataset
213*4a64e381SAndroid Build Coastguard Worker          content:
214*4a64e381SAndroid Build Coastguard Worker            application/json:
215*4a64e381SAndroid Build Coastguard Worker              schema:
216*4a64e381SAndroid Build Coastguard Worker                $ref: "#/components/schemas/Dataset"
217*4a64e381SAndroid Build Coastguard Worker            text/plain:
218*4a64e381SAndroid Build Coastguard Worker              schema:
219*4a64e381SAndroid Build Coastguard Worker                $ref: "#/components/schemas/DatasetTlv"
220*4a64e381SAndroid Build Coastguard Worker        "204":
221*4a64e381SAndroid Build Coastguard Worker          description: No active operational dataset
222*4a64e381SAndroid Build Coastguard Worker    put:
223*4a64e381SAndroid Build Coastguard Worker      tags:
224*4a64e381SAndroid Build Coastguard Worker        - node
225*4a64e381SAndroid Build Coastguard Worker      summary: Creates or updates the active operational dataset
226*4a64e381SAndroid Build Coastguard Worker      description: |-
227*4a64e381SAndroid Build Coastguard Worker        Creates or updates the the active operational dataset on the current node. Only allowed if the Thread node
228*4a64e381SAndroid Build Coastguard Worker        is inactive. If the Thread node is active, a pending dataset should be used to update the current active
229*4a64e381SAndroid Build Coastguard Worker        operational dataset.
230*4a64e381SAndroid Build Coastguard Worker      requestBody:
231*4a64e381SAndroid Build Coastguard Worker        description: |-
232*4a64e381SAndroid Build Coastguard Worker          Operational dataset that will be stored as active operational dataset. Supports request body Content-Type
233*4a64e381SAndroid Build Coastguard Worker          `text/plain` (dataset in TLV format as hex string) or `application/json` (dataset in JSON format). In both
234*4a64e381SAndroid Build Coastguard Worker          cases keys which are not set will be initialized with defaults.
235*4a64e381SAndroid Build Coastguard Worker        content:
236*4a64e381SAndroid Build Coastguard Worker          application/json:
237*4a64e381SAndroid Build Coastguard Worker            schema:
238*4a64e381SAndroid Build Coastguard Worker              $ref: "#/components/schemas/ActiveDataset"
239*4a64e381SAndroid Build Coastguard Worker          plain/text:
240*4a64e381SAndroid Build Coastguard Worker            schema:
241*4a64e381SAndroid Build Coastguard Worker              $ref: "#/components/schemas/DatasetTlv"
242*4a64e381SAndroid Build Coastguard Worker      responses:
243*4a64e381SAndroid Build Coastguard Worker        "200":
244*4a64e381SAndroid Build Coastguard Worker          description: Successfully updated the active operational dataset.
245*4a64e381SAndroid Build Coastguard Worker        "201":
246*4a64e381SAndroid Build Coastguard Worker          description: Successfully created the active operational dataset.
247*4a64e381SAndroid Build Coastguard Worker        "400":
248*4a64e381SAndroid Build Coastguard Worker          description: Invalid request body.
249*4a64e381SAndroid Build Coastguard Worker        "409":
250*4a64e381SAndroid Build Coastguard Worker          description: Writing active operational dataset rejected because Thread network is active.
251*4a64e381SAndroid Build Coastguard Worker  /node/dataset/pending:
252*4a64e381SAndroid Build Coastguard Worker    get:
253*4a64e381SAndroid Build Coastguard Worker      tags:
254*4a64e381SAndroid Build Coastguard Worker        - node
255*4a64e381SAndroid Build Coastguard Worker      summary: Get current pending operational dataset
256*4a64e381SAndroid Build Coastguard Worker      responses:
257*4a64e381SAndroid Build Coastguard Worker        "200":
258*4a64e381SAndroid Build Coastguard Worker          description: Returns currently pending operational dataset
259*4a64e381SAndroid Build Coastguard Worker          content:
260*4a64e381SAndroid Build Coastguard Worker            application/json:
261*4a64e381SAndroid Build Coastguard Worker              schema:
262*4a64e381SAndroid Build Coastguard Worker                $ref: "#/components/schemas/PendingDataset"
263*4a64e381SAndroid Build Coastguard Worker            text/plain:
264*4a64e381SAndroid Build Coastguard Worker              schema:
265*4a64e381SAndroid Build Coastguard Worker                $ref: "#/components/schemas/DatasetTlv"
266*4a64e381SAndroid Build Coastguard Worker        "204":
267*4a64e381SAndroid Build Coastguard Worker          description: No pending operational dataset
268*4a64e381SAndroid Build Coastguard Worker    put:
269*4a64e381SAndroid Build Coastguard Worker      tags:
270*4a64e381SAndroid Build Coastguard Worker        - node
271*4a64e381SAndroid Build Coastguard Worker      summary: Creates or updates the pending operational dataset
272*4a64e381SAndroid Build Coastguard Worker      description: |-
273*4a64e381SAndroid Build Coastguard Worker        Creates or updates the the pending operational dataset on the current node. Delay needs to be set to let
274*4a64e381SAndroid Build Coastguard Worker        the pending dataset apply as active dataset in the near future.
275*4a64e381SAndroid Build Coastguard Worker      requestBody:
276*4a64e381SAndroid Build Coastguard Worker        description: |-
277*4a64e381SAndroid Build Coastguard Worker          Operational dataset that will be stored as pending operational dataset. Supports request body Content-Type
278*4a64e381SAndroid Build Coastguard Worker          `text/plain` (dataset in TLV format as hex string) or `application/json` (dataset in JSON format). In both
279*4a64e381SAndroid Build Coastguard Worker          cases keys which are not set will be initialized with defaults.
280*4a64e381SAndroid Build Coastguard Worker        content:
281*4a64e381SAndroid Build Coastguard Worker          application/json:
282*4a64e381SAndroid Build Coastguard Worker            schema:
283*4a64e381SAndroid Build Coastguard Worker              $ref: "#/components/schemas/PendingDataset"
284*4a64e381SAndroid Build Coastguard Worker          text/plain:
285*4a64e381SAndroid Build Coastguard Worker            schema:
286*4a64e381SAndroid Build Coastguard Worker              $ref: "#/components/schemas/DatasetTlv"
287*4a64e381SAndroid Build Coastguard Worker      responses:
288*4a64e381SAndroid Build Coastguard Worker        "200":
289*4a64e381SAndroid Build Coastguard Worker          description: Successfully updated the pending operational dataset.
290*4a64e381SAndroid Build Coastguard Worker        "201":
291*4a64e381SAndroid Build Coastguard Worker          description: Successfully created the pending operational dataset.
292*4a64e381SAndroid Build Coastguard Worker        "400":
293*4a64e381SAndroid Build Coastguard Worker          description: Invalid request body.
294*4a64e381SAndroid Build Coastguard Workercomponents:
295*4a64e381SAndroid Build Coastguard Worker  schemas:
296*4a64e381SAndroid Build Coastguard Worker    LeaderData:
297*4a64e381SAndroid Build Coastguard Worker      type: object
298*4a64e381SAndroid Build Coastguard Worker      properties:
299*4a64e381SAndroid Build Coastguard Worker        PartitionId:
300*4a64e381SAndroid Build Coastguard Worker          type: number
301*4a64e381SAndroid Build Coastguard Worker          format: uint32
302*4a64e381SAndroid Build Coastguard Worker          description: Partition ID
303*4a64e381SAndroid Build Coastguard Worker          example: 1230046604
304*4a64e381SAndroid Build Coastguard Worker        Weighting:
305*4a64e381SAndroid Build Coastguard Worker          type: number
306*4a64e381SAndroid Build Coastguard Worker          format: uint8
307*4a64e381SAndroid Build Coastguard Worker          description: Leader Weight
308*4a64e381SAndroid Build Coastguard Worker          example: 64
309*4a64e381SAndroid Build Coastguard Worker        DataVersion:
310*4a64e381SAndroid Build Coastguard Worker          type: number
311*4a64e381SAndroid Build Coastguard Worker          description: Full network data version
312*4a64e381SAndroid Build Coastguard Worker          example: 244
313*4a64e381SAndroid Build Coastguard Worker        StableDataVersion:
314*4a64e381SAndroid Build Coastguard Worker          type: number
315*4a64e381SAndroid Build Coastguard Worker          format: uint8
316*4a64e381SAndroid Build Coastguard Worker          description: Stable Network Data Version
317*4a64e381SAndroid Build Coastguard Worker          example: 186
318*4a64e381SAndroid Build Coastguard Worker        LeaderRouterId:
319*4a64e381SAndroid Build Coastguard Worker          type: number
320*4a64e381SAndroid Build Coastguard Worker          format: uint8
321*4a64e381SAndroid Build Coastguard Worker          description: Leader Router ID
322*4a64e381SAndroid Build Coastguard Worker          example: 4
323*4a64e381SAndroid Build Coastguard Worker    ActiveDataset:
324*4a64e381SAndroid Build Coastguard Worker      type: object
325*4a64e381SAndroid Build Coastguard Worker      properties:
326*4a64e381SAndroid Build Coastguard Worker        ActiveTimestamp:
327*4a64e381SAndroid Build Coastguard Worker          $ref: "#/components/schemas/Timestamp"
328*4a64e381SAndroid Build Coastguard Worker        NetworkKey:
329*4a64e381SAndroid Build Coastguard Worker          type: string
330*4a64e381SAndroid Build Coastguard Worker          description: Network key, 16 bytes long, formatted as a hexadecimal string
331*4a64e381SAndroid Build Coastguard Worker          example: 08277229F21FB7342D705D3CEFDC042A
332*4a64e381SAndroid Build Coastguard Worker          default: random
333*4a64e381SAndroid Build Coastguard Worker        NetworkName:
334*4a64e381SAndroid Build Coastguard Worker          type: string
335*4a64e381SAndroid Build Coastguard Worker          description: Network name, 16 bytes long
336*4a64e381SAndroid Build Coastguard Worker          example: OpenThread-e445
337*4a64e381SAndroid Build Coastguard Worker          default: OpenThread-<PanId>
338*4a64e381SAndroid Build Coastguard Worker        ExtPanId:
339*4a64e381SAndroid Build Coastguard Worker          type: string
340*4a64e381SAndroid Build Coastguard Worker          description: Extended PAN ID, 8 bytes long, formatted as a hexadecimal string
341*4a64e381SAndroid Build Coastguard Worker          example: 996D3BEE320097A3
342*4a64e381SAndroid Build Coastguard Worker          default: random
343*4a64e381SAndroid Build Coastguard Worker        MeshLocalPrefix:
344*4a64e381SAndroid Build Coastguard Worker          type: string
345*4a64e381SAndroid Build Coastguard Worker          description: Mesh local IPv6 prefix
346*4a64e381SAndroid Build Coastguard Worker          example: fd33:d3b9:89e3:72e4::/64
347*4a64e381SAndroid Build Coastguard Worker          default: random
348*4a64e381SAndroid Build Coastguard Worker        PanId:
349*4a64e381SAndroid Build Coastguard Worker          type: integer
350*4a64e381SAndroid Build Coastguard Worker          description: IEEE 802.15.4 PAN ID of the Thread network
351*4a64e381SAndroid Build Coastguard Worker          format: uint16
352*4a64e381SAndroid Build Coastguard Worker          example: 58437
353*4a64e381SAndroid Build Coastguard Worker          default: random
354*4a64e381SAndroid Build Coastguard Worker        Channel:
355*4a64e381SAndroid Build Coastguard Worker          type: integer
356*4a64e381SAndroid Build Coastguard Worker          description: IEEE 802.15.4 channel of the Thread network
357*4a64e381SAndroid Build Coastguard Worker          format: uint16
358*4a64e381SAndroid Build Coastguard Worker          example: 21
359*4a64e381SAndroid Build Coastguard Worker          default: random
360*4a64e381SAndroid Build Coastguard Worker        PSKc:
361*4a64e381SAndroid Build Coastguard Worker          type: string
362*4a64e381SAndroid Build Coastguard Worker          description: The pre-shared commissioner key
363*4a64e381SAndroid Build Coastguard Worker          example: FD943ECA225A28979B991EFAC1218A72
364*4a64e381SAndroid Build Coastguard Worker          default: random
365*4a64e381SAndroid Build Coastguard Worker        SecurityPolicy:
366*4a64e381SAndroid Build Coastguard Worker          $ref: "#/components/schemas/SecurityPolicy"
367*4a64e381SAndroid Build Coastguard Worker        ChannelMask:
368*4a64e381SAndroid Build Coastguard Worker          type: integer
369*4a64e381SAndroid Build Coastguard Worker          description: Channel mask
370*4a64e381SAndroid Build Coastguard Worker          format: uint32
371*4a64e381SAndroid Build Coastguard Worker          example: 134215680
372*4a64e381SAndroid Build Coastguard Worker          default: 134215680
373*4a64e381SAndroid Build Coastguard Worker    PendingDataset:
374*4a64e381SAndroid Build Coastguard Worker      type: object
375*4a64e381SAndroid Build Coastguard Worker      properties:
376*4a64e381SAndroid Build Coastguard Worker        ActiveDataset:
377*4a64e381SAndroid Build Coastguard Worker          oneOf:
378*4a64e381SAndroid Build Coastguard Worker            - $ref: "#/components/schemas/ActiveDataset"
379*4a64e381SAndroid Build Coastguard Worker            - $ref: "#/components/schemas/DatasetTlv"
380*4a64e381SAndroid Build Coastguard Worker        PendingTimestamp:
381*4a64e381SAndroid Build Coastguard Worker          $ref: "#/components/schemas/Timestamp"
382*4a64e381SAndroid Build Coastguard Worker        Delay:
383*4a64e381SAndroid Build Coastguard Worker          type: integer
384*4a64e381SAndroid Build Coastguard Worker          description: Delay timer in milliseconds
385*4a64e381SAndroid Build Coastguard Worker          format: uint32
386*4a64e381SAndroid Build Coastguard Worker          example: 30000
387*4a64e381SAndroid Build Coastguard Worker          default: not set
388*4a64e381SAndroid Build Coastguard Worker    SecurityPolicy:
389*4a64e381SAndroid Build Coastguard Worker      type: object
390*4a64e381SAndroid Build Coastguard Worker      properties:
391*4a64e381SAndroid Build Coastguard Worker        RotationTime:
392*4a64e381SAndroid Build Coastguard Worker          type: integer
393*4a64e381SAndroid Build Coastguard Worker          description: Thread key rotation time in hours
394*4a64e381SAndroid Build Coastguard Worker          format: uint16
395*4a64e381SAndroid Build Coastguard Worker          example: 672
396*4a64e381SAndroid Build Coastguard Worker          default: 672
397*4a64e381SAndroid Build Coastguard Worker        ObtainNetworkKey:
398*4a64e381SAndroid Build Coastguard Worker          type: boolean
399*4a64e381SAndroid Build Coastguard Worker          description: Obtaining the Network Key for out-of-band commissioning is enabled
400*4a64e381SAndroid Build Coastguard Worker          example: true
401*4a64e381SAndroid Build Coastguard Worker          default: true
402*4a64e381SAndroid Build Coastguard Worker        NativeCommissioning:
403*4a64e381SAndroid Build Coastguard Worker          type: boolean
404*4a64e381SAndroid Build Coastguard Worker          description: Native Commissioning using PSKc is allowed
405*4a64e381SAndroid Build Coastguard Worker          example: true
406*4a64e381SAndroid Build Coastguard Worker          default: true
407*4a64e381SAndroid Build Coastguard Worker        Routers:
408*4a64e381SAndroid Build Coastguard Worker          type: boolean
409*4a64e381SAndroid Build Coastguard Worker          description: Thread 1.0/1.1.x Routers are enabled
410*4a64e381SAndroid Build Coastguard Worker          example: true
411*4a64e381SAndroid Build Coastguard Worker          default: true
412*4a64e381SAndroid Build Coastguard Worker        ExternalCommissioning:
413*4a64e381SAndroid Build Coastguard Worker          type: boolean
414*4a64e381SAndroid Build Coastguard Worker          description: External Commissioner authentication is allowed
415*4a64e381SAndroid Build Coastguard Worker          example: true
416*4a64e381SAndroid Build Coastguard Worker          default: true
417*4a64e381SAndroid Build Coastguard Worker        CommercialCommissioning:
418*4a64e381SAndroid Build Coastguard Worker          type: boolean
419*4a64e381SAndroid Build Coastguard Worker          description: Commercial Commissioning is enabled
420*4a64e381SAndroid Build Coastguard Worker          example: false
421*4a64e381SAndroid Build Coastguard Worker          default: false
422*4a64e381SAndroid Build Coastguard Worker        AutonomousEnrollment:
423*4a64e381SAndroid Build Coastguard Worker          type: boolean
424*4a64e381SAndroid Build Coastguard Worker          description: Autonomous Enrollment is enabled
425*4a64e381SAndroid Build Coastguard Worker          example: false
426*4a64e381SAndroid Build Coastguard Worker          default: false
427*4a64e381SAndroid Build Coastguard Worker        NetworkKeyProvisioning:
428*4a64e381SAndroid Build Coastguard Worker          type: boolean
429*4a64e381SAndroid Build Coastguard Worker          description: Network Key Provisioning is enabled
430*4a64e381SAndroid Build Coastguard Worker          example: false
431*4a64e381SAndroid Build Coastguard Worker          default: false
432*4a64e381SAndroid Build Coastguard Worker        TobleLink:
433*4a64e381SAndroid Build Coastguard Worker          type: boolean
434*4a64e381SAndroid Build Coastguard Worker          description: ToBLE link is enabled
435*4a64e381SAndroid Build Coastguard Worker          example: false
436*4a64e381SAndroid Build Coastguard Worker          default: false
437*4a64e381SAndroid Build Coastguard Worker        NonCcmRouters:
438*4a64e381SAndroid Build Coastguard Worker          type: boolean
439*4a64e381SAndroid Build Coastguard Worker          description: Non-CCM Routers enabled
440*4a64e381SAndroid Build Coastguard Worker          example: false
441*4a64e381SAndroid Build Coastguard Worker          default: false
442*4a64e381SAndroid Build Coastguard Worker    Timestamp:
443*4a64e381SAndroid Build Coastguard Worker      type: object
444*4a64e381SAndroid Build Coastguard Worker      properties:
445*4a64e381SAndroid Build Coastguard Worker        Seconds:
446*4a64e381SAndroid Build Coastguard Worker          type: integer
447*4a64e381SAndroid Build Coastguard Worker          description: Timestamp seconds
448*4a64e381SAndroid Build Coastguard Worker          format: uint64
449*4a64e381SAndroid Build Coastguard Worker          example: 10
450*4a64e381SAndroid Build Coastguard Worker          default: 1
451*4a64e381SAndroid Build Coastguard Worker        Ticks:
452*4a64e381SAndroid Build Coastguard Worker          type: integer
453*4a64e381SAndroid Build Coastguard Worker          description: Timestamp ticks
454*4a64e381SAndroid Build Coastguard Worker          format: uint16
455*4a64e381SAndroid Build Coastguard Worker          example: 0
456*4a64e381SAndroid Build Coastguard Worker          default: 0
457*4a64e381SAndroid Build Coastguard Worker        Authoritative:
458*4a64e381SAndroid Build Coastguard Worker          type: boolean
459*4a64e381SAndroid Build Coastguard Worker          example: false
460*4a64e381SAndroid Build Coastguard Worker          default: false
461*4a64e381SAndroid Build Coastguard Worker    DatasetTlv:
462*4a64e381SAndroid Build Coastguard Worker      type: string
463*4a64e381SAndroid Build Coastguard Worker      description: Operational dataset as hex-encoded TLVs.
464*4a64e381SAndroid Build Coastguard Worker      example: 0E080000000000010000000300000F35060004001FFFE0020811111111222222220708FDAD70BFE5AA15DD051000112233445566778899AABBCCDDEEFF030E4F70656E54687265616444656D6F010212340410445F2B5CA6F2A93A55CE570A70EFEECB0C0402A0F7F8
465