ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-9142) Create new API endpoints for cluster and service kerberos descriptors
Date Thu, 15 Jan 2015 18:31:34 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-9142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Speidel resolved AMBARI-9142.
----------------------------------
    Resolution: Fixed

merged to trunk

> Create new API endpoints for cluster and service kerberos descriptors
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-9142
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9142
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-server
>            Reporter: John Speidel
>            Assignee: John Speidel
>              Labels: api, api-addition, kerberos
>             Fix For: 2.0.0
>
>
> Expose cluster and service kerberos descriptors via the REST API.
> Introduce new artifact endpoints as sub-resources for the cluster and service endpoints.
> Kerberos descriptors will be created and obtained via the new artifact endpoints.
> The api has no notion of a kerberos descriptor, instead the descriptor is simply an artifact
and the descriptor contents are provided via the 'artifact_data' field.
> To get a cluster kerberos descriptor which was created for the cluster 'c1' with the
name 'kerberos_descriptor':
> {code}
> GET http://AMBARI_SERVER:8080/api/v1/clusters/c1/artifacts/kerberos_descriptor
> {
>   "href" : "http://172.18.192.1:8080/api/v1/clusters/c1/artifacts/kerberos_descriptor",
>   "Artifacts" : {
>     "artifact_name" : "kerberos_descriptor",
>     "cluster_name" : "c1"
>   },
>   "artifact_data" : {
>     "identities" : [
>        ...
>     ],
>     "services" : [
>       ...
>     ],
>     "properties" : {
>       ...
>     }
>   }
> }
> {code}
> To get a service kerberos descriptor which was created for the cluster 'c1' and service
's1' with the name 'kerberos_descriptor';:
> {code}
> GET http://AMBARI_SERVER:8080/api/v1/clusters/c1/services/s1/artifacts/kerberos_descriptor
> {
>   "href" : "http://172.18.192.1:8080/api/v1/clusters/c1/services/s1/artifacts/kerberos_descriptor",
>   "Artifacts" : {
>     "artifact_name" : "kerberos_descriptor",
>     "cluster_name" : "c1",
>     "service_name" : "s1"
>   },
>   "artifact_data" : {
>     ...
>   }
> }
> {code}
> To create a cluster kerberos descriptor for cluster 'c1' with the name 'kerberos_descriptor':
> {code}
> POST http://AMBARI_SERVER:8080/api/v1/clusters/c1/artifacts/kerberos_descriptor
> {
>   "artifact_data" : {
>     ... // artifact contents 
>   }  
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message