Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Moving roles to a new roleConfigsGroup

Solved Go to solution
Highlighted

Moving roles to a new roleConfigsGroup

New Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Moving roles to a new roleConfigsGroup

New Contributor

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"]
}

 

View solution in original post

3 REPLIES 3
Highlighted

Re: Moving roles to a new roleConfigsGroup

New Contributor

JSONs I've tried so far:

 

{
  "items" : [
    {
      "name" : "SERVER",
      "roleType" : "SERVER"
    }
  ]
}
{
  "items" : [
    "SERVER"
  ]
}
Highlighted

Re: Moving roles to a new roleConfigsGroup

New Contributor

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"]
}

 

View solution in original post

Highlighted

Re: Moving roles to a new roleConfigsGroup

New Contributor

yeah, i ended up figuring out last week.

 

thanks for your reply :)

Don't have an account?
Coming from Hortonworks? Activate your account here