Deleting a Repository Deployment Key (Deprecated)
Function
Delete a repository deployment key.
URI
DELETE /v1/repositories/{repository_id}/deploy_keys/{key_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key_id |
Yes |
Integer |
Deployment key ID |
|
repository_id |
Yes |
Integer |
Repository short ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. The user token can be obtained by calling the corresponding IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
Error object |
Response error |
|
result |
Boolean |
Response result |
|
status |
String |
Explanation: Response status Range:
|
Request Example
DELETE https://{endpoint}/v1/repositories/{repository_id}/deploy_keys/{key_id}
Response Example
Status code: 200
OK
{
"result" : "false",
"status" : "success"
}
Status Codes
|
Status Codes |
Description |
|---|---|
|
200 |
OK |
Error Codes
See error codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
