Commit 02c478ff authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

slapos_cloud: Software Instance Schema put X509 in a sub-object

parent 0b6c51d0
......@@ -349,8 +349,10 @@ class SoftwareInstance(Item):
"sla_parameters": self.getSlaXmlAsDict(),
"access_status_message": self.getTextAccessStatus(),
"processing_timestamp": parameter_dict.get("timestamp"),
"X509": {
"key": self.getSslKey(),
"certificate": self.getSslCertificate(),
},
}
result.update(parameter_dict)
self.REQUEST.response.setHeader('Cache-Control',
......
......@@ -165,6 +165,11 @@
}\n
}\n
},\n
"X509": {\n
"title": "X509 Certificates",\n
"description": "X509 Certificates used by the instance to authentify itself on master",\n
"type": "object",\n
"properties": {\n
"key": {\n
"title": "X509 Key",\n
"type": "string",\n
......@@ -174,6 +179,8 @@
"title": "X509 Certificate",\n
"type": "string",\n
"descritpion": "X509 Certificate used by the instance to authentify itself on master"\n
}\n
}\n
},\n
"sla_parameters": {\n
"title": "Target Node Selection Parameters",\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment