/api/hostgroups/:id with nested hostgroups

Posted on

Hello,

On RedHat Satellite 6.2 the api doc state that :id need to be

string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space.

For example, with hostgroups as

test
test/test2
test/test2/centos 6.6

How could we show the hostgroups test/test2 and test/test2/centos 6.6 ?

I've tested the following without success

---> api/hostgroups/test2

{
  "error": {"message":"Resource hostgroup not found by id 'test2'"}
}

---> api/hostgroups/test/test2

The page you were looking for doesn't exist.

---> api/hostgroups/test%2Ftest2

The requested URL /api/hostgroups/test/test2 was not found on this server.
---> api/hostgroups/centos%206.6

{
  "error": {"message":"Resource hostgroup not found by id 'centos 6'"}
}

---> api/hostgroups/test/test2/centos%206.6

The page you were looking for doesn't exist.

---> api/hostgroups/test%2Ftest2%2Fcentos%206.6

The requested URL /api/hostgroups/test/test2/centos 6.6 was not found on this server.

Best Regards,