1. Packages
  2. Azure Native
  3. API Docs
  4. policyinsights
  5. getAttestationAtResource
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.policyinsights.getAttestationAtResource

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets an existing attestation at resource scope.

Uses Azure REST API version 2024-10-01.

Other available API versions: 2022-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native policyinsights [ApiVersion]. See the version guide for details.

Using getAttestationAtResource

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAttestationAtResource(args: GetAttestationAtResourceArgs, opts?: InvokeOptions): Promise<GetAttestationAtResourceResult>
function getAttestationAtResourceOutput(args: GetAttestationAtResourceOutputArgs, opts?: InvokeOptions): Output<GetAttestationAtResourceResult>
Copy
def get_attestation_at_resource(attestation_name: Optional[str] = None,
                                resource_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAttestationAtResourceResult
def get_attestation_at_resource_output(attestation_name: Optional[pulumi.Input[str]] = None,
                                resource_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetAttestationAtResourceResult]
Copy
func LookupAttestationAtResource(ctx *Context, args *LookupAttestationAtResourceArgs, opts ...InvokeOption) (*LookupAttestationAtResourceResult, error)
func LookupAttestationAtResourceOutput(ctx *Context, args *LookupAttestationAtResourceOutputArgs, opts ...InvokeOption) LookupAttestationAtResourceResultOutput
Copy

> Note: This function is named LookupAttestationAtResource in the Go SDK.

public static class GetAttestationAtResource 
{
    public static Task<GetAttestationAtResourceResult> InvokeAsync(GetAttestationAtResourceArgs args, InvokeOptions? opts = null)
    public static Output<GetAttestationAtResourceResult> Invoke(GetAttestationAtResourceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAttestationAtResourceResult> getAttestationAtResource(GetAttestationAtResourceArgs args, InvokeOptions options)
public static Output<GetAttestationAtResourceResult> getAttestationAtResource(GetAttestationAtResourceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:policyinsights:getAttestationAtResource
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AttestationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the attestation.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
Resource ID.
AttestationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the attestation.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
Resource ID.
attestationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the attestation.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
Resource ID.
attestationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the attestation.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
Resource ID.
attestation_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the attestation.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
Resource ID.
attestationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the attestation.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
Resource ID.

getAttestationAtResource Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
LastComplianceStateChangeAt string
The time the compliance state was last changed in this attestation.
Name string
The name of the resource
PolicyAssignmentId string
The resource ID of the policy assignment that the attestation is setting the state for.
ProvisioningState string
The status of the attestation.
SystemData Pulumi.AzureNative.PolicyInsights.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AssessmentDate string
The time the evidence was assessed
Comments string
Comments describing why this attestation was created.
ComplianceState string
The compliance state that should be set on the resource.
Evidence List<Pulumi.AzureNative.PolicyInsights.Outputs.AttestationEvidenceResponse>
The evidence supporting the compliance state set in this attestation.
ExpiresOn string
The time the compliance state should expire.
Metadata object
Additional metadata for this attestation
Owner string
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
PolicyDefinitionReferenceId string
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.
AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
LastComplianceStateChangeAt string
The time the compliance state was last changed in this attestation.
Name string
The name of the resource
PolicyAssignmentId string
The resource ID of the policy assignment that the attestation is setting the state for.
ProvisioningState string
The status of the attestation.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AssessmentDate string
The time the evidence was assessed
Comments string
Comments describing why this attestation was created.
ComplianceState string
The compliance state that should be set on the resource.
Evidence []AttestationEvidenceResponse
The evidence supporting the compliance state set in this attestation.
ExpiresOn string
The time the compliance state should expire.
Metadata interface{}
Additional metadata for this attestation
Owner string
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
PolicyDefinitionReferenceId string
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.
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
lastComplianceStateChangeAt String
The time the compliance state was last changed in this attestation.
name String
The name of the resource
policyAssignmentId String
The resource ID of the policy assignment that the attestation is setting the state for.
provisioningState String
The status of the attestation.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
assessmentDate String
The time the evidence was assessed
comments String
Comments describing why this attestation was created.
complianceState String
The compliance state that should be set on the resource.
evidence List<AttestationEvidenceResponse>
The evidence supporting the compliance state set in this attestation.
expiresOn String
The time the compliance state should expire.
metadata Object
Additional metadata for this attestation
owner String
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
policyDefinitionReferenceId String
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.
azureApiVersion string
The Azure API version of the resource.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
lastComplianceStateChangeAt string
The time the compliance state was last changed in this attestation.
name string
The name of the resource
policyAssignmentId string
The resource ID of the policy assignment that the attestation is setting the state for.
provisioningState string
The status of the attestation.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
assessmentDate string
The time the evidence was assessed
comments string
Comments describing why this attestation was created.
complianceState string
The compliance state that should be set on the resource.
evidence AttestationEvidenceResponse[]
The evidence supporting the compliance state set in this attestation.
expiresOn string
The time the compliance state should expire.
metadata any
Additional metadata for this attestation
owner string
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
policyDefinitionReferenceId string
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.
azure_api_version str
The Azure API version of the resource.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
last_compliance_state_change_at str
The time the compliance state was last changed in this attestation.
name str
The name of the resource
policy_assignment_id str
The resource ID of the policy assignment that the attestation is setting the state for.
provisioning_state str
The status of the attestation.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
assessment_date str
The time the evidence was assessed
comments str
Comments describing why this attestation was created.
compliance_state str
The compliance state that should be set on the resource.
evidence Sequence[AttestationEvidenceResponse]
The evidence supporting the compliance state set in this attestation.
expires_on str
The time the compliance state should expire.
metadata Any
Additional metadata for this attestation
owner str
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
policy_definition_reference_id str
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.
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
lastComplianceStateChangeAt String
The time the compliance state was last changed in this attestation.
name String
The name of the resource
policyAssignmentId String
The resource ID of the policy assignment that the attestation is setting the state for.
provisioningState String
The status of the attestation.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
assessmentDate String
The time the evidence was assessed
comments String
Comments describing why this attestation was created.
complianceState String
The compliance state that should be set on the resource.
evidence List<Property Map>
The evidence supporting the compliance state set in this attestation.
expiresOn String
The time the compliance state should expire.
metadata Any
Additional metadata for this attestation
owner String
The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
policyDefinitionReferenceId String
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.

Supporting Types

AttestationEvidenceResponse

Description string
The description for this piece of evidence.
SourceUri string
The URI location of the evidence.
Description string
The description for this piece of evidence.
SourceUri string
The URI location of the evidence.
description String
The description for this piece of evidence.
sourceUri String
The URI location of the evidence.
description string
The description for this piece of evidence.
sourceUri string
The URI location of the evidence.
description str
The description for this piece of evidence.
source_uri str
The URI location of the evidence.
description String
The description for this piece of evidence.
sourceUri String
The URI location of the evidence.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi