credential-get.md 1.8 KB

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

HTTP CODE Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error

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"
  }
}