Creates a new SiteMinder agent. The attributes of the agent are contained in the pstructAgent structure.
If the agent exists and the bUpdate flag is true, the item is updated.
You must specify an agent type with this call. To get the agent type OID for the agent, use Sm_PolicyApi_GetGlobalObjects().
Type
Agent function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddAgent ( void* pSessionHandle, Sm_PolicyApi_Agent_t* pstructAgent, const bool bUpdate );
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. |
pstructAgent |
I |
A pointer to a completely filled-in agent structure. |
bUpdate |
I |
A flag to indicate that if an existing object is found, it should be updated. |
Returns
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |