124 lines
5.6 KiB
JSON
124 lines
5.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"request": {
|
|
"type": "object",
|
|
"properties": {
|
|
"installation_structure": {
|
|
"type": "object",
|
|
"properties": {
|
|
"master_node_uid": {"type": "string"},
|
|
"clusters_num": {"type": "integer"},
|
|
"allocated_nodes_num": {"type": "integer"},
|
|
"unallocated_nodes_num": {"type": "integer"},
|
|
"fuel_release": {
|
|
"type": "object",
|
|
"properties": {
|
|
"release": {"type": "string"},
|
|
"ostf_sha": {"type": "string"},
|
|
"fuel-ostf_sha": {"type": "string"},
|
|
"astute_sha": {"type": "string"},
|
|
"nailgun_sha": {"type": "string"},
|
|
"fuellib_sha": {"type": "string"},
|
|
"fuel-library_sha": {"type": "string"},
|
|
"python-fuelclient_sha": {"type": "string"},
|
|
"fuelmain_sha": {"type": "string"},
|
|
"build_id": {"type": "string"},
|
|
"feature_groups": {
|
|
"type": "array",
|
|
"items": {"type": "string"}
|
|
},
|
|
"api": {"type": "string"}
|
|
},
|
|
"required": ["release", "api", "feature_groups"]
|
|
},
|
|
"fuel_packages": {
|
|
"type": "array",
|
|
"items": {"type": "string"}
|
|
},
|
|
"clusters": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {"type": "integer"},
|
|
"mode": {"type": "string"},
|
|
"release": {
|
|
"type": "object",
|
|
"properties": {
|
|
"version": {"type": "string"},
|
|
"os": {"type": "string"},
|
|
"name": {"type": "string"}
|
|
},
|
|
"required": ["version", "os", "name"]
|
|
},
|
|
"nodes_num": {"type": "integer"},
|
|
"nodes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {"type": "integer"},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {"type": "string"}
|
|
},
|
|
"status": {"type": "string"},
|
|
"os": {"type": "string"},
|
|
"manufacturer": {"type": "string"}
|
|
},
|
|
"required": ["id", "roles"]
|
|
}
|
|
},
|
|
"status": {"type": "string"},
|
|
"attributes": {"type": "object"},
|
|
"network_configuration": {
|
|
"type": "object",
|
|
"properties": {
|
|
"segmentation_type": {"type": "string"},
|
|
"net_l23_provider": {"type": "string"},
|
|
"net_manager": {"type": "string"},
|
|
"fixed_networks_vlan_start": {"type": ["integer", "null"]},
|
|
"fixed_network_size": {"type": "integer"},
|
|
"fixed_networks_amount": {"type": "integer"}
|
|
}
|
|
}
|
|
},
|
|
"required": ["id", "nodes_num", "nodes", "mode", "release", "status", "attributes"]
|
|
}
|
|
}
|
|
},
|
|
"required": ["master_node_uid", "clusters_num", "allocated_nodes_num",
|
|
"unallocated_nodes_num", "clusters"]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["installation_structure"]
|
|
},
|
|
|
|
"response": {
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {"enum": ["ok"]},
|
|
"exec_time": {"type": "number"}
|
|
},
|
|
"required": ["status"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {"enum": ["error"]},
|
|
"exec_time": {"type": "number"},
|
|
"message": {"type": "string"}
|
|
},
|
|
"required": ["status", "message"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
} |