@@ -11316,6 +11316,37 @@ components:
11316
11316
example: /api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2
11317
11317
type: string
11318
11318
type: object
11319
+ ListTagsResponse:
11320
+ description: List tags response.
11321
+ properties:
11322
+ data:
11323
+ $ref: '#/components/schemas/ListTagsResponseData'
11324
+ type: object
11325
+ ListTagsResponseData:
11326
+ description: The list tags response data.
11327
+ properties:
11328
+ attributes:
11329
+ $ref: '#/components/schemas/ListTagsResponseDataAttributes'
11330
+ id:
11331
+ description: The device ID
11332
+ example: example:1.2.3.4
11333
+ type: string
11334
+ type:
11335
+ description: The type of the resource. The value should always be tags.
11336
+ type: string
11337
+ type: object
11338
+ ListTagsResponseDataAttributes:
11339
+ description: The definition of ListTagsResponseDataAttributes object.
11340
+ properties:
11341
+ tags:
11342
+ description: The list of tags
11343
+ example:
11344
+ - tag:test
11345
+ - tag:testbis
11346
+ items:
11347
+ type: string
11348
+ type: array
11349
+ type: object
11319
11350
ListTeamsInclude:
11320
11351
description: Included related resources optionally requested.
11321
11352
enum:
@@ -31426,6 +31457,67 @@ paths:
31426
31457
summary: Get the list of interfaces of the device
31427
31458
tags:
31428
31459
- Network Device Monitoring
31460
+ /api/v2/ndm/tags/devices/{device_id}:
31461
+ get:
31462
+ description: Get the list of tags for a device.
31463
+ operationId: ListTags
31464
+ parameters:
31465
+ - description: The id of the device to fetch.
31466
+ example: example:1.2.3.4
31467
+ in: path
31468
+ name: device_id
31469
+ required: true
31470
+ schema:
31471
+ type: string
31472
+ responses:
31473
+ '200':
31474
+ content:
31475
+ application/json:
31476
+ schema:
31477
+ $ref: '#/components/schemas/ListTagsResponse'
31478
+ description: OK
31479
+ '403':
31480
+ $ref: '#/components/responses/ForbiddenResponse'
31481
+ '404':
31482
+ $ref: '#/components/responses/NotFoundResponse'
31483
+ '429':
31484
+ $ref: '#/components/responses/TooManyRequestsResponse'
31485
+ summary: Get the list of tags for a device
31486
+ tags:
31487
+ - Network Device Monitoring
31488
+ patch:
31489
+ description: Update the tags for a device.
31490
+ operationId: UpdateTags
31491
+ parameters:
31492
+ - description: The id of the device to update tags for.
31493
+ example: example:1.2.3.4
31494
+ in: path
31495
+ name: device_id
31496
+ required: true
31497
+ schema:
31498
+ type: string
31499
+ requestBody:
31500
+ content:
31501
+ application/json:
31502
+ schema:
31503
+ $ref: '#/components/schemas/ListTagsResponse'
31504
+ required: true
31505
+ responses:
31506
+ '200':
31507
+ content:
31508
+ application/json:
31509
+ schema:
31510
+ $ref: '#/components/schemas/ListTagsResponse'
31511
+ description: OK
31512
+ '403':
31513
+ $ref: '#/components/responses/ForbiddenResponse'
31514
+ '404':
31515
+ $ref: '#/components/responses/NotFoundResponse'
31516
+ '429':
31517
+ $ref: '#/components/responses/TooManyRequestsResponse'
31518
+ summary: Update the tags for a device
31519
+ tags:
31520
+ - Network Device Monitoring
31429
31521
/api/v2/org_configs:
31430
31522
get:
31431
31523
description: Returns all Org Configs (name, description, and value).
0 commit comments