Vault | C# SDK | Secrets Endpoints
Secrets Endpoints
Secret store
VaultClient.SecretStore(SecretStoreRequest)Store a secret in the vault service.
var request = new SecretStoreRequest
("12sdfgs4543qv@#%$casd", "my-very-secret-secret")
;
var response = await client.SecretStore(request);
Secret rotate
VaultClient.SecretRotate(SecretRotateRequest)Rotate a secret in the vault service.
var request = new SecretRotateRequest(
"pvi_p6g5i3gtbvqvc3u6zugab6qs6r63tqf5",
"12sdfgs4543qv@#%$casd")
.WithRotationState(ItemVersionState.Deactivated)
;
var response = await client.SecretRotate(request);