2 ===============================
11 This is a service that provides secret management facilities
20 kiran.k.kamineni@intel.com
30 `Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>`_
38 https://aaf.onap.org:10443/v1/sms/
53 **Located in:** header
62 Operations related to Secret Domains
68 DELETE ``/domain/{domainName}``
69 -------------------------------
75 Deletes a domain by name
82 Deletes a domain with provided name
89 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
90 :widths: 20, 15, 10, 10, 10, 20, 30
92 domainName | path | Yes | string | | | Name of the domain
111 Invalid Path or Path not found
134 .. _d_c7bdcff9aff0692da98e588abdbc895b:
141 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
142 :widths: 20, 10, 15, 15, 30, 25
144 name | No | string | | | Name of the secret domain under which all secrets will be stored
145 uuid | No | string | | | Optional value provided by user. If user does not provide, server will auto generate
147 .. code-block:: javascript
150 "name": "somestring",
163 Type: :ref:`Domain <d_c7bdcff9aff0692da98e588abdbc895b>`
167 .. code-block:: javascript
170 "name": "somestring",
183 Internal Server Error
193 Operations related to username password based authentication
206 Login with username and password
213 Operations related to logging in via username and Password
221 .. _d_8e36d758bad367e4538a291a5dd5355f:
228 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
229 :widths: 20, 10, 15, 15, 30, 25
231 password | No | string | | |
232 username | No | string | | |
234 .. code-block:: javascript
237 "password": "somestring",
238 "username": "somestring"
247 Successful Login returns a token
250 .. _i_bbceffdf8441c1c476ca77c42ad12f85:
256 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
257 :widths: 20, 10, 15, 15, 30, 25
259 token | No | string | | |
260 ttl | No | integer | | | ttl of returned token in seconds
265 .. code-block:: javascript
268 "token": "somestring",
275 Invalid Username or Password
285 Operations related to Secrets
291 DELETE ``/domain/{domainName}/secret/{secretName}``
292 ---------------------------------------------------
306 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
307 :widths: 20, 15, 10, 10, 10, 20, 30
309 secretName | path | Yes | string | | | Name of Secret to Delete
310 domainName | path | Yes | string | | | Path to the SecretDomain which contains the Secret
329 Invalid Path or Path not found
336 GET ``/domain/{domainName}/secret``
337 -----------------------------------
343 List secret Names in this domain
350 Gets all secret names in this domain
357 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
358 :widths: 20, 15, 10, 10, 10, 20, 30
360 domainName | path | Yes | string | | | Name of the domain in which to look at
376 .. _i_1dcddfd6f11cba3fb2516d3a61cd1b77:
382 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
383 :widths: 20, 10, 15, 15, 30, 25
385 secretnames | No | array of string | | | Array of strings referencing the secret names
390 .. code-block:: javascript
403 Invalid Path or Path not found
410 GET ``/domain/{domainName}/secret/{secretName}``
411 ------------------------------------------------
424 Returns a single secret
431 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
432 :widths: 20, 15, 10, 10, 10, 20, 30
434 domainName | path | Yes | string | | | Name of the domain in which to look at
435 secretName | path | Yes | string | | | Name of the secret which is needed
451 Type: :ref:`Secret <d_5e5fddd9ede6eb091e8496a9c55b84c3>`
455 .. code-block:: javascript
458 "name": "somestring",
469 Invalid Path or Path not found
476 POST ``/domain/{domainName}/secret``
477 ------------------------------------
491 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
492 :widths: 20, 15, 10, 10, 10, 20, 30
494 domainName | path | Yes | string | | | Name of the domain
502 .. _d_5e5fddd9ede6eb091e8496a9c55b84c3:
509 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
510 :widths: 20, 10, 15, 15, 30, 25
512 name | No | string | | | Name of the secret
513 values | No | :ref:`values <i_a9213c9639162b77082e257e19cca0d0>` | | | Map of key value pairs that constitute the secret
515 .. _i_a9213c9639162b77082e257e19cca0d0:
520 Map of key value pairs that constitute the secret
522 Map of {"key":":ref:`values-mapped <m_4d863967ef9a9d9efdadd1b250c76bd6>`"}
526 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
527 :widths: 20, 10, 15, 15, 30, 25
531 .. code-block:: javascript
534 "name": "somestring",
554 Invalid Path or Path not found
564 Operations related to quorum client which are not useful to clients
584 Gets current backend status. This API is used only by quorum clients
600 .. _i_ac1bc8e82eadbd8c03f852e15be4d03b:
606 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
607 :widths: 20, 10, 15, 15, 30, 25
609 sealstatus | No | string | | | seal status of backend
614 .. code-block:: javascript
617 "sealstatus": "somestring"
623 Invalid Path or Path not found
644 Sends unseal shard to unseal if backend is sealed
652 .. _i_9d32e021ba68855cbb6e633520b7cd2d:
659 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
660 :widths: 20, 10, 15, 15, 30, 25
662 unsealshard | No | string | | | Unseal shard that will be used along with other shards to unseal backend
664 .. code-block:: javascript
667 "unsealshard": "somestring"
682 Invalid Path or Path not found
691 .. _d_8e36d758bad367e4538a291a5dd5355f:
693 Credential Model Structure
694 --------------------------
698 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
699 :widths: 20, 10, 15, 15, 30, 25
701 password | No | string | | |
702 username | No | string | | |
704 .. _d_c7bdcff9aff0692da98e588abdbc895b:
706 Domain Model Structure
707 ----------------------
711 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
712 :widths: 20, 10, 15, 15, 30, 25
714 name | No | string | | | Name of the secret domain under which all secrets will be stored
715 uuid | No | string | | | Optional value provided by user. If user does not provide, server will auto generate
717 .. _d_5e5fddd9ede6eb091e8496a9c55b84c3:
719 Secret Model Structure
720 ----------------------
724 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
725 :widths: 20, 10, 15, 15, 30, 25
727 name | No | string | | | Name of the secret
728 values | No | :ref:`values <i_a9213c9639162b77082e257e19cca0d0>` | | | Map of key value pairs that constitute the secret
730 .. _i_a9213c9639162b77082e257e19cca0d0:
735 Map of key value pairs that constitute the secret
737 Map of {"key":":ref:`values-mapped <m_4d863967ef9a9d9efdadd1b250c76bd6>`"}
741 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
742 :widths: 20, 10, 15, 15, 30, 25