共用方式為


Event Subscriptions - Create Or Update

建立或更新事件訂閱。
以異步方式建立新的事件訂閱,或根據指定的範圍更新現有的事件訂閱。

PUT https://management.azure.com/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}?api-version=2025-02-15

URI 參數

名稱 位於 必要 類型 Description
eventSubscriptionName
path True

string

要建立的事件訂閱名稱。 事件訂閱名稱長度必須介於 3 到 64 個字元之間,而且應該只使用英數位元字母。

scope
path True

string

需要建立或更新事件訂用帳戶之資源的標識碼。 範圍可以是訂用帳戶、資源群組,或屬於資源提供者命名空間或 EventGrid 主題的最上層資源。 例如,針對資源群組使用 '/subscriptions/{subscriptionId}/' 的訂用帳戶 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 和 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' 作為資源,以及 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' 作為 EventGrid 主題。

api-version
query True

string

要與用戶端要求搭配使用的 API 版本。

要求本文

名稱 類型 Description
properties.deadLetterDestination DeadLetterDestination:

StorageBlobDeadLetterDestination

事件訂閱的寄不出的信件目的地。 無法傳遞至其目的地的任何事件都會傳送至寄不出的信件目的地。 使用 Azure 事件方格的身分識別來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.deadLetterWithResourceIdentity

DeadLetterWithResourceIdentity

事件訂閱的寄不出的信件目的地。 無法傳遞至其目的地的任何事件都會傳送至寄不出的信件目的地。 使用父資源上的受控識別設定(即主題或網域)來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.deliveryWithResourceIdentity

DeliveryWithResourceIdentity

事件訂閱必須傳遞事件目的地的相關信息。 使用父資源上的受控識別設定(即主題或網域)來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.destination EventSubscriptionDestination:

事件訂閱必須傳遞事件目的地的相關信息。 使用 Azure 事件方格的身分識別來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.eventDeliverySchema

EventDeliverySchema

事件訂閱的事件傳遞架構。

properties.expirationTimeUtc

string (date-time)

事件訂閱的到期時間。

properties.filter

EventSubscriptionFilter

事件訂閱篩選的相關信息。

properties.labels

string[]

使用者定義的標籤清單。

properties.retryPolicy

RetryPolicy

事件的重試原則。 這可用來設定事件傳遞嘗試次數上限和存留時間。

回應

名稱 類型 Description
201 Created

EventSubscription

EventSubscription CreateOrUpdate 要求已接受。

Other Status Codes

錯誤回應: ***

  • 400 不正確的要求。

  • 500 內部伺服器錯誤。

範例

EventSubscriptions_CreateOrUpdateForCustomTopic
EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination
EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination
EventSubscriptions_CreateOrUpdateForResource
EventSubscriptions_CreateOrUpdateForResourceGroup
EventSubscriptions_CreateOrUpdateForSubscription

EventSubscriptions_CreateOrUpdateForCustomTopic

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "EventHub",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "endpointBaseUrl": "https://requestb.in/15ksip71"
      },
      "endpointType": "WebHook"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "provisioningState": "Succeeded",
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic1"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "AzureFunction",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Web/sites/ContosoSite/funtions/ContosoFunc"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Web/sites/ContosoSite/funtions/ContosoFunc"
      },
      "endpointType": "AzureFunction"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "EventHub",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
      },
      "endpointType": "EventHub"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "HybridConnection",
      "properties": {
        "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"
      },
      "endpointType": "HybridConnection"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "ServiceBusQueue",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/queues/SBQ"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/queues/SBQ"
      },
      "endpointType": "ServiceBusQueue"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "ServiceBusTopic",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/topics/SBT"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.ServiceBus/namespaces/ContosoNamespace/topics/SBT"
      },
      "endpointType": "ServiceBusTopic"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "StorageQueue",
      "properties": {
        "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "queueName": "queue1"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "queueName": "queue1"
      },
      "endpointType": "StorageQueue"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
    "provisioningState": "Creating",
    "labels": null,
    "deadLetterDestination": {
      "endpointType": "StorageBlob",
      "properties": {
        "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
        "blobContainerName": "contosocontainer"
      }
    }
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "WebHook",
      "properties": {
        "endpointUrl": "https://azurefunctionexample.azurewebsites.net/runtime/webhooks/EventGrid?functionName=EventGridTrigger1&code=PASSWORDCODE"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "endpointBaseUrl": "https://azurefunctionexample.azurewebsites.net/runtime/webhooks/EventGrid"
      },
      "endpointType": "WebHook"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "provisioningState": "Succeeded",
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic1"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
  "name": "examplesubscription1",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForResource

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "WebHook",
      "properties": {
        "endpointUrl": "https://requestb.in/15ksip71"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "endpointBaseUrl": "https://requestb.in/15ksip71"
      },
      "endpointType": "WebHook"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "provisioningState": "Succeeded",
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
  "name": "examplesubscription10",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForResourceGroup

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "WebHook",
      "properties": {
        "endpointUrl": "https://requestb.in/15ksip71"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "endpointBaseUrl": "https://requestb.in/15ksip71"
      },
      "endpointType": "WebHook"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "ExamplePrefix",
      "subjectEndsWith": "ExampleSuffix"
    },
    "provisioningState": "Succeeded",
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
  "name": "examplesubscription2",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

