@@ -11330,6 +11330,37 @@ components:
11330
11330
example: /api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2
11331
11331
type: string
11332
11332
type: object
11333
+ ListTagsResponse:
11334
+ description: List tags response.
11335
+ properties:
11336
+ data:
11337
+ $ref: '#/components/schemas/ListTagsResponseData'
11338
+ type: object
11339
+ ListTagsResponseData:
11340
+ description: The list tags response data.
11341
+ properties:
11342
+ attributes:
11343
+ $ref: '#/components/schemas/ListTagsResponseDataAttributes'
11344
+ id:
11345
+ description: The device ID
11346
+ example: example:1.2.3.4
11347
+ type: string
11348
+ type:
11349
+ description: The type of the resource. The value should always be tags.
11350
+ type: string
11351
+ type: object
11352
+ ListTagsResponseDataAttributes:
11353
+ description: The definition of ListTagsResponseDataAttributes object.
11354
+ properties:
11355
+ tags:
11356
+ description: The list of tags
11357
+ example:
11358
+ - tag:test
11359
+ - tag:testbis
11360
+ items:
11361
+ type: string
11362
+ type: array
11363
+ type: object
11333
11364
ListTeamsInclude:
11334
11365
description: Included related resources optionally requested.
11335
11366
enum:
@@ -31582,6 +31613,67 @@ paths:
31582
31613
summary: Get the list of interfaces of the device
31583
31614
tags:
31584
31615
- Network Device Monitoring
31616
+ /api/v2/ndm/tags/devices/{device_id}:
31617
+ get:
31618
+ description: Get the list of tags for a device.
31619
+ operationId: ListDeviceUserTags
31620
+ parameters:
31621
+ - description: The id of the device to fetch tags for.
31622
+ example: example:1.2.3.4
31623
+ in: path
31624
+ name: device_id
31625
+ required: true
31626
+ schema:
31627
+ type: string
31628
+ responses:
31629
+ '200':
31630
+ content:
31631
+ application/json:
31632
+ schema:
31633
+ $ref: '#/components/schemas/ListTagsResponse'
31634
+ description: OK
31635
+ '403':
31636
+ $ref: '#/components/responses/ForbiddenResponse'
31637
+ '404':
31638
+ $ref: '#/components/responses/NotFoundResponse'
31639
+ '429':
31640
+ $ref: '#/components/responses/TooManyRequestsResponse'
31641
+ summary: Get the list of tags for a device
31642
+ tags:
31643
+ - Network Device Monitoring
31644
+ patch:
31645
+ description: Update the tags for a device.
31646
+ operationId: UpdateDeviceUserTags
31647
+ parameters:
31648
+ - description: The id of the device to update tags for.
31649
+ example: example:1.2.3.4
31650
+ in: path
31651
+ name: device_id
31652
+ required: true
31653
+ schema:
31654
+ type: string
31655
+ requestBody:
31656
+ content:
31657
+ application/json:
31658
+ schema:
31659
+ $ref: '#/components/schemas/ListTagsResponse'
31660
+ required: true
31661
+ responses:
31662
+ '200':
31663
+ content:
31664
+ application/json:
31665
+ schema:
31666
+ $ref: '#/components/schemas/ListTagsResponse'
31667
+ description: OK
31668
+ '403':
31669
+ $ref: '#/components/responses/ForbiddenResponse'
31670
+ '404':
31671
+ $ref: '#/components/responses/NotFoundResponse'
31672
+ '429':
31673
+ $ref: '#/components/responses/TooManyRequestsResponse'
31674
+ summary: Update the tags for a device
31675
+ tags:
31676
+ - Network Device Monitoring
31585
31677
/api/v2/org_configs:
31586
31678
get:
31587
31679
description: Returns all Org Configs (name, description, and value).
0 commit comments