Add documentation on how to set a user's tenant.

Change-Id: I61b98891336ca1ed096f013ff1ed1a89d7854886
Closes-Bug: #1609161
This commit is contained in:
Chris Spencer 2016-08-30 15:04:22 -07:00
parent f7f1ee7435
commit ba98048401
6 changed files with 57 additions and 3 deletions

View File

@ -132,6 +132,7 @@ Request
- enabled: enabled - enabled: enabled
- email: email - email: email
- name: name - name: name
- tenantId: tenantId
Request Example Request Example
--------------- ---------------
@ -149,6 +150,7 @@ Response Parameters
- email: email - email: email
- name: name - name: name
- id: id - id: id
- tenantId: tenantId
Response Example Response Example
---------------- ----------------

View File

@ -1,5 +1,6 @@
{ {
"user": { "user": {
"email": "updated_email@example.org" "email": "updated_email@example.org",
"tenantId": "1ca8e0"
} }
} }

View File

@ -4,6 +4,7 @@
"name": "demo", "name": "demo",
"email": "updated_email@example.org", "email": "updated_email@example.org",
"username": "demo", "username": "demo",
"enabled": true "enabled": true,
"tenantId": "1ca8e0"
} }
} }

View File

@ -92,6 +92,50 @@ Response Example
:language: javascript :language: javascript
Update user tenant
==================
.. rest_method:: PUT /v2.0/users/{userId}/OS-KSADM/tenant
Sets a user's tenant
Normal response codes: 200
Error response codes: 413, 415, 405, 404, 403, 401, 400, 503, 409
Request
-------
.. rest_parameters:: parameters.yaml
- userId: userId
- tenantId: tenantId
Request Example
---------------
.. literalinclude:: samples/OS-KSADM/user-update-tenant-request.json
:language: javascript
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- email: email
- enabled: enabled
- tenantId: tenantId
- id: id
- name: name
- username: username
Response Example
----------------
.. literalinclude:: samples/OS-KSADM/user-show-response.json
:language: javascript
Create service (admin extension) Create service (admin extension)
================================ ================================

View File

@ -4,6 +4,7 @@
"name": "admin", "name": "admin",
"email": "admin@example.org", "email": "admin@example.org",
"username": "admin", "username": "admin",
"enabled": true "enabled": true,
"tenantId": "1ca8e0"
} }
} }

View File

@ -0,0 +1,5 @@
{
"user": {
"tenantId": "1ca8e0"
}
}