EventSubscriptions_CreateOrUpdateForSubscription

範例要求

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3?api-version=2025-02-15

{
  "properties": {
    "destination": {
      "endpointType": "WebHook",
      "properties": {
        "endpointUrl": "https://requestb.in/15ksip71"
      }
    },
    "filter": {
      "isSubjectCaseSensitive": false
    }
  }
}

範例回覆

{
  "properties": {
    "destination": {
      "properties": {
        "endpointBaseUrl": "https://requestb.in/15ksip71"
      },
      "endpointType": "WebHook"
    },
    "filter": {
      "isSubjectCaseSensitive": false,
      "subjectBeginsWith": "",
      "subjectEndsWith": ""
    },
    "provisioningState": "Succeeded",
    "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
  "name": "examplesubscription3",
  "type": "Microsoft.EventGrid/eventSubscriptions"
}

定義

名稱 Description
AzureFunctionEventSubscriptionDestination

事件訂用帳戶的 azure 函式目的地相關信息。

BoolEqualsAdvancedFilter

BoolEquals 進階篩選條件。

createdByType

建立資源的身分識別類型。

DeadLetterWithResourceIdentity

具有資源識別之死者目的地的相關信息。

DeliveryWithResourceIdentity

使用資源識別傳遞事件訂用帳戶的相關信息。

DynamicDeliveryAttributeMapping

動態傳遞屬性對應詳細數據。

EventDeliverySchema

事件訂閱的事件傳遞架構。

EventHubEventSubscriptionDestination

事件訂用帳戶之事件中樞目的地的相關信息。

EventSubscription

事件訂閱。

EventSubscriptionFilter

篩選事件訂閱。

EventSubscriptionIdentity

事件訂用帳戶的身分識別資訊。

EventSubscriptionIdentityType

所使用的受控識別類型。 可以是 'SystemAssigned' 或 'UserAssigned'。

EventSubscriptionProvisioningState

事件訂閱的布建狀態。

HybridConnectionEventSubscriptionDestination

事件訂用帳戶的 HybridConnection 目的地相關信息。

IsNotNullAdvancedFilter

IsNotNull 進階篩選條件。

IsNullOrUndefinedAdvancedFilter

IsNullOrUndefined Advanced Filter。

MonitorAlertEventSubscriptionDestination

事件訂用帳戶之監視警示目的地的相關信息。

MonitorAlertSeverity

將附加至透過此事件訂用帳戶引發之每個警示的嚴重性。 必須提供此欄位。

NamespaceTopicEventSubscriptionDestination

事件訂用帳戶之命名空間主題目的地的相關信息。

NumberGreaterThanAdvancedFilter

NumberGreaterThan Advanced Filter。

NumberGreaterThanOrEqualsAdvancedFilter

NumberGreaterThanOrEquals 進階篩選條件。

NumberInAdvancedFilter

NumberIn 進階篩選條件。

NumberInRangeAdvancedFilter

NumberInRange 進階篩選條件。

NumberLessThanAdvancedFilter

NumberLessThan 進階篩選條件。

NumberLessThanOrEqualsAdvancedFilter

NumberLessThanOrEquals 進階篩選。

NumberNotInAdvancedFilter

NumberNotIn 進階篩選條件。

NumberNotInRangeAdvancedFilter

NumberNotInRange 進階篩選條件。

RetryPolicy

事件訂閱的重試原則相關信息。

ServiceBusQueueEventSubscriptionDestination

事件訂用帳戶的服務總線目的地相關信息。

ServiceBusTopicEventSubscriptionDestination

事件訂用帳戶的服務總線主題目的地相關信息。

StaticDeliveryAttributeMapping

靜態傳遞屬性對應詳細數據。

StorageBlobDeadLetterDestination

記憶體 Blob 型寄不出的信件目的地的相關信息。

StorageQueueEventSubscriptionDestination

事件訂用帳戶的記憶體佇列目的地相關信息。

StringBeginsWithAdvancedFilter

StringBeginsWith 進階篩選。

StringContainsAdvancedFilter

StringContains 進階篩選條件。

StringEndsWithAdvancedFilter

StringEndsWith 進階篩選條件。

StringInAdvancedFilter

StringIn 進階篩選條件。

StringNotBeginsWithAdvancedFilter

StringNotBeginsWith 進階篩選條件。

StringNotContainsAdvancedFilter

StringNotContains 進階篩選條件。

StringNotEndsWithAdvancedFilter

StringNotEndsWith 進階篩選條件。

StringNotInAdvancedFilter

StringNotIn 進階篩選條件。

systemData

與建立和上次修改資源相關的元數據。

TlsVersion

允許發佈至此網域之發行者的最低 TLS 版本

WebHookEventSubscriptionDestination

事件訂用帳戶的 Webhook 目的地相關信息。

AzureFunctionEventSubscriptionDestination

事件訂用帳戶的 azure 函式目的地相關信息。

名稱 類型 預設值 Description
endpointType string:

AzureFunction

事件訂用帳戶目的地的端點類型。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.maxEventsPerBatch

integer (int32)

1

每個批次的事件數目上限。

properties.preferredBatchSizeInKilobytes

integer (int32)

64

慣用的批次大小以 KB 為單位。

properties.resourceId

string (arm-id)

代表事件訂用帳戶之 Azure 函式目的地端點的 Azure 資源識別碼。

BoolEqualsAdvancedFilter

BoolEquals 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

BoolEquals

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

value

boolean

布爾篩選值。

createdByType

建立資源的身分識別類型。

Description
Application
Key
ManagedIdentity
User

DeadLetterWithResourceIdentity

具有資源識別之死者目的地的相關信息。

名稱 類型 Description
deadLetterDestination DeadLetterDestination:

StorageBlobDeadLetterDestination

事件訂閱必須傳遞事件目的地的相關信息。 使用父資源上的受控識別設定(即主題或網域)來取得在寄不出的信件期間使用的驗證令牌。

identity

EventSubscriptionIdentity

當寄不出的信件事件時要使用的身分識別。

DeliveryWithResourceIdentity

使用資源識別傳遞事件訂用帳戶的相關信息。

名稱 類型 Description
destination EventSubscriptionDestination:

事件訂閱必須傳遞事件目的地的相關信息。 使用父資源上的受控識別設定(即主題或網域)來取得傳遞期間所使用的驗證令牌。

identity

EventSubscriptionIdentity

傳遞事件時要使用的身分識別。

DynamicDeliveryAttributeMapping

動態傳遞屬性對應詳細數據。

名稱 類型 Description
name

string

傳遞屬性或標頭的名稱。

properties.sourceField

string

事件中包含屬性值的 JSON 路徑。

type string:

Dynamic

傳遞屬性或標頭名稱的類型。

EventDeliverySchema

事件訂閱的事件傳遞架構。

Description
CloudEventSchemaV1_0
CustomInputSchema
EventGridSchema

EventHubEventSubscriptionDestination

事件訂用帳戶之事件中樞目的地的相關信息。

名稱 類型 Description
endpointType string:

EventHub

事件訂用帳戶目的地的端點類型。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.resourceId

string (arm-id)

代表事件訂用帳戶事件中樞目的地端點的 Azure 資源識別碼。

EventSubscription

事件訂閱。

名稱 類型 預設值 Description
id

string

資源的完整標識碼。

name

string

資源的名稱。

properties.deadLetterDestination DeadLetterDestination:

StorageBlobDeadLetterDestination

事件訂閱的寄不出的信件目的地。 無法傳遞至其目的地的任何事件都會傳送至寄不出的信件目的地。 使用 Azure 事件方格的身分識別來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.deadLetterWithResourceIdentity

DeadLetterWithResourceIdentity

事件訂閱的寄不出的信件目的地。 無法傳遞至其目的地的任何事件都會傳送至寄不出的信件目的地。 使用父資源上的受控識別設定(即主題或網域)來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.deliveryWithResourceIdentity

DeliveryWithResourceIdentity

事件訂閱必須傳遞事件目的地的相關信息。 使用父資源上的受控識別設定(即主題或網域)來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.destination EventSubscriptionDestination:

事件訂閱必須傳遞事件目的地的相關信息。 使用 Azure 事件方格的身分識別來取得傳遞/寄不出的信件期間所使用的驗證令牌。

properties.eventDeliverySchema

EventDeliverySchema

EventGridSchema

事件訂閱的事件傳遞架構。

properties.expirationTimeUtc

string (date-time)

事件訂閱的到期時間。

properties.filter

EventSubscriptionFilter

事件訂閱篩選的相關信息。

properties.labels

string[]

使用者定義的標籤清單。

properties.provisioningState

EventSubscriptionProvisioningState

事件訂閱的布建狀態。

properties.retryPolicy

RetryPolicy

事件的重試原則。 這可用來設定事件傳遞嘗試次數上限和存留時間。

properties.topic

string

事件訂用帳戶的主題名稱。

systemData

systemData

與事件方格資源相關的系統元數據。

type

string

資源的類型。

EventSubscriptionFilter

篩選事件訂閱。

名稱 類型 預設值 Description
advancedFilters AdvancedFilter[]:

用於篩選事件訂閱的進階篩選陣列。

enableAdvancedFilteringOnArrays

boolean

允許針對值的數位評估進階篩選,而不是預期單一值。

includedEventTypes

string[]

需要屬於事件訂用帳戶一部分的適用事件類型清單。 如果想要訂閱所有預設事件類型,請將 IncludedEventTypes 設定為 null。

isSubjectCaseSensitive

boolean

False

指定是否應該以區分大小寫的方式比較篩選的 SubjectBeginsWith 和 SubjectEndsWith 屬性。

subjectBeginsWith

string

選擇性字串,可根據資源路徑前置詞篩選事件訂用帳戶的事件。 此格式取決於事件的發行者。 此路徑不支援通配符。

subjectEndsWith

string

選擇性字串,可根據資源路徑後綴篩選事件訂用帳戶的事件。 此路徑不支援通配符。

EventSubscriptionIdentity

事件訂用帳戶的身分識別資訊。

名稱 類型 Description
type

EventSubscriptionIdentityType

所使用的受控識別類型。 可以是 'SystemAssigned' 或 'UserAssigned'。

userAssignedIdentity

string

與資源相關聯的使用者身分識別。

EventSubscriptionIdentityType

所使用的受控識別類型。 可以是 'SystemAssigned' 或 'UserAssigned'。

Description
SystemAssigned
UserAssigned

EventSubscriptionProvisioningState

事件訂閱的布建狀態。

Description
AwaitingManualAction
Canceled
Creating
Deleting
Failed
Succeeded
Updating

HybridConnectionEventSubscriptionDestination

事件訂用帳戶的 HybridConnection 目的地相關信息。

名稱 類型 Description
endpointType string:

HybridConnection

事件訂用帳戶目的地的端點類型。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.resourceId

string (arm-id)

混合式連線的 Azure 資源識別碼,這是事件訂用帳戶的目的地。

IsNotNullAdvancedFilter

IsNotNull 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

IsNotNull

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

IsNullOrUndefinedAdvancedFilter

IsNullOrUndefined Advanced Filter。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

IsNullOrUndefined

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

MonitorAlertEventSubscriptionDestination

事件訂用帳戶之監視警示目的地的相關信息。

名稱 類型 Description
endpointType string:

MonitorAlert

事件訂用帳戶目的地的端點類型。

properties.actionGroups

string[] (arm-id)

在透過此事件訂用帳戶引發的每個警示上觸發的ARM標識碼動作群組清單。 每個資源 ARM 標識符都應該遵循下列模式:/subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Insights/actionGroups/{ActionGroupName}。

properties.description

string

將附加至透過此事件訂用帳戶引發之每個警示的描述。

properties.severity

MonitorAlertSeverity

將附加至透過此事件訂用帳戶引發之每個警示的嚴重性。 必須提供此欄位。

MonitorAlertSeverity

將附加至透過此事件訂用帳戶引發之每個警示的嚴重性。 必須提供此欄位。

Description
Sev0
Sev1
Sev2
Sev3
Sev4

NamespaceTopicEventSubscriptionDestination

事件訂用帳戶之命名空間主題目的地的相關信息。

名稱 類型 Description
endpointType string:

NamespaceTopic

事件訂用帳戶目的地的端點類型。

properties.resourceId

string (arm-id)

Azure 資源識別碼,表示事件訂用帳戶之事件方格命名空間主題目的地的端點。 此欄位為必要欄位,且列出的命名空間主題資源必須已經存在。 資源 ARM 標識符應該遵循下列模式:/subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.EventGrid/namespaces/{NamespaceName}/topics/{TopicName}。

NumberGreaterThanAdvancedFilter

NumberGreaterThan Advanced Filter。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberGreaterThan

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

value

number (double)

篩選值。

NumberGreaterThanOrEqualsAdvancedFilter

NumberGreaterThanOrEquals 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberGreaterThanOrEquals

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

value

number (double)

篩選值。

NumberInAdvancedFilter

NumberIn 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberIn

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

number[] (double)

一組篩選值。

NumberInRangeAdvancedFilter

NumberInRange 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberInRange

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

number[] (double)

一組篩選值。

NumberLessThanAdvancedFilter

NumberLessThan 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberLessThan

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

value

number (double)

篩選值。

NumberLessThanOrEqualsAdvancedFilter

NumberLessThanOrEquals 進階篩選。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberLessThanOrEquals

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

value

number (double)

篩選值。

NumberNotInAdvancedFilter

NumberNotIn 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberNotIn

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

number[] (double)

一組篩選值。

NumberNotInRangeAdvancedFilter

NumberNotInRange 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

NumberNotInRange

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

number[] (double)

一組篩選值。

RetryPolicy

事件訂閱的重試原則相關信息。

名稱 類型 預設值 Description
eventTimeToLiveInMinutes

integer (int32)

1440

活動存留時間(以分鐘為單位)。

maxDeliveryAttempts

integer (int32)

30

事件的傳遞重試嘗試次數上限。

ServiceBusQueueEventSubscriptionDestination

事件訂用帳戶的服務總線目的地相關信息。

名稱 類型 Description
endpointType string:

ServiceBusQueue

事件訂用帳戶目的地的端點類型。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.resourceId

string (arm-id)

代表事件訂用帳戶之服務總線目的地端點的 Azure 資源識別符。

ServiceBusTopicEventSubscriptionDestination

事件訂用帳戶的服務總線主題目的地相關信息。

名稱 類型 Description
endpointType string:

ServiceBusTopic

事件訂用帳戶目的地的端點類型。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.resourceId

string (arm-id)

代表事件訂用帳戶之服務總線主題目的地端點的 Azure 資源識別符。

StaticDeliveryAttributeMapping

靜態傳遞屬性對應詳細數據。

名稱 類型 預設值 Description
name

string

傳遞屬性或標頭的名稱。

properties.isSecret

boolean

False

布林值旗標,指出屬性是否包含敏感性資訊 。

properties.value

string

傳遞屬性的值。

type string:

Static

傳遞屬性或標頭名稱的類型。

StorageBlobDeadLetterDestination

記憶體 Blob 型寄不出的信件目的地的相關信息。

名稱 類型 Description
endpointType string:

StorageBlob

寄不出的信件目的地的端點類型

properties.blobContainerName

string

記憶體 Blob 容器的名稱,該容器是死機事件的目的地

properties.resourceId

string (arm-id)

記憶體帳戶的 Azure 資源識別符,這是死機事件的目的地

StorageQueueEventSubscriptionDestination

事件訂用帳戶的記憶體佇列目的地相關信息。

名稱 類型 Description
endpointType string:

StorageQueue

事件訂用帳戶目的地的端點類型。

properties.queueMessageTimeToLiveInSeconds

integer (int64)

儲存佇列訊息存留時間以秒為單位。 這個值不能為零或負值,但使用 -1 表示訊息的存留時間是 Infinite。

properties.queueName

string

記憶體帳戶下記憶體佇列的名稱,該記憶體帳戶是事件訂用帳戶的目的地。

properties.resourceId

string (arm-id)

記憶體帳戶的 Azure 資源識別碼,其中包含事件訂用帳戶目的地的佇列。

StringBeginsWithAdvancedFilter

StringBeginsWith 進階篩選。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringBeginsWith

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringContainsAdvancedFilter

StringContains 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringContains

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringEndsWithAdvancedFilter

StringEndsWith 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringEndsWith

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringInAdvancedFilter

StringIn 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringIn

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringNotBeginsWithAdvancedFilter

StringNotBeginsWith 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringNotBeginsWith

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringNotContainsAdvancedFilter

StringNotContains 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringNotContains

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringNotEndsWithAdvancedFilter

StringNotEndsWith 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringNotEndsWith

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

StringNotInAdvancedFilter

StringNotIn 進階篩選條件。

名稱 類型 Description
key

string

事件中的欄位/屬性,根據您想要篩選的欄位/屬性。

operatorType string:

StringNotIn

用於篩選的運算符類型,例如 NumberIn、StringContains、BoolEquals 等。

values

string[]

一組篩選值。

systemData

與建立和上次修改資源相關的元數據。

名稱 類型 Description
createdAt

string (date-time)

資源建立的時間戳(UTC)。

createdBy

string

建立資源的身分識別。

createdByType

createdByType

建立資源的身分識別類型。

lastModifiedAt

string (date-time)

上次修改的資源時間戳 (UTC)

lastModifiedBy

string

上次修改資源的身分識別。

lastModifiedByType

createdByType

上次修改資源的身分識別類型。

TlsVersion

允許發佈至此網域之發行者的最低 TLS 版本

Description
1.0
1.1
1.2

WebHookEventSubscriptionDestination

事件訂用帳戶的 Webhook 目的地相關信息。

名稱 類型 預設值 Description
endpointType string:

WebHook

事件訂用帳戶目的地的端點類型。

properties.azureActiveDirectoryApplicationIdOrUri

string

Azure Active Directory 應用程式識別碼或 URI,以取得存取令牌,這些令牌將包含在傳遞要求中作為持有人令牌。

properties.azureActiveDirectoryTenantId

string

要取得存取令牌的 Azure Active Directory 租使用者標識碼,該令牌將包含在傳遞要求中作為持有人令牌。

properties.deliveryAttributeMappings DeliveryAttributeMapping[]:

傳遞屬性詳細數據。

properties.endpointBaseUrl

string

代表事件訂用帳戶目的地端點的基底 URL。

properties.endpointUrl

string

表示事件訂用帳戶目的地端點的 URL。

properties.maxEventsPerBatch

integer (int32)

1

每個批次的事件數目上限。

properties.minimumTlsVersionAllowed

TlsVersion

Webhook 端點應支援的最小 TLS 版本

properties.preferredBatchSizeInKilobytes

integer (int32)

64

慣用的批次大小以 KB 為單位。