Bind a response to a rule using the API?

Document ID : KB000013605
Last Modified Date : 14/02/2018
Show Technical Document Details

Is there any way to bind a response to a rule using the API? I am not able to find a method that would allow me to bind the response. I can successfully use the CreateResponse method to create the response no problem but cannot find a way to bind it.


Policy API's SetResponse method. 

SetResponse Method—Sets the Response for a Configured Rule in the Policy 

The SetResponse method sets the response for a configured rule in the policy. 


The SetResponse method has the following format: 

Netegrity::PolicyMgtPolicy->SetResponse(rule, response) 


The SetResponse method accepts the following parameters: rule (PolicyMgtRule) 

Specifies the rule whose response is being set. response (PolicyMgtResponse) 

Specifies the response to set. 

Return Value 

The SetResponse method returns one of the following values:

? 0 if the call is successful. 

? -1 if the call is unsuccessful.