@@ -11081,6 +11081,37 @@ components:
11081
11081
example: /api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2
11082
11082
type: string
11083
11083
type: object
11084
+ ListTagsResponse:
11085
+ description: List tags response.
11086
+ properties:
11087
+ data:
11088
+ $ref: '#/components/schemas/ListTagsResponseData'
11089
+ type: object
11090
+ ListTagsResponseData:
11091
+ description: The list tags response data.
11092
+ properties:
11093
+ attributes:
11094
+ $ref: '#/components/schemas/ListTagsResponseDataAttributes'
11095
+ id:
11096
+ description: The device ID
11097
+ example: example:1.2.3.4
11098
+ type: string
11099
+ type:
11100
+ description: The type of the resource. The value should always be tags.
11101
+ type: string
11102
+ type: object
11103
+ ListTagsResponseDataAttributes:
11104
+ description: The definition of ListTagsResponseDataAttributes object.
11105
+ properties:
11106
+ tags:
11107
+ description: The list of tags
11108
+ example:
11109
+ - tag:test
11110
+ - tag:testbis
11111
+ items:
11112
+ type: string
11113
+ type: array
11114
+ type: object
11084
11115
ListTeamsInclude:
11085
11116
description: Included related resources optionally requested.
11086
11117
enum:
@@ -31079,6 +31110,67 @@ paths:
31079
31110
summary: Get the list of interfaces of the device
31080
31111
tags:
31081
31112
- Network Device Monitoring
31113
+ /api/v2/ndm/tags/devices/{device_id}:
31114
+ get:
31115
+ description: Get the list of tags for a device.
31116
+ operationId: ListTags
31117
+ parameters:
31118
+ - description: The id of the device to fetch.
31119
+ example: example:1.2.3.4
31120
+ in: path
31121
+ name: device_id
31122
+ required: true
31123
+ schema:
31124
+ type: string
31125
+ responses:
31126
+ '200':
31127
+ content:
31128
+ application/json:
31129
+ schema:
31130
+ $ref: '#/components/schemas/ListTagsResponse'
31131
+ description: OK
31132
+ '403':
31133
+ $ref: '#/components/responses/ForbiddenResponse'
31134
+ '404':
31135
+ $ref: '#/components/responses/NotFoundResponse'
31136
+ '429':
31137
+ $ref: '#/components/responses/TooManyRequestsResponse'
31138
+ summary: Get the list of tags for a device
31139
+ tags:
31140
+ - Network Device Monitoring
31141
+ patch:
31142
+ description: Update the tags for a device.
31143
+ operationId: UpdateTags
31144
+ parameters:
31145
+ - description: The id of the device to update tags for.
31146
+ example: example:1.2.3.4
31147
+ in: path
31148
+ name: device_id
31149
+ required: true
31150
+ schema:
31151
+ type: string
31152
+ requestBody:
31153
+ content:
31154
+ application/json:
31155
+ schema:
31156
+ $ref: '#/components/schemas/ListTagsResponse'
31157
+ required: true
31158
+ responses:
31159
+ '200':
31160
+ content:
31161
+ application/json:
31162
+ schema:
31163
+ $ref: '#/components/schemas/ListTagsResponse'
31164
+ description: OK
31165
+ '403':
31166
+ $ref: '#/components/responses/ForbiddenResponse'
31167
+ '404':
31168
+ $ref: '#/components/responses/NotFoundResponse'
31169
+ '429':
31170
+ $ref: '#/components/responses/TooManyRequestsResponse'
31171
+ summary: Update the tags for a device
31172
+ tags:
31173
+ - Network Device Monitoring
31082
31174
/api/v2/org_configs:
31083
31175
get:
31084
31176
description: Returns all Org Configs (name, description, and value).
0 commit comments