All Products
Search
Document Center

Key Management Service:RestoreSecret

Last Updated:Jun 10, 2026

Memulihkan rahasia yang dihapus.

Deskripsi operasi

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.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

SecretName

string

Yes

Nama rahasia yang ingin Anda memulihkan.

secret001

Elemen respons

Element

Type

Description

Example

object

SecretName

string

The name of the secret.

secret001

RequestId

string

The ID of the request.

e4885adf-548f-4ca5-8075-f540bbd3a55f

Contoh

Respons sukses

JSONformat

{
  "SecretName": "secret001",
  "RequestId": "e4885adf-548f-4ca5-8075-f540bbd3a55f"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameter some of the specified parameters "\" is not valid
500 InternalFailure Internal Failure
403 Forbidden.NoPermission This operation is forbidden by permission system
404 Forbidden.ResourceNotFound Resource not found
409 Rejected.ResourceInUse restore normal secret

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.