2016-08-02 12:33:33 -03:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Create a mapping
|
|
|
|
================
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
.. rest_method:: PUT /v3/OS-FEDERATION/mappings/{id}
|
2016-08-02 12:33:33 -03:00
|
|
|
|
2017-01-30 13:53:09 -08:00
|
|
|
Relationship: ``https://docs.openstack.org/api/openstack-identity/3/ext/OS-FEDERATION/1.0/rel/mapping``
|
2016-08-11 15:16:08 -05:00
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Normal response codes: 201
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_path
|
|
|
|
- rules: rules
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/create-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_body
|
|
|
|
- links: links
|
|
|
|
- rules: rules
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/create-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Get a mapping
|
|
|
|
=============
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
.. rest_method:: GET /v3/OS-FEDERATION/mappings/{id}
|
2016-08-02 12:33:33 -03:00
|
|
|
|
2017-01-30 13:53:09 -08:00
|
|
|
Relationship: ``https://docs.openstack.org/api/openstack-identity/3/ext/OS-FEDERATION/1.0/rel/mapping``
|
2016-08-11 15:16:08 -05:00
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_path
|
|
|
|
|
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_body
|
|
|
|
- links: links
|
|
|
|
- rules: rules
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/get-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Update a mapping
|
|
|
|
================
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
.. rest_method:: PATCH /v3/OS-FEDERATION/mappings/{id}
|
2016-08-02 12:33:33 -03:00
|
|
|
|
2017-01-30 13:53:09 -08:00
|
|
|
Relationship: ``https://docs.openstack.org/api/openstack-identity/3/ext/OS-FEDERATION/1.0/rel/mapping``
|
2016-08-11 15:16:08 -05:00
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_path
|
|
|
|
- rules: rules
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/update-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_body
|
|
|
|
- links: links
|
|
|
|
- rules: rules
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/update-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
List all mappings
|
|
|
|
=================
|
|
|
|
|
|
|
|
.. rest_method:: GET /v3/OS-FEDERATION/mappings
|
|
|
|
|
2017-01-30 13:53:09 -08:00
|
|
|
Relationship: ``https://docs.openstack.org/api/openstack-identity/3/ext/OS-FEDERATION/1.0/rel/mappings``
|
2016-08-11 15:16:08 -05:00
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- links: links_collection
|
|
|
|
- mappings: mappings
|
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: federation/mapping/samples/list-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Delete a mapping
|
|
|
|
================
|
|
|
|
|
2016-08-12 18:11:42 -03:00
|
|
|
.. rest_method:: DELETE /v3/OS-FEDERATION/mappings/{id}
|
2016-08-02 12:33:33 -03:00
|
|
|
|
2017-01-30 13:53:09 -08:00
|
|
|
Relationship: ``https://docs.openstack.org/api/openstack-identity/3/ext/OS-FEDERATION/1.0/rel/mapping``
|
2016-08-11 15:16:08 -05:00
|
|
|
|
2016-08-02 12:33:33 -03:00
|
|
|
Normal response codes: 204
|
2016-08-12 18:11:42 -03:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: federation/mapping/parameters.yaml
|
|
|
|
|
|
|
|
- id: id_path
|