Sm_PolicyApi_AddResponse()

Creates a new stmndr response. The attributes of the response itself are contained in the pStructResponse structure.
casso10
Creates a new
CA Single Sign-On
response. The attributes of the response itself are contained in the
pStructResponse
structure.
If the response exists, and the
bUpdate
flag is true, the item is updated.
Type
Response function, domain scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddResponse (
void*pSessionHandle,Sm_PolicyApi_Response_t*pStructResponse,const 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.
pStructResponse
I
A pointer to a completely filled-in response structure.
bUpdate
I
A flag to indicate that if an existing object is found, it should be updated.
Returns
  • Sm_PolicyApi_Success. The response was created successfully.
  • Sm_PolicyApi_Failure. The response was not created successfully.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to create a response.
  • Sm_PolicyApi_InvalidOid:
    • The response OID was not found during an update.
    • The domain OID was not found.
    • The agent type OID was not found.