Share via


Namespace Topics - Get

Get a namespace topic.
Get properties of a namespace topic.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}?api-version=2025-02-15

URI Parameters

Name In Required Type Description
namespaceName
path True

string

minLength: 3
maxLength: 50
pattern: ^[a-zA-Z0-9-]*$

Name of the namespace.

resourceGroupName
path True

string

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

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.

topicName
path True

string

minLength: 3
maxLength: 50
pattern: ^[a-zA-Z0-9-]*$

Name of the namespace topic.

api-version
query True

string

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

Responses

Name Type Description
200 OK

NamespaceTopic

OK

Other Status Codes

ErrorResponse

Error response returned if request was unsuccessful.

Examples

NamespaceTopics_Get

Sample request

GET https://management.azure.com/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e41/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2?api-version=2025-02-15

Sample response

{
  "properties": {
    "provisioningState": "Succeeded",
    "publisherType": "Custom",
    "inputSchema": "CloudEventSchemaV1_0",
    "eventRetentionInDays": 1
  },
  "id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e41/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/examplenamespace2/topics/examplenamespacetopic2",
  "name": "examplenamespacetopic2",
  "type": "Microsoft.EventGrid/namespaces/topics",
  "systemData": null
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

EventInputSchema

This determines the format that is expected for incoming events published to the topic.

NamespaceTopic

Namespace topic details.

NamespaceTopicProvisioningState

Provisioning state of the namespace topic.

PublisherType

Publisher type of the namespace topic.

systemData

Metadata pertaining to creation and last modification of the resource.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

EventInputSchema

This determines the format that is expected for incoming events published to the topic.

Value Description
CloudEventSchemaV1_0

NamespaceTopic

Namespace topic details.

Name Type Default value Description
id

string

Fully qualified identifier of the resource.

name

string

Name of the resource.

properties.eventRetentionInDays

integer (int32)

Event retention for the namespace topic expressed in days. The property default value is 1 day. Min event retention duration value is 1 day and max event retention duration value is 1 day.

properties.inputSchema

EventInputSchema

CloudEventSchemaV1_0

This determines the format that is expected for incoming events published to the topic.

properties.provisioningState

NamespaceTopicProvisioningState

Provisioning state of the namespace topic.

properties.publisherType

PublisherType

Publisher type of the namespace topic.

systemData

systemData

The system metadata relating to the Event Grid resource.

type

string

Type of the resource.

NamespaceTopicProvisioningState

Provisioning state of the namespace topic.

Value Description
Creating
Updating
Deleting
Succeeded
Canceled
Failed
Deleted
DeleteFailed
CreateFailed
UpdatedFailed

PublisherType

Publisher type of the namespace topic.

Value Description
Custom

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.