Skip to main content
Question

how to create a CLient Group with new rules in Python & cvpysdk ?

  • April 3, 2025
  • 1 reply
  • 31 views

Forum|alt.badge.img+1

I try in Python 3.11.5 with Cvpysdk v11.38 ( or 11.34 before ) to create a ClientGroup with some rules in it .

But when I run it I can see the new Client Group , the new rules added but  strangely the value of the rule … associated Storage Policy has another value and thus the result , all associated clients to this new client group, is not correct.

It’s very difficult to find any help ?

Even Brave A.I returns me some faulty samples or probably some old python and cvpysdk samples.

Thanks in advance,

Patrick 

1 reply

Forum|alt.badge.img+15

Hello ​@patrick.neetens 

Thanks for the question! It seems that the API create ClientGroup is deprecated: 
 

https://api.commvault.com/docs/SP38/api/cv/ClientGroupOperations/post-client-group/#create-client-group-deprecated


It has been replaced with Create Server group: 
https://api.commvault.com/docs/SP32/api/cv/OpenAPI3/create-server-groups/

Please advise if you have the same issues with this API. 

Kind regards
Albert Williams