Update Credential

Back to Credential Resources

Summary

Update an existing credential resource to change it's principal, key, and/or persist values.

PUT /clusters/:clusterName/credentials/:alias

Response

Examples

Update a credential, changing its principal and key values, but leaving its persistence value alone.

PUT /clusters/c1/credentials/external.db

{
  "Credential" : {
    "principal" : "db_admin",
    "key" : "N3WS3cr3tK3y!"
  }
}

200 OK

Update a credential, changing only its persistence value. This will remove the credential from its current storage facility and create a new entry in the requested storage facility.

POST /clusters/c1/credentials/kdc.admin

{
  "Credential" : {
    "type" : "temporary"
  }
}

200 OK