|
@@ -1634,7 +1634,7 @@ paths:
|
|
- hosts
|
|
- hosts
|
|
/api/networks:
|
|
/api/networks:
|
|
get:
|
|
get:
|
|
- operationId: getAllNetworks
|
|
|
|
|
|
+ operationId: getNetworks
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
$ref: '#/responses/getNetworksSliceResponse'
|
|
$ref: '#/responses/getNetworksSliceResponse'
|
|
@@ -1660,26 +1660,26 @@ paths:
|
|
summary: Create a network.
|
|
summary: Create a network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
- put:
|
|
|
|
- operationId: updateNetwork
|
|
|
|
|
|
+ /api/networks/{networkname}:
|
|
|
|
+ delete:
|
|
|
|
+ operationId: deleteNetwork
|
|
parameters:
|
|
parameters:
|
|
- - description: Network
|
|
|
|
|
|
+ - description: 'name: network name'
|
|
in: path
|
|
in: path
|
|
- name: network
|
|
|
|
|
|
+ name: networkname
|
|
required: true
|
|
required: true
|
|
type: string
|
|
type: string
|
|
- x-go-name: Network
|
|
|
|
|
|
+ x-go-name: Networkname
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
- $ref: '#/responses/networkBodyResponse'
|
|
|
|
|
|
+ $ref: '#/responses/successResponse'
|
|
schemes:
|
|
schemes:
|
|
- https
|
|
- https
|
|
- summary: Update pro settings for a network.
|
|
|
|
|
|
+ summary: Delete a network. Will not delete if there are any nodes that belong to the network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
- /api/networks/{networkname}:
|
|
|
|
- delete:
|
|
|
|
- operationId: deleteNetwork
|
|
|
|
|
|
+ get:
|
|
|
|
+ operationId: getNetwork
|
|
parameters:
|
|
parameters:
|
|
- description: 'name: network name'
|
|
- description: 'name: network name'
|
|
in: path
|
|
in: path
|
|
@@ -1689,14 +1689,14 @@ paths:
|
|
x-go-name: Networkname
|
|
x-go-name: Networkname
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
- $ref: '#/responses/successResponse'
|
|
|
|
|
|
+ $ref: '#/responses/networkBodyResponse'
|
|
schemes:
|
|
schemes:
|
|
- https
|
|
- https
|
|
- summary: Delete a network. Will not delete if there are any nodes that belong to the network.
|
|
|
|
|
|
+ summary: Get a network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
- get:
|
|
|
|
- operationId: getNetwork
|
|
|
|
|
|
+ put:
|
|
|
|
+ operationId: updateNetwork
|
|
parameters:
|
|
parameters:
|
|
- description: 'name: network name'
|
|
- description: 'name: network name'
|
|
in: path
|
|
in: path
|
|
@@ -1704,12 +1704,18 @@ paths:
|
|
required: true
|
|
required: true
|
|
type: string
|
|
type: string
|
|
x-go-name: Networkname
|
|
x-go-name: Networkname
|
|
|
|
+ - description: Network
|
|
|
|
+ in: body
|
|
|
|
+ name: network
|
|
|
|
+ schema:
|
|
|
|
+ $ref: '#/definitions/Network'
|
|
|
|
+ x-go-name: Network
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
$ref: '#/responses/networkBodyResponse'
|
|
$ref: '#/responses/networkBodyResponse'
|
|
schemes:
|
|
schemes:
|
|
- https
|
|
- https
|
|
- summary: Get a network.
|
|
|
|
|
|
+ summary: Update pro settings for a network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
/api/networks/{networkname}/acls:
|
|
/api/networks/{networkname}/acls:
|
|
@@ -1770,6 +1776,24 @@ paths:
|
|
summary: Get all nodes across all networks.
|
|
summary: Get all nodes across all networks.
|
|
tags:
|
|
tags:
|
|
- nodes
|
|
- nodes
|
|
|
|
+ /api/nodes/{network}:
|
|
|
|
+ get:
|
|
|
|
+ operationId: getNetworkNodes
|
|
|
|
+ parameters:
|
|
|
|
+ - description: Network
|
|
|
|
+ in: path
|
|
|
|
+ name: network
|
|
|
|
+ required: true
|
|
|
|
+ type: string
|
|
|
|
+ x-go-name: Network
|
|
|
|
+ responses:
|
|
|
|
+ "200":
|
|
|
|
+ $ref: '#/responses/nodeSliceResponse'
|
|
|
|
+ schemes:
|
|
|
|
+ - https
|
|
|
|
+ summary: Gets all nodes associated with network including pending nodes.
|
|
|
|
+ tags:
|
|
|
|
+ - nodes
|
|
/api/nodes/{network}/{nodeid}:
|
|
/api/nodes/{network}/{nodeid}:
|
|
delete:
|
|
delete:
|
|
operationId: deleteNode
|
|
operationId: deleteNode
|
|
@@ -2012,24 +2036,6 @@ paths:
|
|
summary: Lists all the users attached to an ingress gateway.
|
|
summary: Lists all the users attached to an ingress gateway.
|
|
tags:
|
|
tags:
|
|
- users
|
|
- users
|
|
- /api/nodes/{networkname}:
|
|
|
|
- get:
|
|
|
|
- operationId: getNetworkNodes
|
|
|
|
- parameters:
|
|
|
|
- - description: 'name: network name'
|
|
|
|
- in: path
|
|
|
|
- name: networkname
|
|
|
|
- required: true
|
|
|
|
- type: string
|
|
|
|
- x-go-name: Networkname
|
|
|
|
- responses:
|
|
|
|
- "200":
|
|
|
|
- $ref: '#/responses/nodeSliceResponse'
|
|
|
|
- schemes:
|
|
|
|
- - https
|
|
|
|
- summary: Gets all nodes associated with network including pending nodes.
|
|
|
|
- tags:
|
|
|
|
- - nodes
|
|
|
|
/api/nodes/adm/{network}/authenticate:
|
|
/api/nodes/adm/{network}/authenticate:
|
|
post:
|
|
post:
|
|
operationId: authenticate
|
|
operationId: authenticate
|