Events
17 Mar, 21 - 21 Mar, 10
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article provides the properties and schema for Azure API Center events. For an introduction to event schemas, see Azure Event Grid event schema.
Note
This feature is currently in preview.
These events are triggered when a client adds or updates an API definition.
Event name | Description |
---|---|
Microsoft.ApiCenter.ApiDefinitionAdded | Triggered when an API definition is added in an API center. |
Microsoft.ApiCenter.ApiDefinitionUpdated | Triggered when an API definition is updated in an API center. |
When an event is triggered, the API Center service sends data about that event to subscribing endpoint. This section contains an example of what that data would look like for each API Center event.
[{
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.ApiCenter/services",
"subject": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.ApiCenter/services/{api_center_name}/workspaces/default/apis/{api_name}/versions/{version_name}/definitions/{definition_name}",
"type": "Microsoft.ApiCenter.ApiDefinitionAdded",
"time": "2024-03-01T00:00:00.0000000Z",
"id": "00000000-0000-0000-0000-000000000000",
"data": {
"title": "OpenAPI",
"description": "Default spec",
"specification": {
"name": "openapi",
"version": "3.0.1"
}
},
"specversion": "1.0"
}]
[{
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.ApiCenter/services",
"subject": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.ApiCenter/services/{api_center_name}/workspaces/default/apis/{api_name}/versions/{version_name}/definitions/{definition_name}",
"type": "Microsoft.ApiCenter.ApiDefinitionUpdated",
"time": "2024-03-01T00:00:00.0000000Z",
"id": "00000000-0000-0000-0000-000000000000",
"data": {
"title": "OpenAPI",
"description": "Default spec",
"specification": {
"name": "openapi",
"version": "3.0.1"
}
},
"specversion": "1.0"
}]
An event has the following top-level data:
Property | Type | Description |
---|---|---|
source |
string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
subject |
string | Publisher-defined path to the event subject. |
type |
string | One of the registered event types for this event source. |
time |
string | The time the event is generated based on the provider's UTC time. |
id |
string | Unique identifier for the event. |
data |
object | Azure API Center event data. |
specversion |
string | CloudEvents schema specification version. |
The data object has the following properties:
Property | Type | Description |
---|---|---|
title |
string | The title of the API definition. |
description |
string | The description of the API definition. |
specification |
string | The API specification properties, consisting of name (specification name) and version (specification version) |
Title | Description |
---|---|
Enable linting and analysis for API governance in your API center | Use Event Grid events to trigger linting to analyze API definitions in your API center. |
Events
17 Mar, 21 - 21 Mar, 10
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Certification
Microsoft Certified: Azure Cosmos DB Developer Specialty - Certifications
Write efficient queries, create indexing policies, manage, and provision resources in the SQL API and SDK with Microsoft Azure Cosmos DB.