/api/juniper/vdirector/groups/manage-group
The following operations are supported on this resource:
- POST - Manage group
POST /api/juniper/vdirector/groups/manage-group (v1)
Manage group. The actions for managing the group can be: CREATE, DELETE, MODIFY.
Access Control
The following capabilities are required to access this API:
"VSMCap"
Example Usage
POST /api/juniper/vdirector/groups/manage-groupContent Types
-
Consumes content types:
application/net.juniper.vdirector.groups.manage-specs+xml;version=1;charset=UTF-8
application/net.juniper.vdirector.groups.manage-specs+json;version=1;charset=UTF-8 -
Produces content types:
application/net.juniper.vdirector.groups.groupobject+xml;version=1;q=0.01
application/net.juniper.vdirector.groups.groupobject+json;version=1;q=0.01 -
Sample Input XML:
<manage-specs>
<group-type>BUILTIN</group-type>
<operation>CREATE</operation>
<desc>String</desc>
<name>String</name>
</manage-specs> -
Sample Output XML:
<groupobject href="/api/juniper/vdirector/groups/groups/{id}" uri="/api/juniper/vdirector/groups/group-by-names">
<static-vms uri="/api/juniper/vdirector/groups/group-by-names/static-vms">
<static-member>
<uuid>String</uuid>
</static-member>
</static-vms>
<desc>String</desc>
<date-modified>java.util.Date</date-modified>
<num-exprs>Integer</num-exprs>
<group-type>BUILTIN</group-type>
<id>Integer</id>
<name>String</name>
<date-created>java.util.Date</date-created>
<smart-def-str>String</smart-def-str>
<smart-def uri="/api/juniper/vdirector/groups/group-by-names/smart-def">
<smart-expr>
<comp>EQUALS</comp>
<value>String</value>
<match>NONE</match>
<prop>VI_ATTRIBUTE</prop>
</smart-expr>
</smart-def>
<group-size>Integer</group-size>
</groupobject> -
Sample Input JSON:
{
"manage-specs" : {
"group-type" : "BUILTIN" ,
"operation" : "CREATE" ,
"desc" : "String" ,
"name" : "String"
}
} -
Sample Output JSON:
{
"groupobject" : {
"@href" : "/api/juniper/vdirector/groups/groups/{id}" ,
"@uri" : "/api/juniper/vdirector/groups/group-by-names" ,
"static-vms" : {
"@uri" : "/api/juniper/vdirector/groups/group-by-names/static-vms" ,
"static-member" : {
"uuid" : "String"
}
} ,
"desc" : "String" ,
"date-modified" : "java.util.Date" ,
"num-exprs" : "Integer" ,
"group-type" : "BUILTIN" ,
"id" : "Integer" ,
"name" : "String" ,
"date-created" : "java.util.Date" ,
"smart-def-str" : "String" ,
"smart-def" : {
"@uri" : "/api/juniper/vdirector/groups/group-by-names/smart-def" ,
"smart-expr" : {
"comp" : "EQUALS" ,
"value" : "String" ,
"match" : "NONE" ,
"prop" : "VI_ATTRIBUTE"
}
} ,
"group-size" : "Integer"
}
}