Skip to content

Commit acb8def

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Update NDM GetInterfaces documentation to add ip_addresses attribute (#2142)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b98f09d commit acb8def

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-08 20:00:50.293606",
8-
"spec_repo_commit": "3e2afa30"
7+
"regenerated": "2025-04-08 20:55:42.865376",
8+
"spec_repo_commit": "21cf6edb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-08 20:00:50.311601",
13-
"spec_repo_commit": "3e2afa30"
12+
"regenerated": "2025-04-08 20:55:42.884212",
13+
"spec_repo_commit": "21cf6edb"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -17271,6 +17271,14 @@ components:
1727117271
example: 0
1727217272
format: int64
1727317273
type: integer
17274+
ip_addresses:
17275+
description: The interface IP addresses
17276+
example:
17277+
- 1.1.1.1
17278+
- 1.1.1.2
17279+
items:
17280+
type: string
17281+
type: array
1727417282
mac_address:
1727517283
description: The interface MAC address
1727617284
example: 00:00:00:00:00:00

cassettes/v2/Network-Device-Monitoring_315763993/Get-the-list-of-interfaces-of-the-device-returns-OK-response_2174575217/recording.har

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"content": {
3838
"mimeType": "application/vnd.api+json",
3939
"size": 220,
40-
"text": "{\"data\":[{\"id\":\"default:1.2.3.4:99\",\"type\":\"interface\",\"attributes\":{\"name\":\"if99\",\"status\":\"up\",\"description\":\"a network interface\",\"mac_address\":\"00:00:00:00:00:00\",\"alias\":\"interface_99\",\"index\":99}},{\"id\":\"default:1.2.3.4:999\",\"type\":\"interface\",\"attributes\":{\"name\":\"if999\",\"status\":\"down\",\"description\":\"another network interface\",\"mac_address\":\"99:99:99:99:99:99\",\"alias\":\"interface_999\",\"index\":999}}]}"
40+
"text": "{\"data\":[{\"id\":\"default:1.2.3.4:99\",\"type\":\"interface\",\"attributes\":{\"name\":\"if99\",\"status\":\"up\",\"description\":\"a network interface\",\"mac_address\":\"00:00:00:00:00:00\",\"ip_addresses\":[\"1.1.1.1\",\"1.1.1.2\"],\"alias\":\"interface_99\",\"index\":99}},{\"id\":\"default:1.2.3.4:999\",\"type\":\"interface\",\"attributes\":{\"name\":\"if999\",\"status\":\"down\",\"description\":\"another network interface\",\"mac_address\":\"99:99:99:99:99:99\",\"alias\":\"interface_999\",\"index\":999}}]}"
4141
},
4242
"cookies": [],
4343
"headers": [

features/v2/network_device_monitoring.feature

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Feature: Network Device Monitoring
8686
And the response "data[0].attributes.name" is equal to "if99"
8787
And the response "data[0].attributes.description" is equal to "a network interface"
8888
And the response "data[0].attributes.mac_address" is equal to "00:00:00:00:00:00"
89+
And the response "data[0].attributes.ip_addresses" is equal to ["1.1.1.1","1.1.1.2"]
8990
And the response "data[0].attributes.alias" is equal to "interface_99"
9091
And the response "data[0].attributes.index" is equal to 99
9192
And the response "data[0].attributes.status" is equal to "up"

packages/datadog-api-client-v2/models/InterfaceAttributes.ts

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export class InterfaceAttributes {
2323
* The interface index
2424
*/
2525
"index"?: number;
26+
/**
27+
* The interface IP addresses
28+
*/
29+
"ipAddresses"?: Array<string>;
2630
/**
2731
* The interface MAC address
2832
*/
@@ -65,6 +69,10 @@ export class InterfaceAttributes {
6569
type: "number",
6670
format: "int64",
6771
},
72+
ipAddresses: {
73+
baseName: "ip_addresses",
74+
type: "Array<string>",
75+
},
6876
macAddress: {
6977
baseName: "mac_address",
7078
type: "string",

0 commit comments

Comments
 (0)