-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add DELETE /v2/account/keys/{ssh_key_identifier}
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
operationId: destroy_a_key | ||
|
||
summary: Delete an existing SSH key from your account. | ||
|
||
description: >- | ||
To destroy a public SSH key that you have in your account, send a DELETE request | ||
to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`. | ||
A 204 status will be returned, indicating that the action was successful and that | ||
the response body is empty. | ||
tags: | ||
- Account | ||
- SSH Keys | ||
|
||
parameters: | ||
- $ref: 'parameters/ssh_key_identifier.yml' | ||
|
||
responses: | ||
'204': | ||
$ref: '../../shared/responses/no_content.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'404': | ||
$ref: '../../shared/responses/not_found.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
description: The action was successful and the response body is empty. | ||
|
||
headers: | ||
ratelimit-limit: | ||
$ref: '../headers.yml#/ratelimit-limit' | ||
ratelimit-remaining: | ||
$ref: '../headers.yml#/ratelimit-remaining' | ||
ratelimit-reset: | ||
$ref: '../headers.yml#/ratelimit-reset' |