
This will give admins a way to revoke access to an existing cluster once a user has been granted access. Bumped the API microversion to 1.5 for the new endpoint. Deprecated policy certificate:get in favor of certificate:get_ca for clarity and consistency. Depends-On: Ie960464e45445e195e75b91e8d65a4046eb21e93 Implements: blueprint revoke-cluster-cert Change-Id: Ief28bef3a79f212acf4166e443a96e5419fbb757
147 lines
2.6 KiB
ReStructuredText
147 lines
2.6 KiB
ReStructuredText
.. -*- rst -*-
|
|
|
|
=====================================
|
|
Manage certificates for bay/cluster
|
|
=====================================
|
|
|
|
Generates and show CA certificates for bay/cluster.
|
|
|
|
Show details about the CA certificate for a bay/cluster
|
|
=======================================================
|
|
|
|
.. rest_method:: GET /v1/certificates/{bay_uuid/cluster_uuid}
|
|
|
|
Show CA certificate details that are associated with the created bay/cluster.
|
|
|
|
Response Codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 200
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 401
|
|
- 403
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- bay_uuid: bay_id
|
|
|
|
.. note::
|
|
|
|
After Newton, all terms related bay/baymodel will be renamed to cluster
|
|
and cluster template.
|
|
|
|
Response
|
|
--------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
- pem: pem
|
|
- bay_uuid: bay_id
|
|
- links: links
|
|
|
|
.. note::
|
|
|
|
After Newton, all terms related bay/baymodel will be renamed to cluster
|
|
and cluster template.
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: samples/certificates-ca-show-resp.json
|
|
:language: javascript
|
|
|
|
Generate the CA certificate for a bay/cluster
|
|
=============================================
|
|
|
|
.. rest_method:: POST /v1/certificates/
|
|
|
|
Sign client key and generate the CA certificate for a bay/cluster
|
|
|
|
Response Codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 201
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 400
|
|
- 401
|
|
- 403
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- bay_uuid: bay_id
|
|
- csr: csr
|
|
|
|
.. note::
|
|
|
|
After Newton, all terms related bay/baymodel will be renamed to cluster
|
|
and cluster template.
|
|
|
|
Request Example
|
|
----------------
|
|
|
|
.. literalinclude:: samples/certificates-ca-sign-req.json
|
|
:language: javascript
|
|
|
|
Response
|
|
--------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
- pem: pem
|
|
- bay_uuid: bay_id
|
|
- links: links
|
|
- csr: csr
|
|
|
|
.. note::
|
|
|
|
After Newton, all terms related bay/baymodel will be renamed to cluster
|
|
and cluster template.
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: samples/certificates-ca-sign-resp.json
|
|
:language: javascript
|
|
|
|
Rotate the CA certificate for a bay/cluster
|
|
===========================================
|
|
|
|
.. rest_method:: PATCH /v1/certificates/{bay_uuid/cluster_uuid}
|
|
|
|
Rotate the CA certificate for a bay/cluster and invalidate all user
|
|
certificates.
|
|
|
|
Response Codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 202
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 400
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- cluster: cluster_id
|