mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-29 03:21:00 +00:00
handle key changes
This commit is contained in:
parent
0d415f42ac
commit
3684c29ad0
1 changed files with 14 additions and 3 deletions
|
@ -323,7 +323,10 @@ paths:
|
||||||
Creates a new API access key.
|
Creates a new API access key.
|
||||||
requestBody:
|
requestBody:
|
||||||
description: |
|
description: |
|
||||||
"You can set a friendly name for this key, send an empty string instead"
|
You can set a friendly name for this key.
|
||||||
|
If you don't want to, you can set the name to `null`.
|
||||||
|
|
||||||
|
*Note: the secret key is returned in the response.*
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
@ -332,6 +335,7 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
nullable: true
|
||||||
example: "test-key"
|
example: "test-key"
|
||||||
responses:
|
responses:
|
||||||
'500':
|
'500':
|
||||||
|
@ -352,7 +356,9 @@ paths:
|
||||||
operationId: "GetKey"
|
operationId: "GetKey"
|
||||||
summary: "Get key information"
|
summary: "Get key information"
|
||||||
description: |
|
description: |
|
||||||
Return information about a specific key and return its information
|
Return information about a specific key like its identifiers, its permissions and buckets on which it has permissions.
|
||||||
|
|
||||||
|
For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it.
|
||||||
parameters:
|
parameters:
|
||||||
- name: access_key
|
- name: access_key
|
||||||
in: path
|
in: path
|
||||||
|
@ -409,6 +415,8 @@ paths:
|
||||||
summary: "Update a key"
|
summary: "Update a key"
|
||||||
description: |
|
description: |
|
||||||
Updates information about the specified API access key.
|
Updates information about the specified API access key.
|
||||||
|
|
||||||
|
*Note: the secret key is not returned in the response, `null` is sent instead.*
|
||||||
parameters:
|
parameters:
|
||||||
- name: access_key
|
- name: access_key
|
||||||
in: path
|
in: path
|
||||||
|
@ -463,7 +471,9 @@ paths:
|
||||||
operationId: "SearchKey"
|
operationId: "SearchKey"
|
||||||
summary: "Select key by pattern"
|
summary: "Select key by pattern"
|
||||||
description: |
|
description: |
|
||||||
Find the first key matching the given pattern based on its identifier aor friendly name and return its information.
|
Find the first key matching the given pattern based on its identifier or friendly name and return its information.
|
||||||
|
|
||||||
|
For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it.
|
||||||
parameters:
|
parameters:
|
||||||
- name: pattern
|
- name: pattern
|
||||||
in: path
|
in: path
|
||||||
|
@ -514,6 +524,7 @@ paths:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: "test-key"
|
example: "test-key"
|
||||||
|
nullable: true
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
type: string
|
type: string
|
||||||
example: "GK31c2f218a2e44f485b94239e"
|
example: "GK31c2f218a2e44f485b94239e"
|
||||||
|
|
Loading…
Reference in a new issue