Microsoft.EventHub (preview:2024-05-01)

2025/07/19 • 3 updated methods

EventHubs_ListByNamespace (updated)
Description Gets all the Event Hubs in a Namespace.
Reference Link ¶

⚶ Changes

{
  "#id": "EventHubs_ListByNamespace",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "retentionDescription": [
                  {
                    "@added_818bc9451bdc4683ac18858a3cf8bc0c": {
                      "#name": "minCompactionLagTimeInMinutes",
                      "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                      "Format": "int64",
                      "Required": false,
                      "Type": "integer"
                    }
                  },
                  {
                    "@removed_59fa8e0a457e41f192b6d1be889a1bd8": {
                      "#name": "minCompactionLagInMins",
                      "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                      "Format": "int64",
                      "Required": false,
                      "Type": "integer"
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs
{
resourceGroupName: string ,
namespaceName: string ,
api-version: string ,
subscriptionId: string ,
$skip: integer ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
partitionIds:
[
string ,
]
,
createdAt: string ,
updatedAt: string ,
messageRetentionInDays: integer ,
partitionCount: integer ,
status: enum ,
captureDescription:
{
enabled: boolean ,
encoding: enum ,
intervalInSeconds: integer ,
sizeLimitInBytes: integer ,
destination:
{
name: string ,
identity:
{
type: enum ,
userAssignedIdentity: string ,
}
,
properties:
{
storageAccountResourceId: string ,
blobContainer: string ,
archiveNameFormat: string ,
dataLakeSubscriptionId: string ,
dataLakeAccountName: string ,
dataLakeFolderPath: string ,
}
,
}
,
skipEmptyArchives: boolean ,
}
,
retentionDescription:
{
cleanupPolicy: enum ,
retentionTimeInHours: integer ,
minCompactionLagTimeInMinutes: integer ,
tombstoneRetentionTimeInHours: integer ,
}
,
messageTimestampDescription:
{
timestampType: enum ,
}
,
identifier: string ,
userMetadata: string ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
EventHubs_CreateOrUpdate (updated)
Description Creates or updates a new Event Hub as a nested resource within a Namespace.
Reference Link ¶

⚶ Changes

{
  "#id": "EventHubs_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "retentionDescription": [
              {
                "@added_09c7fa554768496d82f665781126da46": {
                  "#name": "minCompactionLagTimeInMinutes",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              },
              {
                "@removed_057738373a6045819de472a683f635fb": {
                  "#name": "minCompactionLagInMins",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "retentionDescription": [
              {
                "@added_db6e0916be0b4132bd998b520ca4b9f4": {
                  "#name": "minCompactionLagTimeInMinutes",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              },
              {
                "@removed_dc1ebe29cfde4f64b0502ce730e001e5": {
                  "#name": "minCompactionLagInMins",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}
{
resourceGroupName: string ,
namespaceName: string ,
eventHubName: string ,
parameters:
{
properties:
{
partitionIds:
[
string ,
]
,
createdAt: string ,
updatedAt: string ,
messageRetentionInDays: integer ,
partitionCount: integer ,
status: enum ,
captureDescription:
{
enabled: boolean ,
encoding: enum ,
intervalInSeconds: integer ,
sizeLimitInBytes: integer ,
destination:
{
name: string ,
identity:
{
type: enum ,
userAssignedIdentity: string ,
}
,
properties:
{
storageAccountResourceId: string ,
blobContainer: string ,
archiveNameFormat: string ,
dataLakeSubscriptionId: string ,
dataLakeAccountName: string ,
dataLakeFolderPath: string ,
}
,
}
,
skipEmptyArchives: boolean ,
}
,
retentionDescription:
{
cleanupPolicy: enum ,
retentionTimeInHours: integer ,
minCompactionLagTimeInMinutes: integer ,
tombstoneRetentionTimeInHours: integer ,
}
,
messageTimestampDescription:
{
timestampType: enum ,
}
,
identifier: string ,
userMetadata: string ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
partitionIds:
[
string ,
]
,
createdAt: string ,
updatedAt: string ,
messageRetentionInDays: integer ,
partitionCount: integer ,
status: enum ,
captureDescription:
{
enabled: boolean ,
encoding: enum ,
intervalInSeconds: integer ,
sizeLimitInBytes: integer ,
destination:
{
name: string ,
identity:
{
type: enum ,
userAssignedIdentity: string ,
}
,
properties:
{
storageAccountResourceId: string ,
blobContainer: string ,
archiveNameFormat: string ,
dataLakeSubscriptionId: string ,
dataLakeAccountName: string ,
dataLakeFolderPath: string ,
}
,
}
,
skipEmptyArchives: boolean ,
}
,
retentionDescription:
{
cleanupPolicy: enum ,
retentionTimeInHours: integer ,
minCompactionLagTimeInMinutes: integer ,
tombstoneRetentionTimeInHours: integer ,
}
,
messageTimestampDescription:
{
timestampType: enum ,
}
,
identifier: string ,
userMetadata: string ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
EventHubs_Get (updated)
Description Gets an Event Hubs description for the specified Event Hub.
Reference Link ¶

⚶ Changes

{
  "#id": "EventHubs_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "retentionDescription": [
              {
                "@added_8579e6258e50446e856001cba54cc573": {
                  "#name": "minCompactionLagTimeInMinutes",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              },
              {
                "@removed_54a68ce648e842c1bc4ebfa8823d318e": {
                  "#name": "minCompactionLagInMins",
                  "Description": "The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
                  "Format": "int64",
                  "Required": false,
                  "Type": "integer"
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}
{
resourceGroupName: string ,
namespaceName: string ,
eventHubName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
partitionIds:
[
string ,
]
,
createdAt: string ,
updatedAt: string ,
messageRetentionInDays: integer ,
partitionCount: integer ,
status: enum ,
captureDescription:
{
enabled: boolean ,
encoding: enum ,
intervalInSeconds: integer ,
sizeLimitInBytes: integer ,
destination:
{
name: string ,
identity:
{
type: enum ,
userAssignedIdentity: string ,
}
,
properties:
{
storageAccountResourceId: string ,
blobContainer: string ,
archiveNameFormat: string ,
dataLakeSubscriptionId: string ,
dataLakeAccountName: string ,
dataLakeFolderPath: string ,
}
,
}
,
skipEmptyArchives: boolean ,
}
,
retentionDescription:
{
cleanupPolicy: enum ,
retentionTimeInHours: integer ,
minCompactionLagTimeInMinutes: integer ,
tombstoneRetentionTimeInHours: integer ,
}
,
messageTimestampDescription:
{
timestampType: enum ,
}
,
identifier: string ,
userMetadata: string ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}