Interface IOpaApiClient
public interface IOpaApiClient
Methods
ExecuteBatchPolicyWithInputAsync(ExecuteBatchPolicyWithInputRequest)
Execute a policy given a batch of inputs
Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInputAsync(ExecuteBatchPolicyWithInputRequest request)
Parameters
Returns
ExecuteDefaultPolicyWithInputAsync(Input, bool?, GzipAcceptEncoding?)
Execute the default decision given an input
Task<ExecuteDefaultPolicyWithInputResponse> ExecuteDefaultPolicyWithInputAsync(Input input, bool? pretty = null, GzipAcceptEncoding? acceptEncoding = null)
Parameters
input
Inputpretty
bool?acceptEncoding
GzipAcceptEncoding?
Returns
ExecutePolicyAsync(ExecutePolicyRequest)
Execute a policy
Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request)
Parameters
request
ExecutePolicyRequest
Returns
ExecutePolicyWithInputAsync(ExecutePolicyWithInputRequest)
Execute a policy given an input
Task<ExecutePolicyWithInputResponse> ExecutePolicyWithInputAsync(ExecutePolicyWithInputRequest request)
Parameters
request
ExecutePolicyWithInputRequest
Returns
HealthAsync(bool?, bool?, List<string>?)
Verify the server is operational
Task<HealthResponse> HealthAsync(bool? bundles = null, bool? plugins = null, List<string>? excludePlugin = null)