Microsoft Azure Audit API
The Audit API from Microsoft Azure, for audit.
Operations 1
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
The Audit API from Microsoft Azure, for audit.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-audit-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Microsoft Azure Purview Data Map Service REST API Document…
description: Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. This spec defines REST API of Purview Data Map Service.
version: 2023-10-01-preview
servers:
- url: /datamap/api
security:
- azure_auth:
- user_impersonation
tags:
- name: Audit
paths:
/audit/query:
post:
tags:
- Audit
description: Query audit logs for an asset, glossaryTerm, classificationDef, etc.
operationId: microsoftAzureAuditQuery
x-ms-examples:
Audit_Query:
$ref: ./examples/Audit_Query.json
parameters:
- $ref: '#/components/parameters/purviewAPIVersion'
responses:
'200':
description: OK. On successful lookup of audit logs within the search criteria.
content:
application/json:
schema:
$ref: '#/components/schemas/AuditLogQueryResponse'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Microsoft Azure Post Audit Query
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuditLogQueryRequest'
description: An object specifying the search criteria.
required: true
components:
schemas:
AuditSortOrder:
type: string
title: AuditSortOrder
description: Audit query result sort order.
enum:
- Ascending
- Descending
x-ms-enum:
name: AuditSortOrder
modelAsString: true
ErrorResponse:
description: An error response from the service
type: object
properties:
requestId:
type: string
description: The request ID.
errorCode:
type: string
description: The error code.
errorMessage:
type: string
description: The error message.
AuditLogQueryRequest:
type: object
properties:
category:
$ref: '#/components/schemas/AuditCategory'
guid:
type: string
description: GUID of the targe asset, glossary term or classification definition.
typeName:
type: string
description: Only applied to asset; specifies the asset type name.
qualifiedName:
type: string
description: Only applied to asset; specifies the asset qualified name.
operationType:
$ref: '#/components/schemas/AuditOperationType'
userId:
type: string
description: User principal name or service principle object ID.
keywords:
type: string
description: Any keywords contained in audit log old value or new value part.
startTime:
type: string
description: Start time of audit log; ISO-8601 representation. Default value is 1970-01-01T00:00:00Z.
endTime:
type: string
description: End time of audit log; ISO-8601 representation. Default value is UTC now.
sortBy:
type: string
description: Property to sort by. The value should be one of the audit log schema field. Must be used with "SortOrder". CreationTime is suggested.
sortOrder:
$ref: '#/components/schemas/AuditSortOrder'
pageSize:
type: integer
format: int32
description: The number of items we hope to return in one page. The maximum value is 1000.
continuationToken:
type: string
description: The continuation token to retrieve the next page.
title: AuditLogQueryRequest
description: Audit log query request body.
AuditCategory:
type: string
title: AuditCategory
description: Audit category in audit log query request.
enum:
- Asset
- GlossaryTerm
- ClassificationDef
x-ms-enum:
name: AuditCategory
modelAsString: true
AuditOperationType:
type: string
title: AuditOperationType
description: Audit operation type.
enum:
- EntityCreated
- EntityUpdated
- EntityDeleted
- ClassificationAdded
- ClassificationUpdated
- ClassificationDeleted
- SensitivityLabelChanged
- GlossaryTermAssigned
- GlossaryTermDisassociated
- ClassificationDefinitionCreated
- ClassificationDefinitionUpdated
- ClassificationDefinitionDeleted
- GlossaryTermCreated
- GlossaryTermUpdated
- GlossaryTermDeleted
x-ms-enum:
name: AuditOperationType
modelAsString: true
AuditLogQueryResponse:
type: object
properties:
continuationToken:
type: string
description: The continuation token to retrieve the next page. When "lastPage" is false. Client uses this token in the query payload to retrieve the next page.
lastPage:
type: boolean
description: Indicates whether it's the last page.
totalResultCount:
type: integer
format: int32
description: The number of total items that qualified for the search criteria.
recordCount:
type: integer
format: int32
description: The number of items in current page.
resultData:
type: array
description: An array of audit logs.
items:
$ref: '#/components/schemas/AuditLog'
title: AuditLogQueryResponse
description: Audit log query response.
AuditLog:
type: object
properties:
workload:
type: string
description: Log metadata. Indicates workload type of audit log.
recordType:
type: integer
format: int32
description: Log metadata. Indicates record type of audit log.
id:
type: string
description: Log ID.
creationTime:
type: string
description: Timestamp when the audit log was created.
operation:
$ref: '#/components/schemas/AuditOperationType'
organizationId:
type: string
description: Customer tenant ID.
userType:
type: integer
format: int32
description: Type of user that performed the operation.
userKey:
type: string
description: User identity.
userId:
type: string
description: User principal name.
clientIP:
type: string
description: Client IP address.
accountId:
type: string
description: Purview account ID.
catalogId:
type: string
description: Purview catalog ID.
changeRequestId:
type: string
description: Correlation ID.
cloudType:
type: string
description: Cloud type that the object belongs to
serviceType:
type: string
description: Service type that the object belongs to
objectId:
type: string
description: GUID of the targe asset, glossary term or classification definition.
objectName:
type: string
description: Object name.
objectFullyQualifiedName:
type: string
description: Object fully qualified name.
objectType:
type: string
description: Object type name.
objectCollectionId:
type: string
description: Object collection ID.
oldValue:
type: string
description: Old data value.
newValue:
type: string
description: New data value.
title: AuditLog
description: Data map audit log.
parameters:
purviewAPIVersion:
name: api-version
description: The version of the API.
in: query
required: true
x-ms-parameter-location: method
schema:
type: string
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.
x-ms-parameterized-host:
hostTemplate: '{endpoint}'
useSchemePrefix: false
parameters:
- $ref: '#/components/parameters/endpoint'