Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions static/oas/iot/api/public/ndEndpoint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
parameters:
- description: The customer ID to which the API call is directed
in: query
name: customerid
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/NetworkDiscoveryEndpointUpdateResponseSchema'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/NetworkDiscoveryEndpointUpdateResponseExample:
'
'4XX':
description: Client Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
Bad Request:
$ref: '../../components/examples.yaml#/examples/BadRequestResponseExample'
Unauthrorized Request:
$ref: '../../components/examples.yaml#/examples/UnauthorizedResponseExample'
'5XX':
description: Server Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/ServerErrorResponseExample'
47 changes: 47 additions & 0 deletions static/oas/iot/api/public/ndGraphUpdate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
parameters:
- description: The customer ID to which the API call is directed
in: query
name: customerid
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/NetworkDiscoveryGraphUpdateResponseSchema'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/NetworkDiscoveryGraphUpdateResponseExample'
'4XX':
description: Client Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
Bad Request:
$ref: '../../components/examples.yaml#/examples/BadRequestResponseExample'
Unauthrorized Request:
$ref: '../../components/examples.yaml#/examples/UnauthorizedResponseExample'
'5XX':
description: Server Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/ServerErrorResponseExample'
47 changes: 47 additions & 0 deletions static/oas/iot/api/public/ndL2L3Update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
parameters:
- description: The customer ID to which the API call is directed
in: query
name: customerid
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/NetworkDiscoveryGraphUpdateResponseSchema'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/NetworkDiscoveryGraphUpdateResponseExample'
'4XX':
description: Client Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
Bad Request:
$ref: '../../components/examples.yaml#/examples/BadRequestResponseExample'
Unauthrorized Request:
$ref: '../../components/examples.yaml#/examples/UnauthorizedResponseExample'
'5XX':
description: Server Error Response
content:
application/json:
schema:
$ref: '../../components/schemas.yaml#/schemas/ErrorResponse'
examples:
resolveSecurityAlertResponseExample:
$ref: '../../components/examples.yaml#/examples/ServerErrorResponseExample'
26 changes: 26 additions & 0 deletions static/oas/iot/components/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -725,4 +725,30 @@ examples:
]
}
]
}

NetworkDiscoveryGraphUpdateResponseExample:
value: {
api: "/network/ndNodeGraphBulkUpdate",
ver: "v4.0",
message: "success",
updatedNodes: 0
}

NetworkDiscoveryL2L3UpdateResponseExample:
value: {
api: "/network/ndNodeL2L3BulkUpdate",
ver: "v4.0",
message: "success",
updatedInterface: 2,
updatedSubnet: 2,
updatedDevice: 1
}

NetworkDiscoveryEndpointUpdateResponseExample:
value: {
api: "/network/ndNodeEndpointBulkUpdate",
ver: "v4.0",
message: "success",
updatedNodeEndpoints: 4
}
62 changes: 61 additions & 1 deletion static/oas/iot/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,4 +901,64 @@ schemas:
description: List of firewalls that enforce the policy rule
deviceGroups:
type: array
description: (Panorama) List of device groups containing firewalls that enforce the policy rule
description: (Panorama) List of device groups containing firewalls that enforce the policy rule

NetworkDiscoveryGraphUpdateResponseSchema:
type: object
properties:
api:
type: string
description: API path
ver:
type: string
description: API version
message:
type: string
description: successful message
updatedNodes:
type: integer
description: number of graph node updated

NetworkDiscoveryL2L3UpdateResponseSchema:
type: object
properties:
api:
type: string
description: API path
ver:
type: string
description: API version
message:
type: string
description: successful message
updatedInterface:
type: integer
description: number of interface updated
updatedSubnet:
type: integer
description: number of subnet updated
updatedDevice:
type: integer
description: number of device updated

NetworkDiscoveryEndpointUpdateResponseSchema:
type: object
properties:
api:
type: string
description: API path
ver:
type: string
description: API version
message:
type: string
description: successful message
updatedInterface:
type: integer
description: number of interface updated
updatedSubnet:
type: integer
description: number of subnet updated
updatedDevice:
type: integer
description: number of device updated
47 changes: 47 additions & 0 deletions static/oas/iot/iot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,53 @@ paths:
responses:
$ref: 'api/public/policyRecommendation.yaml#/responses'

/pub/v4.0/network/ndNodeGraphBulkUpdate:
put:
description: 'Update node graphs lldp, cdp neighbors'
operationId: network-discovery
security:
- X-Key-Id: []
X-Access-Key: []
summary: Network Discovery - Graph Update
tags:
- IoT Public API
parameters:
$ref: 'api/public/ndGraphUpdate.yaml#/parameters'
responses:
$ref: 'api/public/ndGraphUpdate.yaml#/responses'

/pub/v4.0/network/ndNodeL2L3BulkUpdate:
put:
description: 'Update Nodes vlan, interface and subnet data'
operationId: network-discovery
security:
- X-Key-Id: []
X-Access-Key: []
summary: Network Discovery - Detail Update
tags:
- IoT Public API
parameters:
$ref: 'api/public/ndL2L3Update.yaml#/parameters'
responses:
$ref: 'api/public/ndL2L3Update.yaml#/responses'

/pub/v4.0/network/ndNodeEndpointBulkUpdate:
put:
description: 'Update Node endpoint data'
operationId: network-discovery
security:
- X-Key-Id: []
X-Access-Key: []
summary: Network Discovery - Endpoint Update
tags:
- IoT Public API
parameters:
$ref: 'api/public/ndEndpoint.yaml#/parameters'
responses:
$ref: 'api/public/ndEndpoint.yaml#/responses'



components:
securitySchemes:
$ref: 'components/securitySchemes.yaml#/securitySchemes'