Attestations - Get At Subscription
Hiermee haalt u een bestaande attestation op abonnementsbereik op.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}?api-version=2022-09-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
attestation
|
path | True |
string |
De naam van de attestation. |
subscription
|
path | True |
string |
De id van het doelabonnement. |
api-version
|
query | True |
string |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De opgehaalde attestation. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | uw gebruikersaccount imiteren |
Voorbeelden
Get attestation at subscription scope
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/Microsoft.PolicyInsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e?api-version=2022-09-01
Voorbeeldrespons
{
"properties": {
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
"complianceState": "Compliant",
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
"expiresOn": "2021-06-15T00:00:00Z",
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
"comments": "This subscription has passed a security audit.",
"evidence": [
{
"description": "The results of the security audit.",
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
}
],
"assessmentDate": "2021-06-10T00:00:00Z",
"metadata": {
"departmentId": "NYC-MARKETING-1"
},
"provisioningState": "Succeeded"
},
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
"createdByType": "User",
"createdAt": "2020-06-15T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-06-15T18:52:27Z"
},
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
"type": "Microsoft.PolicyInsights/attestations"
}
Definities
Name | Description |
---|---|
Attestation |
Een attestation-resource. |
Attestation |
Een stukje bewijs ter ondersteuning van de nalevingsstatus die is ingesteld in de attestation. |
Compliance |
De nalevingsstatus die moet worden ingesteld voor de resource. |
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Foutdefinitie. |
Error |
Foutreactie. |
system |
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource. |
Typed |
Scenariospecifieke foutdetails. |
Attestation
Een attestation-resource.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.assessmentDate |
string |
Het tijdstip waarop het bewijs werd beoordeeld |
properties.comments |
string |
Opmerkingen waarin wordt beschreven waarom deze attestation is gemaakt. |
properties.complianceState |
De nalevingsstatus die moet worden ingesteld voor de resource. |
|
properties.evidence |
Het bewijs ter ondersteuning van de nalevingsstatus die in deze attestation is ingesteld. |
|
properties.expiresOn |
string |
Het tijdstip waarop de nalevingsstatus moet verlopen. |
properties.lastComplianceStateChangeAt |
string |
Het tijdstip waarop de nalevingsstatus voor het laatst is gewijzigd in deze attestation. |
properties.metadata |
object |
Aanvullende metagegevens voor deze attestation |
properties.owner |
string |
De persoon die verantwoordelijk is voor het instellen van de status van de resource. Deze waarde is doorgaans een Azure Active Directory-object-id. |
properties.policyAssignmentId |
string |
De resource-id van de beleidstoewijzing waarvoor de attestation de status instelt. |
properties.policyDefinitionReferenceId |
string |
De beleidsdefinitiereferentie-id van een beleidssetdefinitie waarvoor de attestation de status instelt. Als de beleidstoewijzing een definitie van een beleidsset toewijst, kan de attestation een definitie binnen de setdefinitie met deze eigenschap kiezen of deze weglaten en de status voor de hele setdefinitie instellen. |
properties.provisioningState |
string |
De status van de attestation. |
systemData |
Azure Resource Manager metagegevens met informatie over createdBy en modifiedBy. |
|
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
AttestationEvidence
Een stukje bewijs ter ondersteuning van de nalevingsstatus die is ingesteld in de attestation.
Name | Type | Description |
---|---|---|
description |
string |
De beschrijving van dit bewijsstuk. |
sourceUri |
string |
De URI-locatie van het bewijs. |
ComplianceState
De nalevingsstatus die moet worden ingesteld voor de resource.
Name | Type | Description |
---|---|---|
Compliant |
string |
De resource voldoet aan het beleid. |
NonCompliant |
string |
De resource voldoet niet aan het beleid. |
Unknown |
string |
De nalevingsstatus van de resource is niet bekend. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorDefinition
Foutdefinitie.
Name | Type | Description |
---|---|---|
additionalInfo |
Aanvullende scenariospecifieke foutdetails. |
|
code |
string |
Servicespecifieke foutcode die fungeert als de substatus voor de HTTP-foutcode. |
details |
Details van interne fouten. |
|
message |
string |
Beschrijving van de fout. |
target |
string |
Het doel van de fout. |
ErrorResponse
Foutreactie.
Name | Type | Description |
---|---|---|
error |
De foutdetails. |
systemData
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
Het tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource het laatst heeft gewijzigd. |
TypedErrorInfo
Scenariospecifieke foutdetails.
Name | Type | Description |
---|---|---|
info |
De specifieke foutdetails van het scenario. |
|
type |
string |
Het type opgenomen foutdetails. |