Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-11-2017 01:26 PM
I'm working on automating a cluster creation. One of the things I've done, is create new roleConfigsGroup.
What I now need to do is move the roles to the new roleConfigsGroup using the API. To do that, I'm using this endpoint: /api/v14/clusters/{clusterName}/services/{serviceName}/roleConfigGroups/{roleConfigGroupName}/roles.
My problem is, I can't seem to figure out the proper JSON to use with my PUT request.
https://cloudera.github.io/cm_api/apidocs/v14/ns0_apiRoleNameList.html says I need to pass an items list, which I've done with several other endpoints. But I have no clue what each item should be like.
Anyone has an example handy?
Created on 01-15-2017 04:18 PM - edited 01-15-2017 05:04 PM
You could try this where the items are role names to be moved against /clusters/{clusterName}/services/{serviceName}/roleConfigGroups/{roleConfigGroupName}/roles
Example:
{
"items": ["flumeAGENTd574d31f","flumeAGENTd5192a7f"]
}
Created 01-11-2017 01:29 PM
JSONs I've tried so far:
{
"items" : [
{
"name" : "SERVER",
"roleType" : "SERVER"
}
]
}{
"items" : [
"SERVER"
]
}
Created on 01-15-2017 04:18 PM - edited 01-15-2017 05:04 PM
You could try this where the items are role names to be moved against /clusters/{clusterName}/services/{serviceName}/roleConfigGroups/{roleConfigGroupName}/roles
Example:
{
"items": ["flumeAGENTd574d31f","flumeAGENTd5192a7f"]
}
Created 01-16-2017 05:56 AM
yeah, i ended up figuring out last week.
thanks for your reply 🙂