List Credentials

Back to Credential Resources

Summary

Returns a collection of the currently stored (persisted or temporary) credentials. For each credential in the collection, only the cluster name, alias, and credential store type attributes will be returned.

GET /clusters/:clusterName/credentials

Response

Example

Get the collection of all currently stored credentials.

GET /clusters/c1/credentials

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