Condividi tramite


PolicyExternalEvaluationEndpointInvocationResult Class

Definition

The external evaluation endpoint invocation results.

public class PolicyExternalEvaluationEndpointInvocationResult : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.Policy.Models.PolicyExternalEvaluationEndpointInvocationResult>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.Policy.Models.PolicyExternalEvaluationEndpointInvocationResult>
type PolicyExternalEvaluationEndpointInvocationResult = class
    interface IJsonModel<PolicyExternalEvaluationEndpointInvocationResult>
    interface IPersistableModel<PolicyExternalEvaluationEndpointInvocationResult>
Public Class PolicyExternalEvaluationEndpointInvocationResult
Implements IJsonModel(Of PolicyExternalEvaluationEndpointInvocationResult), IPersistableModel(Of PolicyExternalEvaluationEndpointInvocationResult)
Inheritance
PolicyExternalEvaluationEndpointInvocationResult
Implements

Properties

Name Description
AdditionalInfo

The endpoint specific metadata.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Claims

The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

EndpointKind

The external evaluation endpoint kind.

ExpiresOn

The expiration of the results.

Message

The status message with additional details about the invocation result.

PolicyAction

The effective outcome of the policy evaluation based on both the policy effect and evaluation result. Possible values are Unknown, Allow, Audit, Deny, Error.

PolicyEvaluationDetails

The evaluation details returned by the policy evaluation engine.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

PolicyInfo

The details of the policy requiring the external endpoint invocation.

Result

The result of the external endpoint. Possible values are Succeeded and Failed.

RetryAfter

The date and time after which a failed endpoint invocation can be retried.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<PolicyExternalEvaluationEndpointInvocationResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<PolicyExternalEvaluationEndpointInvocationResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<PolicyExternalEvaluationEndpointInvocationResult>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<PolicyExternalEvaluationEndpointInvocationResult>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<PolicyExternalEvaluationEndpointInvocationResult>.Write(ModelReaderWriterOptions)

Applies to