Topics - List Event Types

List topic event types.
List event types for a topic.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes?api-version=2022-06-15

URI Parameters

Name In Required Type Description
providerNamespace
path True

string

Namespace of the provider of the topic.

resourceGroupName
path True

string

The name of the resource group within the user's subscription.

resourceName
path True

string

Name of the topic.

resourceTypeName
path True

string

Name of the topic type.

subscriptionId
path True

string

Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Version of the API to be used with the client request.

Responses

Name Type Description
200 OK

EventTypesListResult

OK

Other Status Codes

*** Error Responses: ***

  • 400 Bad Request.

  • 500 Internal Server Error.

Examples

Topics_ListEventTypes

Sample Request

GET https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Storage/storageAccounts/ExampleStorageAccount/providers/Microsoft.EventGrid/eventTypes?api-version=2022-06-15

Sample Response

{
  "value": [
    {
      "properties": {
        "description": "Raised when a blob is created.",
        "schemaUrl": "tbd",
        "displayName": "Blob Created"
      },
      "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated",
      "name": "Microsoft.Storage.BlobCreated",
      "type": "Microsoft.EventGrid/topicTypes/eventTypes"
    },
    {
      "properties": {
        "description": "Raised when a blob is deleted.",
        "schemaUrl": "tbd",
        "displayName": "Blob Deleted"
      },
      "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted",
      "name": "Microsoft.Storage.BlobDeleted",
      "type": "Microsoft.EventGrid/topicTypes/eventTypes"
    }
  ]
}

Definitions

Name Description
EventType

Event Type for a subject under a topic

EventTypesListResult

Result of the List Event Types operation

EventType

Event Type for a subject under a topic

Name Type Description
id

string

Fully qualified identifier of the resource.

name

string

Name of the resource.

properties.description

string

Description of the event type.

properties.displayName

string

Display name of the event type.

properties.isInDefaultSet

boolean

IsInDefaultSet flag of the event type.

properties.schemaUrl

string

Url of the schema for this event type.

type

string

Type of the resource.

EventTypesListResult

Result of the List Event Types operation

Name Type Description
value

EventType[]

A collection of event types