diff --git a/src/eventgrid/azext_eventgrid/_client_factory.py b/src/eventgrid/azext_eventgrid/_client_factory.py index e31cdaf6971..2dc34720657 100644 --- a/src/eventgrid/azext_eventgrid/_client_factory.py +++ b/src/eventgrid/azext_eventgrid/_client_factory.py @@ -14,6 +14,14 @@ def topics_factory(cli_ctx, _): return cf_eventgrid(cli_ctx).topics +def domains_factory(cli_ctx, _): + return cf_eventgrid(cli_ctx).domains + + +def domain_topics_factory(cli_ctx, _): + return cf_eventgrid(cli_ctx).domain_topics + + def event_subscriptions_factory(cli_ctx, _): return cf_eventgrid(cli_ctx).event_subscriptions diff --git a/src/eventgrid/azext_eventgrid/_help.py b/src/eventgrid/azext_eventgrid/_help.py index f0242fb0f68..9251f7a4aca 100644 --- a/src/eventgrid/azext_eventgrid/_help.py +++ b/src/eventgrid/azext_eventgrid/_help.py @@ -9,11 +9,11 @@ helps['eventgrid'] = """ type: group - short-summary: Manage Azure Event Grid topics and subscriptions. + short-summary: Manage Azure Event Grid topics, event subscriptions and domains. """ helps['eventgrid topic'] = """ type: group - short-summary: Manage Azure Event Grid topics. + short-summary: Manage topics. """ helps['eventgrid topic create'] = """ type: command @@ -24,7 +24,7 @@ - name: Create a new topic with custom input mappings. text: az eventgrid topic create -g rg1 --name topic1 -l westus2 --input-schema customeventschema --input-mapping-fields topic=myTopicField eventType=myEventTypeField --input-mapping-default-values subject=DefaultSubject dataVersion=1.0 - name: Create a new topic that accepts events published in CloudEvents V0.1 schema. - text: az eventgrid topic create -g rg1 --name topic1 -l westus2 --input-schema cloudeventv01 + text: az eventgrid topic create -g rg1 --name topic1 -l westus2 --input-schema cloudeventv01schema """ helps['eventgrid topic update'] = """ type: command @@ -56,7 +56,7 @@ - name: Show the details of a topic. text: az eventgrid topic show -g rg1 -n topic1 - name: Show the details of a topic based on resource ID. - text: az eventgrid topic show --ids /subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/topic1 + text: az eventgrid topic show --ids /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 """ helps['eventgrid topic key'] = """ type: group @@ -70,134 +70,391 @@ type: command short-summary: Regenerate a shared access key of a topic. """ +helps['eventgrid domain'] = """ + type: group + short-summary: Manage event domains. + """ +helps['eventgrid domain create'] = """ + type: command + short-summary: Create a domain. + examples: + - name: Create a new domain. + text: az eventgrid domain create -g rg1 --name domain1 -l westus2 + - name: Create a new domain with custom input mappings. + text: az eventgrid domain create -g rg1 --name domain1 -l westus2 --input-schema customeventschema --input-mapping-fields topic=mytopicField eventType=myEventTypeField --input-mapping-default-values subject=DefaultSubject dataVersion=1.0 + - name: Create a new domain that accepts events published in CloudEvents V0.1 schema. + text: az eventgrid domain create -g rg1 --name domain1 -l westus2 --input-schema cloudeventv01schema + """ +helps['eventgrid domain update'] = """ + type: command + short-summary: Update a domain. + examples: + - name: Update the properties of an existing domain. + text: az eventgrid domain update -g rg1 --name domain1 --tags Dept=IT + """ +helps['eventgrid domain delete'] = """ + type: command + short-summary: Delete a domain. + examples: + - name: Delete a domain. + text: az eventgrid domain delete -g rg1 --name domain1 + """ +helps['eventgrid domain list'] = """ + type: command + short-summary: List available domains. + examples: + - name: List all domains in the current Azure subscription. + text: az eventgrid domain list + - name: List all domains in a resource group. + text: az eventgrid domain list -g rg1 + """ +helps['eventgrid domain show'] = """ + type: command + short-summary: Get the details of a domain. + examples: + - name: Show the details of a domain. + text: az eventgrid domain show -g rg1 -n domain1 + - name: Show the details of a domain based on resource ID. + text: az eventgrid domain show --ids /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/domain1 + """ +helps['eventgrid domain key'] = """ + type: group + short-summary: Manage shared access keys of a domain. + """ +helps['eventgrid domain topic'] = """ + type: group + short-summary: View information about topics in a domain. + """ +helps['eventgrid domain key list'] = """ + type: command + short-summary: List shared access keys of a domain. + """ +helps['eventgrid domain key regenerate'] = """ + type: command + short-summary: Regenerate a shared access key of a domain. + """ +helps['eventgrid domain topic list'] = """ + type: command + short-summary: List available topics in a domain. + examples: + - name: List all topics in a domain. + text: az eventgrid domain list -g rg1 -n domain1 + """ +helps['eventgrid domain topic show'] = """ + type: command + short-summary: Get the details of a domain topic. + examples: + - name: Show the details of a domain topic. + text: az eventgrid domain topic show -g rg1 -n domain1 --topic-name topic1 + """ helps['eventgrid event-subscription'] = """ type: group - short-summary: Manage event subscriptions for an Event Grid topic or for an Azure resource. + short-summary: Manage event subscriptions. + long-summary: Manage event subscriptions for an Event Grid topic, domain, domain topic, Azure subscription, resource group or for any other Azure resource that supports event notifications. """ helps['eventgrid event-subscription create'] = """ type: command - short-summary: Create a new event subscription for an Event Grid topic or for an Azure resource. + short-summary: Create a new event subscription. + parameters: + - name: --advanced-filter + short-summary: An advanced filter enables filtering of events based on a specific event property. + long-summary: | + Usage: --advanced-filter KEY[.INNERKEY] FILTEROPERATOR VALUE [VALUE ...] + StringIn: --advanced-filter data.Color StringIn Blue Red Orange Yellow + StringNotIn: --advanced-filter data.Color StringNotIn Blue Red Orange Yellow + StringContains: --advanced-filter subject StringContains Blue Red + StringBeginsWith: --advanced-filter subject StringBeginsWith Blue Red + StringEndsWith: --advanced-filter subject StringEndsWith img png jpg + NumberIn: --advanced-filter data.property1 NumberIn 5 10 20 + NumberNotIn: --advanced-filter data.property2 NumberNotIn 100 200 300 + NumberLessThan: --advanced-filter data.property3 NumberLessThan 100 + NumberLessThanOrEquals: --advanced-filter data.property2 NumberLessThanOrEquals 100 + NumberGreaterThan: --advanced-filter data.property3 NumberGreaterThan 100 + NumberGreaterThanOrEquals: --advanced-filter data.property2 NumberGreaterThanOrEquals 100 + BoolEquals: --advanced-filter data.property3 BoolEquals true + Multiple advanced filters can be specified by using more than one `--advanced-filter` argument. + - name: --source-resource-id + short-summary: Fully qualified identifier of the Azure resource to which the event subscription needs to be created. + long-summary: | + Usage: --source-resource-id Azure-Resource-ID + For Azure subscription: --source-resource-id /subscriptions/{SubID} + For resource group: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 + For EventGrid topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/t1 + For storage account: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageaccounts/sa1 + For EventGrid domain: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + For EventGrid domain topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + - name: --deadletter-endpoint + short-summary: The Azure resource ID of an Azure Storage blob container destination where EventGrid should deadletter undeliverable events for this event subscription. + long-summary: | + Example: --deadletter-endpoint /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/sa1/blobServices/default/containers/containerName + - name: --endpoint-type + short-summary: The type of the destination endpoint. examples: - name: Create a new event subscription for an Event Grid topic, using default filters. text: | - az eventgrid event-subscription create -g rg1 --topic-name topic1 --name es1 \\ + az eventgrid event-subscription create --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - - name: Create a new event subscription for a subscription, using default filters. + - name: Create a new event subscription for an Azure subscription subscription, using default filters. text: | az eventgrid event-subscription create --name es2 \\ + --source-resource-id /subscriptions/{SubID} \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - name: Create a new event subscription for a resource group, using default filters. text: | - az eventgrid event-subscription create -g rg1 --name es3 \\ + az eventgrid event-subscription create --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG} \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - name: Create a new event subscription for a storage account, using default filters. text: | - az eventgrid event-subscription create --resource-id "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/Microsoft.Storage/storageaccounts/kalsegblob" --name es3 \\ + az eventgrid event-subscription create --name es3 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/s1" \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - - name: Create a new event subscription for a subscription, with a filter specifying a subject prefix. + - name: Create a new event subscription for a storage account, using advanced filters. + text: | + az eventgrid event-subscription create --name es3 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/s1" \\ + --endpoint https://contoso.azurewebsites.net/api/f1?code=code + --advanced-filter data.blobType StringIn BlockBlob + --advanced-filter data.url StringBeginsWith https://myaccount.blob.core.windows.net + - name: Create a new event subscription for an Azure subscription, with a filter specifying a subject prefix. text: | az eventgrid event-subscription create --name es4 \\ + --source-resource-id /subscriptions/{SubID} \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code \\ --subject-begins-with mysubject_prefix - name: Create a new event subscription for a resource group, with a filter specifying a subject suffix. text: | - az eventgrid event-subscription create -g rg2 --name es5 \\ + az eventgrid event-subscription create --name es5 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG} \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code \\ --subject-ends-with mysubject_suffix - - name: Create a new event subscription for a subscription, using default filters, and an EventHub as a destination. + - name: Create a new event subscription for an Azure subscription, using default filters, and an EventHub as a destination. + text: | + az eventgrid event-subscription create --name es2 \\ + --source-resource-id /subscriptions/{SubID} \\ + --endpoint-type eventhub \\ + --endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/n1/eventhubs/EH1 + - name: Create a new event subscription for an Azure subscription, using default filters, and an Azure Storage queue as a destination. text: | - az eventgrid event-subscription create --name es2 --endpoint-type eventhub \\ - --endpoint /subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1 - - name: Create a new event subscription for a subscription, using default filters, and an Azure Storage queue as a destination. + az eventgrid event-subscription create --name es2 \\ + --source-resource-id /subscriptions/{SubID} \\ + --endpoint-type storagequeue \\ + --endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/sa1/queueservices/default/queues/q1 + - name: Create a new event subscription for an Event Grid domain, using default filters, and CloudEventV01 as the delivery schema. text: | - az eventgrid event-subscription create --name es2 --endpoint-type storagequeue \\ - --endpoint /subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/sa1/queueservices/default/queues/queue1 - - name: Create a new event subscription for a subscription, using default filters, and CloudEventV01 as the delivery schema. + az eventgrid event-subscription create --name es2 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/d1 \\ + --endpoint https://contoso.azurewebsites.net/api/f1?code=code \\ + --event-delivery-schema cloudeventv01schema + - name: Create a new event subscription for a storage account, with a deadletter destination and custom retry policy of maximum 10 delivery attempts and an Event TTL of 2 hours (whichever happens earlier). text: | - az eventgrid event-subscription create --name es2 --endpoint https://contoso.azurewebsites.net/api/f1?code=code --event-delivery-schema cloudeventv01schema + az eventgrid event-subscription create --name es2 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/s1" \\ + --endpoint https://contoso.azurewebsites.net/api/f1?code=code \\ + --deadletter-endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/s2/blobServices/default/containers/blobcontainer1 \\ + --max-delivery-attempts 10 --event-ttl 120 + - name: Create a new event subscription for a domain topic. + text: | + az eventgrid event-subscription create --name es2 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/domain1/topics/t1" \\ + --endpoint https://contoso.azurewebsites.net/api/f1?code=code + - name: Create a new event subscription (for a storage account) with an expiration date. + text: | + az eventgrid event-subscription create --name es2 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/sa1" \\ + --endpoint https://contoso.azurewebsites.net/api/f1?code=code + --expiration-date "2018-10-31" """ helps['eventgrid event-subscription update'] = """ type: command short-summary: Update an event subscription. + parameters: + - name: --source-resource-id + short-summary: Fully qualified identifier of the Azure resource whose event subscription needs to be updated. + long-summary: | + Usage: --source-resource-id Azure-Resource-ID + For Azure subscription: --source-resource-id /subscriptions/{SubID} + For resource group: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 + For EventGrid topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/t1 + For storage account: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageaccounts/sa1 + For EventGrid domain: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + For EventGrid domain topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 examples: - name: Update an event subscription for an Event Grid topic to specify a new endpoint. text: | - az eventgrid event-subscription update -g rg1 --topic-name topic1 --name es1 \\ + az eventgrid event-subscription update --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - - name: Update an event subscription for a subscription to specify a new subject-ends-with filter. + - name: Update an event subscription for an Azure subscription to specify a new subject-ends-with filter. text: | - az eventgrid event-subscription update --name es2 --subject-ends-with .jpg + az eventgrid event-subscription update --name es2 \\ + --source-resource-id /subscriptions/{SubID} \\ + --subject-ends-with .jpg - name: Update an event subscription for a resource group to specify a new endpoint and a new subject-ends-with filter. text: | - az eventgrid event-subscription update -g rg1 --name es3 --subject-ends-with .png \\ + az eventgrid event-subscription update --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG} \\ + --subject-ends-with .png \\ --endpoint https://contoso.azurewebsites.net/api/f1?code=code - name: Update an event subscription for a storage account to specify a new list of included event types. text: | - az eventgrid event-subscription update --resource-id "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/microsoft.storage/storageaccounts/kalsegblob" --name es3 \\ + az eventgrid event-subscription update --name es3 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/microsoft.storage/storageaccounts/kalsegblob" \\ --included-event-types Microsoft.Storage.BlobCreated Microsoft.Storage.BlobDeleted + - name: Update an event subscription for a storage account, to include a deadletter destination. + text: | + az eventgrid event-subscription update --name es2 \\ + --source-resource-id "/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/kalsegblob" \\ + --deadletter-endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/sa1/blobServices/default/containers/blobcontainer1 """ helps['eventgrid event-subscription delete'] = """ type: command short-summary: Delete an event subscription. + parameters: + - name: --source-resource-id + short-summary: Fully qualified identifier of the Azure resource whose event subscription needs to be deleted. + long-summary: | + Usage: --source-resource-id Azure-Resource-ID + For Azure subscription: --source-resource-id /subscriptions/{SubID} + For resource group: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 + For EventGrid topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/t1 + For storage account: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageaccounts/sa1 + For EventGrid domain: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + For EventGrid domain topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 examples: - name: Delete an event subscription for an Event Grid topic. text: | - az eventgrid event-subscription delete -g rg1 --topic-name topic1 --name es1 - - name: Delete an event subscription for a subscription. + az eventgrid event-subscription delete --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 + - name: Delete an event subscription for an Event Grid domain topic. + text: | + az eventgrid event-subscription delete --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/domain1/topics/topic1 + - name: Delete an event subscription for an Event Grid domain. + text: | + az eventgrid event-subscription delete --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/domain1 + - name: Delete an event subscription for an Azure subscription. text: | - az eventgrid event-subscription delete --name es2 + az eventgrid event-subscription delete --name es2 \\ + --source-resource-id /subscriptions/{SubID} - name: Delete an event subscription for a resource group. text: | - az eventgrid event-subscription delete -g rg1 --name es3 + az eventgrid event-subscription delete --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG} - name: Delete an event subscription for a storage account. text: | - az eventgrid event-subscription delete --resource-id "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/microsoft.storage/storageaccounts/kalsegblob" --name es3 + az eventgrid event-subscription delete --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/microsoft.storage/storageaccounts/kalsegblob """ helps['eventgrid event-subscription list'] = """ type: command short-summary: List event subscriptions. + long-summary: | + Event Grid supports both regional and global event subscriptions: Event subscriptions on regional resources (such as Storage accounts or Event Grid topics) are regional, while event subscriptions on global resources (such as an Azure subscription or resource group) are global. + Hence, you can list event subscriptions in a few different ways: + 1. To list by the resource ID of the resource whose event subscriptions you want to list, specify the --source-resource-id parameter. No other parameters must be specified. + 2. To list by a topic-type (e.g. storage accounts), specify the --topic-type parameter along with --location (e.g. "westus2") parameter. For global topic types (e.g. "Microsoft.Resources.Subcriptions"), specify the location value as "global". + 3. To list all event subscriptions in a region (across all topic types), specify only the --location parameter. + 4. For both #2 and #3 above, to filter only by a resource group, you can additionally specify the --resource-group parameter. + parameters: + - name: --resource-group + short-summary: This is used to list event subscriptions by a resource group. + long-summary: | + Example 1: List all Storage event subscriptions in WestUS2 under the resource group TestRG + --resource-group TestRG --topic-type-name Microsoft.Storage.StorageAccounts --location westus2 + Example 2: List all regional event subscriptions in WestUS2 (across all topic types) under the resource group TestRG + --resource-group TestRG --location westus2 + - name: --topic-type-name + short-summary: Name of the topic-type whose event subscriptions need to be listed. When this is specified, you must also specify --location. + long-summary: | + Example 1: List all Storage event subscriptions in WestUS2 + --resource-group TestRG --topic-type-name Microsoft.Storage.StorageAccounts --location westus2 + Example 2: List all event subscriptions on Azure subscriptions + --topic-type-name Microsoft.Resources.Subscriptions --location global + - name: --source-resource-id + short-summary: Fully qualified identifier of the Azure resource whose event subscription needs to be listed. + long-summary: | + Usage: --source-resource-id Azure-Resource-ID + For Azure subscription: --source-resource-id /subscriptions/{SubID} + For resource group: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 + For EventGrid topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/t1 + For storage account: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageaccounts/sa1 + For EventGrid domain: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + For EventGrid domain topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + - name: --location + short-summary: This is used to list event subscriptions by location. + long-summary: | + Example 1: List all Storage event subscriptions in WestUS2 + --topic-type-name Microsoft.Storage.StorageAccounts --location westus2 + Example 2: List all regional event subscriptions in WestUS2 (across all topic types) + --location westus2 examples: - - name: List all event subscriptions for an Event Grid topic. + - name: List all event subscriptions created for an Event Grid topic. text: | - az eventgrid event-subscription list -g rg1 --topic-name topic1 - - name: List all event subscriptions for a storage account. + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 + - name: List all event subscriptions created for a storage account. text: | - az eventgrid event-subscription list --resource-id /subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/Microsoft.Storage/storageaccounts/kalsegblob + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Storage/storageaccounts/kalsegblob + - name: List all event subscriptions created for an Azure subscription. + text: | + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID} + - name: List all event subscriptions created for a resource group. + text: | + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG} + - name: List all event subscriptions for an Event Grid domain. + text: | + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/d1 + - name: List all event subscriptions for an Event Grid domain topic. + text: | + az eventgrid event-subscription list --source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/domains/d1/topics/topic1" - name: List all event subscriptions for a topic-type in a specific location (under the currently selected Azure subscription). text: | az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location westus2 - - name: List all event subscriptions for a topic-type in a specific location under a specified resource group. + - name: List all event subscriptions under a specified resource group for a topic-type in a specific location. text: | - az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location westus2 --resource-group kalstest - - name: List all regional event subscriptions in a specific location (under the currently selected Azure subscription). + az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location westus2 --resource-group {RG} + - name: List all regional or global event subscriptions (under the currently selected Azure subscription). text: | az eventgrid event-subscription list --location westus2 - - name: List all event subscriptions in a specific location under a specified resource group. - text: | - az eventgrid event-subscription list --location westus2 --resource-group kalstest - - name: List all global event subscriptions (under the currently selected Azure subscription). - text: | - az eventgrid event-subscription list - - name: List all global event subscriptions under the currently selected resource group. + az eventgrid event-subscription list --location global + - name: List all regional or global event subscriptions under a specified resource group. text: | - az eventgrid event-subscription list --resource-group kalstest + az eventgrid event-subscription list --location westus2 --resource-group {RG} + az eventgrid event-subscription list --location global --resource-group {RG} """ helps['eventgrid event-subscription show'] = """ type: command short-summary: Get the details of an event subscription. + parameters: + - name: --source-resource-id + short-summary: Fully qualified identifier of the Azure resource whose event subscription needs to be shown. + long-summary: | + Usage: --source-resource-id Azure-Resource-ID + For Azure subscription: --source-resource-id /subscriptions/{SubID} + For resource group: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 + For EventGrid topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/t1 + For storage account: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.Storage/storageaccounts/sa1 + For EventGrid domain: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 + For EventGrid domain topic: --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/domains/d1/topics/t1 examples: - name: Show the details of an event subscription for an Event Grid topic. text: | - az eventgrid event-subscription show -g rg1 --topic-name topic1 --name es1 - - name: Show the details of an event subscription for a subscription. + az eventgrid event-subscription show --name es1 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/Microsoft.EventGrid/topics/topic1 + - name: Show the details of an event subscription for an Azure subscription. text: | - az eventgrid event-subscription show --name es2 + az eventgrid event-subscription show --name es2 \\ + --source-resource-id /subscriptions/{SubID} - name: Show the details of an event subscription for a resource group. text: | - az eventgrid event-subscription show -g rg1 --name es3 + az eventgrid event-subscription show --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1 - name: Show the details of an event subscription for a storage account. text: | - az eventgrid event-subscription show --resource-id "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/kalstest/providers/microsoft.storage/storageaccounts/kalsegblob" --name es3 + az eventgrid event-subscription show --name es3 \\ + --source-resource-id /subscriptions/{SubID}/resourceGroups/rg1/providers/microsoft.storage/storageaccounts/kalsegblob """ helps['eventgrid topic-type'] = """ type: group diff --git a/src/eventgrid/azext_eventgrid/_params.py b/src/eventgrid/azext_eventgrid/_params.py index 8b6402b36f1..17a097a99f8 100644 --- a/src/eventgrid/azext_eventgrid/_params.py +++ b/src/eventgrid/azext_eventgrid/_params.py @@ -17,8 +17,10 @@ name_type ) +from .advanced_filter import EventSubscriptionAddFilter + included_event_types_type = CLIArgumentType( - help="A space-separated list of event types. To subscribe to all event types, the string \"All\" should be specified.", + help="A space-separated list of event types. Example: Microsoft.Storage.BlobCreated Microsoft.Storage.BlobDeleted. To subscribe to all event types, the string \"All\" should be specified.", nargs='+' ) @@ -27,6 +29,21 @@ nargs='+' ) +input_schema_type = CLIArgumentType( + help="Schema in which incoming events will be published to this topic/domain. If you specify customeventschema as the value for this parameter, you must also provide values for at least one of --input_mapping_default_values / --input_mapping_fields.", + arg_type=get_enum_type(['eventgridschema', 'customeventschema', 'cloudeventv01schema'], default='eventgridschema') +) + +input_mapping_fields_type = CLIArgumentType( + help="When input-schema is specified as customeventschema, this parameter is used to specify input mappings based on field names. Specify space separated mappings in 'key=value' format. Allowed key names are 'id', 'topic', 'eventtime', 'subject', 'eventtype', 'dataversion'. The corresponding value names should specify the names of the fields in the custom input schema. If a mapping for either 'id' or 'eventtime' is not provided, Event Grid will auto-generate a default value for these two fields.", + arg_type=tags_type +) + +input_mapping_default_values_type = CLIArgumentType( + help="When input-schema is specified as customeventschema, this parameter can be used to specify input mappings based on default values. You can use this parameter when your custom schema does not include a field that corresponds to one of the three fields supported by this parameter. Specify space separated mappings in 'key=value' format. Allowed key names are 'subject', 'eventtype', 'dataversion'. The corresponding value names should specify the default values to be used for the mapping and they will be used only when the published event doesn't have a valid mapping for a particular field.", + arg_type=tags_type +) + def load_arguments(self, _): with self.argument_context('eventgrid') as c: @@ -36,7 +53,8 @@ def load_arguments(self, _): c.argument('included_event_types', arg_type=included_event_types_type) c.argument('labels', arg_type=labels_type) c.argument('endpoint_type', arg_type=get_enum_type(['webhook', 'eventhub', 'storagequeue', 'hybridconnection'], default='webhook')) - c.argument('resource_id', help="Fully qualified identifier of the Azure resource.") + c.argument('source_resource_id', help="Fully qualified identifier of the source Azure resource.") + c.argument('resource_id', deprecate_info=c.deprecate(redirect="--source-resource-id", expiration='2.1.0', hide=True), help="Fully qualified identifier of the Azure resource.") c.argument('endpoint', help="Endpoint where EventGrid should deliver events matching this event subscription. For webhook endpoint type, this should be the corresponding webhook URL. For other endpoint types, this should be the Azure resource identifier of the endpoint.") c.argument('event_subscription_name', help="Name of the event subscription.") c.argument('subject_begins_with', help="An optional string to filter events for an event subscription based on a prefix. Wildcard characters are not supported.") @@ -46,29 +64,37 @@ def load_arguments(self, _): with self.argument_context('eventgrid topic') as c: c.argument('topic_name', arg_type=name_type, help='Name of the topic', id_part='name', completer=get_resource_name_completion_list('Microsoft.EventGrid/topics')) - c.argument('input_mapping_fields', arg_type=tags_type, help="When input-schema is specified as customeventschema, this parameter is used to specify input mappings based on field names. Specify space separated mappings in 'key=value' format. Allowed key names are 'id', 'topic', 'eventtime', 'subject', 'eventtype', 'dataversion'. The corresponding value names should specify the names of the fields in the custom input schema.") - c.argument('input_mapping_default_values', arg_type=tags_type, help="When input-schema is specified as customeventschema, this parameter is used to specify input mappings based on default values. Specify space separated mappings in 'key=value' format. Allowed key names are 'subject', 'eventtype', 'dataversion'. The corresponding value names should specify the default values to be used for the mapping.") - c.argument('input_schema', arg_type=get_enum_type(['eventgridschema', 'customeventschema', 'cloudeventv01schema'], default='eventgridschema'), help='Schema in which incoming events will be published for this topic. If customeventschema is specified, either input_mapping_default_values or input_mapping_fields must be specified as well.') + c.argument('input_mapping_fields', arg_type=input_mapping_fields_type) + c.argument('input_mapping_default_values', arg_type=input_mapping_default_values_type) + c.argument('input_schema', arg_type=input_schema_type) + + with self.argument_context('eventgrid domain') as c: + c.argument('domain_name', arg_type=name_type, help='Name of the domain', id_part='name', completer=get_resource_name_completion_list('Microsoft.EventGrid/domains')) + c.argument('input_mapping_fields', arg_type=input_mapping_fields_type) + c.argument('input_mapping_default_values', arg_type=input_mapping_default_values_type) + c.argument('input_schema', arg_type=input_schema_type) with self.argument_context('eventgrid event-subscription') as c: - c.argument('topic_name', help='Name of the Event Grid topic', options_list=['--topic-name'], completer=get_resource_name_completion_list('Microsoft.EventGrid/topics')) + c.argument('topic_name', deprecate_info=c.deprecate(expiration='2.1.0', hide=True), help='Name of Event Grid topic', options_list=['--topic-name'], completer=get_resource_name_completion_list('Microsoft.EventGrid/topics')) c.argument('event_subscription_name', arg_type=name_type, help='Name of the event subscription') - c.argument('event_delivery_schema', arg_type=get_enum_type(['eventgridschema', 'inputeventschema', 'cloudeventv01schema'], default='inputeventschema'), help='The schema in which events should be delivered for this event subscription. By default, events are delivered in the same schema in which they are published (inputeventschema).') + c.argument('event_delivery_schema', arg_type=get_enum_type(['eventgridschema', 'custominputschema', 'cloudeventv01schema']), help='The schema in which events should be delivered for this event subscription. By default, events will be delivered in the same schema in which they are published (based on the corresponding topic\'s input schema).') c.argument('max_delivery_attempts', help="Maximum number of delivery attempts. Must be a number between 1 and 30.") c.argument('event_ttl', help="Event time to live (in minutes). Must be a number between 1 and 1440.") c.argument('deadletter_endpoint', help="The Azure resource ID of an Azure Storage blob container destination where EventGrid should deadletter undeliverable events for this event subscription.") + c.argument('advanced_filter', action=EventSubscriptionAddFilter, nargs='+') + c.argument('expiration_date', help="Date or datetime (in UTC, e.g. '2018-11-30T11:59:59+00:00' or '2018-11-30') after which the event subscription would expire. By default, there is no expiration for the event subscription.") with self.argument_context('eventgrid event-subscription create') as c: - c.argument('topic_name', help='Name of the Event Grid topic to which the event subscription needs to be created.', options_list=['--topic-name'], completer=get_resource_name_completion_list('Microsoft.EventGrid/topics')) - c.argument('event_subscription_name', arg_type=name_type, help='Name of the new event subscription') - c.argument('resource_id', help="Fully qualified identifier of the Azure resource to which the event subscription needs to be created.") + c.argument('resource_group_name', deprecate_info=c.deprecate(expiration='2.1.0', hide=True), arg_type=resource_group_name_type) with self.argument_context('eventgrid event-subscription delete') as c: - c.argument('topic_name', help='Name of the Event Grid topic whose event subscription needs to be deleted.', options_list=['--topic-name'], completer=get_resource_name_completion_list('Microsoft.EventGrid/topics')) - c.argument('event_subscription_name', arg_type=name_type, help='Name of the event subscription') - c.argument('resource_id', help="Fully qualified identifier of the Azure resource whose event subscription needs to be deleted.") + c.argument('resource_group_name', deprecate_info=c.deprecate(expiration='2.1.0', hide=True), arg_type=resource_group_name_type) + + with self.argument_context('eventgrid event-subscription update') as c: + c.argument('resource_group_name', deprecate_info=c.deprecate(expiration='2.1.0', hide=True), arg_type=resource_group_name_type) with self.argument_context('eventgrid event-subscription show') as c: + c.argument('resource_group_name', deprecate_info=c.deprecate(expiration='2.1.0', hide=True), arg_type=resource_group_name_type) c.argument('include_full_endpoint_url', arg_type=get_three_state_flag(), options_list=['--include-full-endpoint-url'], help="Specify to indicate whether the full endpoint URL should be returned. True if flag present.", ) with self.argument_context('eventgrid topic-type') as c: diff --git a/src/eventgrid/azext_eventgrid/advanced_filter.py b/src/eventgrid/azext_eventgrid/advanced_filter.py new file mode 100644 index 00000000000..f117f002152 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/advanced_filter.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import argparse +from knack.util import CLIError + +from azext_eventgrid.mgmt.eventgrid.models import ( + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotInAdvancedFilter, + BoolEqualsAdvancedFilter) + +NUMBERIN = "NumberIn" +NUMBERNOTIN = "NumberNotIn" +STRINGIN = "StringIn" +STRINGNOTIN = "StringNotIn" +STRINGBEGINSWITH = "StringBeginsWith" +STRINGCONTAINS = "StringContains" +STRINGENDSWITH = "StringEndsWith" +NUMBERGREATERTHAN = "NumberGreaterThan" +NUMBERGREATERTHANOREQUALS = "NumberGreaterThanOrEquals" +NUMBERLESSTHAN = "NumberLessThan" +NUMBERLESSTHANOREQUALS = "NumberLessThanOrEquals" +BOOLEQUALS = "BoolEquals" + + +# pylint: disable=protected-access +# pylint: disable=too-few-public-methods +class EventSubscriptionAddFilter(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + if len(values) < 3: + raise CLIError('usage error: --advanced-filter KEY[.INNERKEY] FILTEROPERATOR VALUE [VALUE ...]') + + key = values[0] + operator = values[1] + +# operators that support single value + if operator.lower() == NUMBERLESSTHAN.lower(): + _validate_only_single_value_is_specified(NUMBERLESSTHAN, values) + advanced_filter = NumberLessThanAdvancedFilter(key=key, value=float(values[2])) + elif operator.lower() == NUMBERLESSTHANOREQUALS.lower(): + _validate_only_single_value_is_specified(NUMBERLESSTHANOREQUALS, values) + advanced_filter = NumberLessThanOrEqualsAdvancedFilter(key=key, value=float(values[2])) + elif operator.lower() == NUMBERGREATERTHAN.lower(): + _validate_only_single_value_is_specified(NUMBERGREATERTHAN, values) + advanced_filter = NumberGreaterThanAdvancedFilter(key=key, value=float(values[2])) + elif operator.lower() == NUMBERGREATERTHANOREQUALS.lower(): + _validate_only_single_value_is_specified(NUMBERGREATERTHANOREQUALS, values) + advanced_filter = NumberGreaterThanOrEqualsAdvancedFilter(key=key, value=float(values[2])) + elif operator.lower() == BOOLEQUALS.lower(): + _validate_only_single_value_is_specified(BOOLEQUALS, values) + advanced_filter = BoolEqualsAdvancedFilter(key=key, value=bool(values[2])) + +# operators that support multiple values + elif operator.lower() == NUMBERIN.lower(): + float_values = [float(i) for i in values[2:]] + advanced_filter = NumberInAdvancedFilter(key=key, values=float_values) + elif operator.lower() == NUMBERNOTIN.lower(): + float_values = [float(i) for i in values[2:]] + advanced_filter = NumberNotInAdvancedFilter(key=key, values=float_values) + elif operator.lower() == STRINGIN.lower(): + advanced_filter = StringInAdvancedFilter(key=key, values=values[2:]) + elif operator.lower() == STRINGNOTIN.lower(): + advanced_filter = StringNotInAdvancedFilter(key=key, values=values[2:]) + elif operator.lower() == STRINGBEGINSWITH.lower(): + advanced_filter = StringBeginsWithAdvancedFilter(key=key, values=values[2:]) + elif operator.lower() == STRINGENDSWITH.lower(): + advanced_filter = StringEndsWithAdvancedFilter(key=key, values=values[2:]) + elif operator.lower() == STRINGCONTAINS.lower(): + advanced_filter = StringContainsAdvancedFilter(key=key, values=values[2:]) + else: + raise CLIError("--advanced-filter: The specified filter operator '{}' is not" + " a valid operator. Supported values are ".format(operator) + + NUMBERIN + "," + NUMBERNOTIN + "," + STRINGIN + "," + + STRINGNOTIN + "," + STRINGBEGINSWITH + "," + + STRINGCONTAINS + "," + STRINGENDSWITH + "," + + NUMBERGREATERTHAN + "," + NUMBERGREATERTHANOREQUALS + "," + + NUMBERLESSTHAN + "," + NUMBERLESSTHANOREQUALS + "," + BOOLEQUALS + ".") + if namespace.advanced_filter is None: + namespace.advanced_filter = [] + namespace.advanced_filter.append(advanced_filter) + + +def _validate_only_single_value_is_specified(operator_type, values): + if len(values) != 3: + raise CLIError("--advanced-filter: For '{}' operator, only one filter value " + "must be specified.".format(operator_type)) diff --git a/src/eventgrid/azext_eventgrid/azext_metadata.json b/src/eventgrid/azext_eventgrid/azext_metadata.json index 0805b25d581..644f05e7989 100644 --- a/src/eventgrid/azext_eventgrid/azext_metadata.json +++ b/src/eventgrid/azext_eventgrid/azext_metadata.json @@ -1,4 +1,4 @@ { - "azext.minCliCoreVersion": "2.0.24", + "azext.minCliCoreVersion": "2.0.49", "azext.isPreview": true } \ No newline at end of file diff --git a/src/eventgrid/azext_eventgrid/commands.py b/src/eventgrid/azext_eventgrid/commands.py index cf42e0ac178..2fb166776b8 100644 --- a/src/eventgrid/azext_eventgrid/commands.py +++ b/src/eventgrid/azext_eventgrid/commands.py @@ -6,7 +6,7 @@ # pylint: disable=line-too-long from azure.cli.core.commands import CliCommandType -from ._client_factory import (topics_factory, event_subscriptions_factory, topic_types_factory) +from ._client_factory import (topics_factory, domains_factory, domain_topics_factory, event_subscriptions_factory, topic_types_factory) def load_command_table(self, _): @@ -16,6 +16,18 @@ def load_command_table(self, _): client_arg_name='self' ) + domains_mgmt_util = CliCommandType( + operations_tmpl='azext_eventgrid.mgmt.eventgrid.operations.domains_operations#DomainsOperations.{}', + client_factory=domains_factory, + client_arg_name='self' + ) + + domain_topics_mgmt_util = CliCommandType( + operations_tmpl='azext_eventgrid.mgmt.eventgrid.operations.domain_topics_operations#DomainTopicsOperations.{}', + client_factory=domain_topics_factory, + client_arg_name='self' + ) + topic_type_mgmt_util = CliCommandType( operations_tmpl='azext_eventgrid.mgmt.eventgrid.operations.topic_types_operations#TopicTypesOperations.{}', client_factory=topic_types_factory, @@ -34,6 +46,22 @@ def load_command_table(self, _): setter_name='update', client_factory=topics_factory) + with self.command_group('eventgrid domain topic', domain_topics_mgmt_util, client_factory=domain_topics_factory) as g: + g.command('show', 'get') + g.command('list', 'list_by_domain') + + with self.command_group('eventgrid domain', domains_mgmt_util, client_factory=domains_factory) as g: + g.command('show', 'get') + g.command('key list', 'list_shared_access_keys') + g.command('key regenerate', 'regenerate_key') + g.command('delete', 'delete') + g.custom_command('list', 'cli_domain_list') + g.custom_command('create', 'cli_domain_create_or_update') + g.generic_update_command('update', + getter_name='get', + setter_name='update', + client_factory=domains_factory) + custom_tmpl = 'azext_eventgrid.custom#{}' eventgrid_custom = CliCommandType(operations_tmpl=custom_tmpl) diff --git a/src/eventgrid/azext_eventgrid/custom.py b/src/eventgrid/azext_eventgrid/custom.py index c4bdc2d6bb3..082b4b00698 100644 --- a/src/eventgrid/azext_eventgrid/custom.py +++ b/src/eventgrid/azext_eventgrid/custom.py @@ -8,6 +8,7 @@ from knack.log import get_logger from knack.util import CLIError from msrestazure.tools import parse_resource_id +from dateutil.parser import parse # pylint: disable=import-error,relative-import from azure.cli.core.commands.client_factory import get_subscription_id from azext_eventgrid.mgmt.eventgrid.models import ( @@ -15,6 +16,7 @@ EventSubscriptionUpdateParameters, WebHookEventSubscriptionDestination, Topic, + Domain, JsonInputSchemaMapping, JsonField, JsonFieldWithDefault, @@ -31,6 +33,7 @@ RESOURCES_NAMESPACE = "Microsoft.Resources" SUBSCRIPTIONS = "subscriptions" RESOURCE_GROUPS = "resourcegroups" +EVENTGRID_DOMAINS = "domains" EVENTGRID_TOPICS = "topics" WEBHOOK_DESTINATION = "webhook" EVENTHUB_DESTINATION = "eventhub" @@ -39,6 +42,10 @@ EVENTGRID_SCHEMA = "EventGridSchema" CLOUDEVENTV01_SCHEMA = "CloudEventV01Schema" CUSTOM_EVENT_SCHEMA = "CustomEventSchema" +CUSTOM_INPUT_SCHEMA = "CustomInputSchema" +GLOBAL = "global" + +# Deprecated event delivery schema value (starting 2018-09-15-preview) INPUT_EVENT_SCHEMA = "InputEventSchema" # Constants for the target field names of the mapping @@ -68,33 +75,15 @@ def cli_topic_create_or_update( input_schema=EVENTGRID_SCHEMA, input_mapping_fields=None, input_mapping_default_values=None): - if input_schema.lower() == EVENTGRID_SCHEMA.lower(): - input_schema = EVENTGRID_SCHEMA - elif input_schema.lower() == CUSTOM_EVENT_SCHEMA.lower(): - input_schema = CUSTOM_EVENT_SCHEMA - elif input_schema.lower() == CLOUDEVENTV01_SCHEMA.lower(): - input_schema = CLOUDEVENTV01_SCHEMA - else: - raise CLIError('The provided --input-schema is not valid. The supported values are: ' + - EVENTGRID_SCHEMA + ',' + CUSTOM_EVENT_SCHEMA + ',' + CLOUDEVENTV01_SCHEMA) - - if input_schema == EVENTGRID_SCHEMA or input_schema == CLOUDEVENTV01_SCHEMA: - # Ensure that custom input mappings are not specified - if input_mapping_fields is not None or input_mapping_default_values is not None: - raise CLIError('--input-mapping-default-values and --input-mapping-fields should be ' + - 'specified only when --input-schema is set to customeventschema.') - - if input_schema == CUSTOM_EVENT_SCHEMA: - # Ensure that custom input mappings are specified - if input_mapping_fields is None and input_mapping_default_values is None: - raise CLIError('Either --input-mapping-default-values or --input-mapping-fields must be ' + - 'specified when --input-schema is set to customeventschema.') - - input_schema_mapping = get_input_schema_mapping( + final_input_schema, input_schema_mapping = _get_input_schema_and_mapping( + input_schema, input_mapping_fields, input_mapping_default_values) - - topic_info = Topic(location, tags, input_schema, input_schema_mapping) + topic_info = Topic( + location=location, + tags=tags, + input_schema=final_input_schema, + input_schema_mapping=input_schema_mapping) async_topic_create = client.create_or_update( resource_group_name, @@ -104,12 +93,49 @@ def cli_topic_create_or_update( return created_topic -def cli_eventgrid_event_subscription_create( +def cli_domain_list( + client, + resource_group_name=None): + if resource_group_name: + return client.list_by_resource_group(resource_group_name) + + return client.list_by_subscription() + + +def cli_domain_create_or_update( + client, + resource_group_name, + domain_name, + location, + tags=None, + input_schema=EVENTGRID_SCHEMA, + input_mapping_fields=None, + input_mapping_default_values=None): + final_input_schema, input_schema_mapping = _get_input_schema_and_mapping( + input_schema, + input_mapping_fields, + input_mapping_default_values) + domain_info = Domain( + location=location, + tags=tags, + input_schema=final_input_schema, + input_schema_mapping=input_schema_mapping) + + async_domain_create = client.create_or_update( + resource_group_name, + domain_name, + domain_info) + created_domain = async_domain_create.result() + return created_domain + + +def cli_eventgrid_event_subscription_create( # pylint: disable=too-many-locals cmd, client, event_subscription_name, endpoint, resource_id=None, + source_resource_id=None, resource_group_name=None, topic_name=None, endpoint_type=WEBHOOK_DESTINATION, @@ -119,51 +145,75 @@ def cli_eventgrid_event_subscription_create( is_subject_case_sensitive=False, max_delivery_attempts=30, event_ttl=1440, - event_delivery_schema=INPUT_EVENT_SCHEMA, + event_delivery_schema=None, deadletter_endpoint=None, - labels=None): + labels=None, + expiration_date=None, + advanced_filter=None): + scope = _get_scope_for_event_subscription( + cli_ctx=cmd.cli_ctx, + source_resource_id=source_resource_id, + resource_id=resource_id, + topic_name=topic_name, + resource_group_name=resource_group_name) + # Construct RetryPolicy based on max_delivery_attempts and event_ttl max_delivery_attempts = int(max_delivery_attempts) event_ttl = int(event_ttl) _validate_retry_policy(max_delivery_attempts, event_ttl) - retry_policy = RetryPolicy(max_delivery_attempts, event_ttl) - - # Get event_delivery_schema in the right case - event_delivery_schema = _get_event_delivery_schema(event_delivery_schema) + retry_policy = RetryPolicy(max_delivery_attempts=max_delivery_attempts, event_time_to_live_in_minutes=event_ttl) destination = _get_endpoint_destination(endpoint_type, endpoint) event_subscription_filter = EventSubscriptionFilter( - subject_begins_with, - subject_ends_with, - included_event_types, - is_subject_case_sensitive) + subject_begins_with=subject_begins_with, + subject_ends_with=subject_ends_with, + included_event_types=included_event_types, + is_subject_case_sensitive=is_subject_case_sensitive, + advanced_filters=advanced_filter) deadletter_destination = None if deadletter_endpoint is not None: deadletter_destination = _get_deadletter_destination(deadletter_endpoint) - scope = _get_scope_for_event_subscription( - cmd.cli_ctx, - resource_id, - topic_name, - resource_group_name) + if expiration_date is not None: + expiration_date = parse(expiration_date) event_subscription_info = EventSubscription( - destination, - event_subscription_filter, - labels, - event_delivery_schema, - retry_policy, - deadletter_destination) + destination=destination, + filter=event_subscription_filter, + labels=labels, + event_delivery_schema=_get_event_delivery_schema(event_delivery_schema), + retry_policy=retry_policy, + expiration_time_utc=expiration_date, + dead_letter_destination=deadletter_destination) _warn_if_manual_handshake_needed(endpoint_type, endpoint) - async_event_subscription_create = client.create_or_update( + return client.create_or_update( scope, event_subscription_name, - event_subscription_info) - return async_event_subscription_create.result() + event_subscription_info).result() + + +def cli_eventgrid_event_subscription_delete( + cmd, + client, + event_subscription_name, + resource_id=None, + source_resource_id=None, + resource_group_name=None, + topic_name=None): + scope = _get_scope_for_event_subscription( + cli_ctx=cmd.cli_ctx, + source_resource_id=source_resource_id, + resource_id=resource_id, + topic_name=topic_name, + resource_group_name=resource_group_name) + async_event_subscription_delete = client.delete( + scope, + event_subscription_name) + return async_event_subscription_delete.result() def event_subscription_setter( @@ -171,10 +221,16 @@ def event_subscription_setter( client, parameters, event_subscription_name, + source_resource_id=None, resource_id=None, resource_group_name=None, topic_name=None): - scope = _get_scope_for_event_subscription(cmd.cli_ctx, resource_id, topic_name, resource_group_name) + scope = _get_scope_for_event_subscription( + cli_ctx=cmd.cli_ctx, + source_resource_id=source_resource_id, + resource_id=resource_id, + topic_name=topic_name, + resource_group_name=resource_group_name) async_event_subscription_update = client.update( scope, @@ -188,11 +244,18 @@ def cli_eventgrid_event_subscription_get( cmd, client, event_subscription_name, + source_resource_id=None, resource_id=None, resource_group_name=None, topic_name=None, include_full_endpoint_url=False): - scope = _get_scope_for_event_subscription(cmd.cli_ctx, resource_id, topic_name, resource_group_name) + scope = _get_scope_for_event_subscription( + cli_ctx=cmd.cli_ctx, + source_resource_id=source_resource_id, + resource_id=resource_id, + topic_name=topic_name, + resource_group_name=resource_group_name) + retrieved_event_subscription = client.get(scope, event_subscription_name) destination = retrieved_event_subscription.destination if include_full_endpoint_url and isinstance(destination, WebHookEventSubscriptionDestination): @@ -202,43 +265,36 @@ def cli_eventgrid_event_subscription_get( return retrieved_event_subscription -def cli_eventgrid_event_subscription_delete( - cmd, - client, - event_subscription_name, - resource_id=None, - resource_group_name=None, - topic_name=None): - scope = _get_scope_for_event_subscription(cmd.cli_ctx, resource_id, topic_name, resource_group_name) - return client.delete(scope, event_subscription_name) - - def cli_event_subscription_list( # pylint: disable=too-many-return-statements client, resource_id=None, - resource_group_name=None, + source_resource_id=None, topic_name=None, + resource_group_name=None, location=None, topic_type_name=None): - if resource_id: - # Resource ID is specified, we need to list only for the particular resource. - if resource_group_name is not None or topic_name is not None: - raise CLIError('Since --resource-id is specified, --topic-name and --resource-group-name should not ' + if source_resource_id is not None: + # If Source Resource ID is specified, we need to list event subscriptions for that particular resource. + # No other parameters must be specified + if (resource_group_name is not None or location is not None or + topic_type_name is not None or resource_id is not None): + raise CLIError('usage error: Since --source-resource-id is specified, none of the other parameters must' 'be specified.') - id_parts = parse_resource_id(resource_id) - rg_name = id_parts['resource_group'] - resource_name = id_parts['name'] - provider_namespace = id_parts['namespace'] - resource_type = id_parts['resource_type'] + return _list_event_subscriptions_by_resource_id(client, source_resource_id) - return client.list_by_resource( - rg_name, - provider_namespace, - resource_type, - resource_name) + if resource_id is not None: + # DEPRECATED + # If resource ID is specified, we need to list event subscriptions for that particular resource. + # No other parameters must be specified + if resource_group_name is not None or location is not None or topic_type_name is not None: + raise CLIError('usage error: Since --resource-id is specified, none of the other parameters must' + ' be specified.') + + return _list_event_subscriptions_by_resource_id(client, resource_id) if topic_name: + # DEPRECATED if resource_group_name is None: raise CLIError('Since --topic-name is specified, --resource-group-name must also be specified.') @@ -248,37 +304,37 @@ def cli_event_subscription_list( # pylint: disable=too-many-return-statements EVENTGRID_TOPICS, topic_name) - if topic_type_name: - if location: - if resource_group_name: - return client.list_regional_by_resource_group_for_topic_type( - resource_group_name, - location, - topic_type_name) + if location is None: + # Since resource-id was not specified, location must be specified: e.g. "westus2" or "global". If not error OUT. + raise CLIError('usage error: --source-resource-id ID | --location LOCATION' + ' [--resource-group-name RG] [--topic-type-name TOPIC_TYPE_NAME]') - return client.list_regional_by_subscription_for_topic_type( - location, - topic_type_name) + if topic_type_name is None: + # No topic-type is specified: return event subscriptions across all topic types for this location. + if location.lower() == GLOBAL.lower(): + if resource_group_name: + return client.list_global_by_resource_group(resource_group_name) + return client.list_global_by_subscription() if resource_group_name: - return client.list_global_by_resource_group_for_topic_type( - resource_group_name, - topic_type_name) - - return client.list_global_by_subscription_for_topic_type(topic_type_name) + return client.list_regional_by_resource_group(resource_group_name, location) + return client.list_regional_by_subscription(location) - if location: + # Topic type name is specified + if location.lower() == GLOBAL.lower(): + if not _is_topic_type_global_resource(topic_type_name): + raise CLIError('Invalid usage: Global cannot be specified for the location ' + 'as the specified topic type is a regional topic type with ' + 'regional event subscriptions. Specify a location value such ' + 'as westus. Global can be used only for global topic types: ' + 'Microsoft.Resources.Subscriptions and Microsoft.Resources.ResourceGroups.') if resource_group_name: - return client.list_regional_by_resource_group( - resource_group_name, - location) - - return client.list_regional_by_subscription(location) + return client.list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name) + return client.list_global_by_subscription_for_topic_type(topic_type_name) if resource_group_name: - return client.list_global_by_resource_group(resource_group_name) - - return client.list_global_by_subscription() + return client.list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name) + return client.list_regional_by_subscription_for_topic_type(location, topic_type_name) def _get_scope( @@ -314,21 +370,45 @@ def _get_scope( def _get_scope_for_event_subscription( cli_ctx, resource_id, + source_resource_id, topic_name, resource_group_name): - if resource_id: - # Resource ID is provided, use that as the scope for the event subscription. + if all([resource_id, source_resource_id]): + raise CLIError('usage error: specify either "--resource-id" or "--source-resource-id", not both.') + + if all([resource_id, topic_name]): + raise CLIError('usage error: specify either "--topic-name" or "--resource-id", not both.') + + if all([resource_id, resource_group_name]): + raise CLIError('usage error: specify either "--resource_group_name" or "--resource-id", not both.') + + if all([source_resource_id, topic_name]): + raise CLIError('usage error: specify either "--topic-name" or "--source-resource-id", not both.') + + if all([source_resource_id, resource_group_name]): + raise CLIError('usage error: specify either "--resource_group_name" or "--source-resource-id", not both.') + + if source_resource_id: + # Source Resource ID is provided, use that as the scope for the event subscription. + # This is the latest non-deprecated way of specifying the source resource. + scope = source_resource_id + elif resource_id: + # Deprecated scope = resource_id elif topic_name: - # Topic name is provided, use the topic and resource group to build a scope for the user topic + # DEPRECATED: Topic name is provided, use the topic and resource group to build a scope for the user topic if resource_group_name is None: raise CLIError("When --topic-name is specified, the --resource-group-name must also be specified.") scope = _get_scope(cli_ctx, resource_group_name, EVENTGRID_NAMESPACE, EVENTGRID_TOPICS, topic_name) elif resource_group_name: - # Event subscription to a resource group. + # DEPRECATED: Event subscription to a resource group. scope = _get_scope(cli_ctx, resource_group_name, RESOURCES_NAMESPACE, RESOURCE_GROUPS, resource_group_name) else: + # DEPRECATED + logger.warning('This default option uses Azure subscription as the source resource.' + ' This is deprecated and will be removed in a future release.' + ' Use `--source-resource-id /subscriptions/{subid}` instead.') scope = _get_scope(cli_ctx, None, RESOURCES_NAMESPACE, SUBSCRIPTIONS, get_subscription_id(cli_ctx)) return scope @@ -338,12 +418,17 @@ def event_subscription_getter( cmd, client, event_subscription_name, + source_resource_id=None, resource_id=None, resource_group_name=None, topic_name=None): - scope = _get_scope_for_event_subscription(cmd.cli_ctx, resource_id, topic_name, resource_group_name) - retrieved_event_subscription = client.get(scope, event_subscription_name) - return retrieved_event_subscription + scope = _get_scope_for_event_subscription( + cli_ctx=cmd.cli_ctx, + source_resource_id=source_resource_id, + resource_id=resource_id, + topic_name=topic_name, + resource_group_name=resource_group_name) + return client.get(scope, event_subscription_name) def get_input_schema_mapping( @@ -361,35 +446,37 @@ def get_input_schema_mapping( input_schema_mapping.event_type = JsonFieldWithDefault() input_schema_mapping.data_version = JsonFieldWithDefault() - for field_mapping_pair in input_mapping_fields: - field_mapping = field_mapping_pair.split("=") - target = field_mapping[0] - source = field_mapping[1] - - if target.lower() == ID.lower(): - input_schema_mapping.id.source_field = source - elif target.lower() == EVENTTIME.lower(): - input_schema_mapping.event_time.source_field = source - elif target.lower() == TOPIC.lower(): - input_schema_mapping.topic.source_field = source - elif target.lower() == SUBJECT.lower(): - input_schema_mapping.subject.source_field = source - elif target.lower() == DATAVERSION.lower(): - input_schema_mapping.data_version.source_field = source - elif target.lower() == EVENTTYPE.lower(): - input_schema_mapping.event_type.source_field = source - - for default_value_mapping_pair in input_mapping_default_values: - default_value_mapping = default_value_mapping_pair.split("=") - target = default_value_mapping[0] - source = default_value_mapping[1] - - if target.lower() == SUBJECT.lower(): - input_schema_mapping.subject.default_value = source - elif target.lower() == DATAVERSION.lower(): - input_schema_mapping.data_version.default_value = source - elif target.lower() == EVENTTYPE.lower(): - input_schema_mapping.event_type.default_value = source + if input_mapping_fields is not None: + for field_mapping_pair in input_mapping_fields: + field_mapping = field_mapping_pair.split("=") + target = field_mapping[0] + source = field_mapping[1] + + if target.lower() == ID.lower(): + input_schema_mapping.id.source_field = source + elif target.lower() == EVENTTIME.lower(): + input_schema_mapping.event_time.source_field = source + elif target.lower() == TOPIC.lower(): + input_schema_mapping.topic.source_field = source + elif target.lower() == SUBJECT.lower(): + input_schema_mapping.subject.source_field = source + elif target.lower() == DATAVERSION.lower(): + input_schema_mapping.data_version.source_field = source + elif target.lower() == EVENTTYPE.lower(): + input_schema_mapping.event_type.source_field = source + + if input_mapping_default_values is not None: + for default_value_mapping_pair in input_mapping_default_values: + default_value_mapping = default_value_mapping_pair.split("=") + target = default_value_mapping[0] + source = default_value_mapping[1] + + if target.lower() == SUBJECT.lower(): + input_schema_mapping.subject.default_value = source + elif target.lower() == DATAVERSION.lower(): + input_schema_mapping.data_version.default_value = source + elif target.lower() == EVENTTYPE.lower(): + input_schema_mapping.event_type.default_value = source return input_schema_mapping @@ -412,8 +499,8 @@ def update_event_subscription( event_delivery_schema = instance.event_delivery_schema retry_policy = instance.retry_policy - if event_delivery_schema is None: - event_delivery_schema = EVENTGRID_SCHEMA + if endpoint_type.lower() != WEBHOOK_DESTINATION.lower() and endpoint is None: + raise CLIError('Invalid usage: Since --endpoint-type is specified, a valid endpoint must also be specified.') if endpoint is not None: event_subscription_destination = _get_endpoint_destination(endpoint_type, endpoint) @@ -447,11 +534,11 @@ def update_event_subscription( def _get_endpoint_destination(endpoint_type, endpoint): if endpoint_type.lower() == WEBHOOK_DESTINATION.lower(): - destination = WebHookEventSubscriptionDestination(endpoint) + destination = WebHookEventSubscriptionDestination(endpoint_url=endpoint) elif endpoint_type.lower() == EVENTHUB_DESTINATION.lower(): - destination = EventHubEventSubscriptionDestination(endpoint) + destination = EventHubEventSubscriptionDestination(resource_id=endpoint) elif endpoint_type.lower() == HYBRIDCONNECTION_DESTINATION.lower(): - destination = HybridConnectionEventSubscriptionDestination(endpoint) + destination = HybridConnectionEventSubscriptionDestination(resource_id=endpoint) elif endpoint_type.lower() == STORAGEQUEUE_DESTINATION.lower(): destination = _get_storage_queue_destination(endpoint) @@ -472,7 +559,7 @@ def _get_storage_queue_destination(endpoint): 'storageAccounts/sa1/queueServices/default/queues/queueName') destination = StorageQueueEventSubscriptionDestination( - queue_items[0], queue_items[1]) + resource_id=queue_items[0], queue_name=queue_items[1]) return destination @@ -487,7 +574,7 @@ def _get_deadletter_destination(deadletter_endpoint): 'storageAccounts/sa1/blobServices/default/containers/containerName') deadletter_destination = StorageBlobDeadLetterDestination( - blob_items[0], blob_items[1]) + resource_id=blob_items[0], blob_container_name=blob_items[1]) return deadletter_destination @@ -501,15 +588,23 @@ def _validate_retry_policy(max_delivery_attempts, event_ttl): def _get_event_delivery_schema(event_delivery_schema): + if event_delivery_schema is None: + return None if event_delivery_schema.lower() == EVENTGRID_SCHEMA.lower(): event_delivery_schema = EVENTGRID_SCHEMA - elif event_delivery_schema.lower() == INPUT_EVENT_SCHEMA.lower(): - event_delivery_schema = INPUT_EVENT_SCHEMA + elif event_delivery_schema.lower() == CUSTOM_INPUT_SCHEMA.lower(): + event_delivery_schema = CUSTOM_INPUT_SCHEMA elif event_delivery_schema.lower() == CLOUDEVENTV01_SCHEMA.lower(): event_delivery_schema = CLOUDEVENTV01_SCHEMA + # NO LONGER SUPPORTED + elif event_delivery_schema.lower() == INPUT_EVENT_SCHEMA.lower(): + raise CLIError('usage error: InputEventSchema is not supported anymore. ' + '--event-delivery-schema supported values are' + ':' + EVENTGRID_SCHEMA + ',' + CUSTOM_INPUT_SCHEMA + + ',' + CLOUDEVENTV01_SCHEMA) else: - raise CLIError('The provided --event-delivery-schema is not valid. The supported ' - ' values are:' + EVENTGRID_SCHEMA + ',' + INPUT_EVENT_SCHEMA + + raise CLIError('usage error: --event-delivery-schema supported values are' + ' :' + EVENTGRID_SCHEMA + ',' + CUSTOM_INPUT_SCHEMA + ',' + CLOUDEVENTV01_SCHEMA) return event_delivery_schema @@ -523,10 +618,130 @@ def _warn_if_manual_handshake_needed(endpoint_type, endpoint): if endpoint_type.lower() == WEBHOOK_DESTINATION.lower() and \ "azure-automation" not in endpoint.lower() and \ "eventgridextension" not in endpoint.lower() and \ - "logic.azure.com" not in endpoint.lower() and \ - "hookbin" not in endpoint.lower(): + "logic.azure" not in endpoint.lower(): logger.warning("If the provided endpoint doesn't support subscription validation " + "handshake, navigate to the validation URL that you receive in the " + "subscription validation event, in order to complete the event " + "subscription creation or update. For more details, " + "please visit http://aka.ms/esvalidation") + + +def _get_input_schema_and_mapping( + input_schema=EVENTGRID_SCHEMA, + input_mapping_fields=None, + input_mapping_default_values=None): + if input_schema.lower() == EVENTGRID_SCHEMA.lower(): + input_schema = EVENTGRID_SCHEMA + elif input_schema.lower() == CUSTOM_EVENT_SCHEMA.lower(): + input_schema = CUSTOM_EVENT_SCHEMA + elif input_schema.lower() == CLOUDEVENTV01_SCHEMA.lower(): + input_schema = CLOUDEVENTV01_SCHEMA + else: + raise CLIError('The provided --input-schema is not valid. The supported values are: ' + + EVENTGRID_SCHEMA + ',' + CUSTOM_EVENT_SCHEMA + ',' + CLOUDEVENTV01_SCHEMA) + + if input_schema in (EVENTGRID_SCHEMA, CLOUDEVENTV01_SCHEMA): + # Ensure that custom input mappings are not specified + if input_mapping_fields is not None or input_mapping_default_values is not None: + raise CLIError('--input-mapping-default-values and --input-mapping-fields should be ' + + 'specified only when --input-schema is set to customeventschema.') + + if input_schema == CUSTOM_EVENT_SCHEMA: + # Ensure that custom input mappings are specified + if input_mapping_fields is None and input_mapping_default_values is None: + raise CLIError('Either --input-mapping-default-values or --input-mapping-fields must be ' + + 'specified when --input-schema is set to customeventschema.') + + input_schema_mapping = get_input_schema_mapping( + input_mapping_fields, + input_mapping_default_values) + + return input_schema, input_schema_mapping + + +def _list_event_subscriptions_by_resource_id(client, resource_id): + # parse_resource_id doesn't handle resource_ids for Azure subscriptions and RGs + # so, first try to look for those two patterns. + if resource_id is not None: + id_parts = list(filter(None, resource_id.split('/'))) + if len(id_parts) < 5: + # Azure subscriptions or Resource group + if id_parts[0].lower() != "subscriptions": + raise CLIError('The specified value for resource-id is not in the' + ' expected format. It should start with /subscriptions.') + + subscription_id = id_parts[1] + _validate_subscription_id_matches_default_subscription_id( + default_subscription_id=client.config.subscription_id, + provided_subscription_id=subscription_id) + + if len(id_parts) == 2: + return client.list_global_by_subscription_for_topic_type("Microsoft.Resources.Subscriptions") + + if len(id_parts) == 4 and id_parts[2].lower() == "resourcegroups": + resource_group_name = id_parts[3] + if resource_group_name is None: + raise CLIError('The specified value for resource-id is not' + ' in the expected format. A valid value for' + ' resource group must be provided.') + return client.list_global_by_resource_group_for_topic_type( + resource_group_name, + "Microsoft.Resources.ResourceGroups") + + id_parts = parse_resource_id(resource_id) + subscription_id = id_parts.get('subscription') + _validate_subscription_id_matches_default_subscription_id( + default_subscription_id=client.config.subscription_id, + provided_subscription_id=subscription_id) + + rg_name = id_parts.get('resource_group') + resource_name = id_parts.get('name') + namespace = id_parts.get('namespace') + resource_type = id_parts.get('type') + + if (subscription_id is None or rg_name is None or resource_name is None or + namespace is None or resource_type is None): + raise CLIError('The specified value for resource-id is not' + ' in the expected format.') + + # If this is for a domain topic, invoke the appropriate operation + if (namespace.lower() == EVENTGRID_NAMESPACE.lower() and resource_type.lower() == EVENTGRID_DOMAINS.lower()): + child_resource_type = id_parts.get('child_type_1') + child_resource_name = id_parts.get('child_name_1') + + if (child_resource_type is not None and child_resource_type.lower() == EVENTGRID_TOPICS.lower() and + child_resource_name is not None): + return client.list_by_domain_topic(rg_name, resource_name, child_resource_name) + + # Not a domain topic, invoke the standard list_by_resource + return client.list_by_resource( + rg_name, + namespace, + resource_type, + resource_name) + + +def _is_topic_type_global_resource(topic_type_name): + # TODO: Add here if any other global topic types get added in the future. + TOPIC_TYPE_AZURE_SUBSCRIPTIONS = "Microsoft.Resources.Subscriptions" + TOPIC_TYPE_AZURE_RESOURCE_GROUP = "Microsoft.Resources.ResourceGroups" + TOPIC_TYPE_MAPS_ACCOUNTS = "Microsoft.Maps.Accounts" + + if (topic_type_name.lower() == TOPIC_TYPE_AZURE_SUBSCRIPTIONS.lower() or + topic_type_name.lower() == TOPIC_TYPE_MAPS_ACCOUNTS or + topic_type_name.lower() == TOPIC_TYPE_AZURE_RESOURCE_GROUP.lower()): + return True + + return False + + +def _validate_subscription_id_matches_default_subscription_id( + default_subscription_id, + provided_subscription_id): + # The CLI/SDK infrastructure doesn't support overriding the subscription ID. + # Hence, we validate that the provided subscription ID is the same as the default + # configured subscription. + if provided_subscription_id.lower() != default_subscription_id.lower(): + raise CLIError('The subscription ID in the specified resource-id' + ' does not match the default subscription ID. To set the default subscription ID,' + ' use az account set ID_OR_NAME, or use the global argument --subscription ') diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/event_grid_management_client.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/event_grid_management_client.py index ff647ec69be..b0378dea247 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/event_grid_management_client.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/event_grid_management_client.py @@ -9,10 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION +from .operations.domains_operations import DomainsOperations +from .operations.domain_topics_operations import DomainTopicsOperations from .operations.event_subscriptions_operations import EventSubscriptionsOperations from .operations.operations import Operations from .operations.topics_operations import TopicsOperations @@ -47,27 +49,31 @@ def __init__( super(EventGridManagementClientConfiguration, self).__init__(base_url) - self.add_user_agent('azext_eventgrid-mgmt-eventgrid/{}'.format(VERSION)) + self.add_user_agent('azure-mgmt-eventgrid/{}'.format(VERSION)) self.add_user_agent('Azure-SDK-For-Python') self.credentials = credentials self.subscription_id = subscription_id -class EventGridManagementClient(object): +class EventGridManagementClient(SDKClient): """Azure EventGrid Management Client :ivar config: Configuration for client. :vartype config: EventGridManagementClientConfiguration + :ivar domains: Domains operations + :vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations + :ivar domain_topics: DomainTopics operations + :vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations :ivar event_subscriptions: EventSubscriptions operations - :vartype event_subscriptions: azext_eventgrid.mgmt.eventgrid.operations.EventSubscriptionsOperations + :vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations :ivar operations: Operations operations - :vartype operations: azext_eventgrid.mgmt.eventgrid.operations.Operations + :vartype operations: azure.mgmt.eventgrid.operations.Operations :ivar topics: Topics operations - :vartype topics: azext_eventgrid.mgmt.eventgrid.operations.TopicsOperations + :vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations :ivar topic_types: TopicTypes operations - :vartype topic_types: azext_eventgrid.mgmt.eventgrid.operations.TopicTypesOperations + :vartype topic_types: azure.mgmt.eventgrid.operations.TopicTypesOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -83,13 +89,17 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = EventGridManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(EventGridManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-05-01-preview' + self.api_version = '2018-09-15-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.domains = DomainsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.domain_topics = DomainTopicsOperations( + self._client, self.config, self._serialize, self._deserialize) self.event_subscriptions = EventSubscriptionsOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/__init__.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/__init__.py index 6d5522b310b..9a4da95511c 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/__init__.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/__init__.py @@ -9,53 +9,139 @@ # regenerated. # -------------------------------------------------------------------------- -from .event_subscription_destination import EventSubscriptionDestination -from .event_subscription_filter import EventSubscriptionFilter -from .retry_policy import RetryPolicy -from .dead_letter_destination import DeadLetterDestination -from .resource import Resource -from .storage_blob_dead_letter_destination import StorageBlobDeadLetterDestination -from .web_hook_event_subscription_destination import WebHookEventSubscriptionDestination -from .event_hub_event_subscription_destination import EventHubEventSubscriptionDestination -from .storage_queue_event_subscription_destination import StorageQueueEventSubscriptionDestination -from .hybrid_connection_event_subscription_destination import HybridConnectionEventSubscriptionDestination -from .event_subscription import EventSubscription -from .event_subscription_update_parameters import EventSubscriptionUpdateParameters -from .event_subscription_full_url import EventSubscriptionFullUrl -from .operation_info import OperationInfo -from .operation import Operation -from .input_schema_mapping import InputSchemaMapping -from .json_field import JsonField -from .json_field_with_default import JsonFieldWithDefault -from .json_input_schema_mapping import JsonInputSchemaMapping -from .tracked_resource import TrackedResource -from .topic import Topic -from .topic_update_parameters import TopicUpdateParameters -from .topic_shared_access_keys import TopicSharedAccessKeys -from .topic_regenerate_key_request import TopicRegenerateKeyRequest -from .event_type import EventType -from .topic_type_info import TopicTypeInfo +try: + from .input_schema_mapping_py3 import InputSchemaMapping + from .domain_py3 import Domain + from .domain_update_parameters_py3 import DomainUpdateParameters + from .domain_shared_access_keys_py3 import DomainSharedAccessKeys + from .domain_regenerate_key_request_py3 import DomainRegenerateKeyRequest + from .domain_topic_py3 import DomainTopic + from .event_subscription_destination_py3 import EventSubscriptionDestination + from .advanced_filter_py3 import AdvancedFilter + from .event_subscription_filter_py3 import EventSubscriptionFilter + from .retry_policy_py3 import RetryPolicy + from .dead_letter_destination_py3 import DeadLetterDestination + from .resource_py3 import Resource + from .number_in_advanced_filter_py3 import NumberInAdvancedFilter + from .storage_blob_dead_letter_destination_py3 import StorageBlobDeadLetterDestination + from .number_not_in_advanced_filter_py3 import NumberNotInAdvancedFilter + from .number_less_than_advanced_filter_py3 import NumberLessThanAdvancedFilter + from .number_greater_than_advanced_filter_py3 import NumberGreaterThanAdvancedFilter + from .number_less_than_or_equals_advanced_filter_py3 import NumberLessThanOrEqualsAdvancedFilter + from .number_greater_than_or_equals_advanced_filter_py3 import NumberGreaterThanOrEqualsAdvancedFilter + from .bool_equals_advanced_filter_py3 import BoolEqualsAdvancedFilter + from .string_in_advanced_filter_py3 import StringInAdvancedFilter + from .string_not_in_advanced_filter_py3 import StringNotInAdvancedFilter + from .string_begins_with_advanced_filter_py3 import StringBeginsWithAdvancedFilter + from .string_ends_with_advanced_filter_py3 import StringEndsWithAdvancedFilter + from .string_contains_advanced_filter_py3 import StringContainsAdvancedFilter + from .web_hook_event_subscription_destination_py3 import WebHookEventSubscriptionDestination + from .event_hub_event_subscription_destination_py3 import EventHubEventSubscriptionDestination + from .storage_queue_event_subscription_destination_py3 import StorageQueueEventSubscriptionDestination + from .hybrid_connection_event_subscription_destination_py3 import HybridConnectionEventSubscriptionDestination + from .event_subscription_py3 import EventSubscription + from .event_subscription_update_parameters_py3 import EventSubscriptionUpdateParameters + from .event_subscription_full_url_py3 import EventSubscriptionFullUrl + from .operation_info_py3 import OperationInfo + from .operation_py3 import Operation + from .json_field_py3 import JsonField + from .json_field_with_default_py3 import JsonFieldWithDefault + from .json_input_schema_mapping_py3 import JsonInputSchemaMapping + from .tracked_resource_py3 import TrackedResource + from .topic_py3 import Topic + from .topic_update_parameters_py3 import TopicUpdateParameters + from .topic_shared_access_keys_py3 import TopicSharedAccessKeys + from .topic_regenerate_key_request_py3 import TopicRegenerateKeyRequest + from .event_type_py3 import EventType + from .topic_type_info_py3 import TopicTypeInfo +except (SyntaxError, ImportError): + from .input_schema_mapping import InputSchemaMapping + from .domain import Domain + from .domain_update_parameters import DomainUpdateParameters + from .domain_shared_access_keys import DomainSharedAccessKeys + from .domain_regenerate_key_request import DomainRegenerateKeyRequest + from .domain_topic import DomainTopic + from .event_subscription_destination import EventSubscriptionDestination + from .advanced_filter import AdvancedFilter + from .event_subscription_filter import EventSubscriptionFilter + from .retry_policy import RetryPolicy + from .dead_letter_destination import DeadLetterDestination + from .resource import Resource + from .number_in_advanced_filter import NumberInAdvancedFilter + from .storage_blob_dead_letter_destination import StorageBlobDeadLetterDestination + from .number_not_in_advanced_filter import NumberNotInAdvancedFilter + from .number_less_than_advanced_filter import NumberLessThanAdvancedFilter + from .number_greater_than_advanced_filter import NumberGreaterThanAdvancedFilter + from .number_less_than_or_equals_advanced_filter import NumberLessThanOrEqualsAdvancedFilter + from .number_greater_than_or_equals_advanced_filter import NumberGreaterThanOrEqualsAdvancedFilter + from .bool_equals_advanced_filter import BoolEqualsAdvancedFilter + from .string_in_advanced_filter import StringInAdvancedFilter + from .string_not_in_advanced_filter import StringNotInAdvancedFilter + from .string_begins_with_advanced_filter import StringBeginsWithAdvancedFilter + from .string_ends_with_advanced_filter import StringEndsWithAdvancedFilter + from .string_contains_advanced_filter import StringContainsAdvancedFilter + from .web_hook_event_subscription_destination import WebHookEventSubscriptionDestination + from .event_hub_event_subscription_destination import EventHubEventSubscriptionDestination + from .storage_queue_event_subscription_destination import StorageQueueEventSubscriptionDestination + from .hybrid_connection_event_subscription_destination import HybridConnectionEventSubscriptionDestination + from .event_subscription import EventSubscription + from .event_subscription_update_parameters import EventSubscriptionUpdateParameters + from .event_subscription_full_url import EventSubscriptionFullUrl + from .operation_info import OperationInfo + from .operation import Operation + from .json_field import JsonField + from .json_field_with_default import JsonFieldWithDefault + from .json_input_schema_mapping import JsonInputSchemaMapping + from .tracked_resource import TrackedResource + from .topic import Topic + from .topic_update_parameters import TopicUpdateParameters + from .topic_shared_access_keys import TopicSharedAccessKeys + from .topic_regenerate_key_request import TopicRegenerateKeyRequest + from .event_type import EventType + from .topic_type_info import TopicTypeInfo +from .domain_paged import DomainPaged +from .domain_topic_paged import DomainTopicPaged from .event_subscription_paged import EventSubscriptionPaged from .operation_paged import OperationPaged from .topic_paged import TopicPaged from .event_type_paged import EventTypePaged from .topic_type_info_paged import TopicTypeInfoPaged from .event_grid_management_client_enums import ( + DomainProvisioningState, + InputSchema, EventSubscriptionProvisioningState, EventDeliverySchema, TopicProvisioningState, - InputSchema, ResourceRegionType, TopicTypeProvisioningState, ) __all__ = [ + 'InputSchemaMapping', + 'Domain', + 'DomainUpdateParameters', + 'DomainSharedAccessKeys', + 'DomainRegenerateKeyRequest', + 'DomainTopic', 'EventSubscriptionDestination', + 'AdvancedFilter', 'EventSubscriptionFilter', 'RetryPolicy', 'DeadLetterDestination', 'Resource', + 'NumberInAdvancedFilter', 'StorageBlobDeadLetterDestination', + 'NumberNotInAdvancedFilter', + 'NumberLessThanAdvancedFilter', + 'NumberGreaterThanAdvancedFilter', + 'NumberLessThanOrEqualsAdvancedFilter', + 'NumberGreaterThanOrEqualsAdvancedFilter', + 'BoolEqualsAdvancedFilter', + 'StringInAdvancedFilter', + 'StringNotInAdvancedFilter', + 'StringBeginsWithAdvancedFilter', + 'StringEndsWithAdvancedFilter', + 'StringContainsAdvancedFilter', 'WebHookEventSubscriptionDestination', 'EventHubEventSubscriptionDestination', 'StorageQueueEventSubscriptionDestination', @@ -65,7 +151,6 @@ 'EventSubscriptionFullUrl', 'OperationInfo', 'Operation', - 'InputSchemaMapping', 'JsonField', 'JsonFieldWithDefault', 'JsonInputSchemaMapping', @@ -76,15 +161,18 @@ 'TopicRegenerateKeyRequest', 'EventType', 'TopicTypeInfo', + 'DomainPaged', + 'DomainTopicPaged', 'EventSubscriptionPaged', 'OperationPaged', 'TopicPaged', 'EventTypePaged', 'TopicTypeInfoPaged', + 'DomainProvisioningState', + 'InputSchema', 'EventSubscriptionProvisioningState', 'EventDeliverySchema', 'TopicProvisioningState', - 'InputSchema', 'ResourceRegionType', 'TopicTypeProvisioningState', ] diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter.py new file mode 100644 index 00000000000..0b166b4a101 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AdvancedFilter(Model): + """Represents an advanced filter that can be used to filter events based on + various event envelope/data fields. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NumberInAdvancedFilter, NumberNotInAdvancedFilter, + NumberLessThanAdvancedFilter, NumberGreaterThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, BoolEqualsAdvancedFilter, + StringInAdvancedFilter, StringNotInAdvancedFilter, + StringBeginsWithAdvancedFilter, StringEndsWithAdvancedFilter, + StringContainsAdvancedFilter + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + } + + _subtype_map = { + 'operator_type': {'NumberIn': 'NumberInAdvancedFilter', 'NumberNotIn': 'NumberNotInAdvancedFilter', 'NumberLessThan': 'NumberLessThanAdvancedFilter', 'NumberGreaterThan': 'NumberGreaterThanAdvancedFilter', 'NumberLessThanOrEquals': 'NumberLessThanOrEqualsAdvancedFilter', 'NumberGreaterThanOrEquals': 'NumberGreaterThanOrEqualsAdvancedFilter', 'BoolEquals': 'BoolEqualsAdvancedFilter', 'StringIn': 'StringInAdvancedFilter', 'StringNotIn': 'StringNotInAdvancedFilter', 'StringBeginsWith': 'StringBeginsWithAdvancedFilter', 'StringEndsWith': 'StringEndsWithAdvancedFilter', 'StringContains': 'StringContainsAdvancedFilter'} + } + + def __init__(self, **kwargs): + super(AdvancedFilter, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.operator_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter_py3.py new file mode 100644 index 00000000000..1330bddfa4f --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/advanced_filter_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AdvancedFilter(Model): + """Represents an advanced filter that can be used to filter events based on + various event envelope/data fields. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NumberInAdvancedFilter, NumberNotInAdvancedFilter, + NumberLessThanAdvancedFilter, NumberGreaterThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, BoolEqualsAdvancedFilter, + StringInAdvancedFilter, StringNotInAdvancedFilter, + StringBeginsWithAdvancedFilter, StringEndsWithAdvancedFilter, + StringContainsAdvancedFilter + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + } + + _subtype_map = { + 'operator_type': {'NumberIn': 'NumberInAdvancedFilter', 'NumberNotIn': 'NumberNotInAdvancedFilter', 'NumberLessThan': 'NumberLessThanAdvancedFilter', 'NumberGreaterThan': 'NumberGreaterThanAdvancedFilter', 'NumberLessThanOrEquals': 'NumberLessThanOrEqualsAdvancedFilter', 'NumberGreaterThanOrEquals': 'NumberGreaterThanOrEqualsAdvancedFilter', 'BoolEquals': 'BoolEqualsAdvancedFilter', 'StringIn': 'StringInAdvancedFilter', 'StringNotIn': 'StringNotInAdvancedFilter', 'StringBeginsWith': 'StringBeginsWithAdvancedFilter', 'StringEndsWith': 'StringEndsWithAdvancedFilter', 'StringContains': 'StringContainsAdvancedFilter'} + } + + def __init__(self, *, key: str=None, **kwargs) -> None: + super(AdvancedFilter, self).__init__(**kwargs) + self.key = key + self.operator_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter.py new file mode 100644 index 00000000000..ac55b009150 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class BoolEqualsAdvancedFilter(AdvancedFilter): + """BoolEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: bool + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(BoolEqualsAdvancedFilter, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.operator_type = 'BoolEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter_py3.py new file mode 100644 index 00000000000..c648cc1db73 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/bool_equals_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class BoolEqualsAdvancedFilter(AdvancedFilter): + """BoolEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: bool + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'}, + } + + def __init__(self, *, key: str=None, value: bool=None, **kwargs) -> None: + super(BoolEqualsAdvancedFilter, self).__init__(key=key, **kwargs) + self.value = value + self.operator_type = 'BoolEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination.py index 99944ac2efc..b91be0d5288 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination.py @@ -22,7 +22,9 @@ class DeadLetterDestination(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: StorageBlobDeadLetterDestination - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str """ @@ -38,6 +40,6 @@ class DeadLetterDestination(Model): 'endpoint_type': {'StorageBlob': 'StorageBlobDeadLetterDestination'} } - def __init__(self): - super(DeadLetterDestination, self).__init__() + def __init__(self, **kwargs): + super(DeadLetterDestination, self).__init__(**kwargs) self.endpoint_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination_py3.py new file mode 100644 index 00000000000..f38c332f514 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/dead_letter_destination_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DeadLetterDestination(Model): + """Information about the dead letter destination for an event subscription. To + configure a deadletter destination, do not directly instantiate an object + of this class. Instead, instantiate an object of a derived class. + Currently, StorageBlobDeadLetterDestination is the only class that derives + from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: StorageBlobDeadLetterDestination + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + } + + _subtype_map = { + 'endpoint_type': {'StorageBlob': 'StorageBlobDeadLetterDestination'} + } + + def __init__(self, **kwargs) -> None: + super(DeadLetterDestination, self).__init__(**kwargs) + self.endpoint_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain.py new file mode 100644 index 00000000000..868394ac75f --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class Domain(TrackedResource): + """EventGrid Domain. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param location: Required. Location of the resource + :type location: str + :param tags: Tags of the resource + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state of the domain. Possible + values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', + 'Canceled', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.eventgrid.models.DomainProvisioningState + :ivar endpoint: Endpoint for the domain. + :vartype endpoint: str + :param input_schema: This determines the format that Event Grid should + expect for incoming events published to the domain. Possible values + include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema' + :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema + :param input_schema_mapping: Information about the InputSchemaMapping + which specified the info about mapping event payload. + :type input_schema_mapping: + ~azure.mgmt.eventgrid.models.InputSchemaMapping + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'endpoint': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'input_schema': {'key': 'properties.inputSchema', 'type': 'str'}, + 'input_schema_mapping': {'key': 'properties.inputSchemaMapping', 'type': 'InputSchemaMapping'}, + } + + def __init__(self, **kwargs): + super(Domain, self).__init__(**kwargs) + self.provisioning_state = None + self.endpoint = None + self.input_schema = kwargs.get('input_schema', None) + self.input_schema_mapping = kwargs.get('input_schema_mapping', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_paged.py new file mode 100644 index 00000000000..ed7fa29c578 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DomainPaged(Paged): + """ + A paging container for iterating over a list of :class:`Domain ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Domain]'} + } + + def __init__(self, *args, **kwargs): + + super(DomainPaged, self).__init__(*args, **kwargs) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_py3.py new file mode 100644 index 00000000000..3ad4d5ed9b6 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_py3.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource_py3 import TrackedResource + + +class Domain(TrackedResource): + """EventGrid Domain. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param location: Required. Location of the resource + :type location: str + :param tags: Tags of the resource + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state of the domain. Possible + values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', + 'Canceled', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.eventgrid.models.DomainProvisioningState + :ivar endpoint: Endpoint for the domain. + :vartype endpoint: str + :param input_schema: This determines the format that Event Grid should + expect for incoming events published to the domain. Possible values + include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema' + :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema + :param input_schema_mapping: Information about the InputSchemaMapping + which specified the info about mapping event payload. + :type input_schema_mapping: + ~azure.mgmt.eventgrid.models.InputSchemaMapping + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'endpoint': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'input_schema': {'key': 'properties.inputSchema', 'type': 'str'}, + 'input_schema_mapping': {'key': 'properties.inputSchemaMapping', 'type': 'InputSchemaMapping'}, + } + + def __init__(self, *, location: str, tags=None, input_schema=None, input_schema_mapping=None, **kwargs) -> None: + super(Domain, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.endpoint = None + self.input_schema = input_schema + self.input_schema_mapping = input_schema_mapping diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request.py new file mode 100644 index 00000000000..cacf0e74fb2 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainRegenerateKeyRequest(Model): + """Domain regenerate share access key request. + + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. Key name to regenerate key1 or key2 + :type key_name: str + """ + + _validation = { + 'key_name': {'required': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DomainRegenerateKeyRequest, self).__init__(**kwargs) + self.key_name = kwargs.get('key_name', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request_py3.py new file mode 100644 index 00000000000..9d024c87c0c --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_regenerate_key_request_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainRegenerateKeyRequest(Model): + """Domain regenerate share access key request. + + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. Key name to regenerate key1 or key2 + :type key_name: str + """ + + _validation = { + 'key_name': {'required': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + } + + def __init__(self, *, key_name: str, **kwargs) -> None: + super(DomainRegenerateKeyRequest, self).__init__(**kwargs) + self.key_name = key_name diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys.py new file mode 100644 index 00000000000..d04032da498 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainSharedAccessKeys(Model): + """Shared access keys of the Domain. + + :param key1: Shared access key1 for the domain. + :type key1: str + :param key2: Shared access key2 for the domain. + :type key2: str + """ + + _attribute_map = { + 'key1': {'key': 'key1', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DomainSharedAccessKeys, self).__init__(**kwargs) + self.key1 = kwargs.get('key1', None) + self.key2 = kwargs.get('key2', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys_py3.py new file mode 100644 index 00000000000..2c13d4ab036 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_shared_access_keys_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainSharedAccessKeys(Model): + """Shared access keys of the Domain. + + :param key1: Shared access key1 for the domain. + :type key1: str + :param key2: Shared access key2 for the domain. + :type key2: str + """ + + _attribute_map = { + 'key1': {'key': 'key1', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + } + + def __init__(self, *, key1: str=None, key2: str=None, **kwargs) -> None: + super(DomainSharedAccessKeys, self).__init__(**kwargs) + self.key1 = key1 + self.key2 = key2 diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic.py new file mode 100644 index 00000000000..df6ae9d607d --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class DomainTopic(Resource): + """Domain Topic. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DomainTopic, self).__init__(**kwargs) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_paged.py new file mode 100644 index 00000000000..b5f599064d3 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DomainTopicPaged(Paged): + """ + A paging container for iterating over a list of :class:`DomainTopic ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DomainTopic]'} + } + + def __init__(self, *args, **kwargs): + + super(DomainTopicPaged, self).__init__(*args, **kwargs) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_py3.py new file mode 100644 index 00000000000..04e31b7eae8 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_topic_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class DomainTopic(Resource): + """Domain Topic. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DomainTopic, self).__init__(**kwargs) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters.py new file mode 100644 index 00000000000..1bc4fca2bc3 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainUpdateParameters(Model): + """Properties of the Domain update. + + :param tags: Tags of the domains resource + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(DomainUpdateParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters_py3.py new file mode 100644 index 00000000000..f876c6e4adb --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/domain_update_parameters_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DomainUpdateParameters(Model): + """Properties of the Domain update. + + :param tags: Tags of the domains resource + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(DomainUpdateParameters, self).__init__(**kwargs) + self.tags = tags diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_grid_management_client_enums.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_grid_management_client_enums.py index 475673ac48f..2c766d90cdb 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_grid_management_client_enums.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_grid_management_client_enums.py @@ -12,7 +12,7 @@ from enum import Enum -class EventSubscriptionProvisioningState(Enum): +class DomainProvisioningState(str, Enum): creating = "Creating" updating = "Updating" @@ -20,17 +20,16 @@ class EventSubscriptionProvisioningState(Enum): succeeded = "Succeeded" canceled = "Canceled" failed = "Failed" - awaiting_manual_action = "AwaitingManualAction" -class EventDeliverySchema(Enum): +class InputSchema(str, Enum): event_grid_schema = "EventGridSchema" - input_event_schema = "InputEventSchema" + custom_event_schema = "CustomEventSchema" cloud_event_v01_schema = "CloudEventV01Schema" -class TopicProvisioningState(Enum): +class EventSubscriptionProvisioningState(str, Enum): creating = "Creating" updating = "Updating" @@ -38,22 +37,33 @@ class TopicProvisioningState(Enum): succeeded = "Succeeded" canceled = "Canceled" failed = "Failed" + awaiting_manual_action = "AwaitingManualAction" -class InputSchema(Enum): +class EventDeliverySchema(str, Enum): event_grid_schema = "EventGridSchema" - custom_event_schema = "CustomEventSchema" cloud_event_v01_schema = "CloudEventV01Schema" + custom_input_schema = "CustomInputSchema" + + +class TopicProvisioningState(str, Enum): + + creating = "Creating" + updating = "Updating" + deleting = "Deleting" + succeeded = "Succeeded" + canceled = "Canceled" + failed = "Failed" -class ResourceRegionType(Enum): +class ResourceRegionType(str, Enum): regional_resource = "RegionalResource" global_resource = "GlobalResource" -class TopicTypeProvisioningState(Enum): +class TopicTypeProvisioningState(str, Enum): creating = "Creating" updating = "Updating" diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination.py index c8d1c03e447..57252109fa5 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination.py @@ -15,7 +15,9 @@ class EventHubEventSubscriptionDestination(EventSubscriptionDestination): """Information about the event hub destination for an event subscription. - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str :param resource_id: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription. @@ -31,7 +33,7 @@ class EventHubEventSubscriptionDestination(EventSubscriptionDestination): 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, } - def __init__(self, resource_id=None): - super(EventHubEventSubscriptionDestination, self).__init__() - self.resource_id = resource_id + def __init__(self, **kwargs): + super(EventHubEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) self.endpoint_type = 'EventHub' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination_py3.py new file mode 100644 index 00000000000..3e86991a137 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_hub_event_subscription_destination_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .event_subscription_destination_py3 import EventSubscriptionDestination + + +class EventHubEventSubscriptionDestination(EventSubscriptionDestination): + """Information about the event hub destination for an event subscription. + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + :param resource_id: The Azure Resource Id that represents the endpoint of + an Event Hub destination of an event subscription. + :type resource_id: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, + } + + def __init__(self, *, resource_id: str=None, **kwargs) -> None: + super(EventHubEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.endpoint_type = 'EventHub' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription.py index a9e58d8b874..fb5f0a3419c 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription.py @@ -30,28 +30,29 @@ class EventSubscription(Resource): Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction' :vartype provisioning_state: str or - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionProvisioningState + ~azure.mgmt.eventgrid.models.EventSubscriptionProvisioningState :param destination: Information about the destination where events have to be delivered for the event subscription. :type destination: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionDestination + ~azure.mgmt.eventgrid.models.EventSubscriptionDestination :param filter: Information about the filter for the event subscription. - :type filter: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionFilter + :type filter: ~azure.mgmt.eventgrid.models.EventSubscriptionFilter :param labels: List of user defined labels. :type labels: list[str] + :param expiration_time_utc: Expiration time of the event subscription. + :type expiration_time_utc: datetime :param event_delivery_schema: The event delivery schema for the event subscription. Possible values include: 'EventGridSchema', - 'InputEventSchema', 'CloudEventV01Schema' + 'CloudEventV01Schema', 'CustomInputSchema' :type event_delivery_schema: str or - ~azext_eventgrid.mgmt.eventgrid.models.EventDeliverySchema + ~azure.mgmt.eventgrid.models.EventDeliverySchema :param retry_policy: The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events. - :type retry_policy: ~azext_eventgrid.mgmt.eventgrid.models.RetryPolicy + :type retry_policy: ~azure.mgmt.eventgrid.models.RetryPolicy :param dead_letter_destination: The DeadLetter destination of the event subscription. :type dead_letter_destination: - ~azext_eventgrid.mgmt.eventgrid.models.DeadLetterDestination + ~azure.mgmt.eventgrid.models.DeadLetterDestination """ _validation = { @@ -71,18 +72,20 @@ class EventSubscription(Resource): 'destination': {'key': 'properties.destination', 'type': 'EventSubscriptionDestination'}, 'filter': {'key': 'properties.filter', 'type': 'EventSubscriptionFilter'}, 'labels': {'key': 'properties.labels', 'type': '[str]'}, + 'expiration_time_utc': {'key': 'properties.expirationTimeUtc', 'type': 'iso-8601'}, 'event_delivery_schema': {'key': 'properties.eventDeliverySchema', 'type': 'str'}, 'retry_policy': {'key': 'properties.retryPolicy', 'type': 'RetryPolicy'}, 'dead_letter_destination': {'key': 'properties.deadLetterDestination', 'type': 'DeadLetterDestination'}, } - def __init__(self, destination=None, filter=None, labels=None, event_delivery_schema=None, retry_policy=None, dead_letter_destination=None): - super(EventSubscription, self).__init__() + def __init__(self, **kwargs): + super(EventSubscription, self).__init__(**kwargs) self.topic = None self.provisioning_state = None - self.destination = destination - self.filter = filter - self.labels = labels - self.event_delivery_schema = event_delivery_schema - self.retry_policy = retry_policy - self.dead_letter_destination = dead_letter_destination + self.destination = kwargs.get('destination', None) + self.filter = kwargs.get('filter', None) + self.labels = kwargs.get('labels', None) + self.expiration_time_utc = kwargs.get('expiration_time_utc', None) + self.event_delivery_schema = kwargs.get('event_delivery_schema', None) + self.retry_policy = kwargs.get('retry_policy', None) + self.dead_letter_destination = kwargs.get('dead_letter_destination', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination.py index 39a84a8da20..42667ddc642 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination.py @@ -21,7 +21,9 @@ class EventSubscriptionDestination(Model): StorageQueueEventSubscriptionDestination, HybridConnectionEventSubscriptionDestination - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str """ @@ -37,6 +39,6 @@ class EventSubscriptionDestination(Model): 'endpoint_type': {'WebHook': 'WebHookEventSubscriptionDestination', 'EventHub': 'EventHubEventSubscriptionDestination', 'StorageQueue': 'StorageQueueEventSubscriptionDestination', 'HybridConnection': 'HybridConnectionEventSubscriptionDestination'} } - def __init__(self): - super(EventSubscriptionDestination, self).__init__() + def __init__(self, **kwargs): + super(EventSubscriptionDestination, self).__init__(**kwargs) self.endpoint_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination_py3.py new file mode 100644 index 00000000000..3bdf3224760 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_destination_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EventSubscriptionDestination(Model): + """Information about the destination for an event subscription. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: WebHookEventSubscriptionDestination, + EventHubEventSubscriptionDestination, + StorageQueueEventSubscriptionDestination, + HybridConnectionEventSubscriptionDestination + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + } + + _subtype_map = { + 'endpoint_type': {'WebHook': 'WebHookEventSubscriptionDestination', 'EventHub': 'EventHubEventSubscriptionDestination', 'StorageQueue': 'StorageQueueEventSubscriptionDestination', 'HybridConnection': 'HybridConnectionEventSubscriptionDestination'} + } + + def __init__(self, **kwargs) -> None: + super(EventSubscriptionDestination, self).__init__(**kwargs) + self.endpoint_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter.py index fb73b0f0d43..df5e5050e60 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter.py @@ -33,6 +33,8 @@ class EventSubscriptionFilter(Model): SubjectEndsWith properties of the filter should be compared in a case sensitive manner. Default value: False . :type is_subject_case_sensitive: bool + :param advanced_filters: A list of advanced filters. + :type advanced_filters: list[~azure.mgmt.eventgrid.models.AdvancedFilter] """ _attribute_map = { @@ -40,11 +42,13 @@ class EventSubscriptionFilter(Model): 'subject_ends_with': {'key': 'subjectEndsWith', 'type': 'str'}, 'included_event_types': {'key': 'includedEventTypes', 'type': '[str]'}, 'is_subject_case_sensitive': {'key': 'isSubjectCaseSensitive', 'type': 'bool'}, + 'advanced_filters': {'key': 'advancedFilters', 'type': '[AdvancedFilter]'}, } - def __init__(self, subject_begins_with=None, subject_ends_with=None, included_event_types=None, is_subject_case_sensitive=False): - super(EventSubscriptionFilter, self).__init__() - self.subject_begins_with = subject_begins_with - self.subject_ends_with = subject_ends_with - self.included_event_types = included_event_types - self.is_subject_case_sensitive = is_subject_case_sensitive + def __init__(self, **kwargs): + super(EventSubscriptionFilter, self).__init__(**kwargs) + self.subject_begins_with = kwargs.get('subject_begins_with', None) + self.subject_ends_with = kwargs.get('subject_ends_with', None) + self.included_event_types = kwargs.get('included_event_types', None) + self.is_subject_case_sensitive = kwargs.get('is_subject_case_sensitive', False) + self.advanced_filters = kwargs.get('advanced_filters', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter_py3.py new file mode 100644 index 00000000000..16c946cd236 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_filter_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EventSubscriptionFilter(Model): + """Filter for the Event Subscription. + + :param subject_begins_with: An optional string to filter events for an + event subscription based on a resource path prefix. + The format of this depends on the publisher of the events. + Wildcard characters are not supported in this path. + :type subject_begins_with: str + :param subject_ends_with: An optional string to filter events for an event + subscription based on a resource path suffix. + Wildcard characters are not supported in this path. + :type subject_ends_with: str + :param included_event_types: A list of applicable event types that need to + be part of the event subscription. + If it is desired to subscribe to all event types, the string "all" needs + to be specified as an element in this list. + :type included_event_types: list[str] + :param is_subject_case_sensitive: Specifies if the SubjectBeginsWith and + SubjectEndsWith properties of the filter + should be compared in a case sensitive manner. Default value: False . + :type is_subject_case_sensitive: bool + :param advanced_filters: A list of advanced filters. + :type advanced_filters: list[~azure.mgmt.eventgrid.models.AdvancedFilter] + """ + + _attribute_map = { + 'subject_begins_with': {'key': 'subjectBeginsWith', 'type': 'str'}, + 'subject_ends_with': {'key': 'subjectEndsWith', 'type': 'str'}, + 'included_event_types': {'key': 'includedEventTypes', 'type': '[str]'}, + 'is_subject_case_sensitive': {'key': 'isSubjectCaseSensitive', 'type': 'bool'}, + 'advanced_filters': {'key': 'advancedFilters', 'type': '[AdvancedFilter]'}, + } + + def __init__(self, *, subject_begins_with: str=None, subject_ends_with: str=None, included_event_types=None, is_subject_case_sensitive: bool=False, advanced_filters=None, **kwargs) -> None: + super(EventSubscriptionFilter, self).__init__(**kwargs) + self.subject_begins_with = subject_begins_with + self.subject_ends_with = subject_ends_with + self.included_event_types = included_event_types + self.is_subject_case_sensitive = is_subject_case_sensitive + self.advanced_filters = advanced_filters diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url.py index 948e1af2ee4..e0b289a47ef 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url.py @@ -24,6 +24,6 @@ class EventSubscriptionFullUrl(Model): 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, } - def __init__(self, endpoint_url=None): - super(EventSubscriptionFullUrl, self).__init__() - self.endpoint_url = endpoint_url + def __init__(self, **kwargs): + super(EventSubscriptionFullUrl, self).__init__(**kwargs) + self.endpoint_url = kwargs.get('endpoint_url', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url_py3.py new file mode 100644 index 00000000000..f1471cde431 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_full_url_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EventSubscriptionFullUrl(Model): + """Full endpoint url of an event subscription. + + :param endpoint_url: The URL that represents the endpoint of the + destination of an event subscription. + :type endpoint_url: str + """ + + _attribute_map = { + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + } + + def __init__(self, *, endpoint_url: str=None, **kwargs) -> None: + super(EventSubscriptionFullUrl, self).__init__(**kwargs) + self.endpoint_url = endpoint_url diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_paged.py index 1983ed5632b..4a4656c716b 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_paged.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_paged.py @@ -14,7 +14,7 @@ class EventSubscriptionPaged(Paged): """ - A paging container for iterating over a list of :class:`EventSubscription ` object + A paging container for iterating over a list of :class:`EventSubscription ` object """ _attribute_map = { diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_py3.py new file mode 100644 index 00000000000..246622ce370 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_py3.py @@ -0,0 +1,91 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class EventSubscription(Resource): + """Event Subscription. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :ivar topic: Name of the topic of the event subscription. + :vartype topic: str + :ivar provisioning_state: Provisioning state of the event subscription. + Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', + 'Canceled', 'Failed', 'AwaitingManualAction' + :vartype provisioning_state: str or + ~azure.mgmt.eventgrid.models.EventSubscriptionProvisioningState + :param destination: Information about the destination where events have to + be delivered for the event subscription. + :type destination: + ~azure.mgmt.eventgrid.models.EventSubscriptionDestination + :param filter: Information about the filter for the event subscription. + :type filter: ~azure.mgmt.eventgrid.models.EventSubscriptionFilter + :param labels: List of user defined labels. + :type labels: list[str] + :param expiration_time_utc: Expiration time of the event subscription. + :type expiration_time_utc: datetime + :param event_delivery_schema: The event delivery schema for the event + subscription. Possible values include: 'EventGridSchema', + 'CloudEventV01Schema', 'CustomInputSchema' + :type event_delivery_schema: str or + ~azure.mgmt.eventgrid.models.EventDeliverySchema + :param retry_policy: The retry policy for events. This can be used to + configure maximum number of delivery attempts and time to live for events. + :type retry_policy: ~azure.mgmt.eventgrid.models.RetryPolicy + :param dead_letter_destination: The DeadLetter destination of the event + subscription. + :type dead_letter_destination: + ~azure.mgmt.eventgrid.models.DeadLetterDestination + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'topic': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'topic': {'key': 'properties.topic', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'destination': {'key': 'properties.destination', 'type': 'EventSubscriptionDestination'}, + 'filter': {'key': 'properties.filter', 'type': 'EventSubscriptionFilter'}, + 'labels': {'key': 'properties.labels', 'type': '[str]'}, + 'expiration_time_utc': {'key': 'properties.expirationTimeUtc', 'type': 'iso-8601'}, + 'event_delivery_schema': {'key': 'properties.eventDeliverySchema', 'type': 'str'}, + 'retry_policy': {'key': 'properties.retryPolicy', 'type': 'RetryPolicy'}, + 'dead_letter_destination': {'key': 'properties.deadLetterDestination', 'type': 'DeadLetterDestination'}, + } + + def __init__(self, *, destination=None, filter=None, labels=None, expiration_time_utc=None, event_delivery_schema=None, retry_policy=None, dead_letter_destination=None, **kwargs) -> None: + super(EventSubscription, self).__init__(**kwargs) + self.topic = None + self.provisioning_state = None + self.destination = destination + self.filter = filter + self.labels = labels + self.expiration_time_utc = expiration_time_utc + self.event_delivery_schema = event_delivery_schema + self.retry_policy = retry_policy + self.dead_letter_destination = dead_letter_destination diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters.py index 125de89b8ad..5371a06679c 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters.py @@ -18,40 +18,44 @@ class EventSubscriptionUpdateParameters(Model): :param destination: Information about the destination where events have to be delivered for the event subscription. :type destination: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionDestination + ~azure.mgmt.eventgrid.models.EventSubscriptionDestination :param filter: Information about the filter for the event subscription. - :type filter: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionFilter + :type filter: ~azure.mgmt.eventgrid.models.EventSubscriptionFilter :param labels: List of user defined labels. :type labels: list[str] + :param expiration_time_utc: Information about the expiration time for the + event subscription. + :type expiration_time_utc: datetime :param event_delivery_schema: The event delivery schema for the event subscription. Possible values include: 'EventGridSchema', - 'InputEventSchema', 'CloudEventV01Schema' + 'CloudEventV01Schema', 'CustomInputSchema' :type event_delivery_schema: str or - ~azext_eventgrid.mgmt.eventgrid.models.EventDeliverySchema + ~azure.mgmt.eventgrid.models.EventDeliverySchema :param retry_policy: The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events. - :type retry_policy: ~azext_eventgrid.mgmt.eventgrid.models.RetryPolicy + :type retry_policy: ~azure.mgmt.eventgrid.models.RetryPolicy :param dead_letter_destination: The DeadLetter destination of the event subscription. :type dead_letter_destination: - ~azext_eventgrid.mgmt.eventgrid.models.DeadLetterDestination + ~azure.mgmt.eventgrid.models.DeadLetterDestination """ _attribute_map = { 'destination': {'key': 'destination', 'type': 'EventSubscriptionDestination'}, 'filter': {'key': 'filter', 'type': 'EventSubscriptionFilter'}, 'labels': {'key': 'labels', 'type': '[str]'}, + 'expiration_time_utc': {'key': 'expirationTimeUtc', 'type': 'iso-8601'}, 'event_delivery_schema': {'key': 'eventDeliverySchema', 'type': 'str'}, 'retry_policy': {'key': 'retryPolicy', 'type': 'RetryPolicy'}, 'dead_letter_destination': {'key': 'deadLetterDestination', 'type': 'DeadLetterDestination'}, } - def __init__(self, destination=None, filter=None, labels=None, event_delivery_schema=None, retry_policy=None, dead_letter_destination=None): - super(EventSubscriptionUpdateParameters, self).__init__() - self.destination = destination - self.filter = filter - self.labels = labels - self.event_delivery_schema = event_delivery_schema - self.retry_policy = retry_policy - self.dead_letter_destination = dead_letter_destination + def __init__(self, **kwargs): + super(EventSubscriptionUpdateParameters, self).__init__(**kwargs) + self.destination = kwargs.get('destination', None) + self.filter = kwargs.get('filter', None) + self.labels = kwargs.get('labels', None) + self.expiration_time_utc = kwargs.get('expiration_time_utc', None) + self.event_delivery_schema = kwargs.get('event_delivery_schema', None) + self.retry_policy = kwargs.get('retry_policy', None) + self.dead_letter_destination = kwargs.get('dead_letter_destination', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters_py3.py new file mode 100644 index 00000000000..3f415aa3e8c --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_subscription_update_parameters_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EventSubscriptionUpdateParameters(Model): + """Properties of the Event Subscription update. + + :param destination: Information about the destination where events have to + be delivered for the event subscription. + :type destination: + ~azure.mgmt.eventgrid.models.EventSubscriptionDestination + :param filter: Information about the filter for the event subscription. + :type filter: ~azure.mgmt.eventgrid.models.EventSubscriptionFilter + :param labels: List of user defined labels. + :type labels: list[str] + :param expiration_time_utc: Information about the expiration time for the + event subscription. + :type expiration_time_utc: datetime + :param event_delivery_schema: The event delivery schema for the event + subscription. Possible values include: 'EventGridSchema', + 'CloudEventV01Schema', 'CustomInputSchema' + :type event_delivery_schema: str or + ~azure.mgmt.eventgrid.models.EventDeliverySchema + :param retry_policy: The retry policy for events. This can be used to + configure maximum number of delivery attempts and time to live for events. + :type retry_policy: ~azure.mgmt.eventgrid.models.RetryPolicy + :param dead_letter_destination: The DeadLetter destination of the event + subscription. + :type dead_letter_destination: + ~azure.mgmt.eventgrid.models.DeadLetterDestination + """ + + _attribute_map = { + 'destination': {'key': 'destination', 'type': 'EventSubscriptionDestination'}, + 'filter': {'key': 'filter', 'type': 'EventSubscriptionFilter'}, + 'labels': {'key': 'labels', 'type': '[str]'}, + 'expiration_time_utc': {'key': 'expirationTimeUtc', 'type': 'iso-8601'}, + 'event_delivery_schema': {'key': 'eventDeliverySchema', 'type': 'str'}, + 'retry_policy': {'key': 'retryPolicy', 'type': 'RetryPolicy'}, + 'dead_letter_destination': {'key': 'deadLetterDestination', 'type': 'DeadLetterDestination'}, + } + + def __init__(self, *, destination=None, filter=None, labels=None, expiration_time_utc=None, event_delivery_schema=None, retry_policy=None, dead_letter_destination=None, **kwargs) -> None: + super(EventSubscriptionUpdateParameters, self).__init__(**kwargs) + self.destination = destination + self.filter = filter + self.labels = labels + self.expiration_time_utc = expiration_time_utc + self.event_delivery_schema = event_delivery_schema + self.retry_policy = retry_policy + self.dead_letter_destination = dead_letter_destination diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type.py index b663dcb41a1..266e3220589 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type.py @@ -47,8 +47,8 @@ class EventType(Resource): 'schema_url': {'key': 'properties.schemaUrl', 'type': 'str'}, } - def __init__(self, display_name=None, description=None, schema_url=None): - super(EventType, self).__init__() - self.display_name = display_name - self.description = description - self.schema_url = schema_url + def __init__(self, **kwargs): + super(EventType, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.schema_url = kwargs.get('schema_url', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_paged.py index 036a77fcaf9..18fad1e1f3e 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_paged.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_paged.py @@ -14,7 +14,7 @@ class EventTypePaged(Paged): """ - A paging container for iterating over a list of :class:`EventType ` object + A paging container for iterating over a list of :class:`EventType ` object """ _attribute_map = { diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_py3.py new file mode 100644 index 00000000000..b2fb69868f3 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/event_type_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class EventType(Resource): + """Event Type for a subject under a topic. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param display_name: Display name of the event type. + :type display_name: str + :param description: Description of the event type. + :type description: str + :param schema_url: Url of the schema for this event type. + :type schema_url: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'schema_url': {'key': 'properties.schemaUrl', 'type': 'str'}, + } + + def __init__(self, *, display_name: str=None, description: str=None, schema_url: str=None, **kwargs) -> None: + super(EventType, self).__init__(**kwargs) + self.display_name = display_name + self.description = description + self.schema_url = schema_url diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination.py index 5566ea813d2..a28228db5fa 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination.py @@ -16,7 +16,9 @@ class HybridConnectionEventSubscriptionDestination(EventSubscriptionDestination) """Information about the HybridConnection destination for an event subscription. - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str :param resource_id: The Azure Resource ID of an hybrid connection that is the destination of an event subscription. @@ -32,7 +34,7 @@ class HybridConnectionEventSubscriptionDestination(EventSubscriptionDestination) 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, } - def __init__(self, resource_id=None): - super(HybridConnectionEventSubscriptionDestination, self).__init__() - self.resource_id = resource_id + def __init__(self, **kwargs): + super(HybridConnectionEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) self.endpoint_type = 'HybridConnection' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination_py3.py new file mode 100644 index 00000000000..cbc2c280039 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/hybrid_connection_event_subscription_destination_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .event_subscription_destination_py3 import EventSubscriptionDestination + + +class HybridConnectionEventSubscriptionDestination(EventSubscriptionDestination): + """Information about the HybridConnection destination for an event + subscription. + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + :param resource_id: The Azure Resource ID of an hybrid connection that is + the destination of an event subscription. + :type resource_id: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, + } + + def __init__(self, *, resource_id: str=None, **kwargs) -> None: + super(HybridConnectionEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.endpoint_type = 'HybridConnection' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping.py index 78ded4a27f0..f9959623847 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping.py @@ -21,7 +21,9 @@ class InputSchemaMapping(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: JsonInputSchemaMapping - :param input_schema_mapping_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param input_schema_mapping_type: Required. Constant filled by server. :type input_schema_mapping_type: str """ @@ -37,6 +39,6 @@ class InputSchemaMapping(Model): 'input_schema_mapping_type': {'Json': 'JsonInputSchemaMapping'} } - def __init__(self): - super(InputSchemaMapping, self).__init__() + def __init__(self, **kwargs): + super(InputSchemaMapping, self).__init__(**kwargs) self.input_schema_mapping_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping_py3.py new file mode 100644 index 00000000000..b3a12a359f6 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/input_schema_mapping_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class InputSchemaMapping(Model): + """By default, Event Grid expects events to be in the Event Grid event schema. + Specifying an input schema mapping enables publishing to Event Grid using a + custom input schema. Currently, the only supported type of + InputSchemaMapping is 'JsonInputSchemaMapping'. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JsonInputSchemaMapping + + All required parameters must be populated in order to send to Azure. + + :param input_schema_mapping_type: Required. Constant filled by server. + :type input_schema_mapping_type: str + """ + + _validation = { + 'input_schema_mapping_type': {'required': True}, + } + + _attribute_map = { + 'input_schema_mapping_type': {'key': 'inputSchemaMappingType', 'type': 'str'}, + } + + _subtype_map = { + 'input_schema_mapping_type': {'Json': 'JsonInputSchemaMapping'} + } + + def __init__(self, **kwargs) -> None: + super(InputSchemaMapping, self).__init__(**kwargs) + self.input_schema_mapping_type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field.py index ff641d4cf70..31cbc55eb4f 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field.py @@ -27,6 +27,6 @@ class JsonField(Model): 'source_field': {'key': 'sourceField', 'type': 'str'}, } - def __init__(self, source_field=None): - super(JsonField, self).__init__() - self.source_field = source_field + def __init__(self, **kwargs): + super(JsonField, self).__init__(**kwargs) + self.source_field = kwargs.get('source_field', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_py3.py new file mode 100644 index 00000000000..c13826fc289 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class JsonField(Model): + """This is used to express the source of an input schema mapping for a single + target field in the Event Grid Event schema. This is currently used in the + mappings for the 'id','topic' and 'eventtime' properties. This represents a + field in the input event schema. + + :param source_field: Name of a field in the input event schema that's to + be used as the source of a mapping. + :type source_field: str + """ + + _attribute_map = { + 'source_field': {'key': 'sourceField', 'type': 'str'}, + } + + def __init__(self, *, source_field: str=None, **kwargs) -> None: + super(JsonField, self).__init__(**kwargs) + self.source_field = source_field diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default.py index 7fffa752c61..802c804df12 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default.py @@ -33,7 +33,7 @@ class JsonFieldWithDefault(Model): 'default_value': {'key': 'defaultValue', 'type': 'str'}, } - def __init__(self, source_field=None, default_value=None): - super(JsonFieldWithDefault, self).__init__() - self.source_field = source_field - self.default_value = default_value + def __init__(self, **kwargs): + super(JsonFieldWithDefault, self).__init__(**kwargs) + self.source_field = kwargs.get('source_field', None) + self.default_value = kwargs.get('default_value', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default_py3.py new file mode 100644 index 00000000000..2de769b63a9 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_field_with_default_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class JsonFieldWithDefault(Model): + """This is used to express the source of an input schema mapping for a single + target field in the Event Grid Event schema. This is currently used in the + mappings for the 'subject','eventtype' and 'dataversion' properties. This + represents a field in the input event schema along with a default value to + be used, and at least one of these two properties should be provided. + + :param source_field: Name of a field in the input event schema that's to + be used as the source of a mapping. + :type source_field: str + :param default_value: The default value to be used for mapping when a + SourceField is not provided or if there's no property with the specified + name in the published JSON event payload. + :type default_value: str + """ + + _attribute_map = { + 'source_field': {'key': 'sourceField', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + } + + def __init__(self, *, source_field: str=None, default_value: str=None, **kwargs) -> None: + super(JsonFieldWithDefault, self).__init__(**kwargs) + self.source_field = source_field + self.default_value = default_value diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping.py index b1f4f9d4f61..a7635fe6717 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping.py @@ -17,28 +17,28 @@ class JsonInputSchemaMapping(InputSchemaMapping): be used to map properties from a custom input JSON schema to the Event Grid event schema. - :param input_schema_mapping_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param input_schema_mapping_type: Required. Constant filled by server. :type input_schema_mapping_type: str :param id: The mapping information for the Id property of the Event Grid Event. - :type id: ~azext_eventgrid.mgmt.eventgrid.models.JsonField + :type id: ~azure.mgmt.eventgrid.models.JsonField :param topic: The mapping information for the Topic property of the Event Grid Event. - :type topic: ~azext_eventgrid.mgmt.eventgrid.models.JsonField + :type topic: ~azure.mgmt.eventgrid.models.JsonField :param event_time: The mapping information for the EventTime property of the Event Grid Event. - :type event_time: ~azext_eventgrid.mgmt.eventgrid.models.JsonField + :type event_time: ~azure.mgmt.eventgrid.models.JsonField :param event_type: The mapping information for the EventType property of the Event Grid Event. - :type event_type: - ~azext_eventgrid.mgmt.eventgrid.models.JsonFieldWithDefault + :type event_type: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault :param subject: The mapping information for the Subject property of the Event Grid Event. - :type subject: ~azext_eventgrid.mgmt.eventgrid.models.JsonFieldWithDefault + :type subject: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault :param data_version: The mapping information for the DataVersion property of the Event Grid Event. - :type data_version: - ~azext_eventgrid.mgmt.eventgrid.models.JsonFieldWithDefault + :type data_version: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault """ _validation = { @@ -55,12 +55,12 @@ class JsonInputSchemaMapping(InputSchemaMapping): 'data_version': {'key': 'properties.dataVersion', 'type': 'JsonFieldWithDefault'}, } - def __init__(self, id=None, topic=None, event_time=None, event_type=None, subject=None, data_version=None): - super(JsonInputSchemaMapping, self).__init__() - self.id = id - self.topic = topic - self.event_time = event_time - self.event_type = event_type - self.subject = subject - self.data_version = data_version + def __init__(self, **kwargs): + super(JsonInputSchemaMapping, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.topic = kwargs.get('topic', None) + self.event_time = kwargs.get('event_time', None) + self.event_type = kwargs.get('event_type', None) + self.subject = kwargs.get('subject', None) + self.data_version = kwargs.get('data_version', None) self.input_schema_mapping_type = 'Json' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping_py3.py new file mode 100644 index 00000000000..4d3ff8a1b8f --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/json_input_schema_mapping_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .input_schema_mapping_py3 import InputSchemaMapping + + +class JsonInputSchemaMapping(InputSchemaMapping): + """This enables publishing to Event Grid using a custom input schema. This can + be used to map properties from a custom input JSON schema to the Event Grid + event schema. + + All required parameters must be populated in order to send to Azure. + + :param input_schema_mapping_type: Required. Constant filled by server. + :type input_schema_mapping_type: str + :param id: The mapping information for the Id property of the Event Grid + Event. + :type id: ~azure.mgmt.eventgrid.models.JsonField + :param topic: The mapping information for the Topic property of the Event + Grid Event. + :type topic: ~azure.mgmt.eventgrid.models.JsonField + :param event_time: The mapping information for the EventTime property of + the Event Grid Event. + :type event_time: ~azure.mgmt.eventgrid.models.JsonField + :param event_type: The mapping information for the EventType property of + the Event Grid Event. + :type event_type: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault + :param subject: The mapping information for the Subject property of the + Event Grid Event. + :type subject: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault + :param data_version: The mapping information for the DataVersion property + of the Event Grid Event. + :type data_version: ~azure.mgmt.eventgrid.models.JsonFieldWithDefault + """ + + _validation = { + 'input_schema_mapping_type': {'required': True}, + } + + _attribute_map = { + 'input_schema_mapping_type': {'key': 'inputSchemaMappingType', 'type': 'str'}, + 'id': {'key': 'properties.id', 'type': 'JsonField'}, + 'topic': {'key': 'properties.topic', 'type': 'JsonField'}, + 'event_time': {'key': 'properties.eventTime', 'type': 'JsonField'}, + 'event_type': {'key': 'properties.eventType', 'type': 'JsonFieldWithDefault'}, + 'subject': {'key': 'properties.subject', 'type': 'JsonFieldWithDefault'}, + 'data_version': {'key': 'properties.dataVersion', 'type': 'JsonFieldWithDefault'}, + } + + def __init__(self, *, id=None, topic=None, event_time=None, event_type=None, subject=None, data_version=None, **kwargs) -> None: + super(JsonInputSchemaMapping, self).__init__(**kwargs) + self.id = id + self.topic = topic + self.event_time = event_time + self.event_type = event_type + self.subject = subject + self.data_version = data_version + self.input_schema_mapping_type = 'Json' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter.py new file mode 100644 index 00000000000..d613515b952 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberGreaterThanAdvancedFilter(AdvancedFilter): + """NumberGreaterThan Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(NumberGreaterThanAdvancedFilter, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.operator_type = 'NumberGreaterThan' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter_py3.py new file mode 100644 index 00000000000..29a878af007 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberGreaterThanAdvancedFilter(AdvancedFilter): + """NumberGreaterThan Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, *, key: str=None, value: float=None, **kwargs) -> None: + super(NumberGreaterThanAdvancedFilter, self).__init__(key=key, **kwargs) + self.value = value + self.operator_type = 'NumberGreaterThan' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter.py new file mode 100644 index 00000000000..47e4bf38b60 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberGreaterThanOrEqualsAdvancedFilter(AdvancedFilter): + """NumberGreaterThanOrEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(NumberGreaterThanOrEqualsAdvancedFilter, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.operator_type = 'NumberGreaterThanOrEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter_py3.py new file mode 100644 index 00000000000..07597f50cf4 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_greater_than_or_equals_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberGreaterThanOrEqualsAdvancedFilter(AdvancedFilter): + """NumberGreaterThanOrEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, *, key: str=None, value: float=None, **kwargs) -> None: + super(NumberGreaterThanOrEqualsAdvancedFilter, self).__init__(key=key, **kwargs) + self.value = value + self.operator_type = 'NumberGreaterThanOrEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter.py new file mode 100644 index 00000000000..ab5211aa124 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberInAdvancedFilter(AdvancedFilter): + """NumberIn filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[float] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[float]'}, + } + + def __init__(self, **kwargs): + super(NumberInAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'NumberIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter_py3.py new file mode 100644 index 00000000000..5358d30a87d --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_in_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberInAdvancedFilter(AdvancedFilter): + """NumberIn filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[float] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[float]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(NumberInAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'NumberIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter.py new file mode 100644 index 00000000000..f2f24e157e3 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberLessThanAdvancedFilter(AdvancedFilter): + """NumberLessThan Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(NumberLessThanAdvancedFilter, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.operator_type = 'NumberLessThan' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter_py3.py new file mode 100644 index 00000000000..f1e2d64c692 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberLessThanAdvancedFilter(AdvancedFilter): + """NumberLessThan Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, *, key: str=None, value: float=None, **kwargs) -> None: + super(NumberLessThanAdvancedFilter, self).__init__(key=key, **kwargs) + self.value = value + self.operator_type = 'NumberLessThan' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter.py new file mode 100644 index 00000000000..fc563b5f148 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberLessThanOrEqualsAdvancedFilter(AdvancedFilter): + """NumberLessThanOrEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(NumberLessThanOrEqualsAdvancedFilter, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.operator_type = 'NumberLessThanOrEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter_py3.py new file mode 100644 index 00000000000..d0cb3a127ce --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_less_than_or_equals_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberLessThanOrEqualsAdvancedFilter(AdvancedFilter): + """NumberLessThanOrEquals Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param value: The filter value + :type value: float + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, *, key: str=None, value: float=None, **kwargs) -> None: + super(NumberLessThanOrEqualsAdvancedFilter, self).__init__(key=key, **kwargs) + self.value = value + self.operator_type = 'NumberLessThanOrEquals' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter.py new file mode 100644 index 00000000000..790f5f48697 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class NumberNotInAdvancedFilter(AdvancedFilter): + """NumberNotIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[float] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[float]'}, + } + + def __init__(self, **kwargs): + super(NumberNotInAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'NumberNotIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter_py3.py new file mode 100644 index 00000000000..8fa0af24af0 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/number_not_in_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class NumberNotInAdvancedFilter(AdvancedFilter): + """NumberNotIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[float] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[float]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(NumberNotInAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'NumberNotIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation.py index 81a1e88fe6e..eb3f843485e 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation.py @@ -18,7 +18,7 @@ class Operation(Model): :param name: Name of the operation :type name: str :param display: Display name of the operation - :type display: ~azext_eventgrid.mgmt.eventgrid.models.OperationInfo + :type display: ~azure.mgmt.eventgrid.models.OperationInfo :param origin: Origin of the operation :type origin: str :param properties: Properties of the operation @@ -32,9 +32,9 @@ class Operation(Model): 'properties': {'key': 'properties', 'type': 'object'}, } - def __init__(self, name=None, display=None, origin=None, properties=None): - super(Operation, self).__init__() - self.name = name - self.display = display - self.origin = origin - self.properties = properties + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info.py index 6f1e27d8e86..20c7286c095 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info.py @@ -32,9 +32,9 @@ class OperationInfo(Model): 'description': {'key': 'description', 'type': 'str'}, } - def __init__(self, provider=None, resource=None, operation=None, description=None): - super(OperationInfo, self).__init__() - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description + def __init__(self, **kwargs): + super(OperationInfo, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info_py3.py new file mode 100644 index 00000000000..66fb1fe94a2 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_info_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationInfo(Model): + """Information about an operation. + + :param provider: Name of the provider + :type provider: str + :param resource: Name of the resource type + :type resource: str + :param operation: Name of the operation + :type operation: str + :param description: Description of the operation + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationInfo, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_paged.py index b1301775390..097349fa5db 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_paged.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_paged.py @@ -14,7 +14,7 @@ class OperationPaged(Paged): """ - A paging container for iterating over a list of :class:`Operation ` object + A paging container for iterating over a list of :class:`Operation ` object """ _attribute_map = { diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_py3.py new file mode 100644 index 00000000000..cfe331cc61d --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/operation_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """Represents an operation returned by the GetOperations request. + + :param name: Name of the operation + :type name: str + :param display: Display name of the operation + :type display: ~azure.mgmt.eventgrid.models.OperationInfo + :param origin: Origin of the operation + :type origin: str + :param properties: Properties of the operation + :type properties: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.properties = properties diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource.py index f988e34eac0..b2d2b17be38 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource.py @@ -38,8 +38,8 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self): - super(Resource, self).__init__() + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource_py3.py new file mode 100644 index 00000000000..79dce3e5b3b --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/resource_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Definition of a Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy.py index fe39559da34..7b0b7c04141 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy.py @@ -28,7 +28,7 @@ class RetryPolicy(Model): 'event_time_to_live_in_minutes': {'key': 'eventTimeToLiveInMinutes', 'type': 'int'}, } - def __init__(self, max_delivery_attempts=None, event_time_to_live_in_minutes=None): - super(RetryPolicy, self).__init__() - self.max_delivery_attempts = max_delivery_attempts - self.event_time_to_live_in_minutes = event_time_to_live_in_minutes + def __init__(self, **kwargs): + super(RetryPolicy, self).__init__(**kwargs) + self.max_delivery_attempts = kwargs.get('max_delivery_attempts', None) + self.event_time_to_live_in_minutes = kwargs.get('event_time_to_live_in_minutes', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy_py3.py new file mode 100644 index 00000000000..12a36622639 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RetryPolicy(Model): + """Information about the retry policy for an event subscription. + + :param max_delivery_attempts: Maximum number of delivery retry attempts + for events. + :type max_delivery_attempts: int + :param event_time_to_live_in_minutes: Time To Live (in minutes) for + events. + :type event_time_to_live_in_minutes: int + """ + + _attribute_map = { + 'max_delivery_attempts': {'key': 'maxDeliveryAttempts', 'type': 'int'}, + 'event_time_to_live_in_minutes': {'key': 'eventTimeToLiveInMinutes', 'type': 'int'}, + } + + def __init__(self, *, max_delivery_attempts: int=None, event_time_to_live_in_minutes: int=None, **kwargs) -> None: + super(RetryPolicy, self).__init__(**kwargs) + self.max_delivery_attempts = max_delivery_attempts + self.event_time_to_live_in_minutes = event_time_to_live_in_minutes diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination.py index 14fe0d283a0..aadbe4e08ef 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination.py @@ -15,7 +15,9 @@ class StorageBlobDeadLetterDestination(DeadLetterDestination): """Information about the storage blob based dead letter destination. - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str :param resource_id: The Azure Resource ID of the storage account that is the destination of the deadletter events @@ -35,8 +37,8 @@ class StorageBlobDeadLetterDestination(DeadLetterDestination): 'blob_container_name': {'key': 'properties.blobContainerName', 'type': 'str'}, } - def __init__(self, resource_id=None, blob_container_name=None): - super(StorageBlobDeadLetterDestination, self).__init__() - self.resource_id = resource_id - self.blob_container_name = blob_container_name + def __init__(self, **kwargs): + super(StorageBlobDeadLetterDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.blob_container_name = kwargs.get('blob_container_name', None) self.endpoint_type = 'StorageBlob' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination_py3.py new file mode 100644 index 00000000000..65e0813f852 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_blob_dead_letter_destination_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .dead_letter_destination_py3 import DeadLetterDestination + + +class StorageBlobDeadLetterDestination(DeadLetterDestination): + """Information about the storage blob based dead letter destination. + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + :param resource_id: The Azure Resource ID of the storage account that is + the destination of the deadletter events + :type resource_id: str + :param blob_container_name: The name of the Storage blob container that is + the destination of the deadletter events + :type blob_container_name: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, + 'blob_container_name': {'key': 'properties.blobContainerName', 'type': 'str'}, + } + + def __init__(self, *, resource_id: str=None, blob_container_name: str=None, **kwargs) -> None: + super(StorageBlobDeadLetterDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.blob_container_name = blob_container_name + self.endpoint_type = 'StorageBlob' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination.py index 5f5dcb3eb3e..620fea9145e 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination.py @@ -15,7 +15,9 @@ class StorageQueueEventSubscriptionDestination(EventSubscriptionDestination): """Information about the storage queue destination for an event subscription. - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str :param resource_id: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription. @@ -35,8 +37,8 @@ class StorageQueueEventSubscriptionDestination(EventSubscriptionDestination): 'queue_name': {'key': 'properties.queueName', 'type': 'str'}, } - def __init__(self, resource_id=None, queue_name=None): - super(StorageQueueEventSubscriptionDestination, self).__init__() - self.resource_id = resource_id - self.queue_name = queue_name + def __init__(self, **kwargs): + super(StorageQueueEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.queue_name = kwargs.get('queue_name', None) self.endpoint_type = 'StorageQueue' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py new file mode 100644 index 00000000000..0804b774727 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .event_subscription_destination_py3 import EventSubscriptionDestination + + +class StorageQueueEventSubscriptionDestination(EventSubscriptionDestination): + """Information about the storage queue destination for an event subscription. + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + :param resource_id: The Azure Resource ID of the storage account that + contains the queue that is the destination of an event subscription. + :type resource_id: str + :param queue_name: The name of the Storage queue under a storage account + that is the destination of an event subscription. + :type queue_name: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'resource_id': {'key': 'properties.resourceId', 'type': 'str'}, + 'queue_name': {'key': 'properties.queueName', 'type': 'str'}, + } + + def __init__(self, *, resource_id: str=None, queue_name: str=None, **kwargs) -> None: + super(StorageQueueEventSubscriptionDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.queue_name = queue_name + self.endpoint_type = 'StorageQueue' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter.py new file mode 100644 index 00000000000..a6d1f91f8ea --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class StringBeginsWithAdvancedFilter(AdvancedFilter): + """StringBeginsWith Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StringBeginsWithAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'StringBeginsWith' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter_py3.py new file mode 100644 index 00000000000..4b33c1bf1bd --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_begins_with_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class StringBeginsWithAdvancedFilter(AdvancedFilter): + """StringBeginsWith Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(StringBeginsWithAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'StringBeginsWith' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter.py new file mode 100644 index 00000000000..04667aeeb31 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class StringContainsAdvancedFilter(AdvancedFilter): + """StringContains Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StringContainsAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'StringContains' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter_py3.py new file mode 100644 index 00000000000..53b7a530d9e --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_contains_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class StringContainsAdvancedFilter(AdvancedFilter): + """StringContains Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(StringContainsAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'StringContains' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter.py new file mode 100644 index 00000000000..8413d1ae330 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class StringEndsWithAdvancedFilter(AdvancedFilter): + """StringEndsWith Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StringEndsWithAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'StringEndsWith' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter_py3.py new file mode 100644 index 00000000000..47b469c98e7 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_ends_with_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class StringEndsWithAdvancedFilter(AdvancedFilter): + """StringEndsWith Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(StringEndsWithAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'StringEndsWith' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter.py new file mode 100644 index 00000000000..52b480d9043 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class StringInAdvancedFilter(AdvancedFilter): + """StringIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StringInAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'StringIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter_py3.py new file mode 100644 index 00000000000..1da9dc34ac6 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_in_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class StringInAdvancedFilter(AdvancedFilter): + """StringIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(StringInAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'StringIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter.py new file mode 100644 index 00000000000..0621f0f9dfc --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter import AdvancedFilter + + +class StringNotInAdvancedFilter(AdvancedFilter): + """StringNotIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StringNotInAdvancedFilter, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.operator_type = 'StringNotIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter_py3.py new file mode 100644 index 00000000000..d115f4c1226 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/string_not_in_advanced_filter_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .advanced_filter_py3 import AdvancedFilter + + +class StringNotInAdvancedFilter(AdvancedFilter): + """StringNotIn Filter. + + All required parameters must be populated in order to send to Azure. + + :param key: The filter key. Represents an event property with upto two + levels of nesting. + :type key: str + :param operator_type: Required. Constant filled by server. + :type operator_type: str + :param values: The set of filter values + :type values: list[str] + """ + + _validation = { + 'operator_type': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'operator_type': {'key': 'operatorType', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, key: str=None, values=None, **kwargs) -> None: + super(StringNotInAdvancedFilter, self).__init__(key=key, **kwargs) + self.values = values + self.operator_type = 'StringNotIn' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic.py index d3969752e79..50d28d5206e 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic.py @@ -18,13 +18,15 @@ class Topic(TrackedResource): Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Fully qualified identifier of the resource :vartype id: str :ivar name: Name of the resource :vartype name: str :ivar type: Type of the resource :vartype type: str - :param location: Location of the resource + :param location: Required. Location of the resource :type location: str :param tags: Tags of the resource :type tags: dict[str, str] @@ -32,20 +34,20 @@ class Topic(TrackedResource): include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' :vartype provisioning_state: str or - ~azext_eventgrid.mgmt.eventgrid.models.TopicProvisioningState + ~azure.mgmt.eventgrid.models.TopicProvisioningState :ivar endpoint: Endpoint for the topic. :vartype endpoint: str :param input_schema: This determines the format that Event Grid should expect for incoming events published to the topic. Possible values - include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema' - :type input_schema: str or - ~azext_eventgrid.mgmt.eventgrid.models.InputSchema + include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'. + Default value: "EventGridSchema" . + :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema :param input_schema_mapping: This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema. :type input_schema_mapping: - ~azext_eventgrid.mgmt.eventgrid.models.InputSchemaMapping + ~azure.mgmt.eventgrid.models.InputSchemaMapping """ _validation = { @@ -69,9 +71,9 @@ class Topic(TrackedResource): 'input_schema_mapping': {'key': 'properties.inputSchemaMapping', 'type': 'InputSchemaMapping'}, } - def __init__(self, location, tags=None, input_schema=None, input_schema_mapping=None): - super(Topic, self).__init__(location=location, tags=tags) + def __init__(self, **kwargs): + super(Topic, self).__init__(**kwargs) self.provisioning_state = None self.endpoint = None - self.input_schema = input_schema - self.input_schema_mapping = input_schema_mapping + self.input_schema = kwargs.get('input_schema', "EventGridSchema") + self.input_schema_mapping = kwargs.get('input_schema_mapping', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_paged.py index 0b5bf2a7071..ff520ebd8f2 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_paged.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_paged.py @@ -14,7 +14,7 @@ class TopicPaged(Paged): """ - A paging container for iterating over a list of :class:`Topic ` object + A paging container for iterating over a list of :class:`Topic ` object """ _attribute_map = { diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_py3.py new file mode 100644 index 00000000000..9c562e93663 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_py3.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource_py3 import TrackedResource + + +class Topic(TrackedResource): + """EventGrid Topic. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param location: Required. Location of the resource + :type location: str + :param tags: Tags of the resource + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state of the topic. Possible values + include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', + 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.eventgrid.models.TopicProvisioningState + :ivar endpoint: Endpoint for the topic. + :vartype endpoint: str + :param input_schema: This determines the format that Event Grid should + expect for incoming events published to the topic. Possible values + include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'. + Default value: "EventGridSchema" . + :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema + :param input_schema_mapping: This enables publishing using custom event + schemas. An InputSchemaMapping can be specified to map various properties + of a source schema to various required properties of the EventGridEvent + schema. + :type input_schema_mapping: + ~azure.mgmt.eventgrid.models.InputSchemaMapping + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'endpoint': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'input_schema': {'key': 'properties.inputSchema', 'type': 'str'}, + 'input_schema_mapping': {'key': 'properties.inputSchemaMapping', 'type': 'InputSchemaMapping'}, + } + + def __init__(self, *, location: str, tags=None, input_schema="EventGridSchema", input_schema_mapping=None, **kwargs) -> None: + super(Topic, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.endpoint = None + self.input_schema = input_schema + self.input_schema_mapping = input_schema_mapping diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request.py index 4941af002f3..3335abcd735 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request.py @@ -15,7 +15,9 @@ class TopicRegenerateKeyRequest(Model): """Topic regenerate share access key request. - :param key_name: Key name to regenerate key1 or key2 + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. Key name to regenerate key1 or key2 :type key_name: str """ @@ -27,6 +29,6 @@ class TopicRegenerateKeyRequest(Model): 'key_name': {'key': 'keyName', 'type': 'str'}, } - def __init__(self, key_name): - super(TopicRegenerateKeyRequest, self).__init__() - self.key_name = key_name + def __init__(self, **kwargs): + super(TopicRegenerateKeyRequest, self).__init__(**kwargs) + self.key_name = kwargs.get('key_name', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request_py3.py new file mode 100644 index 00000000000..348236358bf --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_regenerate_key_request_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopicRegenerateKeyRequest(Model): + """Topic regenerate share access key request. + + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. Key name to regenerate key1 or key2 + :type key_name: str + """ + + _validation = { + 'key_name': {'required': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + } + + def __init__(self, *, key_name: str, **kwargs) -> None: + super(TopicRegenerateKeyRequest, self).__init__(**kwargs) + self.key_name = key_name diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys.py index 4d3a24f26f4..ce6addd82f1 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys.py @@ -26,7 +26,7 @@ class TopicSharedAccessKeys(Model): 'key2': {'key': 'key2', 'type': 'str'}, } - def __init__(self, key1=None, key2=None): - super(TopicSharedAccessKeys, self).__init__() - self.key1 = key1 - self.key2 = key2 + def __init__(self, **kwargs): + super(TopicSharedAccessKeys, self).__init__(**kwargs) + self.key1 = kwargs.get('key1', None) + self.key2 = kwargs.get('key2', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys_py3.py new file mode 100644 index 00000000000..33da4d09b90 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_shared_access_keys_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopicSharedAccessKeys(Model): + """Shared access keys of the Topic. + + :param key1: Shared access key1 for the topic. + :type key1: str + :param key2: Shared access key2 for the topic. + :type key2: str + """ + + _attribute_map = { + 'key1': {'key': 'key1', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + } + + def __init__(self, *, key1: str=None, key2: str=None, **kwargs) -> None: + super(TopicSharedAccessKeys, self).__init__(**kwargs) + self.key1 = key1 + self.key2 = key2 diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info.py index 2c26f9b0103..54f14476771 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info.py @@ -33,12 +33,12 @@ class TopicTypeInfo(Resource): :param resource_region_type: Region type of the resource. Possible values include: 'RegionalResource', 'GlobalResource' :type resource_region_type: str or - ~azext_eventgrid.mgmt.eventgrid.models.ResourceRegionType + ~azure.mgmt.eventgrid.models.ResourceRegionType :param provisioning_state: Provisioning state of the topic type. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' :type provisioning_state: str or - ~azext_eventgrid.mgmt.eventgrid.models.TopicTypeProvisioningState + ~azure.mgmt.eventgrid.models.TopicTypeProvisioningState :param supported_locations: List of locations supported by this topic type. :type supported_locations: list[str] @@ -62,11 +62,11 @@ class TopicTypeInfo(Resource): 'supported_locations': {'key': 'properties.supportedLocations', 'type': '[str]'}, } - def __init__(self, provider=None, display_name=None, description=None, resource_region_type=None, provisioning_state=None, supported_locations=None): - super(TopicTypeInfo, self).__init__() - self.provider = provider - self.display_name = display_name - self.description = description - self.resource_region_type = resource_region_type - self.provisioning_state = provisioning_state - self.supported_locations = supported_locations + def __init__(self, **kwargs): + super(TopicTypeInfo, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.resource_region_type = kwargs.get('resource_region_type', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.supported_locations = kwargs.get('supported_locations', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_paged.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_paged.py index 9da12fc0048..e66d5826938 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_paged.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_paged.py @@ -14,7 +14,7 @@ class TopicTypeInfoPaged(Paged): """ - A paging container for iterating over a list of :class:`TopicTypeInfo ` object + A paging container for iterating over a list of :class:`TopicTypeInfo ` object """ _attribute_map = { diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_py3.py new file mode 100644 index 00000000000..c5bae787948 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_type_info_py3.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class TopicTypeInfo(Resource): + """Properties of a topic type info. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param provider: Namespace of the provider of the topic type. + :type provider: str + :param display_name: Display Name for the topic type. + :type display_name: str + :param description: Description of the topic type. + :type description: str + :param resource_region_type: Region type of the resource. Possible values + include: 'RegionalResource', 'GlobalResource' + :type resource_region_type: str or + ~azure.mgmt.eventgrid.models.ResourceRegionType + :param provisioning_state: Provisioning state of the topic type. Possible + values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', + 'Canceled', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.eventgrid.models.TopicTypeProvisioningState + :param supported_locations: List of locations supported by this topic + type. + :type supported_locations: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provider': {'key': 'properties.provider', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'resource_region_type': {'key': 'properties.resourceRegionType', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'supported_locations': {'key': 'properties.supportedLocations', 'type': '[str]'}, + } + + def __init__(self, *, provider: str=None, display_name: str=None, description: str=None, resource_region_type=None, provisioning_state=None, supported_locations=None, **kwargs) -> None: + super(TopicTypeInfo, self).__init__(**kwargs) + self.provider = provider + self.display_name = display_name + self.description = description + self.resource_region_type = resource_region_type + self.provisioning_state = provisioning_state + self.supported_locations = supported_locations diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters.py index 49eda00176d..cda279e1b7f 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters.py @@ -23,6 +23,6 @@ class TopicUpdateParameters(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, tags=None): - super(TopicUpdateParameters, self).__init__() - self.tags = tags + def __init__(self, **kwargs): + super(TopicUpdateParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters_py3.py new file mode 100644 index 00000000000..8e26e58fa90 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/topic_update_parameters_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopicUpdateParameters(Model): + """Properties of the Topic update. + + :param tags: Tags of the resource + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(TopicUpdateParameters, self).__init__(**kwargs) + self.tags = tags diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource.py index eca3f8999a6..d059b97f3e7 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource.py @@ -18,13 +18,15 @@ class TrackedResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Fully qualified identifier of the resource :vartype id: str :ivar name: Name of the resource :vartype name: str :ivar type: Type of the resource :vartype type: str - :param location: Location of the resource + :param location: Required. Location of the resource :type location: str :param tags: Tags of the resource :type tags: dict[str, str] @@ -45,7 +47,7 @@ class TrackedResource(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, location, tags=None): - super(TrackedResource, self).__init__() - self.location = location - self.tags = tags + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource_py3.py new file mode 100644 index 00000000000..dd17171e3b8 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/tracked_resource_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class TrackedResource(Resource): + """Definition of a Tracked Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified identifier of the resource + :vartype id: str + :ivar name: Name of the resource + :vartype name: str + :ivar type: Type of the resource + :vartype type: str + :param location: Required. Location of the resource + :type location: str + :param tags: Tags of the resource + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.location = location + self.tags = tags diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination.py index 7041aca86d1..3151fe82140 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination.py @@ -18,7 +18,9 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): Variables are only populated by the server, and will be ignored when sending a request. - :param endpoint_type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. :type endpoint_type: str :param endpoint_url: The URL that represents the endpoint of the destination of an event subscription. @@ -39,8 +41,8 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, } - def __init__(self, endpoint_url=None): - super(WebHookEventSubscriptionDestination, self).__init__() - self.endpoint_url = endpoint_url + def __init__(self, **kwargs): + super(WebHookEventSubscriptionDestination, self).__init__(**kwargs) + self.endpoint_url = kwargs.get('endpoint_url', None) self.endpoint_base_url = None self.endpoint_type = 'WebHook' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination_py3.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination_py3.py new file mode 100644 index 00000000000..2aa7e58c0cf --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/web_hook_event_subscription_destination_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .event_subscription_destination_py3 import EventSubscriptionDestination + + +class WebHookEventSubscriptionDestination(EventSubscriptionDestination): + """Information about the webhook destination for an event subscription. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param endpoint_type: Required. Constant filled by server. + :type endpoint_type: str + :param endpoint_url: The URL that represents the endpoint of the + destination of an event subscription. + :type endpoint_url: str + :ivar endpoint_base_url: The base URL that represents the endpoint of the + destination of an event subscription. + :vartype endpoint_base_url: str + """ + + _validation = { + 'endpoint_type': {'required': True}, + 'endpoint_base_url': {'readonly': True}, + } + + _attribute_map = { + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'endpoint_url': {'key': 'properties.endpointUrl', 'type': 'str'}, + 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, + } + + def __init__(self, *, endpoint_url: str=None, **kwargs) -> None: + super(WebHookEventSubscriptionDestination, self).__init__(**kwargs) + self.endpoint_url = endpoint_url + self.endpoint_base_url = None + self.endpoint_type = 'WebHook' diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/__init__.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/__init__.py index db9b4311e47..809a0249471 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/__init__.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/__init__.py @@ -9,12 +9,16 @@ # regenerated. # -------------------------------------------------------------------------- +from .domains_operations import DomainsOperations +from .domain_topics_operations import DomainTopicsOperations from .event_subscriptions_operations import EventSubscriptionsOperations from .operations import Operations from .topics_operations import TopicsOperations from .topic_types_operations import TopicTypesOperations __all__ = [ + 'DomainsOperations', + 'DomainTopicsOperations', 'EventSubscriptionsOperations', 'Operations', 'TopicsOperations', diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domain_topics_operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domain_topics_operations.py new file mode 100644 index 00000000000..97e76d4904a --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domain_topics_operations.py @@ -0,0 +1,180 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class DomainTopicsOperations(object): + """DomainTopicsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = '2018-09-15-preview' + + self.config = config + + def get( + self, resource_group_name, domain_name, topic_name, custom_headers=None, raw=False, **operation_config): + """Get a domain topic. + + Get properties of a domain topic. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param topic_name: Name of the topic + :type topic_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DomainTopic or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventgrid.models.DomainTopic or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str'), + 'topicName': self._serialize.url("topic_name", topic_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DomainTopic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}'} + + def list_by_domain( + self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config): + """List domain topics. + + List all the topics in a domain. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Domain name. + :type domain_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DomainTopic + :rtype: + ~azure.mgmt.eventgrid.models.DomainTopicPaged[~azure.mgmt.eventgrid.models.DomainTopic] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_domain.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DomainTopicPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DomainTopicPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_domain.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics'} diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domains_operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domains_operations.py new file mode 100644 index 00000000000..e8cf52f153f --- /dev/null +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/domains_operations.py @@ -0,0 +1,672 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class DomainsOperations(object): + """DomainsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = '2018-09-15-preview' + + self.config = config + + def get( + self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config): + """Get a domain. + + Get properties of a domain. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Domain or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventgrid.models.Domain or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Domain', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}'} + + + def _create_or_update_initial( + self, resource_group_name, domain_name, domain_info, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(domain_info, 'Domain') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('Domain', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, domain_name, domain_info, custom_headers=None, raw=False, polling=True, **operation_config): + """Create a domain. + + Asynchronously creates a new domain with the specified parameters. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param domain_info: Domain information + :type domain_info: ~azure.mgmt.eventgrid.models.Domain + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Domain or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.Domain] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.Domain]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + domain_name=domain_name, + domain_info=domain_info, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Domain', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}'} + + + def _delete_initial( + self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, domain_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Delete a domain. + + Delete existing domain. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + domain_name=domain_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}'} + + + def _update_initial( + self, resource_group_name, domain_name, tags=None, custom_headers=None, raw=False, **operation_config): + domain_update_parameters = models.DomainUpdateParameters(tags=tags) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(domain_update_parameters, 'DomainUpdateParameters') + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('Domain', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, domain_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a domain. + + Asynchronously updates a domain with the specified parameters. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param tags: Tags of the domains resource + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Domain or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.Domain] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.Domain]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + domain_name=domain_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Domain', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """List domains under an Azure subscription. + + List all the domains under an Azure subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Domain + :rtype: + ~azure.mgmt.eventgrid.models.DomainPaged[~azure.mgmt.eventgrid.models.Domain] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DomainPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DomainPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/domains'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """List domains under a resource group. + + List all the domains under a resource group. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Domain + :rtype: + ~azure.mgmt.eventgrid.models.DomainPaged[~azure.mgmt.eventgrid.models.Domain] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DomainPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DomainPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains'} + + def list_shared_access_keys( + self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config): + """List keys for a domain. + + List the two keys used to publish to a domain. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DomainSharedAccessKeys or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventgrid.models.DomainSharedAccessKeys or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_shared_access_keys.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DomainSharedAccessKeys', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_shared_access_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/listKeys'} + + def regenerate_key( + self, resource_group_name, domain_name, key_name, custom_headers=None, raw=False, **operation_config): + """Regenerate key for a domain. + + Regenerate a shared access key for a domain. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the domain + :type domain_name: str + :param key_name: Key name to regenerate key1 or key2 + :type key_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DomainSharedAccessKeys or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventgrid.models.DomainSharedAccessKeys or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + regenerate_key_request = models.DomainRegenerateKeyRequest(key_name=key_name) + + # Construct URL + url = self.regenerate_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(regenerate_key_request, 'DomainRegenerateKeyRequest') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DomainSharedAccessKeys', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/regenerateKey'} diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/event_subscriptions_operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/event_subscriptions_operations.py index 021e2d47943..d5e2f715573 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/event_subscriptions_operations.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/event_subscriptions_operations.py @@ -12,8 +12,8 @@ import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -from msrest.exceptions import DeserializationError -from msrestazure.azure_operation import AzureOperationPoller +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling from .. import models @@ -25,7 +25,7 @@ class EventSubscriptionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-05-01-preview". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-05-01-preview" + self.api_version = '2018-09-15-preview' self.config = config @@ -64,7 +64,7 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: EventSubscription or ClientRawResponse if raw=true - :rtype: ~azext_eventgrid.mgmt.eventgrid.models.EventSubscription or + :rtype: ~azure.mgmt.eventgrid.models.EventSubscription or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -161,7 +161,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, scope, event_subscription_name, event_subscription_info, custom_headers=None, raw=False, **operation_config): + self, scope, event_subscription_name, event_subscription_info, custom_headers=None, raw=False, polling=True, **operation_config): """Create or update an event subscription. Asynchronously creates a new event subscription or updates an existing @@ -186,15 +186,18 @@ def create_or_update( :param event_subscription_info: Event subscription properties containing the destination and filter information :type event_subscription_info: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscription + ~azure.mgmt.eventgrid.models.EventSubscription :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns - EventSubscription or ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns EventSubscription or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] - or ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.EventSubscription] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.EventSubscription]] :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( @@ -205,30 +208,8 @@ def create_or_update( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - deserialized = self._deserialize('EventSubscription', response) if raw: @@ -237,12 +218,13 @@ def get_long_running_output(response): return deserialized - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'} @@ -284,7 +266,7 @@ def _delete_initial( return client_raw_response def delete( - self, scope, event_subscription_name, custom_headers=None, raw=False, **operation_config): + self, scope, event_subscription_name, custom_headers=None, raw=False, polling=True, **operation_config): """Delete an event subscription. Delete an existing event subscription. @@ -303,12 +285,14 @@ def delete( :param event_subscription_name: Name of the event subscription :type event_subscription_name: str :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] :raises: :class:`CloudError` """ raw_result = self._delete_initial( @@ -318,40 +302,19 @@ def delete( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'} @@ -404,7 +367,7 @@ def _update_initial( return deserialized def update( - self, scope, event_subscription_name, event_subscription_update_parameters, custom_headers=None, raw=False, **operation_config): + self, scope, event_subscription_name, event_subscription_update_parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Update an event subscription. Asynchronously updates an existing event subscription. @@ -426,15 +389,18 @@ def update( :param event_subscription_update_parameters: Updated event subscription information :type event_subscription_update_parameters: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionUpdateParameters + ~azure.mgmt.eventgrid.models.EventSubscriptionUpdateParameters :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns - EventSubscription or ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns EventSubscription or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] - or ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.EventSubscription] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.EventSubscription]] :raises: :class:`CloudError` """ raw_result = self._update_initial( @@ -445,30 +411,8 @@ def update( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - deserialized = self._deserialize('EventSubscription', response) if raw: @@ -477,12 +421,13 @@ def get_long_running_output(response): return deserialized - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) update.metadata = {'url': '/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'} def get_full_url( @@ -510,8 +455,7 @@ def get_full_url( :param operation_config: :ref:`Operation configuration overrides`. :return: EventSubscriptionFullUrl or ClientRawResponse if raw=true - :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionFullUrl or + :rtype: ~azure.mgmt.eventgrid.models.EventSubscriptionFullUrl or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -573,7 +517,7 @@ def list_global_by_subscription( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -643,7 +587,7 @@ def list_global_by_subscription_for_topic_type( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -716,7 +660,7 @@ def list_global_by_resource_group( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -791,7 +735,7 @@ def list_global_by_resource_group_for_topic_type( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -863,7 +807,7 @@ def list_regional_by_subscription( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -938,7 +882,7 @@ def list_regional_by_resource_group( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -1013,7 +957,7 @@ def list_regional_by_subscription_for_topic_type( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -1091,7 +1035,7 @@ def list_regional_by_resource_group_for_topic_type( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -1171,7 +1115,7 @@ def list_by_resource( overrides`. :return: An iterator like instance of EventSubscription :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventSubscriptionPaged[~azext_eventgrid.mgmt.eventgrid.models.EventSubscription] + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -1228,3 +1172,81 @@ def internal_paging(next_link=None, raw=False): return deserialized list_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions'} + + def list_by_domain_topic( + self, resource_group_name, domain_name, topic_name, custom_headers=None, raw=False, **operation_config): + """List all event subscriptions for a specific domain topic. + + List all event subscriptions that have been created for a specific + domain topic. + + :param resource_group_name: The name of the resource group within the + user's subscription. + :type resource_group_name: str + :param domain_name: Name of the top level domain + :type domain_name: str + :param topic_name: Name of the domain topic + :type topic_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of EventSubscription + :rtype: + ~azure.mgmt.eventgrid.models.EventSubscriptionPaged[~azure.mgmt.eventgrid.models.EventSubscription] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_domain_topic.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_name, 'str'), + 'topicName': self._serialize.url("topic_name", topic_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.EventSubscriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.EventSubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_domain_topic.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions'} diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/operations.py index 2ef36b9c994..8cd7ae1e769 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/operations.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/operations.py @@ -23,7 +23,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-05-01-preview". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-05-01-preview" + self.api_version = '2018-09-15-preview' self.config = config @@ -51,7 +51,7 @@ def list( overrides`. :return: An iterator like instance of Operation :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.OperationPaged[~azext_eventgrid.mgmt.eventgrid.models.Operation] + ~azure.mgmt.eventgrid.models.OperationPaged[~azure.mgmt.eventgrid.models.Operation] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topic_types_operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topic_types_operations.py index d3cb9a3e3ed..4a9e0a76ca2 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topic_types_operations.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topic_types_operations.py @@ -23,7 +23,7 @@ class TopicTypesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-05-01-preview". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-05-01-preview" + self.api_version = '2018-09-15-preview' self.config = config @@ -50,7 +50,7 @@ def list( overrides`. :return: An iterator like instance of TopicTypeInfo :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.TopicTypeInfoPaged[~azext_eventgrid.mgmt.eventgrid.models.TopicTypeInfo] + ~azure.mgmt.eventgrid.models.TopicTypeInfoPaged[~azure.mgmt.eventgrid.models.TopicTypeInfo] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -114,7 +114,7 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: TopicTypeInfo or ClientRawResponse if raw=true - :rtype: ~azext_eventgrid.mgmt.eventgrid.models.TopicTypeInfo or + :rtype: ~azure.mgmt.eventgrid.models.TopicTypeInfo or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -175,7 +175,7 @@ def list_event_types( overrides`. :return: An iterator like instance of EventType :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventTypePaged[~azext_eventgrid.mgmt.eventgrid.models.EventType] + ~azure.mgmt.eventgrid.models.EventTypePaged[~azure.mgmt.eventgrid.models.EventType] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topics_operations.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topics_operations.py index ea2c70c9fc8..170a836294d 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topics_operations.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/operations/topics_operations.py @@ -12,8 +12,8 @@ import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -from msrest.exceptions import DeserializationError -from msrestazure.azure_operation import AzureOperationPoller +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling from .. import models @@ -25,7 +25,7 @@ class TopicsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-05-01-preview". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-09-15-preview". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-05-01-preview" + self.api_version = '2018-09-15-preview' self.config = config @@ -56,7 +56,7 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: Topic or ClientRawResponse if raw=true - :rtype: ~azext_eventgrid.mgmt.eventgrid.models.Topic or + :rtype: ~azure.mgmt.eventgrid.models.Topic or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -155,7 +155,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, topic_name, topic_info, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, topic_name, topic_info, custom_headers=None, raw=False, polling=True, **operation_config): """Create a topic. Asynchronously creates a new topic with the specified parameters. @@ -166,15 +166,18 @@ def create_or_update( :param topic_name: Name of the topic :type topic_name: str :param topic_info: Topic information - :type topic_info: ~azext_eventgrid.mgmt.eventgrid.models.Topic + :type topic_info: ~azure.mgmt.eventgrid.models.Topic :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns Topic or - ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Topic or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azext_eventgrid.mgmt.eventgrid.models.Topic] - or ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.Topic] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.Topic]] :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( @@ -185,30 +188,8 @@ def create_or_update( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - deserialized = self._deserialize('Topic', response) if raw: @@ -217,12 +198,13 @@ def get_long_running_output(response): return deserialized - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'} @@ -265,7 +247,7 @@ def _delete_initial( return client_raw_response def delete( - self, resource_group_name, topic_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, topic_name, custom_headers=None, raw=False, polling=True, **operation_config): """Delete a topic. Delete existing topic. @@ -276,12 +258,14 @@ def delete( :param topic_name: Name of the topic :type topic_name: str :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] :raises: :class:`CloudError` """ raw_result = self._delete_initial( @@ -291,40 +275,19 @@ def delete( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'} @@ -380,7 +343,7 @@ def _update_initial( return deserialized def update( - self, resource_group_name, topic_name, tags=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, topic_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): """Update a topic. Asynchronously updates a topic with the specified parameters. @@ -393,13 +356,16 @@ def update( :param tags: Tags of the resource :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns Topic or - ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Topic or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azext_eventgrid.mgmt.eventgrid.models.Topic] - or ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventgrid.models.Topic] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventgrid.models.Topic]] :raises: :class:`CloudError` """ raw_result = self._update_initial( @@ -410,30 +376,8 @@ def update( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - deserialized = self._deserialize('Topic', response) if raw: @@ -442,12 +386,13 @@ def get_long_running_output(response): return deserialized - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'} def list_by_subscription( @@ -463,7 +408,7 @@ def list_by_subscription( overrides`. :return: An iterator like instance of Topic :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.TopicPaged[~azext_eventgrid.mgmt.eventgrid.models.Topic] + ~azure.mgmt.eventgrid.models.TopicPaged[~azure.mgmt.eventgrid.models.Topic] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -533,7 +478,7 @@ def list_by_resource_group( overrides`. :return: An iterator like instance of Topic :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.TopicPaged[~azext_eventgrid.mgmt.eventgrid.models.Topic] + ~azure.mgmt.eventgrid.models.TopicPaged[~azure.mgmt.eventgrid.models.Topic] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -605,8 +550,8 @@ def list_shared_access_keys( :param operation_config: :ref:`Operation configuration overrides`. :return: TopicSharedAccessKeys or ClientRawResponse if raw=true - :rtype: ~azext_eventgrid.mgmt.eventgrid.models.TopicSharedAccessKeys - or ~msrest.pipeline.ClientRawResponse + :rtype: ~azure.mgmt.eventgrid.models.TopicSharedAccessKeys or + ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -672,8 +617,8 @@ def regenerate_key( :param operation_config: :ref:`Operation configuration overrides`. :return: TopicSharedAccessKeys or ClientRawResponse if raw=true - :rtype: ~azext_eventgrid.mgmt.eventgrid.models.TopicSharedAccessKeys - or ~msrest.pipeline.ClientRawResponse + :rtype: ~azure.mgmt.eventgrid.models.TopicSharedAccessKeys or + ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ regenerate_key_request = models.TopicRegenerateKeyRequest(key_name=key_name) @@ -748,7 +693,7 @@ def list_event_types( overrides`. :return: An iterator like instance of EventType :rtype: - ~azext_eventgrid.mgmt.eventgrid.models.EventTypePaged[~azext_eventgrid.mgmt.eventgrid.models.EventType] + ~azure.mgmt.eventgrid.models.EventTypePaged[~azure.mgmt.eventgrid.models.EventType] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): diff --git a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/version.py b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/version.py index 54628defc95..2fcc0d9be34 100644 --- a/src/eventgrid/azext_eventgrid/mgmt/eventgrid/version.py +++ b/src/eventgrid/azext_eventgrid/mgmt/eventgrid/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2018-05-01-preview" +VERSION = "2018-09-15-preview" + diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_arm_resource_group.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_arm_resource_group.yaml deleted file mode 100644 index b9b2e6cf543..00000000000 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_arm_resource_group.yaml +++ /dev/null @@ -1,143 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-19T22:44:37Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T22:44:37Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['384'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1135'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"subjectBeginsWith": "mysubject_prefix", "isSubjectCaseSensitive": - false}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - Content-Length: ['301'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix"},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F23F3978-A162-423B-8B3A-F4230382F64D?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1091'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F23F3978-A162-423B-8B3A-F4230382F64D?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F23F3978-A162-423B-8B3A-F4230382F64D?api-version=2018-01-01","name":"f23f3978-a162-423b-8b3a-f4230382f64d","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['262'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['763'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:44:52 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdVTlRHUVdUTjRBWlVUQUtRRElUQUdIMlZYWUE3UVBDVkhTSnw2MTdCQzI2MkI1OTRFQkIzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1029'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_resource.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_resource.yaml deleted file mode 100644 index 60d565752ab..00000000000 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_to_resource.yaml +++ /dev/null @@ -1,606 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-19T22:44:52Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clieventgridrg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001","name":"clieventgridrg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T22:44:52Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['384'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1084'] - status: {code: 201, message: Created} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:44:55 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/a5ad249e-ce8c-4bd3-a250-2c0d112502d2?monitor=true&api-version=2017-10-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1134'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/a5ad249e-ce8c-4bd3-a250-2c0d112502d2?monitor=true&api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-04-19T22:44:55.1453183Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Thu, 19 Apr 2018 22:45:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"XpqvWVgOdDMKtSPSO6/xluUlCjOEXX4dlQwKhr7tpSkwwSjBVfXAiIrx/ZBW6UWp5LOsrt+Cy4bpWY5Oxunxww==","permissions":"FULL"},{"keyName":"key2","value":"S/fC7vkeWdqzeIbQNszupGV9XZwBuYUmaS3yO4sYsMAHMyCuJZ0bP+GHio2ewA3A8Ce5NqWO/5DMZSkqozDC+A==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Thu, 19 Apr 2018 22:45:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1147'] - status: {code: 200, message: OK} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-04-19T22:44:55.1453183Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Thu, 19 Apr 2018 22:45:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1155'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-04-19T22:44:55.1453183Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Thu, 19 Apr 2018 22:45:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "tags": {}, "properties": {"encryption": - {"services": {"blob": {"enabled": true}, "file": {"enabled": true}}, "keySource": - "Microsoft.Storage"}, "supportsHttpsTrafficOnly": false, "networkAcls": {"bypass": - "AzureServices", "virtualNetworkRules": [], "ipRules": [], "defaultAction": - "Allow"}}, "kind": "StorageV2"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account update] - Connection: [keep-alive] - Content-Length: ['347'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-04-19T22:44:55.2234895Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-04-19T22:44:55.1453183Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1252'] - content-type: [application/json] - date: ['Thu, 19 Apr 2018 22:45:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1124'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"isSubjectCaseSensitive": false}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - Content-Length: ['260'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/9C36A609-0B13-4535-829B-B1803CEC74BF?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['856'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1103'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/9C36A609-0B13-4535-829B-B1803CEC74BF?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/9C36A609-0B13-4535-829B-B1803CEC74BF?api-version=2018-01-01","name":"9c36a609-0b13-4535-829b-b1803cec74bf","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['279'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['929'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['929'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['929'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003/getFullUrl?api-version=2018-01-01 - response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}'} - headers: - cache-control: [no-cache] - content-length: ['138'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1178'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['929'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": - "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"subjectBeginsWith": "", "subjectEndsWith": ".jpg", "includedEventTypes": - ["All"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - Content-Length: ['294'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/AC255AF5-8FBF-485C-936C-EA97659CEEF8?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['932'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1178'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/AC255AF5-8FBF-485C-936C-EA97659CEEF8?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/AC255AF5-8FBF-485C-936C-EA97659CEEF8?api-version=2018-01-01","name":"ac255af5-8fbf-485c-936c-ea97659ceef8","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['279'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['933'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} - headers: - cache-control: [no-cache] - content-length: ['945'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:45:45 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationResults/8B61D8B7-704F-4443-872B-206D34849BD1?api-version=2018-01-01'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1192'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationResults/8B61D8B7-704F-4443-872B-206D34849BD1?api-version=2018-01-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:45:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clieventgridrg000001?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:45:57 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElFVkVOVEdSSURSR1FQM0o0NVo1UzZaS0xVT01HTkFCRFpNNDVUT0tCTkZBTnw1ODU0MjVFMUM5OUU2MEUwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1176'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_with_filters.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_with_filters.yaml deleted file mode 100644 index 974dadf539d..00000000000 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_event_subscriptions_with_filters.yaml +++ /dev/null @@ -1,308 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-19T22:45:57Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T22:45:57Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['384'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:45:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1174'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"subjectEndsWith": "mysubject_suffix", "includedEventTypes": ["blobCreated", - "blobUpdated"], "isSubjectCaseSensitive": true}, "labels": ["Finance", "HR"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - Content-Length: ['381'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C984F51F-8A3D-496D-A3C8-0BD099D85059?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['803'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1121'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C984F51F-8A3D-496D-A3C8-0BD099D85059?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C984F51F-8A3D-496D-A3C8-0BD099D85059?api-version=2018-01-01","name":"c984f51f-8a3d-496d-a3c8-0bd099d85059","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['262'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['827'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['827'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['827'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-01-01 - response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}'} - headers: - cache-control: [no-cache] - content-length: ['138'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1137'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} - headers: - cache-control: [no-cache] - content-length: ['839'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-01-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:46:13 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/74BB28CD-7CB5-4CF5-8842-3CE79882D0F6?api-version=2018-01-01'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1145'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/74BB28CD-7CB5-4CF5-8842-3CE79882D0F6?api-version=2018-01-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:46:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:46:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGQlRIWkY2UkRURkFBQ0dZT0Q0R1BBQTZVRkFaRFo3Q1pMWXwwRjdBN0ExM0VGNzYxNUE1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1184'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_topic.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_topic.yaml deleted file mode 100644 index a8ea75b1d02..00000000000 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_create_topic.yaml +++ /dev/null @@ -1,704 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-19T22:46:26Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T22:46:26Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['384'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1081'] - status: {code: 201, message: Created} -- request: - body: '{"location": "eastus2euap"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic create] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/DB27681F-6900-4AB3-A4DB-92AEFBEF98F7?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['414'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1144'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/DB27681F-6900-4AB3-A4DB-92AEFBEF98F7?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/DB27681F-6900-4AB3-A4DB-92AEFBEF98F7?api-version=2018-01-01","name":"db27681f-6900-4ab3-a4db-92aefbef98f7","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['284'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - cache-control: [no-cache] - content-length: ['506'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:40 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - cache-control: [no-cache] - content-length: ['506'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - cache-control: [no-cache] - content-length: ['506'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"tags": {"Dept": "IT"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - Content-Length: ['24'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Updating","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/3363BBEB-A687-4574-9474-EAFCFF97B7D3?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['514'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1176'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/3363BBEB-A687-4574-9474-EAFCFF97B7D3?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/3363BBEB-A687-4574-9474-EAFCFF97B7D3?api-version=2018-01-01","name":"3363bbeb-a687-4574-9474-eafcff97b7d3","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['284'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} - headers: - cache-control: [no-cache] - content-length: ['515'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}]}'} - headers: - cache-control: [no-cache] - content-length: ['527'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic key list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/listKeys?api-version=2018-01-01 - response: - body: {string: '{"key1":"t1EZk5Chk1+3/ZoJ5xgvFgRFrswomaFES3L13sQelAo=","key2":"NlbcvQdn2yaPMxlkFKxz0bTCQRHZ7Ec3FjEk4rrhpXA="}'} - headers: - cache-control: [no-cache] - content-length: ['109'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1163'] - status: {code: 200, message: OK} -- request: - body: '{"keyName": "key1"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic key regenerate] - Connection: [keep-alive] - Content-Length: ['19'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-01-01 - response: - body: {string: '{"key1":"P8+DXIs8/FHVVvBKl0lpIBMXaA48g6g2EkFRxjqu+zo=","key2":"NlbcvQdn2yaPMxlkFKxz0bTCQRHZ7Ec3FjEk4rrhpXA="}'} - headers: - cache-control: [no-cache] - content-length: ['109'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1173'] - status: {code: 200, message: OK} -- request: - body: '{"keyName": "key2"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic key regenerate] - Connection: [keep-alive] - Content-Length: ['19'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-01-01 - response: - body: {string: '{"key1":"P8+DXIs8/FHVVvBKl0lpIBMXaA48g6g2EkFRxjqu+zo=","key2":"js8JtMptcmkAPZIz/lOO0xxDjFOuU89qVOpOV2byHyc="}'} - headers: - cache-control: [no-cache] - content-length: ['109'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:46:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1158'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"isSubjectCaseSensitive": false}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - Content-Length: ['260'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/B725263F-1D92-4E88-B3E7-F9B31EF7FB31?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['874'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1175'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/B725263F-1D92-4E88-B3E7-F9B31EF7FB31?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/B725263F-1D92-4E88-B3E7-F9B31EF7FB31?api-version=2018-01-01","name":"b725263f-1d92-4e88-b3e7-f9b31ef7fb31","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['284'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['947'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['947'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['947'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003/getFullUrl?api-version=2018-01-01 - response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}'} - headers: - cache-control: [no-cache] - content-length: ['138'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1118'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['947'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": - "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=69AbujfvYn77Ccf5OySDcTk9CYM1b9Ua2lO37ayoWb97fGRWELGbnA=="}}, - "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": - ["All"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - Content-Length: ['290'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/D2BB5053-5AEF-4C9C-9F82-552AC1846DA2?api-version=2018-01-01'] - cache-control: [no-cache] - content-length: ['946'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1091'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/D2BB5053-5AEF-4C9C-9F82-552AC1846DA2?api-version=2018-01-01 - response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/D2BB5053-5AEF-4C9C-9F82-552AC1846DA2?api-version=2018-01-01","name":"d2bb5053-5aef-4c9c-9f82-552ac1846da2","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['284'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 - response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} - headers: - cache-control: [no-cache] - content-length: ['947'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} - headers: - cache-control: [no-cache] - content-length: ['958'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 19 Apr 2018 22:47:28 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkczN1FMSzRLRDQySFBRWktXN0pYSlg0UTdGVkpJTVE0UkZBQXwyREVDMUVDNjlCNTMzNzNFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1162'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_topic_types.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_topic_types.yaml deleted file mode 100644 index 47a237b2647..00000000000 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/eventgrid_test_topic_types.yaml +++ /dev/null @@ -1,116 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic-type list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/providers/Microsoft.EventGrid/topicTypes?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"provider":"Microsoft.Eventhub","displayName":"Event - Hubs Namespaces","description":"Microsoft Event Hubs service events.","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["West - US 2","West Central US","East US 2 EUAP","East US","West US","Central US","East - US 2","West Europe","North Europe","Southeast Asia","East Asia"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces","name":"Microsoft.Eventhub.Namespaces","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.Storage","displayName":"Storage - Accounts","description":"Microsoft Storage service events.","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["West - US 2","West Central US","East US 2 EUAP","East US","West US","Central US","East - US 2","West Europe","North Europe","Southeast Asia","East Asia"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts","name":"Microsoft.Storage.StorageAccounts","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.Resources","displayName":"Azure - Subscriptions","description":"Resource management events under an Azure subscription","resourceRegionType":"GlobalResource","provisioningState":"Succeeded"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions","name":"Microsoft.Resources.Subscriptions","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.Resources","displayName":"Resource - Groups","description":"Resource management events under a resource group.","resourceRegionType":"GlobalResource","provisioningState":"Succeeded"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups","name":"Microsoft.Resources.ResourceGroups","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.Devices","displayName":"Azure - IoT Hub Accounts","description":"Azure IoT Hub service events","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["West - US 2","West Central US","East US","West US","Central US","East US 2","West - Europe","North Europe","Southeast Asia","East Asia"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Devices.IotHubs","name":"Microsoft.Devices.IotHubs","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.EventGrid","displayName":"Event - Grid Topics","description":"Custom events via Event Grid Topics","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["West - US 2","West Central US","East US 2 EUAP","East US","West US","Central US","East - US 2","West Europe","North Europe","Southeast Asia","East Asia"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Topics","name":"Microsoft.EventGrid.Topics","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.ServiceBus","displayName":"Service - Bus Namespaces","description":"Service Bus events","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["West - US 2","West Central US","East US 2 EUAP","East US","West US","Central US","East - US 2","West Europe","North Europe","Southeast Asia","East Asia"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.ServiceBus.Namespaces","name":"Microsoft.ServiceBus.Namespaces","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.ContainerRegistry","displayName":"Azure - Container Registry","description":"Azure Container Registry service events","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":["East - US 2 EUAP"]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.ContainerRegistry.Registries","name":"Microsoft.ContainerRegistry.Registries","type":"Microsoft.EventGrid/topicTypes"},{"properties":{"provider":"Microsoft.Media","displayName":"Microsoft - Azure Media Services","description":"Microsoft Azure Media Services events","resourceRegionType":"RegionalResource","provisioningState":"Succeeded","supportedLocations":[]},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Media.MediaServices","name":"Microsoft.Media.MediaServices","type":"Microsoft.EventGrid/topicTypes"}]}'} - headers: - cache-control: [no-cache] - content-length: ['4286'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic-type show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions?api-version=2018-01-01 - response: - body: {string: '{"properties":{"provider":"Microsoft.Resources","displayName":"Azure - Subscriptions","description":"Resource management events under an Azure subscription","resourceRegionType":"GlobalResource","provisioningState":"Succeeded"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions","name":"Microsoft.Resources.Subscriptions","type":"Microsoft.EventGrid/topicTypes"}'} - headers: - cache-control: [no-cache] - content-length: ['391'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic-type list-event-types] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.27 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes?api-version=2018-01-01 - response: - body: {string: '{"value":[{"properties":{"displayName":"Resource Write Success","description":"Raised - when a resource create or update operation succeeds.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceWriteSuccess","name":"Microsoft.Resources.ResourceWriteSuccess","type":"Microsoft.EventGrid/topicTypes/eventTypes"},{"properties":{"displayName":"Resource - Write Failure","description":"Raised when a resource create or update operation - fails.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceWriteFailure","name":"Microsoft.Resources.ResourceWriteFailure","type":"Microsoft.EventGrid/topicTypes/eventTypes"},{"properties":{"displayName":"Resource - Write Cancel","description":"Raised when a resource create or update operation - is cancelled.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceWriteCancel","name":"Microsoft.Resources.ResourceWriteCancel","type":"Microsoft.EventGrid/topicTypes/eventTypes"},{"properties":{"displayName":"Resource - Delete Success","description":"Raised when a resource deletion operation succeeds.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceDeleteSuccess","name":"Microsoft.Resources.ResourceDeleteSuccess","type":"Microsoft.EventGrid/topicTypes/eventTypes"},{"properties":{"displayName":"Resource - Delete Failure","description":"Raised when a resource delete operation fails.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceDeleteFailure","name":"Microsoft.Resources.ResourceDeleteFailure","type":"Microsoft.EventGrid/topicTypes/eventTypes"},{"properties":{"displayName":"Resource - Delete Cancel","description":"Raised when a resource delete is cancelled. - This happens when template deployment is cancelled.","schemaUrl":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json"},"id":"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes/Microsoft.Resources.ResourceDeleteCancel","name":"Microsoft.Resources.ResourceDeleteCancel","type":"Microsoft.EventGrid/topicTypes/eventTypes"}]}'} - headers: - cache-control: [no-cache] - content-length: ['3252'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 19 Apr 2018 22:47:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_advanced_filters.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_advanced_filters.yaml new file mode 100644 index 00000000000..eb80f2cb8c2 --- /dev/null +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_advanced_filters.yaml @@ -0,0 +1,439 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-10-12T20:44:36Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:44:36Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"location": "westcentralus", "properties": {"inputSchema": "EventGridSchema"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic create] + Connection: [keep-alive] + Content-Length: ['79'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/97CDE286-664D-4E78-BB98-F4E1721B91FA?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['448'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/97CDE286-664D-4E78-BB98-F4E1721B91FA?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/97CDE286-664D-4E78-BB98-F4E1721B91FA?api-version=2018-09-15-preview","name":"97cde286-664d-4e78-bb98-f4e1721b91fa","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + headers: + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + headers: + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false, "advancedFilters": [{"key": "data.key2", + "operatorType": "NumberIn", "values": [2.0, 3.0, 4.0, 100.0, 200.0]}]}, "retryPolicy": + {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['450'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"advancedFilters":[{"values":[2.0,3.0,4.0,100.0,200.0],"operatorType":"NumberIn","key":"data.key2"}]},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/19A4CAC1-C83D-4514-98D5-1483D676CAF6?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1047'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:44:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1155'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/19A4CAC1-C83D-4514-98D5-1483D676CAF6?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/19A4CAC1-C83D-4514-98D5-1483D676CAF6?api-version=2018-09-15-preview","name":"19a4cac1-c83d-4514-98d5-1483d676caf6","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[2.0,3.0,4.0,100.0,200.0],"operatorType":"NumberIn","key":"data.key2"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1161'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false, "advancedFilters": [{"key": "data.key1", + "operatorType": "NumberIn", "values": [2.0, 3.0, 4.0, 100.0, 200.0]}, {"key": + "data.key2", "operatorType": "StringIn", "values": ["2", "3", "4", "100", "200"]}]}, + "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['541'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"advancedFilters":[{"values":[2.0,3.0,4.0,100.0,200.0],"operatorType":"NumberIn","key":"data.key1"},{"values":["2","3","4","100","200"],"operatorType":"StringIn","key":"data.key2"}]},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/388CDB4D-9143-4714-93FC-5944A3CBCD3A?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1128'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/388CDB4D-9143-4714-93FC-5944A3CBCD3A?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/388CDB4D-9143-4714-93FC-5944A3CBCD3A?api-version=2018-09-15-preview","name":"388cdb4d-9143-4714-93fc-5944a3cbcd3a","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[2.0,3.0,4.0,100.0,200.0],"operatorType":"NumberIn","key":"data.key1"},{"values":["2","3","4","100","200"],"operatorType":"StringIn","key":"data.key2"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1242'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:45:20 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/DF67E381-CB60-4364-9616-8D3AC54B51EC?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/DF67E381-CB60-4364-9616-8D3AC54B51EC?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:45:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:45:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/421BF812-4C3F-4A3F-B8B3-D7E8A68E41B8?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/421BF812-4C3F-4A3F-B8B3-D7E8A68E41B8?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:45:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:45:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdIRkJTWDY3NEJRT05HQzNFVlAyQkRDUVlOVEJWVkw0T1pNTHwyOTg0RTkyNEM0QUYyMTk1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_domain.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_domain.yaml new file mode 100644 index 00000000000..67b0a65a44c --- /dev/null +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_domain.yaml @@ -0,0 +1,1390 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-10-12T20:45:44Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:45:44Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: '{"location": "westcentralus", "properties": {"inputSchema": "EventGridSchema"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + Content-Length: ['79'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/ED283009-86E2-4E15-8D7C-892DE9F60D7B?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['450'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1161'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/ED283009-86E2-4E15-8D7C-892DE9F60D7B?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/ED283009-86E2-4E15-8D7C-892DE9F60D7B?api-version=2018-09-15-preview","name":"ed283009-86e2-4e15-8d7c-892de9f60d7b","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['544'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['544'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:45:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "westcentralus", "properties": {"inputSchema": "CloudEventV01Schema"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + Content-Length: ['83'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000003","name":"cli000003","type":"Microsoft.EventGrid/domains"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/26C10A67-ECF9-40D4-8D09-AA221F687919?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['454'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/26C10A67-ECF9-40D4-8D09-AA221F687919?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/26C10A67-ECF9-40D4-8D09-AA221F687919?api-version=2018-09-15-preview","name":"26c10a67-ecf9-40d4-8d09-aa221f687919","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000003","name":"cli000003","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['548'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "westcentralus", "properties": {"inputSchema": "CustomEventSchema", + "inputSchemaMapping": {"inputSchemaMappingType": "Json", "properties": {"id": + {}, "topic": {"sourceField": "myTopic"}, "eventTime": {}, "eventType": {"sourceField": + "myEventTypeField"}, "subject": {"defaultValue": "DefaultSubject"}, "dataVersion": + {"defaultValue": "1.0"}}}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + Content-Length: ['356'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000004?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopic"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000004","name":"cli000004","type":"Microsoft.EventGrid/domains"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/369B2F43-F929-4E1E-ADC9-DAF661A2C0E9?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['801'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/369B2F43-F929-4E1E-ADC9-DAF661A2C0E9?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/369B2F43-F929-4E1E-ADC9-DAF661A2C0E9?api-version=2018-09-15-preview","name":"369b2f43-f929-4e1e-adc9-daf661a2c0e9","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000004?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopic"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000004","name":"cli000004","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['895'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['544'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"tags": {"Dept": "IT"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain update] + Connection: [keep-alive] + Content-Length: ['24'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Updating","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E2A57C03-D0D1-4ED0-81F4-4B603CFB7475?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['552'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E2A57C03-D0D1-4ED0-81F4-4B603CFB7475?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E2A57C03-D0D1-4ED0-81F4-4B603CFB7475?api-version=2018-09-15-preview","name":"e2a57c03-d0d1-4ed0-81f4-4b603cfb7475","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"}'} + headers: + cache-control: [no-cache] + content-length: ['553'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002","name":"cli000002","type":"Microsoft.EventGrid/domains"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000003","name":"cli000003","type":"Microsoft.EventGrid/domains"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopic"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000004","name":"cli000004","type":"Microsoft.EventGrid/domains"}]}'} + headers: + cache-control: [no-cache] + content-length: ['2010'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain key list] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/listKeys?api-version=2018-09-15-preview + response: + body: {string: '{"key1":"vEt2wHBCCa9g71UXnDnU8I48KssAPAXVpOYjPsTDUlM=","key2":"ZjtfT4pt2bFze580pw6grYj0GYsOsmGkA33Lh6Ie5AE="}'} + headers: + cache-control: [no-cache] + content-length: ['109'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: '{"keyName": "key1"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain key regenerate] + Connection: [keep-alive] + Content-Length: ['19'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/regenerateKey?api-version=2018-09-15-preview + response: + body: {string: '{"key1":"GcFoVwbvXJ0zlwirA3Zj5Aeb2G8mMp7scsMY/EeGCkY=","key2":"ZjtfT4pt2bFze580pw6grYj0GYsOsmGkA33Lh6Ie5AE="}'} + headers: + cache-control: [no-cache] + content-length: ['109'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: '{"keyName": "key2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain key regenerate] + Connection: [keep-alive] + Content-Length: ['19'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/regenerateKey?api-version=2018-09-15-preview + response: + body: {string: '{"key1":"GcFoVwbvXJ0zlwirA3Zj5Aeb2G8mMp7scsMY/EeGCkY=","key2":"esKFRH6jkbxia/OqdWIWtrQSG7lgAmZ+zS0vO74iZqw="}'} + headers: + cache-control: [no-cache] + content-length: ['109'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1186'] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/9D804F50-C8A3-425C-B65A-2DA6DF1A1D16?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['949'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/9D804F50-C8A3-425C-B65A-2DA6DF1A1D16?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/9D804F50-C8A3-425C-B65A-2DA6DF1A1D16?api-version=2018-09-15-preview","name":"9d804f50-c8a3-425c-b65a-2da6df1a1d16","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1062'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1062'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1062'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-09-15-preview + response: + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} + headers: + cache-control: [no-cache] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1062'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['410'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/AAB74098-2488-4347-92E6-281C704D60EB?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1061'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:46:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/AAB74098-2488-4347-92E6-281C704D60EB?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/AAB74098-2488-4347-92E6-281C704D60EB?api-version=2018-09-15-preview","name":"aab74098-2488-4347-92e6-281c704d60eb","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1062'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1074'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:47:10 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/A70D2972-2415-4F1B-9AAC-A4010E3595F8?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/A70D2972-2415-4F1B-9AAC-A4010E3595F8?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:47:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/7C0FD838-91AB-4534-960A-9546BE0C6D79?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['977'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/7C0FD838-91AB-4534-960A-9546BE0C6D79?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/7C0FD838-91AB-4534-960A-9546BE0C6D79?api-version=2018-09-15-preview","name":"7c0fd838-91ab-4534-960a-9546be0c6d79","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1090'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1090'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain topic list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1","name":"topic1","type":"Microsoft.EventGrid/domains/topics"}]}'} + headers: + cache-control: [no-cache] + content-length: ['316'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain topic show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1?api-version=2018-09-15-preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1","name":"topic1","type":"Microsoft.EventGrid/domains/topics"}'} + headers: + cache-control: [no-cache] + content-length: ['304'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1090'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-09-15-preview + response: + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} + headers: + cache-control: [no-cache] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1090'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['410'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/3C450A92-9C44-4BA7-AAA0-9DC40790B9FB?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1089'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/3C450A92-9C44-4BA7-AAA0-9DC40790B9FB?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/3C450A92-9C44-4BA7-AAA0-9DC40790B9FB?api-version=2018-09-15-preview","name":"3c450a92-9c44-4ba7-aaa0-9dc40790b9fb","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1090'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/domains/cli000002/topics/topic1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1102'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:47:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:47:53 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/A6EEA97B-9082-4710-B984-E0418ADF0069?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/A6EEA97B-9082-4710-B984-E0418ADF0069?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:48:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/domains/cli000002?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:48:03 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/C751AD4A-3106-40F0-9AB4-16752461A2D4?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid domain delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/C751AD4A-3106-40F0-9AB4-16752461A2D4?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:48:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:48:16 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdFQ1RYNVcyVENFVkZVWk1MSVg1QVdVTUlMRUJIV1dPNVRXV3wzNDkwNTBCNUFCREJBRUM2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_arm_resource_group.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_arm_resource_group.yaml index a7993039b2d..b7a76187b38 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_arm_resource_group.yaml +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_arm_resource_group.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-25T22:16:13Z"}}' + "date": "2018-10-12T20:48:16Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,58 +9,82 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-25T22:16:13Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:48:16Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:15 GMT'] + date: ['Fri, 12 Oct 2018 20:48:17 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1090'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:48:16Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:48:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} - request: body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}}, + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, "filter": {"subjectBeginsWith": "mysubject_prefix", "isSubjectCaseSensitive": - false}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": - 30, "eventTimeToLiveInMinutes": 1440}}}' + false}, "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": + 1440}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - Content-Length: ['421'] + Content-Length: ['379'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix"},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix"},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F55D534C-BAD9-4DAA-9004-5802EB047A2E?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C80A5928-2564-4153-B14D-87B8F2CE249A?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['825'] + content-length: ['785'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:16 GMT'] + date: ['Fri, 12 Oct 2018 20:48:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1115'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -69,18 +93,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F55D534C-BAD9-4DAA-9004-5802EB047A2E?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C80A5928-2564-4153-B14D-87B8F2CE249A?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F55D534C-BAD9-4DAA-9004-5802EB047A2E?api-version=2018-05-01-preview","name":"f55d534c-bad9-4daa-9004-5802eb047a2e","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/C80A5928-2564-4153-B14D-87B8F2CE249A?api-version=2018-09-15-preview","name":"c80a5928-2564-4153-b14d-87b8f2ce249a","status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:27 GMT'] + date: ['Fri, 12 Oct 2018 20:48:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -96,18 +119,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['876'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:28 GMT'] + date: ['Fri, 12 Oct 2018 20:48:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -124,19 +146,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['876'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:29 GMT'] + date: ['Fri, 12 Oct 2018 20:48:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -153,19 +174,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['876'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:16:30 GMT'] + date: ['Fri, 12 Oct 2018 20:48:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -183,50 +203,47 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:17:30 GMT'] + date: ['Fri, 12 Oct 2018 20:48:34 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + x-ms-ratelimit-remaining-subscription-writes: ['1164'] + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] + CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-05-01-preview + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['138'] + content-length: ['876'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:17:31 GMT'] + date: ['Fri, 12 Oct 2018 20:48:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -234,38 +251,40 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1153'] status: {code: 200, message: OK} - request: - body: null + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "mysubject_prefix", "subjectEndsWith": ".jpg", + "includedEventTypes": ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": + {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] + Content-Length: ['430'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/88E87BAA-7EB2-48A7-A1F6-F9008B97F105?api-version=2018-09-15-preview'] cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['879'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:31 GMT'] + date: ['Fri, 12 Oct 2018 20:48:36 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} - request: body: null headers: @@ -273,20 +292,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/88E87BAA-7EB2-48A7-A1F6-F9008B97F105?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/88E87BAA-7EB2-48A7-A1F6-F9008B97F105?api-version=2018-09-15-preview","name":"88e87baa-7eb2-48a7-a1f6-f9008b97f105","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['876'] + content-length: ['270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:32 GMT'] + date: ['Fri, 12 Oct 2018 20:48:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -296,57 +312,51 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": - "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}}, - "filter": {"subjectBeginsWith": "mysubject_prefix", "subjectEndsWith": ".jpg", - "includedEventTypes": ["All"]}}' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - Content-Length: ['310'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F45DA0EF-0491-4E92-B0DC-945633E8492D?api-version=2018-05-01-preview'] cache-control: [no-cache] - content-length: ['879'] + content-length: ['880'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:34 GMT'] + date: ['Fri, 12 Oct 2018 20:48:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1117'] - status: {code: 201, message: Created} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] + CommandName: [eventgrid event-subscription list] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F45DA0EF-0491-4E92-B0DC-945633E8492D?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/F45DA0EF-0491-4E92-B0DC-945633E8492D?api-version=2018-05-01-preview","name":"f45da0ef-0491-4e92-b0dc-945633e8492d","status":"Succeeded"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['270'] + content-length: ['892'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:44 GMT'] + date: ['Fri, 12 Oct 2018 20:48:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -360,20 +370,21 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] + CommandName: [eventgrid event-subscription list] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-26.brazilus.logic.azure.com/workflows/c90432e8c58d4f348f5072e950bc4a27/triggers/When_a_resource_event_occurs/versions/08586993622831880989/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","name":"LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1fun9ou1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/mysub600","name":"mysub600","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/r3wknyr3"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/allsubevents3","name":"allsubevents3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.brazilus.logic.azure.com/workflows/c22dee70ada34ffca23b5fc89232166a/triggers/When_a_resource_event_occurs/versions/08586988636200583748/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","name":"LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-01.brazilus.logic.azure.com/workflows/87f6a4a8c5f3473ab9fd50076da6e909/triggers/On_a_resource_event/versions/08586988571716815965/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","name":"LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/10jslly1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses112","name":"kalses112","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg/providers/Microsoft.EventGrid/eventSubscriptions/subValid","name":"subValid","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/11x4isl1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarArmRgTest","name":"cesarArmRgTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jimsdh1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/rgsub1","name":"rgsub1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarTest3","name":"cesarTest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/z5gv8oz5"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses77","name":"kalses77","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/snorop","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Snorop/providers/Microsoft.EventGrid/eventSubscriptions/SomeSubNameHere","name":"SomeSubNameHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest","name":"armswitchtest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest2","name":"armswitchtest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest3","name":"armswitchtest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2","name":"examplesubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4","name":"examplesubscription4","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demorg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demoRg/providers/Microsoft.EventGrid/eventSubscriptions/testRg","name":"testRg","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-c5f6c255-West-US-2","name":"eg-crud-runner-subscription-c5f6c255-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-88e492c5-West-US-2","name":"eg-crud-runner-subscription-88e492c5-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-86f9994d-West-US-2","name":"eg-crud-runner-subscription-86f9994d-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/testeventhublocalusw2/eventhubs/testeventhublocalusw2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus2/eventhubs/egarmrunnereventhubwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus2euap","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus2euap/eventhubs/egarmrunnereventhubeastus2euap"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-EAST-US-2-EUAP","name":"eg-arm-runner-subscription-EAST-US-2-EUAP","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo-devopsautomation","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Demo-DevOpsAutomation/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Demo-DevOpsAutomation/providers/Microsoft.EventGrid/eventSubscriptions/AzureAutomation","name":"AzureAutomation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMCreation","name":"VMCreation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/165j5xt1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess","Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceWriteCancel"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMEventAudit","name":"VMEventAudit","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/SQLchanges","name":"SQLchanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllProdChanges","name":"AllProdChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllDogfoodChanges","name":"AllDogfoodChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/DeploymentFailures","name":"DeploymentFailures","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1huu2ug1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/testsub","name":"testsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-14.westcentralus.logic.azure.com/workflows/d5ef6d3cf09147529f40e36172992ff1/triggers/When_a_resource_event_occurs/versions/08586809618926790378/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","name":"LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES1","name":"testPsRgES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES2","name":"testPsRgES2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES3","name":"testPsRgES3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES5","name":"testPsRgES5","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES6","name":"testPsRgES6","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111","name":"testPsRgES111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpowershellRG/providers/Microsoft.Relay/namespaces/testpowershellhybridconnection/hybridConnections/eventgridhybridconnection1"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgE0123","name":"testPsRgE0123","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111333","name":"testPsRgES111333","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111344","name":"testPsRgES111344","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES11134444","name":"testPsRgES11134444","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someTestEventSub","name":"someTestEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es11","name":"es11","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someEventSubInRG","name":"someEventSubInRG","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://gridtestsite.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/RGtestFoo","name":"RGtestFoo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay-test/hybridconnections/somehybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/something","name":"something","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventGrid/eventSubscriptions/runnertest","name":"runnertest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus/eventhubs/egarmrunnereventhubwestus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US","name":"eg-arm-runner-subscription-West-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus/eventhubs/egarmrunnereventhubeastus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-East-US","name":"eg-arm-runner-subscription-East-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/runner-logger-sub","name":"runner-logger-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serverlessdevops","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/undefined","name":"undefined","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/arm-runner-sub","name":"arm-runner-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/devopssubscription","name":"devopssubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domainTopic1ES1","name":"domainTopic1ES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES8888","name":"domaintest11topic44ES8888","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES9999","name":"domaintest11topic44ES9999","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgcentralindia","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacecentralindia/eventhubs/egarmrunnereventhubcentralindia"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-Central-India","name":"eg-arm-runner-subscription-Central-India","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestcentralus/eventhubs/egarmrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-Central-US","name":"eg-arm-runner-subscription-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1008","name":"es1008","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1009","name":"es1009","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1011","name":"es1011","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['880'] + content-length: ['75157'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:45 GMT'] + date: ['Fri, 12 Oct 2018 20:48:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -390,19 +401,18 @@ interactions: CommandName: [eventgrid event-subscription list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview response: body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] content-length: ['892'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:18:46 GMT'] + date: ['Fri, 12 Oct 2018 20:48:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -420,28 +430,25 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: ''} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:19:47 GMT'] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:48:53 GMT'] expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/7034D407-EB14-414A-8C3A-FD03CD2BA6E4?api-version=2018-09-15-preview'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + status: {code: 202, message: Accepted} - request: body: null headers: @@ -449,56 +456,781 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/7034D407-EB14-414A-8C3A-FD03CD2BA6E4?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:49:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "mysubject_prefix", "isSubjectCaseSensitive": + false}, "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": + 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['379'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix"},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/A9DCE040-0F02-4C5D-B3E1-14CF2C95FFBA?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['785'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/A9DCE040-0F02-4C5D-B3E1-14CF2C95FFBA?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/A9DCE040-0F02-4C5D-B3E1-14CF2C95FFBA?api-version=2018-09-15-preview","name":"a9dce040-0f02-4c5d-b3e1-14cf2c95ffba","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['270'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-09-15-preview response: - body: {string: ''} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:19:48 GMT'] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:18 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/39AAF5F8-501E-4D4E-9CF6-7C24B5113A11?api-version=2018-05-01-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1180'] - status: {code: 202, message: Accepted} + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] + CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/39AAF5F8-501E-4D4E-9CF6-7C24B5113A11?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "mysubject_prefix", "subjectEndsWith": ".jpg", + "includedEventTypes": ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": + {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['430'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/27E52909-744F-4D49-90CA-A63D20857B18?api-version=2018-09-15-preview'] cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['879'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:20:58 GMT'] + date: ['Fri, 12 Oct 2018 20:49:20 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/27E52909-744F-4D49-90CA-A63D20857B18?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/27E52909-744F-4D49-90CA-A63D20857B18?api-version=2018-09-15-preview","name":"27e52909-744f-4d49-90ca-a63d20857b18","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['270'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['880'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['892'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-26.brazilus.logic.azure.com/workflows/c90432e8c58d4f348f5072e950bc4a27/triggers/When_a_resource_event_occurs/versions/08586993622831880989/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","name":"LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1fun9ou1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/mysub600","name":"mysub600","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/r3wknyr3"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/allsubevents3","name":"allsubevents3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.brazilus.logic.azure.com/workflows/c22dee70ada34ffca23b5fc89232166a/triggers/When_a_resource_event_occurs/versions/08586988636200583748/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","name":"LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-01.brazilus.logic.azure.com/workflows/87f6a4a8c5f3473ab9fd50076da6e909/triggers/On_a_resource_event/versions/08586988571716815965/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","name":"LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/10jslly1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses112","name":"kalses112","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg/providers/Microsoft.EventGrid/eventSubscriptions/subValid","name":"subValid","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/11x4isl1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarArmRgTest","name":"cesarArmRgTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jimsdh1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/rgsub1","name":"rgsub1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarTest3","name":"cesarTest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/z5gv8oz5"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses77","name":"kalses77","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/snorop","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Snorop/providers/Microsoft.EventGrid/eventSubscriptions/SomeSubNameHere","name":"SomeSubNameHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest","name":"armswitchtest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest2","name":"armswitchtest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest3","name":"armswitchtest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2","name":"examplesubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4","name":"examplesubscription4","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demorg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demoRg/providers/Microsoft.EventGrid/eventSubscriptions/testRg","name":"testRg","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-c5f6c255-West-US-2","name":"eg-crud-runner-subscription-c5f6c255-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-88e492c5-West-US-2","name":"eg-crud-runner-subscription-88e492c5-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-86f9994d-West-US-2","name":"eg-crud-runner-subscription-86f9994d-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/testeventhublocalusw2/eventhubs/testeventhublocalusw2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus2/eventhubs/egarmrunnereventhubwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus2euap","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus2euap/eventhubs/egarmrunnereventhubeastus2euap"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-EAST-US-2-EUAP","name":"eg-arm-runner-subscription-EAST-US-2-EUAP","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo-devopsautomation","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Demo-DevOpsAutomation/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Demo-DevOpsAutomation/providers/Microsoft.EventGrid/eventSubscriptions/AzureAutomation","name":"AzureAutomation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMCreation","name":"VMCreation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/165j5xt1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess","Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceWriteCancel"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMEventAudit","name":"VMEventAudit","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/SQLchanges","name":"SQLchanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllProdChanges","name":"AllProdChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllDogfoodChanges","name":"AllDogfoodChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/DeploymentFailures","name":"DeploymentFailures","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1huu2ug1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/testsub","name":"testsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-14.westcentralus.logic.azure.com/workflows/d5ef6d3cf09147529f40e36172992ff1/triggers/When_a_resource_event_occurs/versions/08586809618926790378/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","name":"LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES1","name":"testPsRgES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES2","name":"testPsRgES2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES3","name":"testPsRgES3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES5","name":"testPsRgES5","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES6","name":"testPsRgES6","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111","name":"testPsRgES111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpowershellRG/providers/Microsoft.Relay/namespaces/testpowershellhybridconnection/hybridConnections/eventgridhybridconnection1"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgE0123","name":"testPsRgE0123","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111333","name":"testPsRgES111333","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111344","name":"testPsRgES111344","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES11134444","name":"testPsRgES11134444","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someTestEventSub","name":"someTestEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es11","name":"es11","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someEventSubInRG","name":"someEventSubInRG","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://gridtestsite.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/RGtestFoo","name":"RGtestFoo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay-test/hybridconnections/somehybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/something","name":"something","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventGrid/eventSubscriptions/runnertest","name":"runnertest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus/eventhubs/egarmrunnereventhubwestus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US","name":"eg-arm-runner-subscription-West-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus/eventhubs/egarmrunnereventhubeastus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-East-US","name":"eg-arm-runner-subscription-East-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/runner-logger-sub","name":"runner-logger-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serverlessdevops","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/undefined","name":"undefined","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/arm-runner-sub","name":"arm-runner-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/devopssubscription","name":"devopssubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domainTopic1ES1","name":"domainTopic1ES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES8888","name":"domaintest11topic44ES8888","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES9999","name":"domaintest11topic44ES9999","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgcentralindia","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacecentralindia/eventhubs/egarmrunnereventhubcentralindia"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-Central-India","name":"eg-arm-runner-subscription-Central-India","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestcentralus/eventhubs/egarmrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-Central-US","name":"eg-arm-runner-subscription-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1008","name":"es1008","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1009","name":"es1009","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1011","name":"es1011","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['75157'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['892'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:49:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/8E391CE9-0648-4173-963C-A7E5F1592D32?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/8E391CE9-0648-4173-963C-A7E5F1592D32?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:49:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "mysubject_prefix", "isSubjectCaseSensitive": + false}, "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": + 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['379'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix"},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1DF9797D-B79D-4CF8-8EEA-19E0177442F5?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['785'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1DF9797D-B79D-4CF8-8EEA-19E0177442F5?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1DF9797D-B79D-4CF8-8EEA-19E0177442F5?api-version=2018-09-15-preview","name":"1df9797d-b79d-4cf8-8eea-19e0177442f5","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['270'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:49:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-09-15-preview + response: + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} + headers: + cache-control: [no-cache] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['876'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "mysubject_prefix", "subjectEndsWith": ".jpg", + "includedEventTypes": ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": + {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['430'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/2E955FA3-C21F-4A33-938E-B8CD53E5AA25?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['879'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/2E955FA3-C21F-4A33-938E-B8CD53E5AA25?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/2E955FA3-C21F-4A33-938E-B8CD53E5AA25?api-version=2018-09-15-preview","name":"2e955fa3-c21f-4a33-938e-b8cd53e5aa25","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['270'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['880'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['892'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:50:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:50:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/2499A54A-B3FF-46AE-9BE0-59CC7B142824?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} - request: body: null headers: @@ -506,17 +1238,16 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/39AAF5F8-501E-4D4E-9CF6-7C24B5113A11?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/2499A54A-B3FF-46AE-9BE0-59CC7B142824?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:20:59 GMT'] + date: ['Fri, 12 Oct 2018 20:50:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -532,9 +1263,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 @@ -543,12 +1273,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:21:00 GMT'] + date: ['Fri, 12 Oct 2018 20:50:35 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdKVERKSjNTS0xRNTUyTU5BNFVUQlZGN08yWklBNUFaS01JTHw1RUMwRTE5QzdDRDREOTYxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdUUFNQVDJNQkFJNVRYQ1JNQUpMWDJZTkRXWEVGWU1YNTJJTnw5MjJGN0FFOTI3NzI4NjlFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1175'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_resource.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_resource.yaml index 88cb8c5501b..dcb9dc1f3a2 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_resource.yaml +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_to_resource.yaml @@ -1,62 +1,62 @@ interactions: - request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' + body: '{"location": "westcentralus", "tags": {"product": "azurecli", "cause": + "automation", "date": "2018-10-12T21:11:51Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [group create] Connection: [keep-alive] - Content-Length: ['50'] + Content-Length: ['117'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clieventgridrg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001","name":"clieventgridrg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001","name":"clieventgridrg000001","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T21:11:51Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['328'] + content-length: ['391'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:05:02 GMT'] + date: ['Fri, 12 Oct 2018 21:11:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1163'] status: {code: 201, message: Created} - request: - body: '{"sku": {"name": "Standard_LRS"}, "properties": {"supportsHttpsTrafficOnly": - false}, "kind": "Storage", "location": "westus"}' + body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westcentralus", + "properties": {"supportsHttpsTrafficOnly": false}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [storage account create] Connection: [keep-alive] - Content-Length: ['125'] + Content-Length: ['132'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] content-type: [text/plain; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:05:04 GMT'] + date: ['Fri, 12 Oct 2018 21:11:54 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/3dd112ef-c66a-45ce-8266-a5d264293bdb?monitor=true&api-version=2017-10-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/4f6e528c-a7d8-4a73-b92a-6588cb807c64?monitor=true&api-version=2018-03-01-preview'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0'] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 202, message: Accepted} - request: body: null @@ -65,19 +65,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [storage account create] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] - accept-language: [en-US] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/3dd112ef-c66a-45ce-8266-a5d264293bdb?monitor=true&api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/4f6e528c-a7d8-4a73-b92a-6588cb807c64?monitor=true&api-version=2018-03-01-preview response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-02-28T18:05:04.6025570Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} + body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-12T21:11:55.1783810Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}}'} headers: cache-control: [no-cache] - content-length: ['1231'] + content-length: ['1183'] content-type: [application/json] - date: ['Wed, 28 Feb 2018 18:05:22 GMT'] + date: ['Fri, 12 Oct 2018 21:12:11 GMT'] expires: ['-1'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 @@ -96,18 +94,18 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/listKeys?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/listKeys?api-version=2018-03-01-preview response: - body: {string: '{"keys":[{"keyName":"key1","value":"5rj+3UqYkQ3KHvb/8bAHJ9ELuCRxHLtKKE4GrmMgeVNKfc+s6OBnR/zssvek62Vq3zJz09yl82ars8GLFoIgZg==","permissions":"FULL"},{"keyName":"key2","value":"VfcWCXVdBVHtIQ2ejZsscYwdqyGBo05aaDPeYAj4YqVTp/1o1bmM0Rym8WDRZnjczxy79C3dY+pzqVudmxoY7A==","permissions":"FULL"}]}'} + body: {string: '{"keys":[{"keyName":"key1","value":"d431/+4u8+dGmzraRkuWsJsQ8MgQ4DSAeuu3fd8p4AaoHgzhekifef/l7a0kQZ8OYUsuj2DyDu9xLXdKeMBg0Q==","permissions":"FULL"},{"keyName":"key2","value":"/RIDAISa6tJtuqi5++16ExDk74gN/Q5X+0cXTpstTCC+WaNVrZR2xVjnArVUZt+GaZ4U9IX2GHbV+Sd71hNjUg==","permissions":"FULL"}]}'} headers: cache-control: [no-cache] content-length: ['288'] content-type: [application/json] - date: ['Wed, 28 Feb 2018 18:05:23 GMT'] + date: ['Fri, 12 Oct 2018 21:12:12 GMT'] expires: ['-1'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 @@ -116,30 +114,30 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1155'] status: {code: 200, message: OK} - request: - body: '{"sku": {"name": "Standard_LRS"}, "properties": {"supportsHttpsTrafficOnly": - false}, "kind": "Storage", "location": "westus"}' + body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westcentralus", + "properties": {"supportsHttpsTrafficOnly": false}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [storage account create] Connection: [keep-alive] - Content-Length: ['125'] + Content-Length: ['132'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-02-28T18:05:04.6025570Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} + body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-12T21:11:55.1783810Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}}'} headers: cache-control: [no-cache] - content-length: ['1231'] + content-length: ['1183'] content-type: [application/json] - date: ['Wed, 28 Feb 2018 18:05:24 GMT'] + date: ['Fri, 12 Oct 2018 21:12:15 GMT'] expires: ['-1'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 @@ -148,7 +146,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -158,18 +156,18 @@ interactions: CommandName: [storage account update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-02-28T18:05:04.6025570Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} + body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-12T21:11:55.1783810Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}}'} headers: cache-control: [no-cache] - content-length: ['1231'] + content-length: ['1183'] content-type: [application/json] - date: ['Wed, 28 Feb 2018 18:05:24 GMT'] + date: ['Fri, 12 Oct 2018 21:12:14 GMT'] expires: ['-1'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 @@ -180,11 +178,11 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"sku": {"name": "Standard_LRS"}, "properties": {"networkAcls": {"virtualNetworkRules": - [], "bypass": "AzureServices", "ipRules": [], "defaultAction": "Allow"}, "supportsHttpsTrafficOnly": - false, "encryption": {"keySource": "Microsoft.Storage", "services": {"file": - {"enabled": true}, "blob": {"enabled": true}}}}, "kind": "StorageV2", "tags": - {}}' + body: '{"sku": {"name": "Standard_LRS"}, "tags": {}, "properties": {"encryption": + {"services": {"blob": {"enabled": true}, "file": {"enabled": true}}, "keySource": + "Microsoft.Storage"}, "supportsHttpsTrafficOnly": false, "networkAcls": {"bypass": + "AzureServices", "virtualNetworkRules": [], "ipRules": [], "defaultAction": + "Allow"}}, "kind": "StorageV2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -192,18 +190,18 @@ interactions: Connection: [keep-alive] Content-Length: ['347'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-02-28T18:05:04.6806944Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-02-28T18:05:04.6025570Z","primaryEndpoints":{"blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} + body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-10-12T21:11:55.1783810Z","primaryEndpoints":{"web":"https://clieventgrid000002.z4.web.core.windows.net/","blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}}'} headers: cache-control: [no-cache] - content-length: ['1252'] + content-length: ['1270'] content-type: [application/json] - date: ['Wed, 28 Feb 2018 18:05:25 GMT'] + date: ['Fri, 12 Oct 2018 21:12:15 GMT'] expires: ['-1'] pragma: [no-cache] server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 @@ -212,38 +210,39 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: - body: '{"properties": {"filter": {"isSubjectCaseSensitive": false}, "destination": - {"properties": {"endpointUrl": "https://requestb.in/18zmdhv1"}, "endpointType": - "WebHook"}}}' + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - Content-Length: ['168'] + Content-Length: ['338'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv1"},"endpointType":"WebHook"},"filter":{},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/A49849E2-4AD0-4C44-88AB-30A7C7298FC3?api-version=2018-01-01'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/05D2FEB5-AD2D-44F6-817A-01EDD9ADB919?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['826'] + content-length: ['929'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:05:27 GMT'] + date: ['Fri, 12 Oct 2018 21:12:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: body: null @@ -252,17 +251,326 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/05D2FEB5-AD2D-44F6-817A-01EDD9ADB919?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/05D2FEB5-AD2D-44F6-817A-01EDD9ADB919?api-version=2018-09-15-preview","name":"05d2feb5-ad2d-44f6-817a-01edd9adb919","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1042'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1042'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1042'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003/getFullUrl?api-version=2018-09-15-preview + response: + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} + headers: + cache-control: [no-cache] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1193'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1042'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": ".jpg", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['414'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C3CC2CDC-5C06-4A17-A43D-E4B4F677C1D5?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1045'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1153'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C3CC2CDC-5C06-4A17-A43D-E4B4F677C1D5?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C3CC2CDC-5C06-4A17-A43D-E4B4F677C1D5?api-version=2018-09-15-preview","name":"c3cc2cdc-5c06-4a17-a43d-e4b4f677c1d5","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1046'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1058'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.Storage.StorageAccounts/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/notificationcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/notificationcy/providers/Microsoft.EventGrid/eventSubscriptions/prod1","name":"prod1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/test1","name":"test1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18y2rx61"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/himanshu2","name":"himanshu2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/sn4prdste12e","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/sn4prdste12e"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/sn4prdste12e/providers/Microsoft.EventGrid/eventSubscriptions/sn4prdste12e","name":"sn4prdste12e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imagedeletesub","name":"imagedeletesub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/images/blobs/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imageresizersub","name":"imageresizersub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstoragelatencyrunnersubscriptiocentralus","name":"egstoragelatencyrunnersubscriptiocentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptionsubscriptioncentralus","name":"egstrgltncysubscriptionsubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptioncentralus","name":"egstrgltncysubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"werwerwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventsHere","name":"someEventsHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someWebHookEndpoint","name":"someWebHookEndpoint","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1132kok1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/mytestsub","name":"mytestsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jng2s91"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/testsuc","name":"testsuc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/eg-strg-ltncy-Subscription-west-central-us","name":"eg-strg-ltncy-Subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-05.southcentralus.logic.azure.com/workflows/09f12b50fba1470e9d2b126745e8434e/triggers/When_a_resource_event_occurs/versions/08586762360891042447/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","name":"LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-54.westus.logic.azure.com/workflows/3b224880c3e942e785fdcc19db28be54/triggers/When_a_resource_event_occurs/versions/08586761394166541693/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","name":"LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-30.westcentralus.logic.azure.com/workflows/71a88977d3274fb7bbffc3ddd9cb9e46/triggers/When_a_resource_event_occurs/versions/08586759374548786242/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","name":"LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westcentralus.logic.azure.com/workflows/dbfca9762d7542e3b7066ec50337be02/triggers/When_a_resource_event_occurs/versions/08586759347650677204/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","name":"LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.westcentralus.logic.azure.com/workflows/83e0257d133f4e84b6f86383e6725389/triggers/When_a_resource_event_occurs/versions/08586757100148645237/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","name":"LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventSub","name":"someEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.EventHub.CaptureFileCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someResourceName","name":"someResourceName","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.EventHub/namespaces/ali-primary-evehthub/eventhubs/alieventhub"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["oneLabel"],"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEStoRelay","name":"someEStoRelay","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Relay/namespaces/RajaDemoRelayNamespace/hybridconnections/july2018demo"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo/providers/Microsoft.EventGrid/eventSubscriptions/July2018demo","name":"July2018demo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/francosalerthc"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/triggerrelayalerts","name":"triggerrelayalerts","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"asdfasdf","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":["someLabel"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":14,"eventTimeToLiveInMinutes":300}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/lkjsdflkjsdflksdfljsdf","name":"lkjsdflkjsdflksdfljsdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdf","name":"asdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://functionapp123.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"asdfasdf","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdfasdf","name":"asdfasdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest","name":"deadLetterTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest2","name":"deadLetterTest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScrillTest","name":"deadLetterScrillTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"werwer","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.Storage/storageAccounts/babanisafuna09f","blobContainerName":"beeble"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScriptTest","name":"deadLetterScriptTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['29524'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/A49849E2-4AD0-4C44-88AB-30A7C7298FC3?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.Storage.StorageAccounts/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/A49849E2-4AD0-4C44-88AB-30A7C7298FC3?api-version=2018-01-01","name":"a49849e2-4ad0-4c44-88ab-30a7c7298fc3","status":"InProgress"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['280'] + content-length: ['1058'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:05:37 GMT'] + date: ['Fri, 12 Oct 2018 21:12:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -273,22 +581,190 @@ interactions: status: {code: 200, message: OK} - request: body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.EventGrid/locations/westcentralus/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1058'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/notificationcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/notificationcy/providers/Microsoft.EventGrid/eventSubscriptions/prod1","name":"prod1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/test1","name":"test1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18y2rx61"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/himanshu2","name":"himanshu2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/sn4prdste12e","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/sn4prdste12e"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/sn4prdste12e/providers/Microsoft.EventGrid/eventSubscriptions/sn4prdste12e","name":"sn4prdste12e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imagedeletesub","name":"imagedeletesub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/images/blobs/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imageresizersub","name":"imageresizersub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/egrunnertopicsubscriptionwestcentralus","name":"egrunnertopicsubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstoragelatencyrunnersubscriptiocentralus","name":"egstoragelatencyrunnersubscriptiocentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptionsubscriptioncentralus","name":"egstrgltncysubscriptionsubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptioncentralus","name":"egstrgltncysubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnersubscriptionwestcentralus","name":"eglatencyrunnersubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-custom-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-custom-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-002","name":"eg-latency-runner-subscription-eg-prod-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-003","name":"eg-latency-runner-subscription-eg-prod-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://equipmentorders.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["NewEmployee"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/EquipmentOrders","name":"EquipmentOrders","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://employeedatabaseconnection.servicebus.windows.net/EmployeeDatabaseConnection"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/PayrollUpdates","name":"PayrollUpdates","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/WelcomeEmail","name":"WelcomeEmail","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"werwerwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventsHere","name":"someEventsHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someWebHookEndpoint","name":"someWebHookEndpoint","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-22.westcentralus.logic.azure.com/workflows/c244a79ad4f64de3a2ba1bba3f0bf53a/triggers/When_a_resource_event_occurs/versions/08586816518251164829/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","name":"LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1132kok1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/mytestsub","name":"mytestsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jng2s91"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/testsuc","name":"testsuc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/eg-strg-ltncy-Subscription-west-central-us","name":"eg-strg-ltncy-Subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/microsoft.eventgrid/topics/kishpclitestingdontuse2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kishptestrg/providers/Microsoft.Relay/namespaces/eghcintegrationtesting/HybridConnections/egrelayhcsubscriber"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/Microsoft.EventGrid/topics/kishpclitestingDontUse2/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-05.southcentralus.logic.azure.com/workflows/09f12b50fba1470e9d2b126745e8434e/triggers/When_a_resource_event_occurs/versions/08586762360891042447/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","name":"LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-54.westus.logic.azure.com/workflows/3b224880c3e942e785fdcc19db28be54/triggers/When_a_resource_event_occurs/versions/08586761394166541693/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","name":"LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-30.westcentralus.logic.azure.com/workflows/71a88977d3274fb7bbffc3ddd9cb9e46/triggers/When_a_resource_event_occurs/versions/08586759374548786242/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","name":"LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westcentralus.logic.azure.com/workflows/dbfca9762d7542e3b7066ec50337be02/triggers/When_a_resource_event_occurs/versions/08586759347650677204/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","name":"LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.westcentralus.logic.azure.com/workflows/83e0257d133f4e84b6f86383e6725389/triggers/When_a_resource_event_occurs/versions/08586757100148645237/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","name":"LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-01","name":"eg-latency-runner-subscription-eg-prod-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventSub","name":"someEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.EventHub.CaptureFileCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someResourceName","name":"someResourceName","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.EventHub/namespaces/ali-primary-evehthub/eventhubs/alieventhub"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["oneLabel"],"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEStoRelay","name":"someEStoRelay","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"werwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":5,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","blobContainerName":"deadletter"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventHub/namespaces/rajagridtesting/providers/Microsoft.EventGrid/eventSubscriptions/clibugbash","name":"clibugbash","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Relay/namespaces/RajaDemoRelayNamespace/hybridconnections/july2018demo"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo/providers/Microsoft.EventGrid/eventSubscriptions/July2018demo","name":"July2018demo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/francosalerthc"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/triggerrelayalerts","name":"triggerrelayalerts","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"asdfasdf","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":["someLabel"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":14,"eventTimeToLiveInMinutes":300}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/lkjsdflkjsdflksdfljsdf","name":"lkjsdflkjsdflksdfljsdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdf","name":"asdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://functionapp123.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"asdfasdf","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdfasdf","name":"asdfasdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest","name":"deadLetterTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest2","name":"deadLetterTest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScrillTest","name":"deadLetterScrillTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"werwer","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.Storage/storageAccounts/babanisafuna09f","blobContainerName":"beeble"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScriptTest","name":"deadLetterScriptTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jettest.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting/providers/Microsoft.EventGrid/eventSubscriptions/webhooknametesttwo","name":"webhooknametesttwo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-003","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-002","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-01","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest1/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-westcentralus/topics/eg-domains-latency-runner-domaintopic-westcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-westcentralus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-westcentralus/topics/eg-domains-latency-runner-domaintopic-westcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-westcentralus","name":"eg-domains-latency-runner-subscription-westcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-003","name":"eg-domains-latency-runner-subscription-eg-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-01","name":"eg-domains-latency-runner-subscription-eg-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-002","name":"eg-domains-latency-runner-subscription-eg-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-crud-runner-topic-9e81fd7b-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-crud-runner-topic-9e81fd7b-West-Central-US/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-8d7764d2-West-Central-US","name":"eg-crud-runner-subscription-8d7764d2-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1111","name":"es1111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnerqueuetopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","queueName":"egltcyrunnerstgqueuedestinationcentralus"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egltcyrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnerqueuetopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnerqueuesubscriptionwestcentralus","name":"eglatencyrunnerqueuesubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['65068'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:12:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 21:12:55 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/09218198-29BA-498D-B4EB-5B2C6917A077?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/09218198-29BA-498D-B4EB-5B2C6917A077?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 21:13:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage account show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview + response: + body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002","name":"clieventgrid000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-12T21:11:55.2408681Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-10-12T21:11:55.1783810Z","primaryEndpoints":{"web":"https://clieventgrid000002.z4.web.core.windows.net/","blob":"https://clieventgrid000002.blob.core.windows.net/","queue":"https://clieventgrid000002.queue.core.windows.net/","table":"https://clieventgrid000002.table.core.windows.net/","file":"https://clieventgrid000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}}'} + headers: + cache-control: [no-cache] + content-length: ['1270'] + content-type: [application/json] + date: ['Fri, 12 Oct 2018 21:13:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 + Microsoft-HTTPAPI/2.0'] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E8B902D5-62DA-4247-B94E-3BCCB0DC92BC?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['929'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:13:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/A49849E2-4AD0-4C44-88AB-30A7C7298FC3?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E8B902D5-62DA-4247-B94E-3BCCB0DC92BC?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/A49849E2-4AD0-4C44-88AB-30A7C7298FC3?api-version=2018-01-01","name":"a49849e2-4ad0-4c44-88ab-30a7c7298fc3","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E8B902D5-62DA-4247-B94E-3BCCB0DC92BC?api-version=2018-09-15-preview","name":"e8b902d5-62da-4247-b94e-3bccb0dc92bc","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['279'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:07 GMT'] + date: ['Fri, 12 Oct 2018 21:13:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -304,17 +780,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['899'] + content-length: ['1042'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:07 GMT'] + date: ['Fri, 12 Oct 2018 21:13:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -331,18 +807,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['899'] + content-length: ['1042'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:07 GMT'] + date: ['Fri, 12 Oct 2018 21:13:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -359,18 +835,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['899'] + content-length: ['1042'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:09 GMT'] + date: ['Fri, 12 Oct 2018 21:13:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -388,18 +864,18 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003/getFullUrl?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003/getFullUrl?api-version=2018-09-15-preview response: - body: {string: '{"endpointUrl":"https://requestb.in/18zmdhv1"}'} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] - content-length: ['46'] + content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:09 GMT'] + date: ['Fri, 12 Oct 2018 21:13:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -407,7 +883,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -417,18 +893,18 @@ interactions: CommandName: [eventgrid event-subscription update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['899'] + content-length: ['1042'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:09 GMT'] + date: ['Fri, 12 Oct 2018 21:13:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -438,35 +914,37 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"filter": {"subjectBeginsWith": "", "includedEventTypes": ["All"], "subjectEndsWith": - ".jpg"}, "destination": {"properties": {"endpointUrl": "https://requestb.in/18zmdhv2"}, - "endpointType": "WebHook"}}' + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": ".jpg", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - Content-Length: ['202'] + Content-Length: ['414'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv2"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/658023CA-7B83-449D-BD3E-242BCAB279E3?api-version=2018-01-01'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/FCEE9414-01D4-432A-8F27-4FAE6CC5C984?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['902'] + content-length: ['1045'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:11 GMT'] + date: ['Fri, 12 Oct 2018 21:13:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -475,17 +953,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/658023CA-7B83-449D-BD3E-242BCAB279E3?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/FCEE9414-01D4-432A-8F27-4FAE6CC5C984?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/658023CA-7B83-449D-BD3E-242BCAB279E3?api-version=2018-01-01","name":"658023ca-7b83-449d-bd3e-242bcab279e3","status":"InProgress"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/FCEE9414-01D4-432A-8F27-4FAE6CC5C984?api-version=2018-09-15-preview","name":"fcee9414-01d4-432a-8f27-4fae6cc5c984","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['280'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:20 GMT'] + date: ['Fri, 12 Oct 2018 21:13:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -501,17 +979,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/658023CA-7B83-449D-BD3E-242BCAB279E3?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationsStatus/658023CA-7B83-449D-BD3E-242BCAB279E3?api-version=2018-01-01","name":"658023ca-7b83-449d-bd3e-242bcab279e3","status":"Succeeded"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['279'] + content-length: ['1046'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:52 GMT'] + date: ['Fri, 12 Oct 2018 21:13:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -525,19 +1003,21 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] + CommandName: [eventgrid event-subscription list] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv2"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['903'] + content-length: ['1058'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:51 GMT'] + date: ['Fri, 12 Oct 2018 21:13:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -554,18 +1034,102 @@ interactions: CommandName: [eventgrid event-subscription list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.Storage.StorageAccounts/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18zmdhv2"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/notificationcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/notificationcy/providers/Microsoft.EventGrid/eventSubscriptions/prod1","name":"prod1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/test1","name":"test1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18y2rx61"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/himanshu2","name":"himanshu2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/sn4prdste12e","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/sn4prdste12e"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/sn4prdste12e/providers/Microsoft.EventGrid/eventSubscriptions/sn4prdste12e","name":"sn4prdste12e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imagedeletesub","name":"imagedeletesub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/images/blobs/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imageresizersub","name":"imageresizersub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstoragelatencyrunnersubscriptiocentralus","name":"egstoragelatencyrunnersubscriptiocentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptionsubscriptioncentralus","name":"egstrgltncysubscriptionsubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptioncentralus","name":"egstrgltncysubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"werwerwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventsHere","name":"someEventsHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someWebHookEndpoint","name":"someWebHookEndpoint","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1132kok1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/mytestsub","name":"mytestsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jng2s91"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/testsuc","name":"testsuc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/eg-strg-ltncy-Subscription-west-central-us","name":"eg-strg-ltncy-Subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-05.southcentralus.logic.azure.com/workflows/09f12b50fba1470e9d2b126745e8434e/triggers/When_a_resource_event_occurs/versions/08586762360891042447/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","name":"LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-54.westus.logic.azure.com/workflows/3b224880c3e942e785fdcc19db28be54/triggers/When_a_resource_event_occurs/versions/08586761394166541693/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","name":"LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-30.westcentralus.logic.azure.com/workflows/71a88977d3274fb7bbffc3ddd9cb9e46/triggers/When_a_resource_event_occurs/versions/08586759374548786242/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","name":"LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westcentralus.logic.azure.com/workflows/dbfca9762d7542e3b7066ec50337be02/triggers/When_a_resource_event_occurs/versions/08586759347650677204/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","name":"LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.westcentralus.logic.azure.com/workflows/83e0257d133f4e84b6f86383e6725389/triggers/When_a_resource_event_occurs/versions/08586757100148645237/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","name":"LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventSub","name":"someEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.EventHub.CaptureFileCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someResourceName","name":"someResourceName","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.EventHub/namespaces/ali-primary-evehthub/eventhubs/alieventhub"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["oneLabel"],"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEStoRelay","name":"someEStoRelay","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Relay/namespaces/RajaDemoRelayNamespace/hybridconnections/july2018demo"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo/providers/Microsoft.EventGrid/eventSubscriptions/July2018demo","name":"July2018demo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/francosalerthc"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/triggerrelayalerts","name":"triggerrelayalerts","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"asdfasdf","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":["someLabel"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":14,"eventTimeToLiveInMinutes":300}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/lkjsdflkjsdflksdfljsdf","name":"lkjsdflkjsdflksdfljsdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdf","name":"asdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://functionapp123.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"asdfasdf","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdfasdf","name":"asdfasdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest","name":"deadLetterTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest2","name":"deadLetterTest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScrillTest","name":"deadLetterScrillTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"werwer","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.Storage/storageAccounts/babanisafuna09f","blobContainerName":"beeble"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScriptTest","name":"deadLetterScriptTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/pubstgrunner3d92f6b4","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/pubstgrunner3d92f6b4/providers/Microsoft.EventGrid/eventSubscriptions/StorageSubscriptionb532ff0c","name":"StorageSubscriptionb532ff0c","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['915'] + content-length: ['30620'] content-type: [application/json; charset=utf-8] - date: ['Wed, 28 Feb 2018 18:06:52 GMT'] + date: ['Fri, 12 Oct 2018 21:13:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.Storage.StorageAccounts/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1058'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:13:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.EventGrid/locations/westcentralus/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1058'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:13:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/notificationcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/notificationcy/providers/Microsoft.EventGrid/eventSubscriptions/prod1","name":"prod1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/demoEmailFunctionTest"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/test1","name":"test1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/eventgridstorage1121","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/18y2rx61"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/eventgridstorage1121/providers/Microsoft.EventGrid/eventSubscriptions/himanshu2","name":"himanshu2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/microsoft.storage/storageaccounts/sn4prdste12e","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://storagefunctionhandler.azurewebsites.net/api/sn4prdste12e"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test1/providers/Microsoft.Storage/storageAccounts/sn4prdste12e/providers/Microsoft.EventGrid/eventSubscriptions/sn4prdste12e","name":"sn4prdste12e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imagedeletesub","name":"imagedeletesub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroupjg/providers/microsoft.storage/storageaccounts/jfgstoragedemo","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jasminegdemofunctions.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/blobServices/default/containers/images/blobs/","subjectEndsWith":"","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroupJG/providers/Microsoft.Storage/StorageAccounts/jfgstoragedemo/providers/Microsoft.EventGrid/eventSubscriptions/imageresizersub","name":"imageresizersub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/egrunnertopicsubscriptionwestcentralus","name":"egrunnertopicsubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstoragelatencyrunnersubscriptiocentralus","name":"egstoragelatencyrunnersubscriptiocentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstoragelatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptionsubscriptioncentralus","name":"egstrgltncysubscriptionsubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntlus/providers/Microsoft.EventGrid/eventSubscriptions/egstrgltncysubscriptioncentralus","name":"egstrgltncysubscriptioncentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnersubscriptionwestcentralus","name":"eglatencyrunnersubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-custom-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-custom-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-002","name":"eg-latency-runner-subscription-eg-prod-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-003","name":"eg-latency-runner-subscription-eg-prod-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://equipmentorders.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["NewEmployee"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/EquipmentOrders","name":"EquipmentOrders","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://employeedatabaseconnection.servicebus.windows.net/EmployeeDatabaseConnection"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/PayrollUpdates","name":"PayrollUpdates","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/WelcomeEmail","name":"WelcomeEmail","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"werwerwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventsHere","name":"someEventsHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/francosresources/providers/microsoft.storage/storageaccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RapscallionResources/providers/Microsoft.EventHub/namespaces/franch-ehns1/eventhubs/biscuit"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someWebHookEndpoint","name":"someWebHookEndpoint","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-22.westcentralus.logic.azure.com/workflows/c244a79ad4f64de3a2ba1bba3f0bf53a/triggers/When_a_resource_event_occurs/versions/08586816518251164829/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","name":"LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1132kok1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/mytestsub","name":"mytestsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.storage/storageaccounts/equipmentorders","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jng2s91"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.Storage/storageAccounts/equipmentorders/providers/Microsoft.EventGrid/eventSubscriptions/testsuc","name":"testsuc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/egstrgltncypubwstcntrlus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgltncyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egstrgltncypubwstcntrlus/providers/Microsoft.EventGrid/eventSubscriptions/eg-strg-ltncy-Subscription-west-central-us","name":"eg-strg-ltncy-Subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/microsoft.eventgrid/topics/kishpclitestingdontuse2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kishptestrg/providers/Microsoft.Relay/namespaces/eghcintegrationtesting/HybridConnections/egrelayhcsubscriber"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/Microsoft.EventGrid/topics/kishpclitestingDontUse2/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-05.southcentralus.logic.azure.com/workflows/09f12b50fba1470e9d2b126745e8434e/triggers/When_a_resource_event_occurs/versions/08586762360891042447/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","name":"LogicAppdbfa5305-be75-4360-abb5-e6b5f8794bab","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-54.westus.logic.azure.com/workflows/3b224880c3e942e785fdcc19db28be54/triggers/When_a_resource_event_occurs/versions/08586761394166541693/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","name":"LogicApp6974f943-f4ea-4020-b415-c1779fe28c6b","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-30.westcentralus.logic.azure.com/workflows/71a88977d3274fb7bbffc3ddd9cb9e46/triggers/When_a_resource_event_occurs/versions/08586759374548786242/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","name":"LogicAppddd4eb63-ad29-48c6-ab67-f8fa0402fffc","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westcentralus.logic.azure.com/workflows/dbfca9762d7542e3b7066ec50337be02/triggers/When_a_resource_event_occurs/versions/08586759347650677204/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","name":"LogicAppe6f089e3-4c90-4301-a2a6-963993ace972","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.westcentralus.logic.azure.com/workflows/83e0257d133f4e84b6f86383e6725389/triggers/When_a_resource_event_occurs/versions/08586757100148645237/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","name":"LogicAppcc9f0458-fc3c-4e35-a4a9-2708a0490f06","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-01","name":"eg-latency-runner-subscription-eg-prod-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEventSub","name":"someEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/first~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.EventHub.CaptureFileCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someResourceName","name":"someResourceName","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.EventHub/namespaces/ali-primary-evehthub/eventhubs/alieventhub"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["oneLabel"],"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/someEStoRelay","name":"someEStoRelay","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"werwerwer","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":5,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","blobContainerName":"deadletter"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventHub/namespaces/rajagridtesting/providers/Microsoft.EventGrid/eventSubscriptions/clibugbash","name":"clibugbash","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Relay/namespaces/RajaDemoRelayNamespace/hybridconnections/july2018demo"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajagriddemo/providers/Microsoft.EventGrid/eventSubscriptions/July2018demo","name":"July2018demo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/francosalerthc"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/triggerrelayalerts","name":"triggerrelayalerts","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"asdfasdf","includedEventTypes":["Microsoft.Storage.BlobDeleted"]},"labels":["someLabel"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":14,"eventTimeToLiveInMinutes":300}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/lkjsdflkjsdflksdfljsdf","name":"lkjsdflkjsdflksdfljsdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdf","name":"asdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://functionapp123.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"asdfasdf","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/asdfasdfasdfasdf","name":"asdfasdfasdfasdf","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"asdfasdf","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest","name":"deadLetterTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterTest2","name":"deadLetterTest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"asdfasdfasdf","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScrillTest","name":"deadLetterScrillTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ali-test-rg-relay/providers/Microsoft.Relay/namespaces/ali-test-relay-final/hybridconnections/myhybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"werwer","subjectEndsWith":"werwer","includedEventTypes":["Microsoft.Storage.BlobCreated"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.Storage/storageAccounts/babanisafuna09f","blobContainerName":"beeble"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.Storage/storageAccounts/eventgridinmenutest/providers/Microsoft.EventGrid/eventSubscriptions/deadLetterScriptTest","name":"deadLetterScriptTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jettest.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/microsoft.eventhub/namespaces/rajagridtesting/providers/Microsoft.EventGrid/eventSubscriptions/webhooknametesttwo","name":"webhooknametesttwo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-003","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-002","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":1},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-euap-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-euap-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-euap-uswc-01","name":"eg-domains-latency-runner-subscription-eg-euap-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest1/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-westcentralus/topics/eg-domains-latency-runner-domaintopic-westcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-westcentralus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-westcentralus/topics/eg-domains-latency-runner-domaintopic-westcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-westcentralus","name":"eg-domains-latency-runner-subscription-westcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-003/topics/eg-domains-latency-runner-domaintopic-eg-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-003","name":"eg-domains-latency-runner-subscription-eg-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-01/topics/eg-domains-latency-runner-domaintopic-eg-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-01","name":"eg-domains-latency-runner-subscription-eg-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/eg-domains-latency-runner-domain-eg-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus-2/eventhubs/egdomainsltncyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqeuapuswc"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/eg-domains-latency-runner-domain-eg-uswc-002/topics/eg-domains-latency-runner-domaintopic-eg-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-domains-latency-runner-subscription-eg-uswc-002","name":"eg-domains-latency-runner-subscription-eg-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-crud-runner-topic-9e81fd7b-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-crud-runner-topic-9e81fd7b-West-Central-US/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-8d7764d2-West-Central-US","name":"eg-crud-runner-subscription-8d7764d2-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1111","name":"es1111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnerqueuetopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","queueName":"egltcyrunnerstgqueuedestinationcentralus"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egltcyrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnerqueuetopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnerqueuesubscriptionwestcentralus","name":"eglatencyrunnerqueuesubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/microsoft.storage/storageaccounts/clieventgrid000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003","name":"cli000003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.storage/storageaccounts/pubstgrunner3d92f6b4","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egstrgrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/pubstgrunner3d92f6b4/providers/Microsoft.EventGrid/eventSubscriptions/StorageSubscriptionb532ff0c","name":"StorageSubscriptionb532ff0c","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egcrudrunnertopic07e121e3westcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egcrudrunnertopic07e121e3WestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-c631f48f-West-Central-US","name":"eg-crud-runner-subscription-c631f48f-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/domains/egcrudrunnerdomain28c91947westcentralus/topics/eg-crud-runner-domaintopic-1c3a839e-westcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egdomaincrudrunnerevnthubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"expirationTimeUtc":"2018-10-12T21:15:31.9398374Z","eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstdlqwestcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/domains/egcrudrunnerdomain28c91947WestCentralUS/topics/eg-crud-runner-domainTopic-1c3a839e-WestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-domain-crud-runner-subscription-fce27200-West-Central-US","name":"eg-domain-crud-runner-subscription-fce27200-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['70104'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:13:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -583,24 +1147,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000003?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 28 Feb 2018 18:06:54 GMT'] + date: ['Fri, 12 Oct 2018 21:13:40 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationResults/9B2EB4B1-F6A3-492E-A6AC-FB58B0F89FDE?api-version=2018-01-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/36FE4021-AE4C-48DA-B066-73A0927419E8?api-version=2018-09-15-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -609,22 +1173,51 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-eventgrid/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westus/operationResults/9B2EB4B1-F6A3-492E-A6AC-FB58B0F89FDE?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/36FE4021-AE4C-48DA-B066-73A0927419E8?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 28 Feb 2018 18:07:05 GMT'] + date: ['Fri, 12 Oct 2018 21:13:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage account delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clieventgridrg000001/providers/Microsoft.Storage/storageAccounts/clieventgrid000002?api-version=2018-03-01-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + content-type: [text/plain; charset=utf-8] + date: ['Fri, 12 Oct 2018 21:13:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 + Microsoft-HTTPAPI/2.0'] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14996'] + status: {code: 200, message: OK} - request: body: null headers: @@ -634,9 +1227,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.29] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clieventgridrg000001?api-version=2018-05-01 @@ -645,12 +1237,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 28 Feb 2018 18:07:06 GMT'] + date: ['Fri, 12 Oct 2018 21:13:53 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElFVkVOVEdSSURSR0tNV0dRSlpGRktSN0s0T1NBUVQ1VExMR1NTQk02T1BTTnw3RTZDNzY3MTE4MzQzMjEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElFVkVOVEdSSURSRzVKWFpXNjM2VVg1VDVDRlhLWTJDRDdQVTI1SUJaNzJYSHxCQzJBNTdCM0UwMDQ1NDJELVdFU1RDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Indlc3RjZW50cmFsdXMifQ?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_20180501_features.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_20180501_features.yaml index 09d26a10948..9f90221bcba 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_20180501_features.yaml +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_20180501_features.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-25T22:21:01Z"}}' + "date": "2018-10-12T20:53:03Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,25 +9,50 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-25T22:21:01Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:53:03Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:02 GMT'] + date: ['Fri, 12 Oct 2018 20:53:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1129'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:53:03Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:53:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} - request: body: '{"properties": {"destination": {"endpointType": "StorageQueue", "properties": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo", @@ -43,26 +68,25 @@ interactions: Connection: [keep-alive] Content-Length: ['674'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"kalsdemoqueue"},"endpointType":"StorageQueue"},"filter":{},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1","name":"eventsubscription1","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1D380517-F077-4CF3-9E2C-2C5F09C99004?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/07C53B37-E598-4F9E-B213-B98C5091FFD2?api-version=2018-09-15-preview'] cache-control: [no-cache] content-length: ['1110'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:04 GMT'] + date: ['Fri, 12 Oct 2018 20:53:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1149'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -71,18 +95,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1D380517-F077-4CF3-9E2C-2C5F09C99004?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/07C53B37-E598-4F9E-B213-B98C5091FFD2?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/1D380517-F077-4CF3-9E2C-2C5F09C99004?api-version=2018-05-01-preview","name":"1d380517-f077-4cf3-9e2c-2c5f09c99004","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/07C53B37-E598-4F9E-B213-B98C5091FFD2?api-version=2018-09-15-preview","name":"07c53b37-e598-4f9e-b213-b98c5091ffd2","status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:15 GMT'] + date: ['Fri, 12 Oct 2018 20:53:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -98,18 +121,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"kalsdemoqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1","name":"eventsubscription1","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1183'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:15 GMT'] + date: ['Fri, 12 Oct 2018 20:53:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -126,19 +148,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"kalsdemoqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1","name":"eventsubscription1","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1183'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:16 GMT'] + date: ['Fri, 12 Oct 2018 20:53:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -150,38 +171,36 @@ interactions: - request: body: '{"properties": {"destination": {"endpointType": "HybridConnection", "properties": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"}}, - "filter": {"isSubjectCaseSensitive": false}, "eventDeliverySchema": "EventGridSchema", - "retryPolicy": {"maxDeliveryAttempts": 20, "eventTimeToLiveInMinutes": 1000}, - "deadLetterDestination": {"endpointType": "StorageBlob", "properties": {"resourceId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo", + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 20, "eventTimeToLiveInMinutes": 1000}, "deadLetterDestination": {"endpointType": + "StorageBlob", "properties": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo", "blobContainerName": "dlq"}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - Content-Length: ['664'] + Content-Length: ['622'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/B11651B8-B933-4A4E-9492-980C56EE3C67?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/FBA12820-F7AF-4614-90BF-B2D53B07C27E?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['1102'] + content-length: ['1062'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:19 GMT'] + date: ['Fri, 12 Oct 2018 20:53:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1170'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -190,18 +209,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/B11651B8-B933-4A4E-9492-980C56EE3C67?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/FBA12820-F7AF-4614-90BF-B2D53B07C27E?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/B11651B8-B933-4A4E-9492-980C56EE3C67?api-version=2018-05-01-preview","name":"b11651b8-b933-4a4e-9492-980c56ee3c67","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/FBA12820-F7AF-4614-90BF-B2D53B07C27E?api-version=2018-09-15-preview","name":"fba12820-f7af-4614-90bf-b2d53b07c27e","status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:30 GMT'] + date: ['Fri, 12 Oct 2018 20:53:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -217,18 +235,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1175'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:30 GMT'] + date: ['Fri, 12 Oct 2018 20:53:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -245,19 +262,46 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1175'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:31 GMT'] + date: ['Fri, 12 Oct 2018 20:53:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-26.brazilus.logic.azure.com/workflows/c90432e8c58d4f348f5072e950bc4a27/triggers/When_a_resource_event_occurs/versions/08586993622831880989/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","name":"LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1fun9ou1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/mysub600","name":"mysub600","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/r3wknyr3"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/allsubevents3","name":"allsubevents3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.brazilus.logic.azure.com/workflows/c22dee70ada34ffca23b5fc89232166a/triggers/When_a_resource_event_occurs/versions/08586988636200583748/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","name":"LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-01.brazilus.logic.azure.com/workflows/87f6a4a8c5f3473ab9fd50076da6e909/triggers/On_a_resource_event/versions/08586988571716815965/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","name":"LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/10jslly1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses112","name":"kalses112","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg/providers/Microsoft.EventGrid/eventSubscriptions/subValid","name":"subValid","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/11x4isl1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarArmRgTest","name":"cesarArmRgTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jimsdh1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/rgsub1","name":"rgsub1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarTest3","name":"cesarTest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/z5gv8oz5"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses77","name":"kalses77","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/snorop","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Snorop/providers/Microsoft.EventGrid/eventSubscriptions/SomeSubNameHere","name":"SomeSubNameHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest","name":"armswitchtest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest2","name":"armswitchtest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest3","name":"armswitchtest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2","name":"examplesubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4","name":"examplesubscription4","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demorg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demoRg/providers/Microsoft.EventGrid/eventSubscriptions/testRg","name":"testRg","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-c5f6c255-West-US-2","name":"eg-crud-runner-subscription-c5f6c255-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-88e492c5-West-US-2","name":"eg-crud-runner-subscription-88e492c5-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-86f9994d-West-US-2","name":"eg-crud-runner-subscription-86f9994d-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/testeventhublocalusw2/eventhubs/testeventhublocalusw2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus2/eventhubs/egarmrunnereventhubwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus2euap","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus2euap/eventhubs/egarmrunnereventhubeastus2euap"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-EAST-US-2-EUAP","name":"eg-arm-runner-subscription-EAST-US-2-EUAP","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo-devopsautomation","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Demo-DevOpsAutomation/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Demo-DevOpsAutomation/providers/Microsoft.EventGrid/eventSubscriptions/AzureAutomation","name":"AzureAutomation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMCreation","name":"VMCreation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/165j5xt1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess","Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceWriteCancel"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMEventAudit","name":"VMEventAudit","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/SQLchanges","name":"SQLchanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllProdChanges","name":"AllProdChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllDogfoodChanges","name":"AllDogfoodChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/DeploymentFailures","name":"DeploymentFailures","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1huu2ug1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/testsub","name":"testsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-14.westcentralus.logic.azure.com/workflows/d5ef6d3cf09147529f40e36172992ff1/triggers/When_a_resource_event_occurs/versions/08586809618926790378/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","name":"LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES1","name":"testPsRgES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES2","name":"testPsRgES2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES3","name":"testPsRgES3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES5","name":"testPsRgES5","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES6","name":"testPsRgES6","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111","name":"testPsRgES111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpowershellRG/providers/Microsoft.Relay/namespaces/testpowershellhybridconnection/hybridConnections/eventgridhybridconnection1"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgE0123","name":"testPsRgE0123","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111333","name":"testPsRgES111333","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111344","name":"testPsRgES111344","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES11134444","name":"testPsRgES11134444","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someTestEventSub","name":"someTestEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es11","name":"es11","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someEventSubInRG","name":"someEventSubInRG","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://gridtestsite.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/RGtestFoo","name":"RGtestFoo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay-test/hybridconnections/somehybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/something","name":"something","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventGrid/eventSubscriptions/runnertest","name":"runnertest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus/eventhubs/egarmrunnereventhubwestus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US","name":"eg-arm-runner-subscription-West-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus/eventhubs/egarmrunnereventhubeastus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-East-US","name":"eg-arm-runner-subscription-East-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/runner-logger-sub","name":"runner-logger-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serverlessdevops","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/undefined","name":"undefined","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/arm-runner-sub","name":"arm-runner-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/devopssubscription","name":"devopssubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domainTopic1ES1","name":"domainTopic1ES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES8888","name":"domaintest11topic44ES8888","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES9999","name":"domaintest11topic44ES9999","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgcentralindia","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacecentralindia/eventhubs/egarmrunnereventhubcentralindia"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-Central-India","name":"eg-arm-runner-subscription-Central-India","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestcentralus/eventhubs/egarmrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-Central-US","name":"eg-arm-runner-subscription-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1008","name":"es1008","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1009","name":"es1009","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1011","name":"es1011","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"kalsdemoqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1","name":"eventsubscription1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['76636'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:53:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -275,25 +319,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:21:33 GMT'] + date: ['Fri, 12 Oct 2018 20:53:35 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/FD1C137E-03D1-4113-A317-4692D40A3AD2?api-version=2018-05-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/D2A38CF8-B130-416B-9BC8-2401308E114B?api-version=2018-09-15-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1162'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -302,17 +345,16 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/FD1C137E-03D1-4113-A317-4692D40A3AD2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/D2A38CF8-B130-416B-9BC8-2401308E114B?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:21:44 GMT'] + date: ['Fri, 12 Oct 2018 20:53:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -328,9 +370,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 @@ -339,12 +380,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:21:45 GMT'] + date: ['Fri, 12 Oct 2018 20:53:46 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdUR002SlpJRkk0Rk1KRlBHQVZMU1JBWlFXWTVKSk5KTVlTUHw3Q0U3QjQ3QzhDODE2RTE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTSUZCVzYzSVVMUFhKTFVSNFk2RzVKWEhDUjNERUdESENLV3w2NUQ3MjJENDYwNTZFREI4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1149'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_filters.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_filters.yaml index bb4c2331e9a..a07c682b1de 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_filters.yaml +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_event_subscriptions_with_filters.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-25T22:21:45Z"}}' + "date": "2018-10-12T20:53:47Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,87 +9,83 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-25T22:21:45Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:53:47Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:46 GMT'] + date: ['Fri, 12 Oct 2018 20:53:48 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1173'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}}, - "filter": {"subjectEndsWith": "mysubject_suffix", "includedEventTypes": ["blobCreated", - "blobUpdated"], "isSubjectCaseSensitive": true}, "labels": ["Finance", "HR"], - "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": - 30, "eventTimeToLiveInMinutes": 1440}}}' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription create] + CommandName: [group show] Connection: [keep-alive] - Content-Length: ['501'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:53:47Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0826EDCE-5A43-4AB4-B2C1-12E645EF49E8?api-version=2018-05-01-preview'] cache-control: [no-cache] - content-length: ['916'] + content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:48 GMT'] + date: ['Fri, 12 Oct 2018 20:53:48 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1178'] - status: {code: 201, message: Created} + status: {code: 200, message: OK} - request: - body: null + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectEndsWith": "mysubject_suffix", "includedEventTypes": ["blobCreated", + "blobUpdated"], "isSubjectCaseSensitive": true}, "labels": ["Finance", "HR"], + "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0826EDCE-5A43-4AB4-B2C1-12E645EF49E8?api-version=2018-05-01-preview + Content-Length: ['459'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0826EDCE-5A43-4AB4-B2C1-12E645EF49E8?api-version=2018-05-01-preview","name":"0826edce-5a43-4ab4-b2c1-12e645ef49e8","status":"Succeeded"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0DE5CEBE-9C51-4D4A-92B8-CB767CDD8BC5?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['270'] + content-length: ['876'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:21:59 GMT'] + date: ['Fri, 12 Oct 2018 20:53:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] x-content-type-options: [nosniff] - status: {code: 200, message: OK} + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} - request: body: null headers: @@ -97,27 +93,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0DE5CEBE-9C51-4D4A-92B8-CB767CDD8BC5?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/0DE5CEBE-9C51-4D4A-92B8-CB767CDD8BC5?api-version=2018-09-15-preview","name":"0de5cebe-9c51-4d4a-92b8-cb767cdd8bc5","status":"Succeeded"}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:22:59 GMT'] + date: ['Fri, 12 Oct 2018 20:54:00 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + status: {code: 200, message: OK} - request: body: null headers: @@ -125,18 +119,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['940'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:22:59 GMT'] + date: ['Fri, 12 Oct 2018 20:54:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -153,19 +146,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['940'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:23:01 GMT'] + date: ['Fri, 12 Oct 2018 20:54:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -182,49 +174,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:24:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['940'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:24:01 GMT'] + date: ['Fri, 12 Oct 2018 20:54:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -242,50 +203,18 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:25:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2/getFullUrl?api-version=2018-09-15-preview response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}'} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:25:02 GMT'] + date: ['Fri, 12 Oct 2018 20:54:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -293,7 +222,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1166'] + x-ms-ratelimit-remaining-subscription-writes: ['1169'] status: {code: 200, message: OK} - request: body: null @@ -303,28 +232,26 @@ interactions: CommandName: [eventgrid event-subscription list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['952'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:03 GMT'] + date: ['Fri, 12 Oct 2018 20:54:05 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + status: {code: 200, message: OK} - request: body: null headers: @@ -333,19 +260,18 @@ interactions: CommandName: [eventgrid event-subscription list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-26.brazilus.logic.azure.com/workflows/c90432e8c58d4f348f5072e950bc4a27/triggers/When_a_resource_event_occurs/versions/08586993622831880989/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canaryeh/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","name":"LogicAppd9ab501a-2fe2-426c-a676-9e90365ddbdb","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1fun9ou1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/mysub600","name":"mysub600","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/r3wknyr3"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/allsubevents3","name":"allsubevents3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-18.brazilus.logic.azure.com/workflows/c22dee70ada34ffca23b5fc89232166a/triggers/When_a_resource_event_occurs/versions/08586988636200583748/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","name":"LogicApp46d74b10-aa69-484e-aec2-52bfac87e2d9","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-01.brazilus.logic.azure.com/workflows/87f6a4a8c5f3473ab9fd50076da6e909/triggers/On_a_resource_event/versions/08586988571716815965/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-EASTUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","name":"LogicApp4a6316a3-5bda-44c8-ae67-bfb83aa31d1e","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/10jslly1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses112","name":"kalses112","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/egprodtestingrg/providers/Microsoft.EventGrid/eventSubscriptions/subValid","name":"subValid","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteCancel","Microsoft.Resources.ResourceDeleteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/null","name":"null","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceDeleteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/MyEventSubscription","name":"MyEventSubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/11x4isl1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarArmRgTest","name":"cesarArmRgTest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteCancel","Microsoft.Resources.ResourceDeleteFailure"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/BuiltOnArmSubscription","name":"BuiltOnArmSubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1jimsdh1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gridResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/rgsub1","name":"rgsub1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cesartopics/providers/Microsoft.EventGrid/eventSubscriptions/cesarTest3","name":"cesarTest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/z5gv8oz5"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/kalses77","name":"kalses77","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/snorop","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Snorop/providers/Microsoft.EventGrid/eventSubscriptions/SomeSubNameHere","name":"SomeSubNameHere","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest","name":"armswitchtest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest2","name":"armswitchtest2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/ue9kc5ue"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalsrg/providers/Microsoft.EventGrid/eventSubscriptions/armswitchtest3","name":"armswitchtest3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2","name":"examplesubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/15ksip71"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4","name":"examplesubscription4","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demorg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kishpdummyapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demoRg/providers/Microsoft.EventGrid/eventSubscriptions/testRg","name":"testRg","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridtestfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceDeleteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/alleventtypescheck","name":"alleventtypescheck","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-c5f6c255-West-US-2","name":"eg-crud-runner-subscription-c5f6c255-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-88e492c5-West-US-2","name":"eg-crud-runner-subscription-88e492c5-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/EventHubTestWithEventGrid1/eventhubs/egarmrunnereventhublocaltestwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-86f9994d-West-US-2","name":"eg-crud-runner-subscription-86f9994d-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridrunnertestresourcegroup","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventHub/namespaces/testeventhublocalusw2/eventhubs/testeventhublocalusw2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridRunnerTestResourceGroup/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus2/eventhubs/egarmrunnereventhubwestus2"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS2/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US-2","name":"eg-arm-runner-subscription-West-US-2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus2euap","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus2euap/eventhubs/egarmrunnereventhubeastus2euap"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS2EUAP/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-EAST-US-2-EUAP","name":"eg-arm-runner-subscription-EAST-US-2-EUAP","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo-devopsautomation","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Demo-DevOpsAutomation/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Demo-DevOpsAutomation/providers/Microsoft.EventGrid/eventSubscriptions/AzureAutomation","name":"AzureAutomation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://s13events.azure-automation.net/webhooks"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMCreation","name":"VMCreation","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/165j5xt1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosovms/providers/Microsoft.Compute/virtualMachines","subjectEndsWith":"","includedEventTypes":["Microsoft.Resources.ResourceWriteSuccess","Microsoft.Resources.ResourceWriteFailure","Microsoft.Resources.ResourceWriteCancel"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/VMEventAudit","name":"VMEventAudit","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/SQLchanges","name":"SQLchanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://babanisafun.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllProdChanges","name":"AllProdChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/AllDogfoodChanges","name":"AllDogfoodChanges","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosovms/providers/Microsoft.EventGrid/eventSubscriptions/DeploymentFailures","name":"DeploymentFailures","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://requestb.in/1huu2ug1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/testsub","name":"testsub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-14.westcentralus.logic.azure.com/workflows/d5ef6d3cf09147529f40e36172992ff1/triggers/When_a_resource_event_occurs/versions/08586809618926790378/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","name":"LogicApp8597fc52-2559-4c2b-b9a5-6179d2eea8d0","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rguntgqwtn4azutakqditagh2vxya7qpcvhsj24rbjo6vtzpvj5dbd5aksxdiskjwex/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdyoajzoke3lbxojr7omt6m6oasvyr7zsho5fidxigg36zbgvesajzqx4fzlyrltzi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxcghxwpqx6jzpeik6j6eh7f2fzp5pid6dljpfjdkpk5hjxf2yvofru6vxkfyvg6e4/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgguesi4mr5csi2ihfydbzxcas7pmvivvjiwowanj7czjfapbtgcoplimtaqrm4a25f/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgutd2umh6k52zs4kedoid4acse7m4iogcckstq7l3a7nslx7y4oz4fzujnjgpfkpm2/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghi3p6n67bjwig6wmmynduini7y7tn3omaflwsncmm72b74q2qcn2tbvyjfu6ww5wu/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjvyfhbozg5exhj6xwhewjpbdaky4n6xn5hfbybvajzg6nanviycqkaugujltwjq4n/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgstmvfbmh7j3gencdmjtdme5vgsmkztoldy5zhxa6clu4hcsp72hr43vsp2jtwqybp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtxvwxuq53ws65ofrblvsnv7e2znvojk42n3332klajwfy6kxrr2ehs7tg4wsc2ccy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgggqagcer44su5icztostiufuauqsivdligimbgtoufsw5t24uauwgtqvks5eucndv/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES1","name":"testPsRgES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES2","name":"testPsRgES2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES3","name":"testPsRgES3","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES5","name":"testPsRgES5","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES6","name":"testPsRgES6","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111","name":"testPsRgES111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpowershellRG/providers/Microsoft.Relay/namespaces/testpowershellhybridconnection/hybridConnections/eventgridhybridconnection1"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgE0123","name":"testPsRgE0123","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111333","name":"testPsRgES111333","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES111344","name":"testPsRgES111344","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testpsrg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testPsRG/providers/Microsoft.EventGrid/eventSubscriptions/testPsRgES11134444","name":"testPsRgES11134444","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnekak4bfydypjqukzgxjt4gl6oajnbxrkdwnuxzner4nbwa3bl62udrdrieg5timj/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzvt4acroxzkzf7ssvpz5y3x7zzkk77melcpaw3hxz7qejya6ya5u4ssgkikttxlqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnsxeti7syflktv2tiua4xz6e57umcynjznlouqtrvyhbaucjxpsjyxcesklgnjdqg/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv3oj3c7yhhb5trdzfn2jjskv7sei7rrfqvqwfkv5bstgbwapr7jdg53tyd6cm2oou/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2m7rwhdrw2lia5tf63zp3imexyy27d4q3pvsdbfuyi27346uls62zygy64iz7lmyn/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjhy6v4suqag5d3dhyzm5owajnbl5ct5z5ponmuut6z56povyhjtxsn3tt77v4adi3/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzqudpawm5sngmlo27n5wqjevbo3omlgxh2smjqpev2dqopcetnw4kha46j7nknbhi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridclilivetest.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgb2lttd5wuitcf4ja4j2tqhzvpy5wpdw6qidzrjje2nji4nhdhgnms7vpn7a6kolqq/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someTestEventSub","name":"someTestEventSub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","queueName":"armqueue"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es11","name":"es11","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay/hybridconnections/my~hybrid~connection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/someEventSubInRG","name":"someEventSubInRG","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://gridtestsite.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/babanisa/providers/Microsoft.EventGrid/eventSubscriptions/RGtestFoo","name":"RGtestFoo","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alitest/providers/Microsoft.Relay/namespaces/ali-relay-test/hybridconnections/somehybridconnection"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FrancosResources/providers/Microsoft.EventGrid/eventSubscriptions/something","name":"something","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.Storage/storageAccounts/rajaqueuestorage","queueName":"clibugbash"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rajagrid/providers/Microsoft.EventGrid/eventSubscriptions/runnertest","name":"runnertest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://jettest.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/armeventstojettest","name":"armeventstojettest","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://gridtestsite.azurewebsites.net/api/updates"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/babanisa","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/babanisatogridtestsite","name":"babanisatogridtestsite","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgwestus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestus/eventhubs/egarmrunnereventhubwestus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGWestUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-US","name":"eg-arm-runner-subscription-West-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespaceeastus/eventhubs/egarmrunnereventhubeastus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-East-US","name":"eg-arm-runner-subscription-East-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/runner-logger-sub","name":"runner-logger-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serverlessdevops","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/undefined","name":"undefined","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgeastus","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGEastUS/providers/Microsoft.EventGrid/eventSubscriptions/arm-runner-sub","name":"arm-runner-sub","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://resourcelogger.azurewebsites.net/runtime/webhooks/EventGrid"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ServerlessDevOps/providers/Microsoft.EventGrid/eventSubscriptions/devopssubscription","name":"devopssubscription","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domainTopic1ES1","name":"domainTopic1ES1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES8888","name":"domaintest11topic44ES8888","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://eventgridrunnerfunction.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amh/providers/Microsoft.EventGrid/eventSubscriptions/domaintest11topic44ES9999","name":"domaintest11topic44ES9999","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy7n2mfdx2ivw4tbxy2qx6w4vswsjl4mxx2lxq66a5jrhxpqz557kyqam2zmcsogtf/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4eryag2nbyfwkbupvq25phhivmb3josftfx5dbgjjjpe7ql2l32qxiilqsxwbwaye/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg74y2zekmuezgdxxvu5o6xw7noral7kktz6kdzii7nfantnybh5b4542bptb3ynnif/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgvhw2gbrofn2qxabjqukojmpfvu2c6ppkwrshlbht6j4tlb7zwgci6o3m2vt4vhvvc/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgy6k3wf2huzlkvq6ji2yppns5t7bd4jcnyrhry3rl3berje3it76xf3mrsvceehtqi/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerrgcentralindia","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacecentralindia/eventhubs/egarmrunnereventhubcentralindia"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerRGCentralIndia/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-Central-India","name":"eg-arm-runner-subscription-Central-India","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridarmrunnerwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventHub/namespaces/egarmrunnereventhubnamespacewestcentralus/eventhubs/egarmrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridArmRunnerWestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-arm-runner-subscription-West-Central-US","name":"eg-arm-runner-subscription-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1008","name":"es1008","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1009","name":"es1009","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1011","name":"es1011","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgg6dwbtc4swy22hefh3j3bdi2sob4m7j4ukth7i5nspak3rcoe6p5qjtjokd4cwyjt/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwtsmk2x74lq5ucz23le446fmndtllskbag7b4cl33bobnkwb452lax3k2dyv4zs5l/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgfftva5fki4yts7dqyuie2d25ojzese5hvuxefdhm37mmsh473opiullf2svyxzpcy/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"mysubject_prefix","subjectEndsWith":".jpg","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgk2nqhsv4yqjhh63oe7ysznuc7noe2u2s6xiwty2su66vmcbbnx6cwn6xccjhzexvp/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7ayeeqcj26z5ocqd5d5enq4k6pqf5nol5pwcet5krfhlmwcw5jzwedhim7oi6gnky/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgsifbw63iulpxjlur4y6g5jxhcr3degdhckwdczuuhumq57uuaezyasgdulytzfvde","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":20,"eventTimeToLiveInMinutes":1000},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo","blobContainerName":"dlq"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgsifbw63iulpxjlur4y6g5jxhcr3degdhckwdczuuhumq57uuaezyasgdulytzfvde/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"mysubject_suffix","includedEventTypes":["blobCreated","blobUpdated"],"isSubjectCaseSensitive":true},"labels":["Finance","HR"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2","name":"eventsubscription2","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['952'] + content-length: ['80599'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:05 GMT'] + date: ['Fri, 12 Oct 2018 20:54:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -363,25 +289,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription2?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:26:08 GMT'] + date: ['Fri, 12 Oct 2018 20:54:07 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/84440EC7-D9FF-447E-B67A-E0C5FF118E29?api-version=2018-05-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/74B8C011-95C7-4667-8B51-ACD7181E132D?api-version=2018-09-15-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1144'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 202, message: Accepted} - request: body: null @@ -390,17 +315,16 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/84440EC7-D9FF-447E-B67A-E0C5FF118E29?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/74B8C011-95C7-4667-8B51-ACD7181E132D?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:26:18 GMT'] + date: ['Fri, 12 Oct 2018 20:54:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -416,9 +340,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 @@ -427,12 +350,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:26:20 GMT'] + date: ['Fri, 12 Oct 2018 20:54:25 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc2NlVYQkNWREVUQVFETFRXUldaRzNJREpQRVZGUEJKSjRNSnw3RTRBNUREN0JFRDE4QUY1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdWSFpETlcySDdPNEpSVVVONVE3WlhZTFU2VldVUlhTNllXUnxCMzJGNjc4RUMxOTcxMjgxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1128'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_topic.yaml b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_topic.yaml index 050d4980801..3c36502a2e6 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_topic.yaml +++ b/src/eventgrid/azext_eventgrid/tests/latest/recordings/test_create_topic.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-04-25T22:26:20Z"}}' + "date": "2018-10-12T20:54:25Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,54 +9,52 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-04-25T22:26:20Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-12T20:54:25Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:21 GMT'] + date: ['Fri, 12 Oct 2018 20:54:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1119'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: - body: '{"location": "eastus2euap", "properties": {"inputSchema": "EventGridSchema"}}' + body: '{"location": "westcentralus", "properties": {"inputSchema": "EventGridSchema"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - Content-Length: ['77'] + Content-Length: ['79'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/16962264-979B-4706-9629-B8BE6D466456?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/58B69292-B3C4-4B35-9039-AFBCC22CD3D2?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['446'] + content-length: ['448'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:23 GMT'] + date: ['Fri, 12 Oct 2018 20:54:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1174'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: body: null @@ -65,18 +63,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/16962264-979B-4706-9629-B8BE6D466456?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/58B69292-B3C4-4B35-9039-AFBCC22CD3D2?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/16962264-979B-4706-9629-B8BE6D466456?api-version=2018-05-01-preview","name":"16962264-979b-4706-9629-b8be6d466456","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/58B69292-B3C4-4B35-9039-AFBCC22CD3D2?api-version=2018-09-15-preview","name":"58b69292-b3c4-4b35-9039-afbcc22cd3d2","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:33 GMT'] + date: ['Fri, 12 Oct 2018 20:54:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -92,18 +89,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['538'] + content-length: ['542'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:34 GMT'] + date: ['Fri, 12 Oct 2018 20:54:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -120,19 +116,18 @@ interactions: CommandName: [eventgrid topic show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['538'] + content-length: ['542'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:34 GMT'] + date: ['Fri, 12 Oct 2018 20:54:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -142,34 +137,33 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"location": "eastus2euap", "properties": {"inputSchema": "CloudEventV01Schema"}}' + body: '{"location": "westcentralus", "properties": {"inputSchema": "CloudEventV01Schema"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - Content-Length: ['81'] + Content-Length: ['83'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CloudEventV01Schema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/BE3710D6-4137-4929-8F9B-8C471BC98D10?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/96714521-AAD3-4C04-B0C4-30F14CF91060?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['450'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:36 GMT'] + date: ['Fri, 12 Oct 2018 20:54:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1140'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -178,18 +172,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/BE3710D6-4137-4929-8F9B-8C471BC98D10?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/96714521-AAD3-4C04-B0C4-30F14CF91060?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/BE3710D6-4137-4929-8F9B-8C471BC98D10?api-version=2018-05-01-preview","name":"be3710d6-4137-4929-8f9b-8c471bc98d10","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/96714521-AAD3-4C04-B0C4-30F14CF91060?api-version=2018-09-15-preview","name":"96714521-aad3-4c04-b0c4-30f14cf91060","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:47 GMT'] + date: ['Fri, 12 Oct 2018 20:54:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -205,18 +198,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['542'] + content-length: ['546'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:26:58 GMT'] + date: ['Fri, 12 Oct 2018 20:54:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -226,42 +218,7 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"location": "eastus2euap", "properties": {"inputSchema": "CustomEventSchema", - "inputSchemaMapping": {"inputSchemaMappingType": "Json", "properties": {"id": - {}, "topic": {"sourceField": "myTopicField"}, "eventTime": {}, "eventType": - {"sourceField": "myEventTypeField"}, "subject": {"defaultValue": "DefaultSubject"}, - "dataVersion": {"defaultValue": "1.0"}}}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic create] - Connection: [keep-alive] - Content-Length: ['359'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:27:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: '{"location": "eastus2euap", "properties": {"inputSchema": "CustomEventSchema", + body: '{"location": "westcentralus", "properties": {"inputSchema": "CustomEventSchema", "inputSchemaMapping": {"inputSchemaMappingType": "Json", "properties": {"id": {}, "topic": {"sourceField": "myTopicField"}, "eventTime": {}, "eventType": {"sourceField": "myEventTypeField"}, "subject": {"defaultValue": "DefaultSubject"}, @@ -271,28 +228,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - Content-Length: ['359'] + Content-Length: ['361'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Creating","endpoint":null,"inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/59850CB8-ED79-4AAD-AFE7-9FA2C88EAA33?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/995D42C7-CA0D-4563-8ABC-C689660A6A42?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['802'] + content-length: ['804'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:28:01 GMT'] + date: ['Fri, 12 Oct 2018 20:54:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1177'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: body: null @@ -301,46 +257,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/59850CB8-ED79-4AAD-AFE7-9FA2C88EAA33?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:29:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic create] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/59850CB8-ED79-4AAD-AFE7-9FA2C88EAA33?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/995D42C7-CA0D-4563-8ABC-C689660A6A42?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/59850CB8-ED79-4AAD-AFE7-9FA2C88EAA33?api-version=2018-05-01-preview","name":"59850cb8-ed79-4aad-afe7-9fa2c88eaa33","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/995D42C7-CA0D-4563-8ABC-C689660A6A42?api-version=2018-09-15-preview","name":"995d42c7-ca0d-4563-8abc-c689660a6a42","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:29:13 GMT'] + date: ['Fri, 12 Oct 2018 20:55:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -356,18 +283,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['894'] + content-length: ['898'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:29:14 GMT'] + date: ['Fri, 12 Oct 2018 20:55:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -384,49 +310,18 @@ interactions: CommandName: [eventgrid topic update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:30:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['538'] + content-length: ['542'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:30:14 GMT'] + date: ['Fri, 12 Oct 2018 20:55:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -444,57 +339,25 @@ interactions: Connection: [keep-alive] Content-Length: ['24'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['147'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: '{"tags": {"Dept": "IT"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic update] - Connection: [keep-alive] - Content-Length: ['24'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Updating","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Updating","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/4798C616-5004-473D-B3F6-3679683162E2?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/CAA8591A-BF53-44C2-B386-D9CB70139EBA?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['546'] + content-length: ['550'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:16 GMT'] + date: ['Fri, 12 Oct 2018 20:55:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1148'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -503,18 +366,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic update] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/4798C616-5004-473D-B3F6-3679683162E2?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/CAA8591A-BF53-44C2-B386-D9CB70139EBA?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/4798C616-5004-473D-B3F6-3679683162E2?api-version=2018-05-01-preview","name":"4798c616-5004-473d-b3f6-3679683162e2","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/CAA8591A-BF53-44C2-B386-D9CB70139EBA?api-version=2018-09-15-preview","name":"caa8591a-bf53-44c2-b386-d9cb70139eba","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:28 GMT'] + date: ['Fri, 12 Oct 2018 20:55:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -530,18 +392,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic update] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} + body: {string: '{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"}'} headers: cache-control: [no-cache] - content-length: ['547'] + content-length: ['551'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:28 GMT'] + date: ['Fri, 12 Oct 2018 20:55:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -558,19 +419,18 @@ interactions: CommandName: [eventgrid topic list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics?api-version=2018-09-15-preview response: - body: {string: '{"value":[{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"eastus2euap","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.eastus2euap-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}]}'} + body: {string: '{"value":[{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema"},"location":"westcentralus","tags":{"Dept":"IT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002","name":"cli000002","type":"Microsoft.EventGrid/topics"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CloudEventV01Schema"},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000003","name":"cli000003","type":"Microsoft.EventGrid/topics"},{"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000004.westcentralus-1.eventgrid.azure.net/api/events","inputSchema":"CustomEventSchema","inputSchemaMapping":{"properties":{"id":{"sourceField":null},"topic":{"sourceField":"myTopicField"},"eventTime":{"sourceField":null},"eventType":{"sourceField":"myEventTypeField","defaultValue":null},"subject":{"sourceField":null,"defaultValue":"DefaultSubject"},"dataVersion":{"sourceField":null,"defaultValue":"1.0"}},"inputSchemaMappingType":"Json"}},"location":"westcentralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000004","name":"cli000004","type":"Microsoft.EventGrid/topics"}]}'} headers: cache-control: [no-cache] - content-length: ['1997'] + content-length: ['2009'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:30 GMT'] + date: ['Fri, 12 Oct 2018 20:55:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -588,19 +448,18 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/listKeys?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/listKeys?api-version=2018-09-15-preview response: - body: {string: '{"key1":"OoLwLglcgw7YFEcSv6kFZm/sFiS8ct1WcVYHHm2jkBg=","key2":"3eqGKiGGQYx4JV0fs8PFCu4LVIiLHLtoLAOupThEAYc="}'} + body: {string: '{"key1":"X3kZ8sZI7tzM1nCu5XMwjJz3UtBehu7JWgxPDudOk+U=","key2":"iUElG//JqyZsdIfCeTPzKT1AhPWUTf7zq8gh+VIr2zU="}'} headers: cache-control: [no-cache] content-length: ['109'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:30 GMT'] + date: ['Fri, 12 Oct 2018 20:55:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -608,7 +467,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1153'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"keyName": "key1"}' @@ -619,19 +478,18 @@ interactions: Connection: [keep-alive] Content-Length: ['19'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-09-15-preview response: - body: {string: '{"key1":"EIC76AhTgFpC8WwRHtcTlM4x3hpmZSwIE8qBzyQWBpU=","key2":"3eqGKiGGQYx4JV0fs8PFCu4LVIiLHLtoLAOupThEAYc="}'} + body: {string: '{"key1":"PvpJ0Dl++/jd1QC5xYoqUq6Vpd7zz0G9KktesXYzHcU=","key2":"iUElG//JqyZsdIfCeTPzKT1AhPWUTf7zq8gh+VIr2zU="}'} headers: cache-control: [no-cache] content-length: ['109'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:31 GMT'] + date: ['Fri, 12 Oct 2018 20:55:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -639,7 +497,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1137'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyName": "key2"}' @@ -650,19 +508,18 @@ interactions: Connection: [keep-alive] Content-Length: ['19'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/regenerateKey?api-version=2018-09-15-preview response: - body: {string: '{"key1":"EIC76AhTgFpC8WwRHtcTlM4x3hpmZSwIE8qBzyQWBpU=","key2":"MlG5FZqZy3kfUYR4vJcEV7B5qkge+gtJZNSvuyEULnM="}'} + body: {string: '{"key1":"PvpJ0Dl++/jd1QC5xYoqUq6Vpd7zz0G9KktesXYzHcU=","key2":"lx8ByYJ42G52V0E3c6/Ig016R/9SCi1FQ0t886A61Aw="}'} headers: cache-control: [no-cache] content-length: ['109'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:32 GMT'] + date: ['Fri, 12 Oct 2018 20:55:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -670,40 +527,73 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1155'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": - {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}}, - "filter": {"isSubjectCaseSensitive": false}, "eventDeliverySchema": "EventGridSchema", - "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}}' + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"error":{"code":"InternalServerError","message":"Internal server + error occurred."}}'} + headers: + cache-control: [no-cache] + connection: [close] + content-length: ['84'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:55:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [service] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 500, message: Internal Server Error} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - Content-Length: ['380'] + Content-Length: ['338'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/292171BA-FEA2-4D18-B24F-A7C0E1280F29?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C99D06C7-9E28-4AA0-902E-C25ACFB687E8?api-version=2018-09-15-preview'] cache-control: [no-cache] - content-length: ['987'] + content-length: ['947'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:33 GMT'] + date: ['Fri, 12 Oct 2018 20:55:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1092'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -712,18 +602,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/292171BA-FEA2-4D18-B24F-A7C0E1280F29?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C99D06C7-9E28-4AA0-902E-C25ACFB687E8?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/292171BA-FEA2-4D18-B24F-A7C0E1280F29?api-version=2018-05-01-preview","name":"292171ba-fea2-4d18-b24f-a7c0e1280f29","status":"Succeeded"}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/C99D06C7-9E28-4AA0-902E-C25ACFB687E8?api-version=2018-09-15-preview","name":"c99d06c7-9e28-4aa0-902e-c25acfb687e8","status":"Succeeded"}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:43 GMT'] + date: ['Fri, 12 Oct 2018 20:55:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -739,18 +628,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1060'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:45 GMT'] + date: ['Fri, 12 Oct 2018 20:55:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -767,19 +655,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1060'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:44 GMT'] + date: ['Fri, 12 Oct 2018 20:55:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -796,19 +683,18 @@ interactions: CommandName: [eventgrid event-subscription show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1060'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:46 GMT'] + date: ['Fri, 12 Oct 2018 20:55:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -826,19 +712,18 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-09-15-preview response: - body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}'} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:46 GMT'] + date: ['Fri, 12 Oct 2018 20:55:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -846,7 +731,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1164'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -856,19 +741,18 @@ interactions: CommandName: [eventgrid event-subscription update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] content-length: ['1060'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:47 GMT'] + date: ['Fri, 12 Oct 2018 20:55:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -879,36 +763,36 @@ interactions: status: {code: 200, message: OK} - request: body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": - "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ=="}}, + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": - ["All"]}}' + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - Content-Length: ['290'] + Content-Length: ['410'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/9F7DD233-1D02-4296-966A-0C2E7DF0AC4A?api-version=2018-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/78F6FCFB-69A4-4CEC-8412-AD4B6C8ACC59?api-version=2018-09-15-preview'] cache-control: [no-cache] content-length: ['1059'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:31:48 GMT'] + date: ['Fri, 12 Oct 2018 20:55:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1125'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -917,27 +801,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/9F7DD233-1D02-4296-966A-0C2E7DF0AC4A?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/78F6FCFB-69A4-4CEC-8412-AD4B6C8ACC59?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/78F6FCFB-69A4-4CEC-8412-AD4B6C8ACC59?api-version=2018-09-15-preview","name":"78f6fcfb-69a4-4cec-8412-ad4b6c8acc59","status":"Succeeded"}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:32:58 GMT'] + date: ['Fri, 12 Oct 2018 20:55:57 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + status: {code: 200, message: OK} - request: body: null headers: @@ -945,46 +827,45 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid event-subscription update] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/9F7DD233-1D02-4296-966A-0C2E7DF0AC4A?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['1060'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:33:58 GMT'] + date: ['Fri, 12 Oct 2018 20:55:57 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] + CommandName: [eventgrid event-subscription list] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/9F7DD233-1D02-4296-966A-0C2E7DF0AC4A?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationsStatus/9F7DD233-1D02-4296-966A-0C2E7DF0AC4A?api-version=2018-05-01-preview","name":"9f7dd233-1d02-4296-966a-0c2e7df0ac4a","status":"Succeeded"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['292'] + content-length: ['1072'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:34:01 GMT'] + date: ['Fri, 12 Oct 2018 20:55:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -998,20 +879,21 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription update] + CommandName: [eventgrid event-subscription list] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2018-09-15-preview response: - body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/egrunnertopicsubscriptionwestcentralus","name":"egrunnertopicsubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnersubscriptionwestcentralus","name":"eglatencyrunnersubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-custom-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-custom-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-002","name":"eg-latency-runner-subscription-eg-prod-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-003","name":"eg-latency-runner-subscription-eg-prod-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://equipmentorders.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["NewEmployee"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/EquipmentOrders","name":"EquipmentOrders","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://employeedatabaseconnection.servicebus.windows.net/EmployeeDatabaseConnection"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/PayrollUpdates","name":"PayrollUpdates","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/WelcomeEmail","name":"WelcomeEmail","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-22.westcentralus.logic.azure.com/workflows/c244a79ad4f64de3a2ba1bba3f0bf53a/triggers/When_a_resource_event_occurs/versions/08586816518251164829/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","name":"LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/microsoft.eventgrid/topics/kishpclitestingdontuse2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kishptestrg/providers/Microsoft.Relay/namespaces/eghcintegrationtesting/HybridConnections/egrelayhcsubscriber"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/Microsoft.EventGrid/topics/kishpclitestingDontUse2/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-01","name":"eg-latency-runner-subscription-eg-prod-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest1/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-crud-runner-topic-9e81fd7b-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-crud-runner-topic-9e81fd7b-West-Central-US/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-8d7764d2-West-Central-US","name":"eg-crud-runner-subscription-8d7764d2-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1111","name":"es1111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnerqueuetopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","queueName":"egltcyrunnerstgqueuedestinationcentralus"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egltcyrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnerqueuetopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnerqueuesubscriptionwestcentralus","name":"eglatencyrunnerqueuesubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} headers: cache-control: [no-cache] - content-length: ['1060'] + content-length: ['23377'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:34:01 GMT'] + date: ['Fri, 12 Oct 2018 20:56:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -1025,22 +907,102 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription list] + CommandName: [eventgrid event-subscription delete] Connection: [keep-alive] + Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:56:03 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/EA36E6D0-BB6D-4334-8F52-3451B0B3D449?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/EA36E6D0-BB6D-4334-8F52-3451B0B3D449?api-version=2018-09-15-preview response: - body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + body: {string: ''} headers: cache-control: [no-cache] - content-length: ['1072'] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:56:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/8420C1F2-0072-403C-AD69-B9913A53CEF7?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['947'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/8420C1F2-0072-403C-AD69-B9913A53CEF7?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/8420C1F2-0072-403C-AD69-B9913A53CEF7?api-version=2018-09-15-preview","name":"8420c1f2-0072-403c-ad69-b9913a53cef7","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:34:03 GMT'] + date: ['Fri, 12 Oct 2018 20:56:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -1054,52 +1016,53 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] + CommandName: [eventgrid event-subscription create] Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-05-01-preview + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: - body: {string: ''} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:34:04 GMT'] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:26 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationResults/98C8E589-047C-48E0-A859-C5EF9EA7B59C?api-version=2018-05-01-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1102'] - status: {code: 202, message: Accepted} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid event-subscription delete] + CommandName: [eventgrid event-subscription show] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationResults/98C8E589-047C-48E0-A859-C5EF9EA7B59C?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: - body: {string: ''} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:34:15 GMT'] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: @@ -1107,58 +1070,669 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic delete] + CommandName: [eventgrid event-subscription show] Connection: [keep-alive] - Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-05-01-preview + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview response: - body: {string: ''} + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} headers: cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:34:16 GMT'] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:28 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationResults/A498E306-B3E4-478D-893D-798681AFB64D?api-version=2018-05-01-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1126'] - status: {code: 202, message: Accepted} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [eventgrid topic delete] + CommandName: [eventgrid event-subscription show] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationResults/A498E306-B3E4-478D-893D-798681AFB64D?api-version=2018-05-01-preview + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-09-15-preview response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.EventGrid'' within the specified time - period."}}'} + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} headers: cache-control: [no-cache] - connection: [close] - content-length: ['147'] + content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 25 Apr 2018 22:35:26 GMT'] + date: ['Fri, 12 Oct 2018 20:56:28 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['410'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/80346990-EC44-4499-879C-091771F01C0F?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1059'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/80346990-EC44-4499-879C-091771F01C0F?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/80346990-EC44-4499-879C-091771F01C0F?api-version=2018-09-15-preview","name":"80346990-ec44-4499-879c-091771f01c0f","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1072'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:56:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/D1CD2413-EDF8-4B3D-BAC3-16EB81FD7FF4?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/D1CD2413-EDF8-4B3D-BAC3-16EB81FD7FF4?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:56:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"destination": {"endpointType": "WebHook", "properties": + {"endpointUrl": "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"isSubjectCaseSensitive": false}, "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + Content-Length: ['338'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Creating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{},"labels":null,"retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/737200DD-451B-438A-A619-C55D3572FFFF?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['947'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:56:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/737200DD-451B-438A-A619-C55D3572FFFF?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/737200DD-451B-438A-A619-C55D3572FFFF?api-version=2018-09-15-preview","name":"737200dd-451b-438a-a619-c55d3572ffff","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription show] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005/getFullUrl?api-version=2018-09-15-preview + response: + body: {string: '{"endpointUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}'} + headers: + cache-control: [no-cache] + content-length: ['138'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1185'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"destination": {"endpointType": "WebHook", "properties": {"endpointUrl": + "https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER"}}, + "filter": {"subjectBeginsWith": "", "subjectEndsWith": "", "includedEventTypes": + ["All"]}, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": + 30, "eventTimeToLiveInMinutes": 1440}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + Content-Length: ['410'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Updating","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E1737C40-0121-44A1-9B6C-35F43257A1E8?api-version=2018-09-15-preview'] + cache-control: [no-cache] + content-length: ['1059'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E1737C40-0121-44A1-9B6C-35F43257A1E8?api-version=2018-09-15-preview + response: + body: {string: '{"id":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/E1737C40-0121-44A1-9B6C-35F43257A1E8?api-version=2018-09-15-preview","name":"e1737c40-0121-44a1-9b6c-35f43257a1e8","status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription update] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: '{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}'} + headers: + cache-control: [no-cache] + content-length: ['1060'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['1072'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2018-09-15-preview + response: + body: {string: '{"value":[{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/egrunnertopicsubscriptionwestcentralus","name":"egrunnertopicsubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnercustomtopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnercustomtopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnersubscriptionwestcentralus","name":"eglatencyrunnersubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-custom-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-custom-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-west-central-us/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-west-central-us","name":"eg-latency-runner-subscription-west-central-us","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-002","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-002"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-002/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-002","name":"eg-latency-runner-subscription-eg-prod-uswc-002","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-003","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-003"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-003/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-003","name":"eg-latency-runner-subscription-eg-prod-uswc-003","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://equipmentorders.azurewebsites.net/admin/extensions/EventGridExtensionConfig"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["NewEmployee"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/EquipmentOrders","name":"EquipmentOrders","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://employeedatabaseconnection.servicebus.windows.net/EmployeeDatabaseConnection"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/PayrollUpdates","name":"PayrollUpdates","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/microsoft.eventgrid/topics/contosohrplatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-12.westus2.logic.azure.com/workflows/92fc8cf8a9394e48a0f22738070d9132/triggers/manual/paths/invoke"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":[""],"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/WelcomeEmail","name":"WelcomeEmail","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://prod-22.westcentralus.logic.azure.com/workflows/c244a79ad4f64de3a2ba1bba3f0bf53a/triggers/When_a_resource_event_occurs/versions/08586816518251164829/run"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosohr/providers/Microsoft.EventGrid/topics/contosoHrPlatform/providers/Microsoft.EventGrid/eventSubscriptions/LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","name":"LogicApp60052cfc-af81-4c75-961c-1f37c3f56511","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/microsoft.eventgrid/topics/kishpclitestingdontuse2","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/kishptestrg/providers/Microsoft.Relay/namespaces/eghcintegrationtesting/HybridConnections/egrelayhcsubscriber"},"endpointType":"HybridConnection"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kishptestrg/providers/Microsoft.EventGrid/topics/kishpclitestingDontUse2/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-latency-runner-topic-eg-prod-uswc-01","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/eglatencyrunnereventhub-eg-prod-uswc-01"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-latency-runner-topic-eg-prod-uswc-01/providers/Microsoft.EventGrid/eventSubscriptions/eg-latency-runner-subscription-eg-prod-uswc-01","name":"eg-latency-runner-subscription-eg-prod-uswc-01","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest1","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest1/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"],"advancedFilters":[{"values":[10.0,20.0,30.0],"operatorType":"NumberIn","key":"data.model"}]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eg-crud-runner-topic-9e81fd7b-west-central-us","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eg-crud-runner-topic-9e81fd7b-West-Central-US/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-8d7764d2-West-Central-US","name":"eg-crud-runner-subscription-8d7764d2-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1111","name":"es1111","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/eglatencyrunnerqueuetopicwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","queueName":"egltcyrunnerstgqueuedestinationcentralus"},"endpointType":"StorageQueue"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egltcyrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/eglatencyrunnerqueuetopicwestcentralus/providers/Microsoft.EventGrid/eventSubscriptions/eglatencyrunnerqueuesubscriptionwestcentralus","name":"eglatencyrunnerqueuesubscriptionwestcentralus","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"CloudEventV01Schema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es1","name":"es1","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/dutest11","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/dutest11/providers/Microsoft.EventGrid/eventSubscriptions/es2","name":"es2","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/microsoft.eventgrid/topics/kalstest2","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventGrid/topics/kalstest2/providers/Microsoft.EventGrid/eventSubscriptions/es1012","name":"es1012","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.eventgrid/topics/cli000002","provisioningState":"Succeeded","destination":{"properties":{"endpointUrl":null,"endpointBaseUrl":"https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1"},"endpointType":"WebHook"},"filter":{"subjectBeginsWith":"","subjectEndsWith":"","includedEventTypes":["All"]},"labels":null,"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1440}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005","name":"cli000005","type":"Microsoft.EventGrid/eventSubscriptions"},{"properties":{"topic":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azureeventgridrunnerrgwestcentralus/providers/microsoft.eventgrid/topics/egcrudrunnertopic8caad40bwestcentralus","provisioningState":"Succeeded","destination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventHub/namespaces/egrunnereventhubnamespacewestcentralus/eventhubs/egoperationrunnereventhubwestcentralus"},"endpointType":"EventHub"},"filter":{"subjectBeginsWith":"Subject","subjectEndsWith":"","includedEventTypes":["All"],"isSubjectCaseSensitive":true,"advancedFilters":[{"values":["runner"],"operatorType":"StringContains","key":"topic"},{"values":["Info"],"operatorType":"StringEndsWith","key":"data.EventData"},{"values":[1.0,2.0,3.0],"operatorType":"NumberIn","key":"data.key1"},{"value":true,"operatorType":"BoolEquals","key":"data.key2"},{"values":["3.0"],"operatorType":"StringContains","key":"dataversion"}]},"labels":["TestLabel1","TestLabel2"],"eventDeliverySchema":"EventGridSchema","retryPolicy":{"maxDeliveryAttempts":30,"eventTimeToLiveInMinutes":1439},"deadLetterDestination":{"properties":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.Storage/storageAccounts/egrunnerstgwestcentralus","blobContainerName":"egrunnerstgdlqcentralus"},"endpointType":"StorageBlob"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureEventGridRunnerRGWestCentralUS/providers/Microsoft.EventGrid/topics/egcrudrunnertopic8caad40bWestCentralUS/providers/Microsoft.EventGrid/eventSubscriptions/eg-crud-runner-subscription-5c343793-West-Central-US","name":"eg-crud-runner-subscription-5c343793-West-Central-US","type":"Microsoft.EventGrid/eventSubscriptions"}]}'} + headers: + cache-control: [no-cache] + content-length: ['25254'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 12 Oct 2018 20:57:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002/providers/Microsoft.EventGrid/eventSubscriptions/cli000005?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:57:29 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/600BC1C4-4156-468E-9264-039E854DC781?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid event-subscription delete] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/600BC1C4-4156-468E-9264-039E854DC781?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:57:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [eventgrid topic delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.EventGrid/topics/cli000002?api-version=2018-09-15-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 12 Oct 2018 20:57:41 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/7140EFD2-59B4-4F11-AF2D-15CAD8EF4914?api-version=2018-09-15-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} - request: body: null headers: @@ -1166,17 +1740,16 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [eventgrid topic delete] Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 azext_eventgrid-mgmt-eventgrid/2018-05-01-preview Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + azure-mgmt-eventgrid/2018-09-15-preview Azure-SDK-For-Python AZURECLI/2.0.48] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus2euap/operationResults/A498E306-B3E4-478D-893D-798681AFB64D?api-version=2018-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/7140EFD2-59B4-4F11-AF2D-15CAD8EF4914?api-version=2018-09-15-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:35:27 GMT'] + date: ['Fri, 12 Oct 2018 20:57:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -1192,9 +1765,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.25 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.31] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.48] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 @@ -1203,12 +1775,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 25 Apr 2018 22:35:28 GMT'] + date: ['Fri, 12 Oct 2018 20:57:54 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdQU0JOUkJSSTdFWUtaNDNTU0M1SUY1WUwzR0FJRjJOVURBR3w4MEYxRjgxMzY1RDNGQzE3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdOTVREM1pXM003RVpaWFNVNElBQkw3Tk9BTlVRU0s3N01aSXw1RjdDOTdFODdDQTZEMDVBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1175'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/eventgrid/azext_eventgrid/tests/latest/test_eventgrid_commands.py b/src/eventgrid/azext_eventgrid/tests/latest/test_eventgrid_commands.py index bbe096695d7..30ecf6aa117 100644 --- a/src/eventgrid/azext_eventgrid/tests/latest/test_eventgrid_commands.py +++ b/src/eventgrid/azext_eventgrid/tests/latest/test_eventgrid_commands.py @@ -10,7 +10,7 @@ class EventGridTests(ScenarioTest): - @unittest.skip("Temporarily disabled as this is not yet enabled with the 2018-05-01-preview API version") + @unittest.skip("Temporarily disabled as this is not yet enabled with the 2018-09-15-preview API version") def test_topic_types(self): self.kwargs.update({ @@ -28,9 +28,172 @@ def test_topic_types(self): self.check('[0].type', 'Microsoft.EventGrid/topicTypes/eventTypes') ]) + @ResourceGroupPreparer() + def test_create_domain(self, resource_group): + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' + endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' + + domain_name = self.create_random_name(prefix='cli', length=40) + domain_name2 = self.create_random_name(prefix='cli', length=40) + domain_name3 = self.create_random_name(prefix='cli', length=40) + event_subscription_name = self.create_random_name(prefix='cli', length=40) + + self.kwargs.update({ + 'domain_name': domain_name, + 'domain_name2': domain_name2, + 'domain_name3': domain_name3, + 'location': 'westcentralus', + 'event_subscription_name': event_subscription_name, + 'endpoint_url': endpoint_url, + 'endpoint_baseurl': endpoint_baseurl + }) + + self.kwargs['resource_id'] = self.cmd('az eventgrid domain create --name {domain_name} --resource-group {rg} --location {location}', checks=[ + self.check('type', 'Microsoft.EventGrid/domains'), + self.check('name', self.kwargs['domain_name']), + self.check('provisioningState', 'Succeeded'), + ]).get_output_in_json()['id'] + + self.cmd('az eventgrid domain show --name {domain_name} --resource-group {rg}', checks=[ + self.check('type', 'Microsoft.EventGrid/domains'), + self.check('name', self.kwargs['domain_name']), + ]) + + # Test various failure conditions + # Input mappings cannot be provided when input schema is not customeventschema + with self.assertRaises(CLIError): + self.cmd('az eventgrid domain create --name {domain_name2} --resource-group {rg} --location {location} --input-schema CloudEventV01Schema --input-mapping-fields domain=mydomainField') + + # Input mappings cannot be provided when input schema is not customeventschema + with self.assertRaises(CLIError): + self.cmd('az eventgrid domain create --name {domain_name2} --resource-group {rg} --location {location} --input-schema eventgridschema --input-mapping-fields domain=mydomainField') + + # Input mappings must be provided when input schema is customeventschema + with self.assertRaises(CLIError): + self.cmd('az eventgrid domain create --name {domain_name2} --resource-group {rg} --location {location} --input-schema customeventschema') + + self.cmd('az eventgrid domain create --name {domain_name2} --resource-group {rg} --location {location} --input-schema CloudEventV01Schema', checks=[ + self.check('type', 'Microsoft.EventGrid/domains'), + self.check('name', self.kwargs['domain_name2']), + self.check('provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid domain create --name {domain_name3} --resource-group {rg} --location {location} --input-schema Customeventschema --input-mapping-fields domain=mydomainField eventType=myEventTypeField topic=myTopic --input-mapping-default-values subject=DefaultSubject dataVersion=1.0', checks=[ + self.check('type', 'Microsoft.EventGrid/domains'), + self.check('name', self.kwargs['domain_name3']), + self.check('provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid domain update --name {domain_name} --resource-group {rg} --tags Dept=IT', checks=[ + self.check('name', self.kwargs['domain_name']), + self.check('tags', {'Dept': 'IT'}), + ]) + + self.cmd('az eventgrid domain list --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/domains'), + self.check('[0].name', self.kwargs['domain_name']), + ]) + + output = self.cmd('az eventgrid domain key list --name {domain_name} --resource-group {rg}').get_output_in_json() + self.assertIsNotNone(output['key1']) + self.assertIsNotNone(output['key2']) + + output = self.cmd('az eventgrid domain key regenerate --name {domain_name} --resource-group {rg} --key-name key1').get_output_in_json() + self.assertIsNotNone(output['key1']) + self.assertIsNotNone(output['key2']) + + self.cmd('az eventgrid domain key regenerate --name {domain_name} --resource-group {rg} --key-name key2').get_output_in_json() + self.assertIsNotNone(output['key1']) + self.assertIsNotNone(output['key2']) + + # Event subscriptions to domain + + self.cmd('az eventgrid event-subscription create --resource-id {resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {resource_id} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {resource_id} --name {event_subscription_name} --include-full-endpoint-url', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription update --resource-id {resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription list --source-resource-id {resource_id}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + self.cmd('az eventgrid event-subscription delete --resource-id {resource_id} --name {event_subscription_name}') + + # Event subscriptions to a domain topic + self.kwargs.update({ + 'domain_topic_resource_id': self.kwargs['resource_id'] + "/topics/topic1" + }) + + self.cmd('az eventgrid event-subscription create --resource-id {domain_topic_resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {domain_topic_resource_id} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + + # Now that an event subscription to a domain topic has been created, it would have internally resulted in creation of + # the corresponding auto-managed domain topic. Hence, we should now be able to list the set of domain topics under the domain. + # In the future, we can expand this to support CRUD operations for domain topics (i.e. manual management of domain topics) directly. + self.cmd('az eventgrid domain topic list --resource-group {rg} --name {domain_name}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/domains/topics'), + self.check('[0].id', self.kwargs['domain_topic_resource_id']), + self.check('[0].name', 'topic1'), + ]) + + self.cmd('az eventgrid domain topic show --resource-group {rg} --name {domain_name} --topic-name topic1', checks=[ + self.check('type', 'Microsoft.EventGrid/domains/topics'), + self.check('id', self.kwargs['domain_topic_resource_id']), + self.check('name', 'topic1'), + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {domain_topic_resource_id} --name {event_subscription_name} --include-full-endpoint-url', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription update --resource-id {domain_topic_resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription list --source-resource-id {domain_topic_resource_id}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + self.cmd('az eventgrid event-subscription delete --resource-id {domain_topic_resource_id} --name {event_subscription_name}') + self.cmd('az eventgrid domain delete --name {domain_name} --resource-group {rg}') + @ResourceGroupPreparer() def test_create_topic(self, resource_group): - endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ==' + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' topic_name = self.create_random_name(prefix='cli', length=40) @@ -42,23 +205,27 @@ def test_create_topic(self, resource_group): 'topic_name': topic_name, 'topic_name2': topic_name2, 'topic_name3': topic_name3, - 'location': 'eastus2euap', + 'location': 'westcentralus', 'event_subscription_name': event_subscription_name, 'endpoint_url': endpoint_url, 'endpoint_baseurl': endpoint_baseurl }) - self.cmd('az eventgrid topic create --name {topic_name} --resource-group {rg} --location {location}', checks=[ + scope = self.cmd('az eventgrid topic create --name {topic_name} --resource-group {rg} --location {location}', checks=[ self.check('type', 'Microsoft.EventGrid/topics'), self.check('name', self.kwargs['topic_name']), self.check('provisioningState', 'Succeeded'), - ]) + ]).get_output_in_json()['id'] self.cmd('az eventgrid topic show --name {topic_name} --resource-group {rg}', checks=[ self.check('type', 'Microsoft.EventGrid/topics'), self.check('name', self.kwargs['topic_name']), ]) + self.kwargs.update({ + 'scope': scope, + }) + # Test various failure conditions # Input mappings cannot be provided when input schema is not customeventschema with self.assertRaises(CLIError): @@ -106,6 +273,45 @@ def test_create_topic(self, resource_group): self.assertIsNotNone(output['key1']) self.assertIsNotNone(output['key2']) + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name} --include-full-endpoint-url', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription update --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription list --source-resource-id {scope}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.EventGrid.Topics --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {scope} --name {event_subscription_name}') + +# TESTS FOR DEPRECATED ARGUMENTS +# Using TopicName and ResourceGroup combination self.cmd('az eventgrid event-subscription create --topic-name {topic_name} -g {rg} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('provisioningState', 'Succeeded'), @@ -131,25 +337,153 @@ def test_create_topic(self, resource_group): self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) ]) - self.cmd('az eventgrid event-subscription list --topic-name {topic_name} -g {rg}', checks=[ + self.cmd('az eventgrid event-subscription list --topic-name {topic_name} --resource-group {rg}', checks=[ self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('[0].provisioningState', 'Succeeded'), ]) self.cmd('az eventgrid event-subscription delete --topic-name {topic_name} -g {rg} --name {event_subscription_name}') +# END OF Using TopicName and ResourceGroup combination + +# Using --resource-id approach + self.cmd('az eventgrid event-subscription create --resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {scope} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {scope} --name {event_subscription_name} --include-full-endpoint-url', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription update --resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription list --resource-id {scope}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.EventGrid.Topics --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --resource-id {scope} --name {event_subscription_name}') +# END of using --resource-id approach + +# END OF DEPRECATED ARGUMENTS self.cmd('az eventgrid topic delete --name {topic_name} --resource-group {rg}') @ResourceGroupPreparer() def test_create_event_subscriptions_to_arm_resource_group(self, resource_group): event_subscription_name = 'eventsubscription2' - endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ==' + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' + scope = self.cmd('az group show -n {} -ojson'.format(resource_group)).get_output_in_json()['id'] + self.kwargs.update({ 'event_subscription_name': event_subscription_name, 'endpoint_url': endpoint_url, - 'endpoint_baseurl': endpoint_baseurl + 'endpoint_baseurl': endpoint_baseurl, + 'scope': scope }) + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --subject-begins-with mysubject_prefix', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']), + ]) + + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('filter.subjectBeginsWith', 'mysubject_prefix') + ]) + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --include-full-endpoint-url --name {event_subscription_name}', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + ]) + + self.cmd('az eventgrid event-subscription update --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --subject-ends-with .jpg', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']), + self.check('filter.subjectEndsWith', '.jpg'), + ]) + + self.cmd('az eventgrid event-subscription list --source-resource-id {scope}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Resources.ResourceGroups --location global', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location global --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {scope} --name {event_subscription_name}') + +# TESTS FOR DEPRECATED ARGUMENTS +# --resource-id + self.cmd('az eventgrid event-subscription create --resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --subject-begins-with mysubject_prefix', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']), + ]) + + self.cmd('az eventgrid event-subscription show --resource-id {scope} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('filter.subjectBeginsWith', 'mysubject_prefix') + ]) + self.cmd('az eventgrid event-subscription show --resource-id {scope} --include-full-endpoint-url --name {event_subscription_name}', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + ]) + + self.cmd('az eventgrid event-subscription update --resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --subject-ends-with .jpg', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']), + self.check('filter.subjectEndsWith', '.jpg'), + ]) + + self.cmd('az eventgrid event-subscription list --resource-id {scope}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Resources.ResourceGroups --location global', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location global --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --resource-id {scope} --name {event_subscription_name}') +# end --resource-id +# --resource-group self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name} --endpoint {endpoint_url} --subject-begins-with mysubject_prefix', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('provisioningState', 'Succeeded'), @@ -173,19 +507,21 @@ def test_create_event_subscriptions_to_arm_resource_group(self, resource_group): self.check('filter.subjectEndsWith', '.jpg'), ]) - self.cmd('az eventgrid event-subscription list -g {rg}', checks=[ + self.cmd('az eventgrid event-subscription list --location global -g {rg}', checks=[ self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('[0].provisioningState', 'Succeeded'), ]) self.cmd('az eventgrid event-subscription delete --resource-group {rg} --name {event_subscription_name}') - @unittest.skip("Temporarily disabled as this is not yet enabled with the 2018-05-01-preview API version") - @ResourceGroupPreparer(name_prefix='clieventgridrg') - @StorageAccountPreparer(name_prefix='clieventgrid') +# end --resource-group +# END OF TESTS FOR DEPRECATED ARGUMENTS + + @ResourceGroupPreparer(name_prefix='clieventgridrg', location='westcentralus') + @StorageAccountPreparer(name_prefix='clieventgrid', location='westcentralus') def test_create_event_subscriptions_to_resource(self, resource_group, resource_group_location, storage_account): event_subscription_name = self.create_random_name(prefix='cli', length=40) - endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ==' + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' self.kwargs.update({ @@ -195,9 +531,63 @@ def test_create_event_subscriptions_to_resource(self, resource_group, resource_g 'endpoint_baseurl': endpoint_baseurl }) - self.kwargs['resource_id'] = self.cmd('storage account create -g {rg} -n {sa} --sku Standard_LRS -l {location}').get_output_in_json()['id'] + self.kwargs['source_resource_id'] = self.cmd('storage account create -g {rg} -n {sa} --sku Standard_LRS -l {location}').get_output_in_json()['id'] self.cmd('az storage account update -g {rg} -n {sa} --set kind=StorageV2') + self.cmd('az eventgrid event-subscription create --source-resource-id {source_resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + + self.cmd('az eventgrid event-subscription show --source-resource-id {source_resource_id} --name {event_subscription_name}', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + ]) + self.cmd('az eventgrid event-subscription show --include-full-endpoint-url --resource-id {source_resource_id} --name {event_subscription_name}', checks=[ + self.check('destination.endpointUrl', self.kwargs['endpoint_url']), + ]) + + self.cmd('az eventgrid event-subscription update --source-resource-id {source_resource_id} --name {event_subscription_name} --endpoint {endpoint_url} --subject-ends-with .jpg', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']), + self.check('filter.subjectEndsWith', '.jpg') + ]) + + self.cmd('az eventgrid event-subscription list --source-resource-id {source_resource_id}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location {location} --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location {location} --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {source_resource_id} --name {event_subscription_name}') + +# TESTS FOR DEPRECATED ARGUMENTS + + self.kwargs['resource_id'] = self.cmd('az storage account show -g {rg} -n {sa}').get_output_in_json()['id'] + self.cmd('az eventgrid event-subscription create --resource-id {resource_id} --name {event_subscription_name} --endpoint {endpoint_url}', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('provisioningState', 'Succeeded'), @@ -225,12 +615,35 @@ def test_create_event_subscriptions_to_resource(self, resource_group, resource_g self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('[0].provisioningState', 'Succeeded'), ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Storage.StorageAccounts --location {location} --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location {location} --resource-group {rg}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription list --location {location}', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + self.cmd('az eventgrid event-subscription delete --resource-id {resource_id} --name {event_subscription_name}') + self.cmd('az storage account delete -y -g {rg} -n {sa}') +# END OF TESTS FOR DEPRECATED ARGUMENTS @ResourceGroupPreparer() def test_create_event_subscriptions_with_filters(self, resource_group): event_subscription_name = 'eventsubscription2' - endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=D5/lX4xgFOvJrgvgZsjhMpg9h/eC3XVdQzGuDvwQuGmrDUfxFNeyiQ==' + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' subject_ends_with = 'mysubject_suffix' event_type_1 = 'blobCreated' @@ -238,6 +651,8 @@ def test_create_event_subscriptions_with_filters(self, resource_group): label_1 = 'Finance' label_2 = 'HR' + scope = self.cmd('az group show -n {} -ojson'.format(resource_group)).get_output_in_json()['id'] + self.kwargs.update({ 'event_subscription_name': event_subscription_name, 'endpoint_url': endpoint_url, @@ -246,13 +661,14 @@ def test_create_event_subscriptions_with_filters(self, resource_group): 'event_type_1': event_type_1, 'event_type_2': event_type_2, 'label_1': label_1, - 'label_2': label_2 + 'label_2': label_2, + 'scope': scope }) - self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name} --endpoint {endpoint_url} --subject-ends-with {subject_ends_with} --included-event-types {event_type_1} {event_type_2} --subject-case-sensitive --labels {label_1} {label_2}') + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --subject-ends-with {subject_ends_with} --included-event-types {event_type_1} {event_type_2} --subject-case-sensitive --labels {label_1} {label_2}') # TODO: Add a verification that filter.isSubjectCaseSensitive is true after resolving why it shows as null in the response - self.cmd('az eventgrid event-subscription show -g {rg} --name {event_subscription_name}', checks=[ + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name}', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('filter.subjectEndsWith', self.kwargs['subject_ends_with']), self.check('filter.includedEventTypes[0]', self.kwargs['event_type_1']), @@ -260,14 +676,20 @@ def test_create_event_subscriptions_with_filters(self, resource_group): self.check('labels[0]', self.kwargs['label_1']), self.check('labels[1]', self.kwargs['label_2']), ]) - self.cmd('az eventgrid event-subscription show --include-full-endpoint-url --resource-group {rg} --name {event_subscription_name}', checks=[ + self.cmd('az eventgrid event-subscription show --include-full-endpoint-url --source-resource-id {scope} --name {event_subscription_name}', checks=[ self.check('destination.endpointUrl', self.kwargs['endpoint_url']), ]) - self.cmd('az eventgrid event-subscription list -g {rg}', checks=[ + self.cmd('az eventgrid event-subscription list --source-resource-id {scope}', checks=[ self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('[0].provisioningState', 'Succeeded'), ]) - self.cmd('az eventgrid event-subscription delete --resource-group {rg} --name {event_subscription_name}') + + self.cmd('az eventgrid event-subscription list --location global', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {scope} --name {event_subscription_name}') @ResourceGroupPreparer() def test_create_event_subscriptions_with_20180501_features(self, resource_group): @@ -277,37 +699,109 @@ def test_create_event_subscriptions_with_20180501_features(self, resource_group) deadletter_endpoint_id = '/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourcegroups/kalstest/providers/Microsoft.Storage/storageAccounts/kalsdemo/blobServices/default/containers/dlq' hybridconnection_endpoint_id = '/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourcegroups/kalstest/providers/Microsoft.Relay/namespaces/kalsdemo/hybridConnections/kalstest' + scope = self.cmd('az group show -n {} -ojson'.format(resource_group)).get_output_in_json()['id'] + self.kwargs.update({ 'event_subscription_name1': event_subscription_name1, 'event_subscription_name2': event_subscription_name2, 'storagequeue_endpoint_id': storagequeue_endpoint_id, 'deadletter_endpoint_id': deadletter_endpoint_id, - 'hybridconnection_endpoint_id': hybridconnection_endpoint_id + 'hybridconnection_endpoint_id': hybridconnection_endpoint_id, + 'scope': scope }) # Failure cases # Invalid Event TTL value with self.assertRaises(CLIError): - self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name1} --endpoint-type storagequeue --endpoint {storagequeue_endpoint_id} --event-ttl 2000 --deadletter-endpoint {deadletter_endpoint_id}') + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name1} --endpoint-type storagequeue --endpoint {storagequeue_endpoint_id} --event-ttl 2000 --deadletter-endpoint {deadletter_endpoint_id}') # Invalid max delivery attempts value with self.assertRaises(CLIError): - self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name1} --endpoint-type storagequeue --endpoint {storagequeue_endpoint_id} --max-delivery-attempts 31 --deadletter-endpoint {deadletter_endpoint_id}') + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name1} --endpoint-type storagequeue --endpoint {storagequeue_endpoint_id} --max-delivery-attempts 31 --deadletter-endpoint {deadletter_endpoint_id}') # Create a storage queue destination based event subscription with cloud event schema as the delivery schema - self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name1} --endpoint-type stoRAgequeue --endpoint {storagequeue_endpoint_id} --event-delivery-schema cloudeventv01schema --deadletter-endpoint {deadletter_endpoint_id}') + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name1} --endpoint-type stoRAgequeue --endpoint {storagequeue_endpoint_id} --event-delivery-schema cloudeventv01schema --deadletter-endpoint {deadletter_endpoint_id}') - self.cmd('az eventgrid event-subscription show -g {rg} --name {event_subscription_name1}', checks=[ + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name1}', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('provisioningState', 'Succeeded'), ]) # Create a hybridconnection destination based event subscription with default eventgrid event schema as the delivery schema - self.cmd('az eventgrid event-subscription create -g {rg} --name {event_subscription_name2} --endpoint-type HybRidConnection --endpoint {hybridconnection_endpoint_id} --deadletter-endpoint {deadletter_endpoint_id} --max-delivery-attempts 20 --event-ttl 1000') + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name2} --endpoint-type HybRidConnection --endpoint {hybridconnection_endpoint_id} --deadletter-endpoint {deadletter_endpoint_id} --max-delivery-attempts 20 --event-ttl 1000') - self.cmd('az eventgrid event-subscription show -g {rg} --name {event_subscription_name2}', checks=[ + self.cmd('az eventgrid event-subscription show --source-resource-id {scope} --name {event_subscription_name2}', checks=[ self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), self.check('provisioningState', 'Succeeded'), ]) - self.cmd('az eventgrid event-subscription delete --resource-group {rg} --name {event_subscription_name1}') + self.cmd('az eventgrid event-subscription list --topic-type Microsoft.Resources.ResourceGroups --location global', checks=[ + self.check('[0].type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('[0].provisioningState', 'Succeeded'), + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {scope} --name {event_subscription_name1}') + + @ResourceGroupPreparer() + def test_advanced_filters(self, resource_group): + endpoint_url = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1?code=PLACEHOLDER' + endpoint_baseurl = 'https://kalsfunc1.azurewebsites.net/api/HttpTriggerCSharp1' + + topic_name = self.create_random_name(prefix='cli', length=40) + event_subscription_name = self.create_random_name(prefix='cli', length=40) + + self.kwargs.update({ + 'topic_name': topic_name, + 'location': 'westcentralus', + 'event_subscription_name': event_subscription_name, + 'endpoint_url': endpoint_url, + 'endpoint_baseurl': endpoint_baseurl + }) + + self.cmd('az eventgrid topic create --name {topic_name} --resource-group {rg} --location {location}', checks=[ + self.check('type', 'Microsoft.EventGrid/topics'), + self.check('name', self.kwargs['topic_name']), + self.check('provisioningState', 'Succeeded'), + ]) + + scope = self.cmd('az eventgrid topic show --name {topic_name} --resource-group {rg} -ojson').get_output_in_json()['id'] + + self.kwargs.update({ + 'scope': scope + }) + + # Error cases + with self.assertRaises(CLIError): + # No operator/values provided + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter eventType') + + with self.assertRaises(CLIError): + # No filter value provided + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter data.key2 NumberIn') + + with self.assertRaises(CLIError): + # Invalid operator type provided + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter data.key2 FooNumberLessThan 2 3') + + with self.assertRaises(CLIError): + # Multiple values provided for a single value filter + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter data.key2 NumberLessThan 2 3') + + # One advanced filter for NumberIn operator + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter data.key2 NumberIn 2 3 4 100 200', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + # Two advanced filters for NumberIn, StringIn operators + self.cmd('az eventgrid event-subscription create --source-resource-id {scope} --name {event_subscription_name} --endpoint {endpoint_url} --advanced-filter data.key1 NumberIn 2 3 4 100 200 --advanced-filter data.key2 StringIn 2 3 4 100 200', checks=[ + self.check('type', 'Microsoft.EventGrid/eventSubscriptions'), + self.check('provisioningState', 'Succeeded'), + self.check('name', self.kwargs['event_subscription_name']), + self.check('destination.endpointBaseUrl', self.kwargs['endpoint_baseurl']) + ]) + + self.cmd('az eventgrid event-subscription delete --source-resource-id {scope} --name {event_subscription_name}') + self.cmd('az eventgrid topic delete --name {topic_name} --resource-group {rg}') diff --git a/src/eventgrid/reinstall.cmd b/src/eventgrid/reinstall.cmd new file mode 100644 index 00000000000..48eb3425995 --- /dev/null +++ b/src/eventgrid/reinstall.cmd @@ -0,0 +1,3 @@ +cmd /c "az extension remove -n eventgrid" +cmd /c "python setup.py bdist_wheel" +cmd /c "az extension add --source dist\eventgrid-0.4.0-py2.py3-none-any.whl -y" \ No newline at end of file diff --git a/src/eventgrid/setup.py b/src/eventgrid/setup.py index a7fb4d75d0a..ca58914395e 100644 --- a/src/eventgrid/setup.py +++ b/src/eventgrid/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.2.1" +VERSION = "0.4.0" CLASSIFIERS = [ 'Development Status :: 4 - Beta', @@ -29,8 +29,8 @@ setup( name='eventgrid', version=VERSION, - description='Support for Azure EventGrid 2018-05-01-preview features', - long_description='Support for Azure EventGrid features in 2018-05-01-preview version.', + description='Support for Azure EventGrid 2018-09-15-preview features', + long_description='Support for Azure EventGrid features in 2018-09-15-preview version.', license='MIT', author='J. Kalyana Sundaram', author_email='kalyanaj@microsoft.com',