List Credentials

Back to Credential Resources

Summary

Gets the details about an existing credential. Nor all information about a credential will be returned due to security concerns.

GET /clusters/:clusterName/credentials/:alias

Response

Example

Get the credential with the alias name of ‘kdc.admin.credentials’.

GET /clusters/c1/credentials/kdc.admin.credentials

200 OK
{
  "href" : "http://your.ambari.server/api/v1/clusters/c1/credentials/kdc.admin.credentials",
  "Credential" : {
    "alias" : "kdc.admin.credentials",
    "cluster_name" : "c1",
    "type" : "temporary"
  }
}