--- layout: page title: "Apache Zeppelin Credential REST API" description: "This page contains Apache Zeppelin Credential REST API information." group: usage/rest_api --- {% include JB/setup %} # Apache Zeppelin Credential REST API
## Overview Apache Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality. All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`. Note that Apache Zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc). If you work with Apache Zeppelin and find a need for an additional REST API, please [file an issue or send us an email](http://zeppelin.apache.org/community.html).| Description | This ```GET``` method returns all key/value pairs of the credential information on the server. |
| URL | ```http://[zeppelin-server]:[zeppelin-port]/api/credential``` |
| Success code | 200 |
| Fail code | 500 |
| sample JSON response |
{
"status": "OK",
"message": "",
"body": {
"userCredentials":{
"entity1":{
"username":"user1",
"password":"password1"
},
"entity2":{
"username":"user2",
"password":"password2"
}
}
}
} |
| Description | This ```PUT``` method creates the credential information with new properties. |
| URL | ```http://[zeppelin-server]:[zeppelin-port]/api/credential/``` |
| Success code | 200 |
| Fail code | 500 |
| Sample JSON input |
{
"entity": "e1",
"username": "user",
"password": "password"
}
|
| Sample JSON response |
{
"status": "OK"
}
|
| Description | This ```DELETE``` method deletes the credential information. |
| URL | ```http://[zeppelin-server]:[zeppelin-port]/api/credential``` |
| Success code | 200 |
| Fail code | 500 |
| Sample JSON response |
{"status":"OK"}
|
| Description | This ```DELETE``` method deletes a given credential entity. |
| URL | ```http://[zeppelin-server]:[zeppelin-port]/api/credential/[entity]``` |
| Success code | 200 |
| Fail code | 500 |
| Sample JSON response |
{"status":"OK"}
|