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 |
---|---|---|---|---|
namespace
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-zA-Z0-9-]*$ |
Name of the namespace. |
resource
|
path | True |
string |
The name of the resource group within the user's subscription. |
subscription
|
path | True |
string |
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
topic
|
path | True |
string minLength: 3maxLength: 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 |
OK |
|
Other Status Codes |
Error response returned if request was unsuccessful. |
Examples
NamespaceTopics_Get
Sample request
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 |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Event |
This determines the format that is expected for incoming events published to the topic. |
Namespace |
Namespace topic details. |
Namespace |
Provisioning state of the namespace topic. |
Publisher |
Publisher type of the namespace topic. |
system |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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 | CloudEventSchemaV1_0 |
This determines the format that is expected for incoming events published to the topic. |
|
properties.provisioningState |
Provisioning state of the namespace topic. |
||
properties.publisherType |
Publisher type of the namespace topic. |
||
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 |
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 |
The type of identity that last modified the resource. |