Support query of free ip addresses - Swagger changes
@@ -760,6 +760,49 @@ paths:
schema:
$ref: '#/definitions/error'
+ /clusters/{cluster_id}/free_addresses:
+ get:
+ tags:
+ - installer
+ summary: Retrieves the free address list for a network.
+ operationId: GetFreeAddresses
+ parameters:
+ - in: path
+ name: cluster_id
+ type: string
+ format: uuid
+ required: true
+ - in: query
+ name: network
+ type: string
+ pattern: '^([0-9]{1,3}\.){3}[0-9]{1,3}\/[0-9]|[1-2][0-9]|3[0-2]?$'
+ required: true
+ - in: query
+ name: limit
+ type: integer
+ minimum: 1
+ maximum: 8000
+ default: 8000
+ required: false
+ - in: query
+ name: prefix
+ type: string
+ required: false
+ responses:
+ 200:
+ description: Success
+ schema:
+ $ref: '#/definitions/free-addresses-list'
+ 404:
+ description: Error.
+ schema:
+ $ref: '#/definitions/error'
+ 500:
+ description: Error.
+ schema:
+ $ref: '#/definitions/error'
+
+
/component_versions:
get:
tags:
@@ -1268,6 +1311,12 @@ definitions:
format: date-time
x-go-custom-tag: gorm:"type:datetime"
+ free-addresses-list:
+ type: array
+ items:
+ type: string
+ format: ipv4
+
cluster-list:
type: array
items:
