Remove v2.0 extension documentation
This commit removes all the v2.0 extension documentation with the exception of the ec2token API, which is supported until the T release. Change-Id: I0f766c9778e92ae5eabff005d5c664dcc331507b
This commit is contained in:
parent
d5e9c0b4fe
commit
1dec4d512f
@ -7,4 +7,3 @@
|
||||
.. rest_expand_all::
|
||||
|
||||
.. include:: ksec2-admin.inc
|
||||
.. include:: kscrud.inc
|
||||
|
@ -1,26 +0,0 @@
|
||||
.. -*- rst -*-
|
||||
|
||||
===================
|
||||
OS-KSCRUD extension
|
||||
===================
|
||||
|
||||
Supports password changing for a user by themselves
|
||||
|
||||
Change user's own password
|
||||
==========================
|
||||
|
||||
.. rest_method:: PATCH /v2.0/OS-KSCRUD/users/{userId}
|
||||
|
||||
Changes user's own password and returns the new token
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- userId: user_id_path
|
||||
- user: user
|
||||
- original_password: user_original_password
|
||||
- password: user_new_password
|
@ -6,18 +6,53 @@ OS-KSEC2 admin extension
|
||||
|
||||
Supports Amazon Elastic Compute (EC2) style authentication.
|
||||
|
||||
EC2 Authentication
|
||||
==================
|
||||
|
||||
.. rest_method:: POST /v2.0/ec2tokens
|
||||
|
||||
Authenticate for token.
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/authenticate-request.json
|
||||
:language: javascript
|
||||
|
||||
Parameters
|
||||
~~~~~~~~~~
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
Status Codes
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. rest_status_code:: success ../v3/status.yaml
|
||||
|
||||
- 200
|
||||
|
||||
.. rest_status_code:: error ../v3/status.yaml
|
||||
|
||||
- 400
|
||||
- 401
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/authenticate-response.json
|
||||
:language: javascript
|
||||
|
||||
Grant credential to user
|
||||
========================
|
||||
|
||||
.. rest_method:: POST /v2.0/users/{userId}/OS-KSADM/credentials
|
||||
.. rest_method:: POST /v2.0/users/{userId}/credentials/OS-EC2
|
||||
|
||||
Grants a credential to a user.
|
||||
|
||||
Normal response codes: 201
|
||||
|
||||
Error response codes: 413,415,405,404,403,401,400,503,409,
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
@ -26,24 +61,42 @@ Request
|
||||
- userId: user_id_path
|
||||
|
||||
|
||||
Request Example
|
||||
---------------
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/ec2Credentials-create-request.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
Status Codes
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. rest_status_code:: success ../v3/status.yaml
|
||||
|
||||
- 201
|
||||
|
||||
.. rest_status_code:: error ../v3/status.yaml
|
||||
|
||||
- 400
|
||||
- 401
|
||||
- 403
|
||||
- 404
|
||||
- 405
|
||||
- 409
|
||||
- 413
|
||||
- 415
|
||||
- 503
|
||||
|
||||
List credentials (EC2 extension)
|
||||
================================
|
||||
|
||||
.. rest_method:: GET /v2.0/users/{userId}/OS-KSADM/credentials
|
||||
.. rest_method:: GET /v2.0/users/{userId}/credentials/OS-EC2
|
||||
|
||||
Lists credentials.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: 413,405,404,403,401,400,503,
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
@ -51,112 +104,107 @@ Request
|
||||
|
||||
- userId: user_id_path
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
Status Codes
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. rest_status_code:: success ../v3/status.yaml
|
||||
|
||||
- 200
|
||||
|
||||
.. rest_status_code:: error ../v3/status.yaml
|
||||
|
||||
- 400
|
||||
- 401
|
||||
- 403
|
||||
- 404
|
||||
- 405
|
||||
- 413
|
||||
- 503
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/credentialswithec2-list-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
Update user credentials
|
||||
=======================
|
||||
|
||||
.. rest_method:: POST /v2.0/users/{userId}/OS-KSADM/credentials/OS-KSEC2:ec2Credentials
|
||||
|
||||
Updates credentials for a user.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: 415,405,404,403,401,400,503,409,
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- userId: user_id_path
|
||||
|
||||
|
||||
Request Example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/ec2Credentials-create-request.json
|
||||
:language: javascript
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/ec2Credentials-show-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
Delete user credentials
|
||||
=======================
|
||||
|
||||
.. rest_method:: DELETE /v2.0/users/{userId}/OS-KSADM/credentials/OS-KSEC2:ec2Credentials
|
||||
.. rest_method:: DELETE /v2.0/users/{userId}/credentials/OS-EC2/{credentialId}
|
||||
|
||||
Deletes user credentials.
|
||||
|
||||
Normal response codes: 204
|
||||
|
||||
Error response codes: 413,415,405,404,403,401,400,503,409,
|
||||
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- userId: user_id_path
|
||||
- credentialId: credential_id
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
Status Codes
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. rest_status_code:: success ../v3/status.yaml
|
||||
|
||||
- 204
|
||||
|
||||
.. rest_status_code:: error ../v3/status.yaml
|
||||
|
||||
- 400
|
||||
- 401
|
||||
- 403
|
||||
- 404
|
||||
- 405
|
||||
- 409
|
||||
- 413
|
||||
- 415
|
||||
- 503
|
||||
|
||||
Get user credentials
|
||||
====================
|
||||
|
||||
.. rest_method:: GET /v2.0/users/{userId}/OS-KSADM/credentials/OS-KSEC2:ec2Credentials
|
||||
.. rest_method:: GET /v2.0/users/{userId}/credentials/OS-EC2/{credentialId}
|
||||
|
||||
Gets user credentials.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: 413,405,404,403,401,400,503,
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- userId: user_id_path
|
||||
- credentialId: credential_id
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
Response
|
||||
--------
|
||||
|
||||
Status Codes
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. rest_status_code:: success ../v3/status.yaml
|
||||
|
||||
- 200
|
||||
|
||||
.. rest_status_code:: error ../v3/status.yaml
|
||||
|
||||
- 400
|
||||
- 401
|
||||
- 403
|
||||
- 404
|
||||
- 405
|
||||
- 413
|
||||
- 503
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
.. literalinclude:: samples/OS-KSEC2/ec2Credentials-show-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
List credentials by type
|
||||
========================
|
||||
|
||||
.. rest_method:: GET /v2.0/users/{userId}/OS-KSADM/credentials/OS-KSEC2:ec2Credentials/{type}
|
||||
|
||||
Lists credentials by type.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: 413,405,404,403,401,400,503,
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- userId: user_id_path
|
||||
- type: credential_type
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: samples/OS-KSADM/credentials-show-response.json
|
||||
:language: javascript
|
||||
|
@ -1,47 +1,16 @@
|
||||
# variables in header
|
||||
Location:
|
||||
format: uri
|
||||
in: header
|
||||
required: false
|
||||
type: string
|
||||
|
||||
# variables in path
|
||||
credential_id:
|
||||
description: |
|
||||
The credential id.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
credential_type:
|
||||
description: |
|
||||
The credential type.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
role_id_path:
|
||||
description: |
|
||||
The role ID.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
role_name_path:
|
||||
description: |
|
||||
The role name.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
service_id_path:
|
||||
description: |
|
||||
The service ID.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
service_name_path:
|
||||
description: |
|
||||
The service name.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
tenant_id_path:
|
||||
description: |
|
||||
The tenant ID.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
user_id_path:
|
||||
description: |
|
||||
The user ID.
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"role": {
|
||||
"id": "123",
|
||||
"name": "Guest",
|
||||
"description": "Guest Access"
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"role": {
|
||||
"id": "123",
|
||||
"name": "Guest",
|
||||
"description": "Guest Access"
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"roles": [
|
||||
{
|
||||
"id": "123",
|
||||
"name": "compute:admin",
|
||||
"description": "Nova Administrator"
|
||||
}
|
||||
],
|
||||
"roles_links": []
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"user": {
|
||||
"id": "3c9530e",
|
||||
"name": "admin",
|
||||
"email": "admin@example.org",
|
||||
"username": "admin",
|
||||
"enabled": true,
|
||||
"tenantId": "1ca8e0"
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"credentials": {
|
||||
"access": "8cff51dc66594df4a2ae121f796df36c",
|
||||
"host": "localhost",
|
||||
"params": {
|
||||
"Action": "Test",
|
||||
"SignatureMethod": "HmacSHA256",
|
||||
"SignatureVersion": "2",
|
||||
"Timestamp": "2007-01-31T23:59:59Z"
|
||||
},
|
||||
"path": "/",
|
||||
"secret": "df8daeaa981b40cea1217fead123bc64",
|
||||
"signature": "Fra2UBKKtqy3GQ0mj+JqzR8GTGsbWQW+yN5Nih9ThfI=",
|
||||
"verb": "GET"
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
{
|
||||
"access": {
|
||||
"metadata": {
|
||||
"is_admin": 0,
|
||||
"roles": ["9fe2ff9ee4384b1894a90878d3e92bab"]
|
||||
},
|
||||
"serviceCatalog": [],
|
||||
"token": {
|
||||
"audit_ids": ["AVUi_tN8SFWnHYaYpCcMEQ"],
|
||||
"expires": "2018-02-02T21:13:19.000000Z",
|
||||
"id": "gAAAAABadMZfZa_PZNOSi5iQoqPZ1b-VIo2Gnlf4Z_oJotw8qTh1Yv8_CFysOnoxRIrfFI-EcrErdJM2CrP7o6aDNR5AbfnFtSN_zgzzesEWaOaQkoLpk9X1lLada2KcQpWAeNafjNYSiP7JFjW6N4ngAm9U7egUW6MwUPPxi5e8igR5DtNc0FU",
|
||||
"issued_at": "2018-02-02T20:13:19.000000Z",
|
||||
"tenant": {
|
||||
"description": "description",
|
||||
"enabled": true,
|
||||
"id": "6b85a6ff4e0b4040a81708d6e063e4e7",
|
||||
"name": "BAR",
|
||||
"tags": []
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"id": "b245550742cf4c2fb9cf37aa1eda866e",
|
||||
"name": "foo",
|
||||
"roles": [
|
||||
{"name": "_member_"}
|
||||
],
|
||||
"roles_links": [],
|
||||
"username": "foo"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user