Unable to set filters for group through ReST API

Solution Verified - Updated -

Issue

When belongsto was used to set group filter while group creation using ReST API

curl -s --user admin:smartvm \
     -X POST \
     -H "Accept: application/json" \
     -d '{"action" : "create",
          "resource": {"description" : "api10", 
                       "tenant" : { "id": "16"} , 
                       "role": { "name": "ps_self_service" }, 
                                 "filters": {"belongsto":["/managed/tenant/wg0000"], "managed":[[]]}}}' 
      https://mycfme.com/api/groups/

resulted in inaccessible group through web interface.

Doc referred: http://manageiq.org/docs/reference/fine/api/appendices/resource_attributes

Environment

Red Hat Cloudforms 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content