2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
2016-04-20 16:10:51 -04:00
|
|
|
.. needs:parameter_verification
|
|
|
|
.. needs:example_verification
|
|
|
|
.. needs:body_verification
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
=====================================
|
|
|
|
Root certificates (os-certificates)
|
|
|
|
=====================================
|
|
|
|
|
|
|
|
Creates and shows details for a root certificate.
|
|
|
|
|
|
|
|
Create Certificate
|
|
|
|
==================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v2.1/{tenant_id}/os-certificates
|
|
|
|
|
|
|
|
Creates a certificate.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example Create Certificate: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-certificates/certificate-create-resp.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Show Certificate Details
|
|
|
|
========================
|
|
|
|
|
|
|
|
.. rest_method:: GET /v2.1/{tenant_id}/os-certificates/{certificate_id}
|
|
|
|
|
|
|
|
Shows details for a certificate.
|
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-05-10 22:34:38 +00:00
|
|
|
Error response codes: notImplemented(501), unauthorized(401),
|
|
|
|
forbidden(403), itemNotFound(404)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
- certificate_id: certificate_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example Show Certificate Details: JSON response**
|
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
|
|
|
|
|