Restores a deleted secret.
Operation description
You can only use this operation to restore a deleted secret that is within its recovery period. If you set ForceDeleteWithoutRecovery to true when you delete the secret, you cannot restore it.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| SecretName | string | Yes | The name of the secret you want to restore. | secret001 |
Response parameters
Examples
Sample success responses
JSONformat
{
"SecretName": "secret001",
"RequestId": "e4885adf-548f-4ca5-8075-f540bbd3a55f"
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | InvalidParameter | some of the specified parameters "\" is not valid |
| 403 | Forbidden.NoPermission | This operation is forbidden by permission system |
| 404 | Forbidden.ResourceNotFound | Resource not found |
| 409 | Rejected.ResourceInUse | restore normal secret |
| 500 | InternalFailure | Internal Failure |
For a list of error codes, visit the Service error codes.
