Adds an item to the group identified by pszGroupOid.
The item (which may be a group) and the group must exist and must be of the same type.
The pszDomainOid parameter is required by a rule group or response group. An agent group does not require a domain OID because it is not a domain-based object.
Type
Group function, global scope (agents) or domain scope (responses, rules).
Syntax
int SM_EXTERN Sm_PolicyApi_AddToGroup ( void* pSessionHandle, Sm_PolicyApi_Groups_t dwGroup, const char* pszItemOid, const char* pszGroupOid, const char* pszDomainOid );
Parameter |
I/O |
Description |
---|---|---|
pSessionHandle |
I |
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
dwGroup |
I |
The type of group. |
pszItemOid |
I |
A null-terminated string containing the object identifier of an existing item of the same type as the group. |
pszGroupOid |
I |
A null-terminated string containing the object identifier of a group of the type indicated by dwGroup. |
pszDomainOid |
I |
A null-terminated string containing the object identifier of an existing domain. Required for rule and response objects. |
Returns
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |