Table of Contents

Class SuccessfulPolicyResponse

Namespace
Styra.Opa.OpenApi.Models.Components
Assembly
Styra.Opa.dll

Success.
The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property.

public class SuccessfulPolicyResponse
Inheritance
SuccessfulPolicyResponse
Inherited Members

Properties

DecisionId

If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes.

[JsonProperty("decision_id")]
public string? DecisionId { get; set; }

Property Value

string

Metrics

If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.

[JsonProperty("metrics")]
public Dictionary<string, object>? Metrics { get; set; }

Property Value

Dictionary<string, object>

Provenance

Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the provenance=true query parameter when executing the API call.

[JsonProperty("provenance")]
public Provenance? Provenance { get; set; }

Property Value

Provenance

Result

The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.

[JsonProperty("result")]
public Result? Result { get; set; }

Property Value

Result