Apache Ranger Public REST APIs
Also available as:
PDF

Create Service

Reference information for the Ranger REST API service/public/v2/api/service.

API Name Create Service
Request Type Post
Request URL service/public/v2/api/service
Request Params
{
    "configs": {
        "password": "*****",
        "username": "hadoop"
    },
    "description": "test service",
    "isEnabled": true,
    "name": "cl1_test",
    "type": "test",
    "version": 1
}
Response
{
    "configs": {
        "password": "*****",
        "username": "hadoop"
    },
    "createTime": 1451348710255,
    "createdBy": "Admin",
    "description": "test service",
    "guid": "e72cb64d-66d7-4632-b5ae-c6966cb52105",
    "id": 6,
    "isEnabled": true,
    "name": "cl1_test",
    "tagVersion": 1,
    "type": "test",
    "updateTime": 1451348710256,
    "updatedBy": "Admin",
    "version": 1
}