I am trying to add a group into the inventory as I see on the web interface using the REST API:
PUT /global-manager/api/v1/global-infra/domains/default/groups
{
"expression" : [ {
"ip_addresses" : [ "1.1.1.1" ],
"resource_type" : "IPAddressExpression"
} ],
"resource_type" : "Group",
"display_name" : "00test11",
"description" : "test api call",
"_system_owned" : false,
"_protection" : "NOT_PROTECTED",
"_revision" : 0
}
I keep getting the response:
{ "module_name" : "common-services",
"error_message" : "Method is not allowed",
"error_code" : 282 }
When I do GET /global-manager/api/v1/global-infra/domains/default/groups, I do get all the groups. is there a step that I am missing before making a PUT method call? the docs mention put PUT /global-manager/api/v1/global-infra/domains/default/groups/<group-id> but how do I get the <group-id> before I create it? Any help would be appreciated.