Sm_PolicyApi_AddAgentConfigAssociation()
The function adds or modifies a configuration parameter name and corresponding value in a specified agent configuration object.
sm1252sp1
The function adds or modifies a configuration parameter name and corresponding value in a specified agent configuration object.
Type
Agent configuration function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddAgentConfigAssociation (void*pSessionHandle,const char*pszAgentConfigOid,Sm_PolicyApi_Association_t*pstructAssociation,boolbUpdate);
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. |
pszAgentConfigOid
| I | Unique identifier of the agent configuration object. |
pstructAssociation
| I | The name/value pair to add or modify in the agent configuration object. |
bUpdate
| I | If true, the object is being updated. |
Returns
- Sm_PolicyApi_SuccessThe operation was successful
- Sm_PolicyApi_FailureGeneralized failure
- Sm_PolicyApi_InvalidOidThe unique ID does not correspond to an agent configuration object
- Sm_PolicyApi_NoPrivilegeThe caller does not have the permission to add agent configuration object parameters
- Sm_PolicyApi_InvalidHandleThe session pointer is not valid
- Sm_PolicyApi_NoSessionThe API user is not properly logged in