Update a SCRAM credential.
Body
Required
-
The SCRAM credential to update.
Additional properties are NOT allowed.
-
The list of fields to update See AIP-134 for how to use
field_mask
POST
/redpanda.core.admin.v2.SecurityService/UpdateScramCredential
curl \
--request POST 'http://localhost:9644/redpanda.core.admin.v2.SecurityService/UpdateScramCredential' \
--header "Content-Type: application/json" \
--header "Connect-Protocol-Version: 1" \
--header "Connect-Timeout-Ms: 42.0" \
--data '{"scramCredential":{"mechanism":"SCRAM_MECHANISM_UNSPECIFIED","name":"string","password":"string"},"updateMask":"string"}'
Request examples
# Headers
Connect-Protocol-Version: 1
Connect-Timeout-Ms: 42.0
# Payload
{
"scramCredential": {
"mechanism": "SCRAM_MECHANISM_UNSPECIFIED",
"name": "string",
"password": "string"
},
"updateMask": "string"
}
Response examples (200)
{
"scramCredential": {
"mechanism": "SCRAM_MECHANISM_UNSPECIFIED",
"name": "string",
"passwordSetAt": "2023-01-15T01:30:15.01Z"
}
}
Response examples (default)
{
"code": "not_found",
"details": [
{
"debug": {},
"type": "string",
"value": "@file"
}
],
"message": "string"
}