Dela via


PolicyAttestationData Class

Definition

A class representing the PolicyAttestation data model. An attestation resource.

public class PolicyAttestationData : Azure.ResourceManager.Models.ResourceData
type PolicyAttestationData = class
    inherit ResourceData
Public Class PolicyAttestationData
Inherits ResourceData
Inheritance
PolicyAttestationData

Constructors

PolicyAttestationData(ResourceIdentifier)

Initializes a new instance of PolicyAttestationData.

Properties

AssessOn

The time the evidence was assessed.

Comments

Comments describing why this attestation was created.

ComplianceState

The compliance state that should be set on the resource.

Evidence

The evidence supporting the compliance state set in this attestation.

ExpireOn

The time the compliance state should expire.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
LastComplianceStateChangeOn

The time the compliance state was last changed in this attestation.

Metadata

Additional metadata for this attestation

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" }.

Name

The name of the resource.

(Inherited from ResourceData)
Owner

The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.

PolicyAssignmentId

The resource ID of the policy assignment that the attestation is setting the state for.

PolicyDefinitionReferenceId

The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.

ProvisioningState

The status of the attestation.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Applies to