debian-mirror-gitlab/spec/fixtures/api/schemas/cluster_status.json
2023-03-05 14:24:40 +05:30

118 lines
No EOL
2.4 KiB
JSON

{
"type": "object",
"required": [
"status",
"applications"
],
"properties": {
"status": {
"type": "string"
},
"status_reason": {
"$ref": "types/nullable_string.json"
},
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/application_status"
}
}
},
"additionalProperties": false,
"definitions": {
"application_status": {
"type": "object",
"required": [
"name",
"status"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"installable",
"scheduled",
"installing",
"installed",
"errored",
"not_installable"
]
},
"version": {
"type": "string"
},
"status_reason": {
"$ref": "types/nullable_string.json"
},
"external_ip": {
"$ref": "types/nullable_string.json"
},
"external_hostname": {
"$ref": "types/nullable_string.json"
},
"hostname": {
"$ref": "types/nullable_string.json"
},
"email": {
"$ref": "types/nullable_string.json"
},
"stack": {
"$ref": "types/nullable_string.json"
},
"host": {
"$ref": "types/nullable_string.json"
},
"port": {
"type": "integer"
},
"protocol": {
"type": "integer"
},
"update_available": {
"type": [
"boolean",
"null"
]
},
"can_uninstall": {
"type": "boolean"
},
"available_domains": {
"type": "array",
"items": {
"$ref": "#/definitions/domain"
}
},
"pages_domain": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/domain"
}
]
}
}
},
"domain": {
"type": "object",
"required": [
"id",
"domain"
],
"properties": {
"id": {
"type": "integer"
},
"domain": {
"type": "string"
}
}
}
}
}