pub struct UpdateKeyConfigurationRequest {
pub mount: String,
pub name: String,
pub min_decryption_version: Option<u64>,
pub min_encryption_version: Option<u64>,
pub deletion_allowed: Option<bool>,
pub exportable: Option<bool>,
pub allow_plaintext_backup: Option<bool>,
pub auto_rotate_period: Option<String>,
}
Expand description
§Update Key Configuration
This endpoint allows tuning configuration values for a given key. (These values are returned during a read operation on the named key.)
- Path: {self.mount}/keys/{self.name}/config
- Method: POST
- Response: N/A
- Reference: https://developer.hashicorp.com/vault/api-docs/secret/transit#update-key-configuration
Fields§
§mount: String
§name: String
§min_decryption_version: Option<u64>
Specifies the minimum version of ciphertext allowed to be decrypted. Adjusting this as part of a key rotation policy can prevent old copies of ciphertext from being decrypted, should they fall into the wrong hands. For signatures, this value controls the minimum version of signature that can be verified against. For HMACs, this controls the minimum version of a key allowed to be used as the key for verification.
min_encryption_version: Option<u64>
Specifies the minimum version of the key that can be used to encrypt plaintext, sign payloads, or generate HMACs. Must be 0 (which will use the latest version) or a value greater or equal to min_decryption_version.
deletion_allowed: Option<bool>
Specifies if the key is allowed to be deleted.
exportable: Option<bool>
Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. Once set, this cannot be disabled.
allow_plaintext_backup: Option<bool>
If set, enables taking backup of named key in the plaintext format. Once set, this cannot be disabled.
auto_rotate_period: Option<String>
The period at which this key should be rotated automatically. Setting this to “0” will disable automatic key rotation. This value cannot be shorter than one hour. When no value is provided, the period remains unchanged.
Implementations§
Trait Implementations§
source§impl Default for UpdateKeyConfigurationRequest
impl Default for UpdateKeyConfigurationRequest
source§fn default() -> UpdateKeyConfigurationRequest
fn default() -> UpdateKeyConfigurationRequest
source§impl Endpoint for UpdateKeyConfigurationRequest
impl Endpoint for UpdateKeyConfigurationRequest
source§const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
source§const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
source§type Response = ()
type Response = ()
parse()
method is called.