2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
=====================================
|
|
|
|
Root certificates (os-certificates)
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
Creates and shows details for a root certificate.
|
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Create Root Certificate
|
|
|
|
=======================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /os-certificates
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Creates a root certificate.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-05-10 22:34:38 +00:00
|
|
|
Error response codes: unauthorized(401), forbidden(403)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- certificate: certificate
|
|
|
|
- data: data
|
|
|
|
- private_key: private_key
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example Create Root Certificate**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-certificates/certificate-create-resp.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Show Root Certificate Details
|
|
|
|
=============================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
.. rest_method:: GET /os-certificates/root
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Shows details for a root certificate.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
Response
|
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
- certificate: certificate
|
|
|
|
- data: data
|
|
|
|
- private_key: private_key
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-31 09:20:30 -04:00
|
|
|
**Example Show Root Certificate Details**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 10:35:37 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-certificates/certificate-get-root-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|