From e53318f907554117b79417689e210c622201b423 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Thu, 16 May 2019 17:21:04 -0700 Subject: [PATCH 1/7] Copy stable 2019-01-01 as baseline for stable 2019-06-01 --- .../stable/2019-06-01/EventGrid.json | 2209 +++++++++++++++++ ...ateForCustomTopic_EventHubDestination.json | 65 + ...stomTopic_HybridConnectionDestination.json | 65 + ...orCustomTopic_StorageQueueDestination.json | 66 + ...dateForCustomTopic_WebhookDestination.json | 66 + ...bscriptions_CreateOrUpdateForResource.json | 49 + ...ptions_CreateOrUpdateForResourceGroup.json | 49 + ...iptions_CreateOrUpdateForSubscription.json | 47 + ...entSubscriptions_DeleteForCustomTopic.json | 12 + .../EventSubscriptions_DeleteForResource.json | 12 + ...tSubscriptions_DeleteForResourceGroup.json | 12 + ...ntSubscriptions_DeleteForSubscription.json | 12 + .../EventSubscriptions_GetForCustomTopic.json | 38 + .../EventSubscriptions_GetForResource.json | 38 + ...ventSubscriptions_GetForResourceGroup.json | 38 + ...EventSubscriptions_GetForSubscription.json | 38 + ...ubscriptions_GetFullUrlForCustomTopic.json | 14 + ...ntSubscriptions_GetFullUrlForResource.json | 14 + ...scriptions_GetFullUrlForResourceGroup.json | 14 + ...bscriptions_GetFullUrlForSubscription.json | 14 + .../EventSubscriptions_ListByResource.json | 88 + ...bscriptions_ListGlobalByResourceGroup.json | 61 + ...ListGlobalByResourceGroupForTopicType.json | 43 + ...ubscriptions_ListGlobalBySubscription.json | 60 + ..._ListGlobalBySubscriptionForTopicType.json | 42 + ...criptions_ListRegionalByResourceGroup.json | 70 + ...stRegionalByResourceGroupForTopicType.json | 71 + ...scriptions_ListRegionalBySubscription.json | 69 + ...istRegionalBySubscriptionForTopicType.json | 70 + ...entSubscriptions_UpdateForCustomTopic.json | 55 + .../EventSubscriptions_UpdateForResource.json | 52 + ...tSubscriptions_UpdateForResourceGroup.json | 52 + ...ntSubscriptions_UpdateForSubscription.json | 52 + .../2019-06-01/examples/Operations_List.json | 83 + .../2019-06-01/examples/TopicTypes_Get.json | 22 + .../2019-06-01/examples/TopicTypes_List.json | 37 + .../examples/TopicTypes_ListEventTypes.json | 34 + .../examples/Topics_CreateOrUpdate.json | 33 + .../2019-06-01/examples/Topics_Delete.json | 12 + .../2019-06-01/examples/Topics_Get.json | 26 + .../examples/Topics_ListByResourceGroup.json | 43 + .../examples/Topics_ListBySubscription.json | 42 + .../examples/Topics_ListEventTypes.json | 38 + .../examples/Topics_ListSharedAccessKeys.json | 16 + .../examples/Topics_RegenerateKey.json | 19 + .../2019-06-01/examples/Topics_Update.json | 32 + 46 files changed, 4094 insertions(+) create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json new file mode 100644 index 000000000000..d780860e7242 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json @@ -0,0 +1,2209 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "EventGridManagementClient", + "description": "Azure EventGrid Management Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get an event subscription", + "description": "Get properties of an event subscription", + "operationId": "EventSubscriptions_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_GetForSubscription": { + "$ref": "./examples/EventSubscriptions_GetForSubscription.json" + }, + "EventSubscriptions_GetForResourceGroup": { + "$ref": "./examples/EventSubscriptions_GetForResourceGroup.json" + }, + "EventSubscriptions_GetForResource": { + "$ref": "./examples/EventSubscriptions_GetForResource.json" + }, + "EventSubscriptions_GetForCustomTopic": { + "$ref": "./examples/EventSubscriptions_GetForCustomTopic.json" + } + } + }, + "put": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Create or update an event subscription", + "description": "Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.", + "operationId": "EventSubscriptions_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.", + "required": true, + "type": "string" + }, + { + "name": "eventSubscriptionInfo", + "in": "body", + "description": "Event subscription properties containing the destination and filter information", + "required": true, + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "EventSubscription CreateOrUpdate request accepted.", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_CreateOrUpdateForSubscription": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForSubscription.json" + }, + "EventSubscriptions_CreateOrUpdateForResourceGroup": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json" + }, + "EventSubscriptions_CreateOrUpdateForResource": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResource.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Delete an event subscription", + "description": "Delete an existing event subscription", + "operationId": "EventSubscriptions_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_DeleteForSubscription": { + "$ref": "./examples/EventSubscriptions_DeleteForSubscription.json" + }, + "EventSubscriptions_DeleteForResourceGroup": { + "$ref": "./examples/EventSubscriptions_DeleteForResourceGroup.json" + }, + "EventSubscriptions_DeleteForResource": { + "$ref": "./examples/EventSubscriptions_DeleteForResource.json" + }, + "EventSubscriptions_DeleteForCustomTopic": { + "$ref": "./examples/EventSubscriptions_DeleteForCustomTopic.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Update an event subscription", + "description": "Asynchronously updates an existing event subscription.", + "operationId": "EventSubscriptions_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of existing event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription to be updated", + "required": true, + "type": "string" + }, + { + "name": "eventSubscriptionUpdateParameters", + "in": "body", + "description": "Updated event subscription information", + "required": true, + "schema": { + "$ref": "#/definitions/EventSubscriptionUpdateParameters" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "EventSubscription update request accepted.", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_UpdateForSubscription": { + "$ref": "./examples/EventSubscriptions_UpdateForSubscription.json" + }, + "EventSubscriptions_UpdateForResourceGroup": { + "$ref": "./examples/EventSubscriptions_UpdateForResourceGroup.json" + }, + "EventSubscriptions_UpdateForResource": { + "$ref": "./examples/EventSubscriptions_UpdateForResource.json" + }, + "EventSubscriptions_UpdateForCustomTopic": { + "$ref": "./examples/EventSubscriptions_UpdateForCustomTopic.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl": { + "post": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get full URL of an event subscription", + "description": "Get the full endpoint URL for an event subscription", + "operationId": "EventSubscriptions_GetFullUrl", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionFullUrl" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_GetFullUrlForSubscription": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForSubscription.json" + }, + "EventSubscriptions_GetFullUrlForResourceGroup": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForResourceGroup.json" + }, + "EventSubscriptions_GetFullUrlForResource": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForResource.json" + }, + "EventSubscriptions_GetFullUrlForCustomTopic": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForCustomTopic.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get an aggregated list of all global event subscriptions under an Azure subscription", + "description": "List all aggregated global event subscriptions under a specific Azure subscription", + "operationId": "EventSubscriptions_ListGlobalBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalBySubscription": { + "$ref": "./examples/EventSubscriptions_ListGlobalBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions for a topic type", + "description": "List all global event subscriptions under an Azure subscription for a topic type.", + "operationId": "EventSubscriptions_ListGlobalBySubscriptionForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalBySubscriptionForTopicType": { + "$ref": "./examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions under an Azure subscription and resource group", + "description": "List all global event subscriptions under a specific Azure subscription and resource group", + "operationId": "EventSubscriptions_ListGlobalByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalByResourceGroup": { + "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions under a resource group for a topic type", + "description": "List all global event subscriptions under a resource group for a specific topic type.", + "operationId": "EventSubscriptions_ListGlobalByResourceGroupForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalByResourceGroupForTopicType": { + "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription", + "description": "List all event subscriptions from the given location under a specific Azure subscription", + "operationId": "EventSubscriptions_ListRegionalBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalBySubscription": { + "$ref": "./examples/EventSubscriptions_ListRegionalBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription and resource group", + "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group", + "operationId": "EventSubscriptions_ListRegionalByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalByResourceGroup": { + "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription for a topic type", + "description": "List all event subscriptions from the given location under a specific Azure subscription and topic type.", + "operationId": "EventSubscriptions_ListRegionalBySubscriptionForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalBySubscriptionForTopicType": { + "$ref": "./examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription and resource group for a topic type", + "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group and topic type", + "operationId": "EventSubscriptions_ListRegionalByResourceGroupForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalByResourceGroupForTopicType": { + "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all event subscriptions for a specific topic", + "description": "List all event subscriptions that have been created for a specific topic", + "operationId": "EventSubscriptions_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "providerNamespace", + "in": "path", + "description": "Namespace of the provider of the topic", + "required": true, + "type": "string" + }, + { + "name": "resourceTypeName", + "in": "path", + "description": "Name of the resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "EventSubscriptions_ListByResource": { + "$ref": "./examples/EventSubscriptions_ListByResource.json" + } + } + } + }, + "/providers/Microsoft.EventGrid/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "List available operations", + "description": "List the available operations supported by the Microsoft.EventGrid resource provider", + "operationId": "Operations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}": { + "get": { + "tags": [ + "Topics" + ], + "summary": "Get a topic", + "description": "Get properties of a topic", + "operationId": "Topics_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Topic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Get": { + "$ref": "./examples/Topics_Get.json" + } + } + }, + "put": { + "tags": [ + "Topics" + ], + "summary": "Create a topic", + "description": "Asynchronously creates a new topic with the specified parameters.", + "operationId": "Topics_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "name": "topicInfo", + "in": "body", + "description": "Topic information", + "required": true, + "schema": { + "$ref": "#/definitions/Topic" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Topic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_CreateOrUpdate": { + "$ref": "./examples/Topics_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Topics" + ], + "summary": "Delete a topic", + "description": "Delete existing topic", + "operationId": "Topics_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Delete": { + "$ref": "./examples/Topics_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Topics" + ], + "summary": "Update a topic", + "description": "Asynchronously updates a topic with the specified parameters.", + "operationId": "Topics_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "name": "topicUpdateParameters", + "in": "body", + "description": "Topic update information", + "required": true, + "schema": { + "$ref": "#/definitions/TopicUpdateParameters" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Topic update request accepted.", + "schema": { + "$ref": "#/definitions/Topic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Update": { + "$ref": "./examples/Topics_Update.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topics under an Azure subscription", + "description": "List all the topics under an Azure subscription", + "operationId": "Topics_ListBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Topics_ListBySubscription": { + "$ref": "./examples/Topics_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topics under a resource group", + "description": "List all the topics under a resource group", + "operationId": "Topics_ListByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Topics_ListByResourceGroup": { + "$ref": "./examples/Topics_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys": { + "post": { + "tags": [ + "Topics" + ], + "summary": "List keys for a topic", + "description": "List the two keys used to publish to a topic", + "operationId": "Topics_ListSharedAccessKeys", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicSharedAccessKeys" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_ListSharedAccessKeys": { + "$ref": "./examples/Topics_ListSharedAccessKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey": { + "post": { + "tags": [ + "Topics" + ], + "summary": "Regenerate key for a topic", + "description": "Regenerate a shared access key for a topic", + "operationId": "Topics_RegenerateKey", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "name": "regenerateKeyRequest", + "in": "body", + "description": "Request body to regenerate key", + "required": true, + "schema": { + "$ref": "#/definitions/TopicRegenerateKeyRequest" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicSharedAccessKeys" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_RegenerateKey": { + "$ref": "./examples/Topics_RegenerateKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topic event types", + "description": "List event types for a topic", + "operationId": "Topics_ListEventTypes", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "providerNamespace", + "in": "path", + "description": "Namespace of the provider of the topic", + "required": true, + "type": "string" + }, + { + "name": "resourceTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the topic", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventTypesListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Topics_ListEventTypes": { + "$ref": "./examples/Topics_ListEventTypes.json" + } + } + } + }, + "/providers/Microsoft.EventGrid/topicTypes": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "List topic types", + "description": "List all registered topic types", + "operationId": "TopicTypes_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicTypesListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "TopicTypes_List": { + "$ref": "./examples/TopicTypes_List.json" + } + } + } + }, + "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "Get a topic type", + "description": "Get information about a topic type", + "operationId": "TopicTypes_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicTypeInfo" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "TopicTypes_Get": { + "$ref": "./examples/TopicTypes_Get.json" + } + } + } + }, + "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventTypes": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "List event types", + "description": "List event types for a topic type", + "operationId": "TopicTypes_ListEventTypes", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventTypesListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "TopicTypes_ListEventTypes": { + "$ref": "./examples/TopicTypes_ListEventTypes.json" + } + } + } + } + }, + "definitions": { + "EventSubscriptionProperties": { + "description": "Properties of the Event Subscription", + "type": "object", + "properties": { + "topic": { + "description": "Name of the topic of the event subscription.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "Provisioning state of the event subscription.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed", + "AwaitingManualAction" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "EventSubscriptionProvisioningState", + "modelAsString": true + } + }, + "destination": { + "$ref": "#/definitions/EventSubscriptionDestination", + "description": "Information about the destination where events have to be delivered for the event subscription." + }, + "filter": { + "$ref": "#/definitions/EventSubscriptionFilter", + "description": "Information about the filter for the event subscription." + }, + "labels": { + "description": "List of user defined labels.", + "type": "array", + "items": { + "type": "string" + } + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." + }, + "deadLetterDestination": { + "$ref": "#/definitions/DeadLetterDestination", + "description": "The DeadLetter destination of the event subscription." + } + } + }, + "Resource": { + "description": "Definition of a Resource", + "type": "object", + "properties": { + "id": { + "description": "Fully qualified identifier of the resource", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the resource", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Type of the resource", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true + }, + "EventSubscriptionFilter": { + "description": "Filter for the Event Subscription", + "type": "object", + "properties": { + "subjectBeginsWith": { + "description": "An optional string to filter events for an event subscription based on a resource path prefix.\r\nThe format of this depends on the publisher of the events. \r\nWildcard characters are not supported in this path.", + "type": "string" + }, + "subjectEndsWith": { + "description": "An optional string to filter events for an event subscription based on a resource path suffix.\r\nWildcard characters are not supported in this path.", + "type": "string" + }, + "includedEventTypes": { + "description": "A list of applicable event types that need to be part of the event subscription. \r\nIf it is desired to subscribe to all event types, the string \"all\" needs to be specified as an element in this list.", + "type": "array", + "items": { + "type": "string" + } + }, + "isSubjectCaseSensitive": { + "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter \r\nshould be compared in a case sensitive manner.", + "default": false, + "type": "boolean" + } + } + }, + "RetryPolicy": { + "description": "Information about the retry policy for an event subscription", + "type": "object", + "properties": { + "maxDeliveryAttempts": { + "format": "int32", + "description": "Maximum number of delivery retry attempts for events.", + "type": "integer" + }, + "eventTimeToLiveInMinutes": { + "format": "int32", + "description": "Time To Live (in minutes) for events.", + "type": "integer" + } + } + }, + "WebHookEventSubscriptionDestinationProperties": { + "description": "Information about the webhook destination properties for an event subscription.", + "type": "object", + "properties": { + "endpointUrl": { + "description": "The URL that represents the endpoint of the destination of an event subscription.", + "type": "string" + }, + "endpointBaseUrl": { + "description": "The base URL that represents the endpoint of the destination of an event subscription.", + "type": "string", + "readOnly": true + } + } + }, + "StorageBlobDeadLetterDestinationProperties": { + "description": "Properties of the storage blob based dead letter destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events. For example: /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName}", + "type": "string" + }, + "blobContainerName": { + "description": "The name of the Storage blob container that is the destination of the deadletter events", + "type": "string" + } + } + }, + "StorageBlobDeadLetterDestination": { + "description": "Information about the storage blob based dead letter destination.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DeadLetterDestination" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StorageBlobDeadLetterDestinationProperties", + "description": "The properties of the Storage Blob based deadletter destination", + "x-ms-client-flatten": true + } + }, + "x-ms-discriminator-value": "StorageBlob" + }, + "WebHookEventSubscriptionDestination": { + "description": "Information about the webhook destination for an event subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/WebHookEventSubscriptionDestinationProperties", + "description": "WebHook Properties of the event subscription destination", + "x-ms-client-flatten": true + } + }, + "x-ms-discriminator-value": "WebHook" + }, + "DeadLetterDestination": { + "description": "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.", + "type": "object", + "required": [ + "endpointType" + ], + "properties": { + "endpointType": { + "description": "Type of the endpoint for the dead letter destination", + "enum": [ + "StorageBlob" + ], + "type": "string", + "x-ms-enum": { + "name": "DeadLetterEndPointType", + "modelAsString": true + } + } + }, + "discriminator": "endpointType" + }, + "EventHubEventSubscriptionDestinationProperties": { + "description": "The properties for a event hub destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", + "type": "string" + } + } + }, + "EventHubEventSubscriptionDestination": { + "description": "Information about the event hub destination for an event subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/EventHubEventSubscriptionDestinationProperties", + "description": "Event Hub Properties of the event subscription destination", + "x-ms-client-flatten": true + } + }, + "x-ms-discriminator-value": "EventHub" + }, + "StorageQueueEventSubscriptionDestinationProperties": { + "description": "The properties for a storage queue destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", + "type": "string" + }, + "queueName": { + "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", + "type": "string" + } + } + }, + "StorageQueueEventSubscriptionDestination": { + "description": "Information about the storage queue destination for an event subscription.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StorageQueueEventSubscriptionDestinationProperties", + "description": "Storage Queue Properties of the event subscription destination", + "x-ms-client-flatten": true + } + }, + "x-ms-discriminator-value": "StorageQueue" + }, + "HybridConnectionEventSubscriptionDestinationProperties": { + "description": "The properties for a hybrid connection destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", + "type": "string" + } + } + }, + "HybridConnectionEventSubscriptionDestination": { + "description": "Information about the HybridConnection destination for an event subscription.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/HybridConnectionEventSubscriptionDestinationProperties", + "description": "Hybrid connection Properties of the event subscription destination", + "x-ms-client-flatten": true + } + }, + "x-ms-discriminator-value": "HybridConnection" + }, + "EventSubscriptionDestination": { + "description": "Information about the destination for an event subscription", + "type": "object", + "required": [ + "endpointType" + ], + "properties": { + "endpointType": { + "description": "Type of the endpoint for the event subscription destination", + "enum": [ + "WebHook", + "EventHub", + "StorageQueue", + "HybridConnection" + ], + "type": "string", + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": true + } + } + }, + "discriminator": "endpointType" + }, + "EventSubscription": { + "description": "Event Subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/EventSubscriptionProperties", + "description": "Properties of the event subscription", + "x-ms-client-flatten": true + } + } + }, + "EventSubscriptionUpdateParameters": { + "description": "Properties of the Event Subscription update", + "type": "object", + "properties": { + "destination": { + "$ref": "#/definitions/EventSubscriptionDestination", + "description": "Information about the destination where events have to be delivered for the event subscription." + }, + "filter": { + "$ref": "#/definitions/EventSubscriptionFilter", + "description": "Information about the filter for the event subscription." + }, + "labels": { + "description": "List of user defined labels.", + "type": "array", + "items": { + "type": "string" + } + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." + }, + "deadLetterDestination": { + "$ref": "#/definitions/DeadLetterDestination", + "description": "The DeadLetter destination of the event subscription." + } + } + }, + "EventSubscriptionFullUrl": { + "description": "Full endpoint url of an event subscription", + "type": "object", + "properties": { + "endpointUrl": { + "description": "The URL that represents the endpoint of the destination of an event subscription.", + "type": "string" + } + } + }, + "EventSubscriptionsListResult": { + "description": "Result of the List EventSubscriptions operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of EventSubscriptions", + "type": "array", + "items": { + "$ref": "#/definitions/EventSubscription" + } + } + } + }, + "OperationsListResult": { + "description": "Result of the List Operations operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + } + } + }, + "Operation": { + "description": "Represents an operation returned by the GetOperations request", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationInfo", + "description": "Display name of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "description": "Properties of the operation", + "type": "object", + "x-ms-client-flatten": true + } + } + }, + "OperationInfo": { + "description": "Information about an operation", + "type": "object", + "properties": { + "provider": { + "description": "Name of the provider", + "type": "string" + }, + "resource": { + "description": "Name of the resource type", + "type": "string" + }, + "operation": { + "description": "Name of the operation", + "type": "string" + }, + "description": { + "description": "Description of the operation", + "type": "string" + } + } + }, + "TopicProperties": { + "description": "Properties of the Topic", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the topic.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "TopicProvisioningState", + "modelAsString": true + } + }, + "endpoint": { + "description": "Endpoint for the topic.", + "type": "string", + "readOnly": true + } + } + }, + "TrackedResource": { + "description": "Definition of a Tracked Resource", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Location of the resource", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "Tags of the resource", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "Topic": { + "description": "EventGrid Topic", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TopicProperties", + "description": "Properties of the topic", + "x-ms-client-flatten": true + } + } + }, + "TopicUpdateParameters": { + "description": "Properties of the Topic update", + "type": "object", + "properties": { + "tags": { + "description": "Tags of the resource", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TopicsListResult": { + "description": "Result of the List Topics operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of Topics", + "type": "array", + "items": { + "$ref": "#/definitions/Topic" + } + } + } + }, + "TopicSharedAccessKeys": { + "description": "Shared access keys of the Topic", + "type": "object", + "properties": { + "key1": { + "description": "Shared access key1 for the topic.", + "type": "string" + }, + "key2": { + "description": "Shared access key2 for the topic.", + "type": "string" + } + } + }, + "TopicRegenerateKeyRequest": { + "description": "Topic regenerate share access key request", + "required": [ + "keyName" + ], + "type": "object", + "properties": { + "keyName": { + "description": "Key name to regenerate key1 or key2", + "type": "string" + } + } + }, + "EventTypesListResult": { + "description": "Result of the List Event Types operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of event types", + "type": "array", + "items": { + "$ref": "#/definitions/EventType" + } + } + } + }, + "EventTypeProperties": { + "description": "Properties of the event type", + "type": "object", + "properties": { + "displayName": { + "description": "Display name of the event type.", + "type": "string" + }, + "description": { + "description": "Description of the event type.", + "type": "string" + }, + "schemaUrl": { + "description": "Url of the schema for this event type.", + "type": "string" + } + } + }, + "EventType": { + "description": "Event Type for a subject under a topic", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/EventTypeProperties", + "description": "Properties of the event type.", + "x-ms-client-flatten": true + } + } + }, + "TopicTypesListResult": { + "description": "Result of the List Topic Types operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of topic types", + "type": "array", + "items": { + "$ref": "#/definitions/TopicTypeInfo" + } + } + } + }, + "TopicTypeProperties": { + "description": "Properties of a topic type.", + "type": "object", + "properties": { + "provider": { + "description": "Namespace of the provider of the topic type.", + "type": "string" + }, + "displayName": { + "description": "Display Name for the topic type.", + "type": "string" + }, + "description": { + "description": "Description of the topic type.", + "type": "string" + }, + "resourceRegionType": { + "description": "Region type of the resource.", + "enum": [ + "RegionalResource", + "GlobalResource" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceRegionType", + "modelAsString": true + } + }, + "provisioningState": { + "description": "Provisioning state of the topic type", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "TopicTypeProvisioningState", + "modelAsString": true + } + }, + "supportedLocations": { + "description": "List of locations supported by this topic type.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TopicTypeInfo": { + "description": "Properties of a topic type info.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TopicTypeProperties", + "description": "Properties of the topic type info", + "x-ms-client-flatten": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Version of the API to be used with the client request.", + "required": true, + "type": "string" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } + } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json new file mode 100644 index 000000000000..a9d6c337dec6 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2019-01-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "EventHub", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json new file mode 100644 index 000000000000..d254f31f7cc9 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2019-01-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "HybridConnection", + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" + }, + "endpointType": "HybridConnection" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json new file mode 100644 index 000000000000..063a0106c541 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2019-01-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "StorageQueue", + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "queueName": "queue1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "queueName": "queue1" + }, + "endpointType": "StorageQueue" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json new file mode 100644 index 000000000000..83a6186d91b1 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2019-01-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1?code=" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointUrl": null, + "endpointBaseUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json new file mode 100644 index 000000000000..130af51f5df2 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription10", + "api-version": "2019-01-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json new file mode 100644 index 000000000000..0375149313cc --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-01-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json new file mode 100644 index 000000000000..4204f27d842a --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-01-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json new file mode 100644 index 000000000000..cce3201d3077 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json new file mode 100644 index 000000000000..bdf161d7204f --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription10", + "api-version": "2019-01-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json new file mode 100644 index 000000000000..b238cbdf7f41 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-01-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json new file mode 100644 index 000000000000..24bf6cc42f23 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-01-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json new file mode 100644 index 000000000000..d67677160928 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json new file mode 100644 index 000000000000..816df3aac984 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json new file mode 100644 index 000000000000..6ab3f9741272 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json new file mode 100644 index 000000000000..556becd0fc68 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json new file mode 100644 index 000000000000..bc58d3771743 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json new file mode 100644 index 000000000000..26aba43cf31f --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json new file mode 100644 index 000000000000..f00c6204bb9d --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json new file mode 100644 index 000000000000..573f5efd5ae6 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json new file mode 100644 index 000000000000..023af1f7432a --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerNamespace": "Microsoft.EventGrid", + "resourceTypeName": "topics", + "resourceName": "exampletopic2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json new file mode 100644 index 000000000000..4cc3676ac68b --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", + "name": "examplesubscription4", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json new file mode 100644 index 000000000000..b991ff4d69b7 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicTypeName": "Microsoft.Resources.ResourceGroups", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json new file mode 100644 index 000000000000..faf78facf10c --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", + "name": "examplesubscription4", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json new file mode 100644 index 000000000000..5a19d61f3d6e --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "topicTypeName": "Microsoft.Resources.Subscriptions", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json new file mode 100644 index 000000000000..2b9f85f8403c --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "location": "westus2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json new file mode 100644 index 000000000000..ad243388fa96 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "location": "westus2", + "topicTypeName": "Microsoft.EventHub.namespaces", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json new file mode 100644 index 000000000000..4bfc6e86dcb0 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "location": "westus2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json new file mode 100644 index 000000000000..286d231dfe5b --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "location": "westus2", + "topicTypeName": "Microsoft.EventHub.namespaces", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json new file mode 100644 index 000000000000..bd15eb6234fc --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json new file mode 100644 index 000000000000..c2215e558f27 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-01-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json new file mode 100644 index 000000000000..9d34348e61d2 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-01-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "EventHub", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json new file mode 100644 index 000000000000..1aba0269b691 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-01-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json new file mode 100644 index 000000000000..cb18d775e61b --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.EventGrid/register/action", + "display": { + "provider": "Microsoft Event Grid", + "resource": "EventGrid Resource Provider", + "operation": "Registers the EventGrid Resource Provider", + "description": "Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions." + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/write", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Write EventSubscription", + "description": "Create or update a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/read", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Read EventSubscription", + "description": "Read a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/delete", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Delete EventSubscription", + "description": "Delete a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/write", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Write Topic", + "description": "Create or update a topic" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/read", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Read Topic", + "description": "Read a topic" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/delete", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Delete Topic", + "description": "Delete a topic" + }, + "origin": "UserAndSystem" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json new file mode 100644 index 000000000000..d86fe416ddb4 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "topicTypeName": "Microsoft.Storage.StorageAccounts", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "Microsoft Storage service events.", + "displayName": "Storage Accounts", + "provider": "Microsoft.Storage", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", + "name": "Microsoft.Storage.StorageAccounts", + "type": "Microsoft.EventGrid/topicTypes" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json new file mode 100644 index 000000000000..0b050fe55aef --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Microsoft EventHubs service events.", + "displayName": "EventHubs Namespace", + "provider": "Microsoft.Eventhub", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces", + "name": "Microsoft.Eventhub.Namespaces", + "type": "Microsoft.EventGrid/topicTypes" + }, + { + "properties": { + "description": "Microsoft Storage service events.", + "displayName": "Storage Accounts", + "provider": "Microsoft.Storage", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", + "name": "Microsoft.Storage.StorageAccounts", + "type": "Microsoft.EventGrid/topicTypes" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json new file mode 100644 index 000000000000..79370c691453 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "topicTypeName": "Microsoft.Storage.StorageAccounts", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "Blob Created", + "description": "Raised when a blob is created.", + "schemaUrl": "tbd" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", + "name": "Microsoft.Storage.BlobCreated", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + }, + { + "properties": { + "description": "Raised when a blob is deleted.", + "schemaUrl": "tbd", + "displayName": "Blob Deleted" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", + "name": "Microsoft.Storage.BlobDeleted", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json new file mode 100644 index 000000000000..2d7b702aeaca --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic1", + "api-version": "2019-01-01", + "topicInfo": { + "location": "westus2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json new file mode 100644 index 000000000000..7db78a66b0a8 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName" : "exampletopic1", + "api-version": "2019-01-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json new file mode 100644 index 000000000000..35ff2e4fa0b3 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json new file mode 100644 index 000000000000..a5c32d869feb --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + }, + { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json new file mode 100644 index 000000000000..f572f1329bdd --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + }, + { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json new file mode 100644 index 000000000000..2e90a053001e --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerNamespace": "Microsoft.Storage", + "resourceTypeName": "storageAccounts", + "resourceName": "ExampleStorageAccount", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Raised when a blob is created.", + "schemaUrl": "tbd", + "displayName": "Blob Created" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", + "name": "Microsoft.Storage.BlobCreated", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + }, + { + "properties": { + "description": "Raised when a blob is deleted.", + "schemaUrl": "tbd", + "displayName": "Blob Deleted" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", + "name": "Microsoft.Storage.BlobDeleted", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json new file mode 100644 index 000000000000..4721e171a150 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName" : "exampletopic2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json new file mode 100644 index 000000000000..8d6c31538807 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName" : "exampletopic2", + "api-version": "2019-01-01", + "regenerateKeyRequest": { + "keyName": "key1" + } + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json new file mode 100644 index 000000000000..201db2cf43a5 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic1", + "api-version": "2019-01-01", + "topicUpdateParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + } + } +} \ No newline at end of file From c6e4afda25e5e2474198f5e668afc8e3383e3b31 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Thu, 16 May 2019 22:22:39 -0700 Subject: [PATCH 2/7] EventGrid: Swagger work for 2019-06-01 Api Version --- .../stable/2019-06-01/EventGrid.json | 5256 ++++++++++------- .../examples/DomainTopics_CreateOrUpdate.json | 21 + .../examples/DomainTopics_Delete.json | 13 + .../2019-06-01/examples/DomainTopics_Get.json | 21 + .../examples/DomainTopics_ListByDomain.json | 43 + .../examples/Domains_CreateOrUpdate.json | 33 + .../2019-06-01/examples/Domains_Delete.json | 12 + .../2019-06-01/examples/Domains_Get.json | 26 + .../examples/Domains_ListByResourceGroup.json | 43 + .../examples/Domains_ListBySubscription.json | 42 + .../Domains_ListSharedAccessKeys.json | 16 + .../examples/Domains_RegenerateKey.json | 19 + .../2019-06-01/examples/Domains_Update.json | 32 + ...riptions_CreateOrUpdateForCustomTopic.json | 49 + ...ateForCustomTopic_EventHubDestination.json | 65 - ...stomTopic_HybridConnectionDestination.json | 65 - ...orCustomTopic_StorageQueueDestination.json | 66 - ...dateForCustomTopic_WebhookDestination.json | 66 - ...bscriptions_CreateOrUpdateForResource.json | 2 +- ...ptions_CreateOrUpdateForResourceGroup.json | 2 +- ...iptions_CreateOrUpdateForSubscription.json | 2 +- ...entSubscriptions_DeleteForCustomTopic.json | 2 +- .../EventSubscriptions_DeleteForResource.json | 2 +- ...tSubscriptions_DeleteForResourceGroup.json | 2 +- ...ntSubscriptions_DeleteForSubscription.json | 2 +- .../EventSubscriptions_GetForCustomTopic.json | 2 +- .../EventSubscriptions_GetForResource.json | 2 +- ...ventSubscriptions_GetForResourceGroup.json | 2 +- ...EventSubscriptions_GetForSubscription.json | 2 +- ...ubscriptions_GetFullUrlForCustomTopic.json | 2 +- ...ntSubscriptions_GetFullUrlForResource.json | 2 +- ...scriptions_GetFullUrlForResourceGroup.json | 2 +- ...bscriptions_GetFullUrlForSubscription.json | 2 +- .../EventSubscriptions_ListByDomainTopic.json | 87 + .../EventSubscriptions_ListByResource.json | 2 +- ...bscriptions_ListGlobalByResourceGroup.json | 2 +- ...ListGlobalByResourceGroupForTopicType.json | 2 +- ...ubscriptions_ListGlobalBySubscription.json | 2 +- ..._ListGlobalBySubscriptionForTopicType.json | 2 +- ...criptions_ListRegionalByResourceGroup.json | 2 +- ...stRegionalByResourceGroupForTopicType.json | 2 +- ...scriptions_ListRegionalBySubscription.json | 2 +- ...istRegionalBySubscriptionForTopicType.json | 2 +- ...entSubscriptions_UpdateForCustomTopic.json | 2 +- .../EventSubscriptions_UpdateForResource.json | 2 +- ...tSubscriptions_UpdateForResourceGroup.json | 2 +- ...ntSubscriptions_UpdateForSubscription.json | 2 +- .../2019-06-01/examples/Operations_List.json | 2 +- .../2019-06-01/examples/TopicTypes_Get.json | 2 +- .../2019-06-01/examples/TopicTypes_List.json | 2 +- .../examples/TopicTypes_ListEventTypes.json | 2 +- .../examples/Topics_CreateOrUpdate.json | 2 +- .../2019-06-01/examples/Topics_Delete.json | 2 +- .../2019-06-01/examples/Topics_Get.json | 2 +- .../examples/Topics_ListByResourceGroup.json | 2 +- .../examples/Topics_ListBySubscription.json | 2 +- .../examples/Topics_ListEventTypes.json | 2 +- .../examples/Topics_ListSharedAccessKeys.json | 2 +- .../examples/Topics_RegenerateKey.json | 2 +- .../2019-06-01/examples/Topics_Update.json | 2 +- .../eventgrid/resource-manager/readme.go.md | 10 + .../eventgrid/resource-manager/readme.md | 26 +- .../eventgrid/resource-manager/readme.ruby.md | 11 + 63 files changed, 3816 insertions(+), 2288 deletions(-) create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json delete mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json delete mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json delete mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json delete mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json index d780860e7242..316e643dc703 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json @@ -1,2209 +1,3497 @@ { - "swagger": "2.0", - "info": { - "version": "2019-01-01", - "title": "EventGridManagementClient", - "description": "Azure EventGrid Management Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Get an event subscription", - "description": "Get properties of an event subscription", - "operationId": "EventSubscriptions_Get", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "scope", - "in": "path", - "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Name of the event subscription", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscription" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + "swagger": "2.0", + "info": { + "version": "2019-06-01", + "title": "EventGridManagementClient", + "description": "Azure EventGrid Management Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}": { + "get": { + "tags": [ + "Domains" + ], + "summary": "Get a domain.", + "description": "Get properties of a domain.", + "operationId": "Domains_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-examples": { - "EventSubscriptions_GetForSubscription": { - "$ref": "./examples/EventSubscriptions_GetForSubscription.json" - }, - "EventSubscriptions_GetForResourceGroup": { - "$ref": "./examples/EventSubscriptions_GetForResourceGroup.json" - }, - "EventSubscriptions_GetForResource": { - "$ref": "./examples/EventSubscriptions_GetForResource.json" - }, - "EventSubscriptions_GetForCustomTopic": { - "$ref": "./examples/EventSubscriptions_GetForCustomTopic.json" - } - } - }, - "put": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Create or update an event subscription", - "description": "Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.", - "operationId": "EventSubscriptions_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "scope", - "in": "path", - "description": "The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionInfo", - "in": "body", - "description": "Event subscription properties containing the destination and filter information", - "required": true, - "schema": { - "$ref": "#/definitions/EventSubscription" - } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "EventSubscription CreateOrUpdate request accepted.", - "schema": { - "$ref": "#/definitions/EventSubscription" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "EventSubscriptions_CreateOrUpdateForSubscription": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForSubscription.json" - }, - "EventSubscriptions_CreateOrUpdateForResourceGroup": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json" - }, - "EventSubscriptions_CreateOrUpdateForResource": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResource.json" - }, - "EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json" - }, - "EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json" - }, - "EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json" - }, - "EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json" + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Domain" } }, - "x-ms-long-running-operation": true + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } }, - "delete": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Delete an event subscription", - "description": "Delete an existing event subscription", - "operationId": "EventSubscriptions_Delete", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "scope", - "in": "path", - "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Name of the event subscription", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." - } + "x-ms-examples": { + "Domains_Get": { + "$ref": "./examples/Domains_Get.json" + } + } + }, + "put": { + "tags": [ + "Domains" + ], + "summary": "Create or update a domain.", + "description": "Asynchronously creates or updates a new domain with the specified parameters.", + "operationId": "Domains_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-examples": { - "EventSubscriptions_DeleteForSubscription": { - "$ref": "./examples/EventSubscriptions_DeleteForSubscription.json" - }, - "EventSubscriptions_DeleteForResourceGroup": { - "$ref": "./examples/EventSubscriptions_DeleteForResourceGroup.json" - }, - "EventSubscriptions_DeleteForResource": { - "$ref": "./examples/EventSubscriptions_DeleteForResource.json" - }, - "EventSubscriptions_DeleteForCustomTopic": { - "$ref": "./examples/EventSubscriptions_DeleteForCustomTopic.json" - } + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Update an event subscription", - "description": "Asynchronously updates an existing event subscription.", - "operationId": "EventSubscriptions_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "scope", - "in": "path", - "description": "The scope of existing event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Name of the event subscription to be updated", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionUpdateParameters", - "in": "body", - "description": "Updated event subscription information", - "required": true, - "schema": { - "$ref": "#/definitions/EventSubscriptionUpdateParameters" - } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "EventSubscription update request accepted.", - "schema": { - "$ref": "#/definitions/EventSubscription" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "EventSubscriptions_UpdateForSubscription": { - "$ref": "./examples/EventSubscriptions_UpdateForSubscription.json" - }, - "EventSubscriptions_UpdateForResourceGroup": { - "$ref": "./examples/EventSubscriptions_UpdateForResourceGroup.json" - }, - "EventSubscriptions_UpdateForResource": { - "$ref": "./examples/EventSubscriptions_UpdateForResource.json" - }, - "EventSubscriptions_UpdateForCustomTopic": { - "$ref": "./examples/EventSubscriptions_UpdateForCustomTopic.json" + { + "name": "domainInfo", + "in": "body", + "description": "Domain information.", + "required": true, + "schema": { + "$ref": "#/definitions/Domain" } }, - "x-ms-long-running-operation": true - } - }, - "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl": { - "post": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Get full URL of an event subscription", - "description": "Get the full endpoint URL for an event subscription", - "operationId": "EventSubscriptions_GetFullUrl", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "scope", - "in": "path", - "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Name of the event subscription", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionFullUrl" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Domain" } }, - "x-ms-examples": { - "EventSubscriptions_GetFullUrlForSubscription": { - "$ref": "./examples/EventSubscriptions_GetFullUrlForSubscription.json" - }, - "EventSubscriptions_GetFullUrlForResourceGroup": { - "$ref": "./examples/EventSubscriptions_GetFullUrlForResourceGroup.json" - }, - "EventSubscriptions_GetFullUrlForResource": { - "$ref": "./examples/EventSubscriptions_GetFullUrlForResource.json" - }, - "EventSubscriptions_GetFullUrlForCustomTopic": { - "$ref": "./examples/EventSubscriptions_GetFullUrlForCustomTopic.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." } - } + }, + "x-ms-examples": { + "Domains_CreateOrUpdate": { + "$ref": "./examples/Domains_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true }, - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "Get an aggregated list of all global event subscriptions under an Azure subscription", - "description": "List all aggregated global event subscriptions under a specific Azure subscription", - "operationId": "EventSubscriptions_ListGlobalBySubscription", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + "delete": { + "tags": [ + "Domains" + ], + "summary": "Delete a domain.", + "description": "Delete existing domain.", + "operationId": "Domains_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "EventSubscriptions_ListGlobalBySubscription": { - "$ref": "./examples/EventSubscriptions_ListGlobalBySubscription.json" - } + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all global event subscriptions for a topic type", - "description": "List all global event subscriptions under an Azure subscription for a topic type.", - "operationId": "EventSubscriptions_ListGlobalBySubscriptionForTopicType", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + ], + "responses": { + "202": { + "description": "Accepted" }, - "x-ms-pageable": { - "nextLinkName": null + "204": { + "description": "NoContent" }, - "x-ms-examples": { - "EventSubscriptions_ListGlobalBySubscriptionForTopicType": { - "$ref": "./examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." } - } + }, + "x-ms-examples": { + "Domains_Delete": { + "$ref": "./examples/Domains_Delete.json" + } + }, + "x-ms-long-running-operation": true }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all global event subscriptions under an Azure subscription and resource group", - "description": "List all global event subscriptions under a specific Azure subscription and resource group", - "operationId": "EventSubscriptions_ListGlobalByResourceGroup", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + "patch": { + "tags": [ + "Domains" + ], + "summary": "Update a domain.", + "description": "Asynchronously updates a domain with the specified parameters.", + "operationId": "Domains_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "EventSubscriptions_ListGlobalByResourceGroup": { - "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroup.json" + { + "name": "domainUpdateParameters", + "in": "body", + "description": "Domain update information.", + "required": true, + "schema": { + "$ref": "#/definitions/DomainUpdateParameters" } + }, + { + "$ref": "#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all global event subscriptions under a resource group for a topic type", - "description": "List all global event subscriptions under a resource group for a specific topic type.", - "operationId": "EventSubscriptions_ListGlobalByResourceGroupForTopicType", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + ], + "responses": { + "201": { + "description": "Domain update request accepted.", + "schema": { + "$ref": "#/definitions/Domain" } }, - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "EventSubscriptions_ListGlobalByResourceGroupForTopicType": { - "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all regional event subscriptions under an Azure subscription", - "description": "List all event subscriptions from the given location under a specific Azure subscription", - "operationId": "EventSubscriptions_ListRegionalBySubscription", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "location", - "in": "path", - "description": "Name of the location", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + }, + "x-ms-examples": { + "Domains_Update": { + "$ref": "./examples/Domains_Update.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/domains": { + "get": { + "tags": [ + "Domains" + ], + "summary": "List domains under an Azure subscription.", + "description": "List all the domains under an Azure subscription.", + "operationId": "Domains_ListBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "$ref": "#/parameters/ApiVersionParameter" }, - "x-ms-examples": { - "EventSubscriptions_ListRegionalBySubscription": { - "$ref": "./examples/EventSubscriptions_ListRegionalBySubscription.json" - } + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all regional event subscriptions under an Azure subscription and resource group", - "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group", - "operationId": "EventSubscriptions_ListRegionalByResourceGroup", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "location", - "in": "path", - "description": "Name of the location", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainsListResult" } }, - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "EventSubscriptions_ListRegionalByResourceGroup": { - "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroup.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." } + }, + "x-ms-examples": { + "Domains_ListBySubscription": { + "$ref": "./examples/Domains_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all regional event subscriptions under an Azure subscription for a topic type", - "description": "List all event subscriptions from the given location under a specific Azure subscription and topic type.", - "operationId": "EventSubscriptions_ListRegionalBySubscriptionForTopicType", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "location", - "in": "path", - "description": "Name of the location", - "required": true, - "type": "string" - }, - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains": { + "get": { + "tags": [ + "Domains" + ], + "summary": "List domains under a resource group.", + "description": "List all the domains under a resource group.", + "operationId": "Domains_ListByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "EventSubscriptions_ListRegionalBySubscriptionForTopicType": { - "$ref": "./examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all regional event subscriptions under an Azure subscription and resource group for a topic type", - "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group and topic type", - "operationId": "EventSubscriptions_ListRegionalByResourceGroupForTopicType", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "location", - "in": "path", - "description": "Name of the location", - "required": true, - "type": "string" - }, - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + { + "$ref": "#/parameters/ApiVersionParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "$ref": "#/parameters/FilterParameter" }, - "x-ms-examples": { - "EventSubscriptions_ListRegionalByResourceGroupForTopicType": { - "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json" - } + { + "$ref": "#/parameters/TopParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions": { - "get": { - "tags": [ - "EventSubscriptions" - ], - "summary": "List all event subscriptions for a specific topic", - "description": "List all event subscriptions that have been created for a specific topic", - "operationId": "EventSubscriptions_ListByResource", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "providerNamespace", - "in": "path", - "description": "Namespace of the provider of the topic", - "required": true, - "type": "string" - }, - { - "name": "resourceTypeName", - "in": "path", - "description": "Name of the resource type", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventSubscriptionsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainsListResult" } }, - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "EventSubscriptions_ListByResource": { - "$ref": "./examples/EventSubscriptions_ListByResource.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Domains_ListByResourceGroup": { + "$ref": "./examples/Domains_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "/providers/Microsoft.EventGrid/operations": { - "get": { - "tags": [ - "Operations" - ], - "summary": "List available operations", - "description": "List the available operations supported by the Microsoft.EventGrid resource provider", - "operationId": "Operations_List", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/listKeys": { + "post": { + "tags": [ + "Domains" + ], + "summary": "List keys for a domain.", + "description": "List the two keys used to publish to a domain.", + "operationId": "Domains_ListSharedAccessKeys", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}": { - "get": { - "tags": [ - "Topics" - ], - "summary": "Get a topic", - "description": "Get properties of a topic", - "operationId": "Topics_Get", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Topic" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainSharedAccessKeys" } }, - "x-ms-examples": { - "Topics_Get": { - "$ref": "./examples/Topics_Get.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." } }, - "put": { - "tags": [ - "Topics" - ], - "summary": "Create a topic", - "description": "Asynchronously creates a new topic with the specified parameters.", - "operationId": "Topics_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "name": "topicInfo", - "in": "body", - "description": "Topic information", - "required": true, - "schema": { - "$ref": "#/definitions/Topic" - } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Topic" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } - }, - "x-ms-examples": { - "Topics_CreateOrUpdate": { - "$ref": "./examples/Topics_CreateOrUpdate.json" - } + "x-ms-examples": { + "Domains_ListSharedAccessKeys": { + "$ref": "./examples/Domains_ListSharedAccessKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/regenerateKey": { + "post": { + "tags": [ + "Domains" + ], + "summary": "Regenerate key for a domain.", + "description": "Regenerate a shared access key for a domain.", + "operationId": "Domains_RegenerateKey", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Topics" - ], - "summary": "Delete a topic", - "description": "Delete existing topic", - "operationId": "Topics_Delete", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." - } + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "Topics_Delete": { - "$ref": "./examples/Topics_Delete.json" - } + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Topics" - ], - "summary": "Update a topic", - "description": "Asynchronously updates a topic with the specified parameters.", - "operationId": "Topics_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "name": "topicUpdateParameters", - "in": "body", - "description": "Topic update information", - "required": true, - "schema": { - "$ref": "#/definitions/TopicUpdateParameters" - } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "Topic update request accepted.", - "schema": { - "$ref": "#/definitions/Topic" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + { + "name": "regenerateKeyRequest", + "in": "body", + "description": "Request body to regenerate key.", + "required": true, + "schema": { + "$ref": "#/definitions/DomainRegenerateKeyRequest" } }, - "x-ms-examples": { - "Topics_Update": { - "$ref": "./examples/Topics_Update.json" + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainSharedAccessKeys" } }, - "x-ms-long-running-operation": true + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Domains_RegenerateKey": { + "$ref": "./examples/Domains_RegenerateKey.json" + } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics": { - "get": { - "tags": [ - "Topics" - ], - "summary": "List topics under an Azure subscription", - "description": "List all the topics under an Azure subscription", - "operationId": "Topics_ListBySubscription", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}": { + "get": { + "tags": [ + "DomainTopics" + ], + "summary": "Get a domain topic.", + "description": "Get properties of a domain topic.", + "operationId": "DomainTopics_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" + }, + { + "name": "domainTopicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainTopic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "DomainTopics_Get": { + "$ref": "./examples/DomainTopics_Get.json" + } + } + }, + "put": { + "tags": [ + "DomainTopics" + ], + "summary": "Create or update a domain topic.", + "description": "Asynchronously creates or updates a new domain topic with the specified parameters.", + "operationId": "DomainTopics_CreateOrUpdate", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" + }, + { + "name": "domainTopicName", + "in": "path", + "description": "Name of the domain topic.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DomainTopic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "DomainTopics_CreateOrUpdate": { + "$ref": "./examples/DomainTopics_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "DomainTopics" + ], + "summary": "Delete a domain topic.", + "description": "Delete existing domain topic.", + "operationId": "DomainTopics_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of the domain.", + "required": true, + "type": "string" + }, + { + "name": "domainTopicName", + "in": "path", + "description": "Name of the domain topic.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "DomainTopics_Delete": { + "$ref": "./examples/DomainTopics_Delete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics": { + "get": { + "tags": [ + "DomainTopics" + ], + "summary": "List domain topics.", + "description": "List all the topics in a domain.", + "operationId": "DomainTopics_ListByDomain", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Domain name.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DomainTopicsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "DomainTopics_ListByDomain": { + "$ref": "./examples/DomainTopics_ListByDomain.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get an event subscription.", + "description": "Get properties of an event subscription.", + "operationId": "EventSubscriptions_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_GetForSubscription": { + "$ref": "./examples/EventSubscriptions_GetForSubscription.json" + }, + "EventSubscriptions_GetForResourceGroup": { + "$ref": "./examples/EventSubscriptions_GetForResourceGroup.json" + }, + "EventSubscriptions_GetForResource": { + "$ref": "./examples/EventSubscriptions_GetForResource.json" + }, + "EventSubscriptions_GetForCustomTopic": { + "$ref": "./examples/EventSubscriptions_GetForCustomTopic.json" + } + } + }, + "put": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Create or update an event subscription.", + "description": "Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.", + "operationId": "EventSubscriptions_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.", + "required": true, + "type": "string" + }, + { + "name": "eventSubscriptionInfo", + "in": "body", + "description": "Event subscription properties containing the destination and filter information.", + "required": true, + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "EventSubscription CreateOrUpdate request accepted.", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_CreateOrUpdateForSubscription": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForSubscription.json" + }, + "EventSubscriptions_CreateOrUpdateForResourceGroup": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json" + }, + "EventSubscriptions_CreateOrUpdateForResource": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResource.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Delete an event subscription.", + "description": "Delete an existing event subscription.", + "operationId": "EventSubscriptions_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_DeleteForSubscription": { + "$ref": "./examples/EventSubscriptions_DeleteForSubscription.json" + }, + "EventSubscriptions_DeleteForResourceGroup": { + "$ref": "./examples/EventSubscriptions_DeleteForResourceGroup.json" + }, + "EventSubscriptions_DeleteForResource": { + "$ref": "./examples/EventSubscriptions_DeleteForResource.json" + }, + "EventSubscriptions_DeleteForCustomTopic": { + "$ref": "./examples/EventSubscriptions_DeleteForCustomTopic.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Update an event subscription.", + "description": "Asynchronously updates an existing event subscription.", + "operationId": "EventSubscriptions_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of existing event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription to be updated.", + "required": true, + "type": "string" + }, + { + "name": "eventSubscriptionUpdateParameters", + "in": "body", + "description": "Updated event subscription information.", + "required": true, + "schema": { + "$ref": "#/definitions/EventSubscriptionUpdateParameters" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "EventSubscription update request accepted.", + "schema": { + "$ref": "#/definitions/EventSubscription" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_UpdateForSubscription": { + "$ref": "./examples/EventSubscriptions_UpdateForSubscription.json" + }, + "EventSubscriptions_UpdateForResourceGroup": { + "$ref": "./examples/EventSubscriptions_UpdateForResourceGroup.json" + }, + "EventSubscriptions_UpdateForResource": { + "$ref": "./examples/EventSubscriptions_UpdateForResource.json" + }, + "EventSubscriptions_UpdateForCustomTopic": { + "$ref": "./examples/EventSubscriptions_UpdateForCustomTopic.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl": { + "post": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get full URL of an event subscription.", + "description": "Get the full endpoint URL for an event subscription.", + "operationId": "EventSubscriptions_GetFullUrl", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "scope", + "in": "path", + "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "eventSubscriptionName", + "in": "path", + "description": "Name of the event subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionFullUrl" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_GetFullUrlForSubscription": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForSubscription.json" + }, + "EventSubscriptions_GetFullUrlForResourceGroup": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForResourceGroup.json" + }, + "EventSubscriptions_GetFullUrlForResource": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForResource.json" + }, + "EventSubscriptions_GetFullUrlForCustomTopic": { + "$ref": "./examples/EventSubscriptions_GetFullUrlForCustomTopic.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "Get an aggregated list of all global event subscriptions under an Azure subscription.", + "description": "List all aggregated global event subscriptions under a specific Azure subscription.", + "operationId": "EventSubscriptions_ListGlobalBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalBySubscription": { + "$ref": "./examples/EventSubscriptions_ListGlobalBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions for a topic type.", + "description": "List all global event subscriptions under an Azure subscription for a topic type.", + "operationId": "EventSubscriptions_ListGlobalBySubscriptionForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalBySubscriptionForTopicType": { + "$ref": "./examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions under an Azure subscription and resource group.", + "description": "List all global event subscriptions under a specific Azure subscription and resource group.", + "operationId": "EventSubscriptions_ListGlobalByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalByResourceGroup": { + "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all global event subscriptions under a resource group for a topic type.", + "description": "List all global event subscriptions under a resource group for a specific topic type.", + "operationId": "EventSubscriptions_ListGlobalByResourceGroupForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListGlobalByResourceGroupForTopicType": { + "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription.", + "description": "List all event subscriptions from the given location under a specific Azure subscription.", + "operationId": "EventSubscriptions_ListRegionalBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalBySubscription": { + "$ref": "./examples/EventSubscriptions_ListRegionalBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription and resource group.", + "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group.", + "operationId": "EventSubscriptions_ListRegionalByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" } }, - "x-ms-pageable": { - "nextLinkName": null + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalByResourceGroup": { + "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription for a topic type.", + "description": "List all event subscriptions from the given location under a specific Azure subscription and topic type.", + "operationId": "EventSubscriptions_ListRegionalBySubscriptionForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location.", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, - "x-ms-examples": { - "Topics_ListBySubscription": { - "$ref": "./examples/Topics_ListBySubscription.json" + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalBySubscriptionForTopicType": { + "$ref": "./examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json" } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics": { - "get": { - "tags": [ - "Topics" - ], - "summary": "List topics under a resource group", - "description": "List all the topics under a resource group", - "operationId": "Topics_ListByResourceGroup", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all regional event subscriptions under an Azure subscription and resource group for a topic type.", + "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group and topic type.", + "operationId": "EventSubscriptions_ListRegionalByResourceGroupForTopicType", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "description": "Name of the location.", + "required": true, + "type": "string" + }, + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EventSubscriptions_ListRegionalByResourceGroupForTopicType": { + "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all event subscriptions for a specific topic.", + "description": "List all event subscriptions that have been created for a specific topic.", + "operationId": "EventSubscriptions_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "providerNamespace", + "in": "path", + "description": "Namespace of the provider of the topic.", + "required": true, + "type": "string" + }, + { + "name": "resourceTypeName", + "in": "path", + "description": "Name of the resource type.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_ListByResource": { + "$ref": "./examples/EventSubscriptions_ListByResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions": { + "get": { + "tags": [ + "EventSubscriptions" + ], + "summary": "List all event subscriptions for a specific domain topic.", + "description": "List all event subscriptions that have been created for a specific domain topic.", + "operationId": "EventSubscriptions_ListByDomainTopic", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of the top level domain.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the domain topic.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventSubscriptionsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "EventSubscriptions_ListByDomainTopic": { + "$ref": "./examples/EventSubscriptions_ListByDomainTopic.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.EventGrid/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "List available operations.", + "description": "List the available operations supported by the Microsoft.EventGrid resource provider.", + "operationId": "Operations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationsListResult" } }, - "x-ms-pageable": { - "nextLinkName": null + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}": { + "get": { + "tags": [ + "Topics" + ], + "summary": "Get a topic.", + "description": "Get properties of a topic.", + "operationId": "Topics_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "Topics_ListByResourceGroup": { - "$ref": "./examples/Topics_ListByResourceGroup.json" + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Topic" } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Get": { + "$ref": "./examples/Topics_Get.json" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys": { - "post": { - "tags": [ - "Topics" - ], - "summary": "List keys for a topic", - "description": "List the two keys used to publish to a topic", - "operationId": "Topics_ListSharedAccessKeys", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + "put": { + "tags": [ + "Topics" + ], + "summary": "Create a topic.", + "description": "Asynchronously creates a new topic with the specified parameters.", + "operationId": "Topics_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" + }, + { + "name": "topicInfo", + "in": "body", + "description": "Topic information.", + "required": true, + "schema": { + "$ref": "#/definitions/Topic" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicSharedAccessKeys" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Topic" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_CreateOrUpdate": { + "$ref": "./examples/Topics_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Topics" + ], + "summary": "Delete a topic.", + "description": "Delete existing topic.", + "operationId": "Topics_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Delete": { + "$ref": "./examples/Topics_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Topics" + ], + "summary": "Update a topic.", + "description": "Asynchronously updates a topic with the specified parameters.", + "operationId": "Topics_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" + }, + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" + }, + { + "name": "topicUpdateParameters", + "in": "body", + "description": "Topic update information.", + "required": true, + "schema": { + "$ref": "#/definitions/TopicUpdateParameters" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Topic update request accepted.", + "schema": { + "$ref": "#/definitions/Topic" } }, - "x-ms-examples": { - "Topics_ListSharedAccessKeys": { - "$ref": "./examples/Topics_ListSharedAccessKeys.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_Update": { + "$ref": "./examples/Topics_Update.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topics under an Azure subscription.", + "description": "List all the topics under an Azure subscription.", + "operationId": "Topics_ListBySubscription", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/TopParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey": { - "post": { - "tags": [ - "Topics" - ], - "summary": "Regenerate key for a topic", - "description": "Regenerate a shared access key for a topic", - "operationId": "Topics_RegenerateKey", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "topicName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "name": "regenerateKeyRequest", - "in": "body", - "description": "Request body to regenerate key", - "required": true, - "schema": { - "$ref": "#/definitions/TopicRegenerateKeyRequest" - } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicSharedAccessKeys" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicsListResult" } }, - "x-ms-examples": { - "Topics_RegenerateKey": { - "$ref": "./examples/Topics_RegenerateKey.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Topics_ListBySubscription": { + "$ref": "./examples/Topics_ListBySubscription.json" } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes": { - "get": { - "tags": [ - "Topics" - ], - "summary": "List topic event types", - "description": "List event types for a topic", - "operationId": "Topics_ListEventTypes", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group within the user's subscription.", - "required": true, - "type": "string" - }, - { - "name": "providerNamespace", - "in": "path", - "description": "Namespace of the provider of the topic", - "required": true, - "type": "string" - }, - { - "name": "resourceTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the topic", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventTypesListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topics under a resource group.", + "description": "List all the topics under a resource group.", + "operationId": "Topics_ListByResourceGroup", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "Topics_ListEventTypes": { - "$ref": "./examples/Topics_ListEventTypes.json" - } - } - } - }, - "/providers/Microsoft.EventGrid/topicTypes": { - "get": { - "tags": [ - "TopicTypes" - ], - "summary": "List topic types", - "description": "List all registered topic types", - "operationId": "TopicTypes_List", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicTypesListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." - } + { + "$ref": "#/parameters/ApiVersionParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "$ref": "#/parameters/FilterParameter" }, - "x-ms-examples": { - "TopicTypes_List": { - "$ref": "./examples/TopicTypes_List.json" - } + { + "$ref": "#/parameters/TopParameter" } - } - }, - "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}": { - "get": { - "tags": [ - "TopicTypes" - ], - "summary": "Get a topic type", - "description": "Get information about a topic type", - "operationId": "TopicTypes_Get", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopicTypeInfo" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicsListResult" } }, - "x-ms-examples": { - "TopicTypes_Get": { - "$ref": "./examples/TopicTypes_Get.json" - } + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Topics_ListByResourceGroup": { + "$ref": "./examples/Topics_ListByResourceGroup.json" } } - }, - "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventTypes": { - "get": { - "tags": [ - "TopicTypes" - ], - "summary": "List event types", - "description": "List event types for a topic type", - "operationId": "TopicTypes_ListEventTypes", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "name": "topicTypeName", - "in": "path", - "description": "Name of the topic type", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EventTypesListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys": { + "post": { + "tags": [ + "Topics" + ], + "summary": "List keys for a topic.", + "description": "List the two keys used to publish to a topic.", + "operationId": "Topics_ListSharedAccessKeys", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "x-ms-pageable": { - "nextLinkName": null + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" }, - "x-ms-examples": { - "TopicTypes_ListEventTypes": { - "$ref": "./examples/TopicTypes_ListEventTypes.json" + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicSharedAccessKeys" } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_ListSharedAccessKeys": { + "$ref": "./examples/Topics_ListSharedAccessKeys.json" } } } }, - "definitions": { - "EventSubscriptionProperties": { - "description": "Properties of the Event Subscription", - "type": "object", - "properties": { - "topic": { - "description": "Name of the topic of the event subscription.", - "type": "string", - "readOnly": true - }, - "provisioningState": { - "description": "Provisioning state of the event subscription.", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Canceled", - "Failed", - "AwaitingManualAction" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "EventSubscriptionProvisioningState", - "modelAsString": true - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey": { + "post": { + "tags": [ + "Topics" + ], + "summary": "Regenerate key for a topic.", + "description": "Regenerate a shared access key for a topic.", + "operationId": "Topics_RegenerateKey", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "destination": { - "$ref": "#/definitions/EventSubscriptionDestination", - "description": "Information about the destination where events have to be delivered for the event subscription." + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "filter": { - "$ref": "#/definitions/EventSubscriptionFilter", - "description": "Information about the filter for the event subscription." + { + "name": "topicName", + "in": "path", + "description": "Name of the topic.", + "required": true, + "type": "string" }, - "labels": { - "description": "List of user defined labels.", - "type": "array", - "items": { - "type": "string" + { + "name": "regenerateKeyRequest", + "in": "body", + "description": "Request body to regenerate key.", + "required": true, + "schema": { + "$ref": "#/definitions/TopicRegenerateKeyRequest" } }, - "retryPolicy": { - "$ref": "#/definitions/RetryPolicy", - "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicSharedAccessKeys" + } }, - "deadLetterDestination": { - "$ref": "#/definitions/DeadLetterDestination", - "description": "The DeadLetter destination of the event subscription." + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "Topics_RegenerateKey": { + "$ref": "./examples/Topics_RegenerateKey.json" } } - }, - "Resource": { - "description": "Definition of a Resource", - "type": "object", - "properties": { - "id": { - "description": "Fully qualified identifier of the resource", - "type": "string", - "readOnly": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes": { + "get": { + "tags": [ + "Topics" + ], + "summary": "List topic event types.", + "description": "List event types for a topic.", + "operationId": "Topics_ListEventTypes", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" }, - "name": { - "description": "Name of the resource", - "type": "string", - "readOnly": true + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, - "type": { - "description": "Type of the resource", - "type": "string", - "readOnly": true - } - }, - "x-ms-azure-resource": true - }, - "EventSubscriptionFilter": { - "description": "Filter for the Event Subscription", - "type": "object", - "properties": { - "subjectBeginsWith": { - "description": "An optional string to filter events for an event subscription based on a resource path prefix.\r\nThe format of this depends on the publisher of the events. \r\nWildcard characters are not supported in this path.", + { + "name": "providerNamespace", + "in": "path", + "description": "Namespace of the provider of the topic.", + "required": true, + "type": "string" + }, + { + "name": "resourceTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, "type": "string" }, - "subjectEndsWith": { - "description": "An optional string to filter events for an event subscription based on a resource path suffix.\r\nWildcard characters are not supported in this path.", + { + "name": "resourceName", + "in": "path", + "description": "Name of the topic.", + "required": true, "type": "string" }, - "includedEventTypes": { - "description": "A list of applicable event types that need to be part of the event subscription. \r\nIf it is desired to subscribe to all event types, the string \"all\" needs to be specified as an element in this list.", - "type": "array", - "items": { - "type": "string" + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventTypesListResult" } }, - "isSubjectCaseSensitive": { - "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter \r\nshould be compared in a case sensitive manner.", - "default": false, - "type": "boolean" + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Topics_ListEventTypes": { + "$ref": "./examples/Topics_ListEventTypes.json" } } - }, - "RetryPolicy": { - "description": "Information about the retry policy for an event subscription", - "type": "object", - "properties": { - "maxDeliveryAttempts": { - "format": "int32", - "description": "Maximum number of delivery retry attempts for events.", - "type": "integer" + } + }, + "/providers/Microsoft.EventGrid/topicTypes": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "List topic types.", + "description": "List all registered topic types.", + "operationId": "TopicTypes_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicTypesListResult" + } }, - "eventTimeToLiveInMinutes": { - "format": "int32", - "description": "Time To Live (in minutes) for events.", - "type": "integer" + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "TopicTypes_List": { + "$ref": "./examples/TopicTypes_List.json" } } - }, - "WebHookEventSubscriptionDestinationProperties": { - "description": "Information about the webhook destination properties for an event subscription.", - "type": "object", - "properties": { - "endpointUrl": { - "description": "The URL that represents the endpoint of the destination of an event subscription.", + } + }, + "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "Get a topic type.", + "description": "Get information about a topic type.", + "operationId": "TopicTypes_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, "type": "string" }, - "endpointBaseUrl": { - "description": "The base URL that represents the endpoint of the destination of an event subscription.", - "type": "string", - "readOnly": true + { + "$ref": "#/parameters/ApiVersionParameter" } - } - }, - "StorageBlobDeadLetterDestinationProperties": { - "description": "Properties of the storage blob based dead letter destination.", - "type": "object", - "properties": { - "resourceId": { - "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events. For example: /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName}", - "type": "string" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopicTypeInfo" + } }, - "blobContainerName": { - "description": "The name of the Storage blob container that is the destination of the deadletter events", - "type": "string" + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." + } + }, + "x-ms-examples": { + "TopicTypes_Get": { + "$ref": "./examples/TopicTypes_Get.json" } } - }, - "StorageBlobDeadLetterDestination": { - "description": "Information about the storage blob based dead letter destination.", - "type": "object", - "allOf": [ + } + }, + "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventTypes": { + "get": { + "tags": [ + "TopicTypes" + ], + "summary": "List event types.", + "description": "List event types for a topic type.", + "operationId": "TopicTypes_ListEventTypes", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ { - "$ref": "#/definitions/DeadLetterDestination" + "name": "topicTypeName", + "in": "path", + "description": "Name of the topic type.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], - "properties": { - "properties": { - "$ref": "#/definitions/StorageBlobDeadLetterDestinationProperties", - "description": "The properties of the Storage Blob based deadletter destination", - "x-ms-client-flatten": true + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventTypesListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error." } }, - "x-ms-discriminator-value": "StorageBlob" - }, - "WebHookEventSubscriptionDestination": { - "description": "Information about the webhook destination for an event subscription", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EventSubscriptionDestination" + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "TopicTypes_ListEventTypes": { + "$ref": "./examples/TopicTypes_ListEventTypes.json" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/WebHookEventSubscriptionDestinationProperties", - "description": "WebHook Properties of the event subscription destination", - "x-ms-client-flatten": true + } + } + } + }, + "definitions": { + "DomainProperties": { + "description": "Properties of the Domain.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the domain.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DomainProvisioningState", + "modelAsString": true } }, - "x-ms-discriminator-value": "WebHook" + "endpoint": { + "description": "Endpoint for the domain.", + "type": "string", + "readOnly": true + } + } + }, + "Resource": { + "description": "Definition of a Resource.", + "type": "object", + "properties": { + "id": { + "description": "Fully qualified identifier of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Type of the resource.", + "type": "string", + "readOnly": true + } }, - "DeadLetterDestination": { - "description": "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.", - "type": "object", - "required": [ - "endpointType" - ], + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Definition of a Tracked Resource.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Location of the resource.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "Tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "Domain": { + "description": "EventGrid Domain.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { "properties": { - "endpointType": { - "description": "Type of the endpoint for the dead letter destination", - "enum": [ - "StorageBlob" - ], - "type": "string", - "x-ms-enum": { - "name": "DeadLetterEndPointType", - "modelAsString": true - } + "$ref": "#/definitions/DomainProperties", + "description": "Properties of the domain.", + "x-ms-client-flatten": true + } + } + }, + "DomainUpdateParameters": { + "description": "Properties of the Domain update.", + "type": "object", + "properties": { + "tags": { + "description": "Tags of the domains resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DomainsListResult": { + "description": "Result of the List Domains operation.", + "type": "object", + "properties": { + "value": { + "description": "A collection of Domains.", + "type": "array", + "items": { + "$ref": "#/definitions/Domain" } }, - "discriminator": "endpointType" - }, - "EventHubEventSubscriptionDestinationProperties": { - "description": "The properties for a event hub destination.", - "type": "object", + "nextLink": { + "description": "A link for the next page of domains.", + "type": "string" + } + } + }, + "DomainSharedAccessKeys": { + "description": "Shared access keys of the Domain.", + "type": "object", + "properties": { + "key1": { + "description": "Shared access key1 for the domain.", + "type": "string" + }, + "key2": { + "description": "Shared access key2 for the domain.", + "type": "string" + } + } + }, + "DomainRegenerateKeyRequest": { + "description": "Domain regenerate share access key request.", + "required": [ + "keyName" + ], + "type": "object", + "properties": { + "keyName": { + "description": "Key name to regenerate key1 or key2.", + "type": "string" + } + } + }, + "DomainTopicProperties": { + "description": "Properties of the Domain Topic.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the domain topic.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "DomainTopicProvisioningState", + "modelAsString": true + } + } + } + }, + "DomainTopic": { + "description": "Domain Topic.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { "properties": { - "resourceId": { - "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", + "$ref": "#/definitions/DomainTopicProperties", + "description": "Properties of the Domain Topic.", + "x-ms-client-flatten": true + } + } + }, + "DomainTopicsListResult": { + "description": "Result of the List Domain Topics operation.", + "type": "object", + "properties": { + "value": { + "description": "A collection of Domain Topics.", + "type": "array", + "items": { + "$ref": "#/definitions/DomainTopic" + } + }, + "nextLink": { + "description": "A link for the next page of domain topics.", + "type": "string" + } + } + }, + "EventSubscriptionProperties": { + "description": "Properties of the Event Subscription", + "type": "object", + "properties": { + "topic": { + "description": "Name of the topic of the event subscription.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "Provisioning state of the event subscription.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed", + "AwaitingManualAction" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "EventSubscriptionProvisioningState", + "modelAsString": true + } + }, + "destination": { + "$ref": "#/definitions/EventSubscriptionDestination", + "description": "Information about the destination where events have to be delivered for the event subscription." + }, + "filter": { + "$ref": "#/definitions/EventSubscriptionFilter", + "description": "Information about the filter for the event subscription." + }, + "labels": { + "description": "List of user defined labels.", + "type": "array", + "items": { "type": "string" } + }, + "expirationTimeUtc": { + "format": "date-time", + "description": "Expiration time of the event subscription.", + "type": "string" + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." + }, + "deadLetterDestination": { + "$ref": "#/definitions/DeadLetterDestination", + "description": "The DeadLetter destination of the event subscription." } - }, - "EventHubEventSubscriptionDestination": { - "description": "Information about the event hub destination for an event subscription", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EventSubscriptionDestination" + } + }, + "EventSubscriptionFilter": { + "description": "Filter for the Event Subscription.", + "type": "object", + "properties": { + "subjectBeginsWith": { + "description": "An optional string to filter events for an event subscription based on a resource path prefix.\r\nThe format of this depends on the publisher of the events. \r\nWildcard characters are not supported in this path.", + "type": "string" + }, + "subjectEndsWith": { + "description": "An optional string to filter events for an event subscription based on a resource path suffix.\r\nWildcard characters are not supported in this path.", + "type": "string" + }, + "includedEventTypes": { + "description": "A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.", + "type": "array", + "items": { + "type": "string" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/EventHubEventSubscriptionDestinationProperties", - "description": "Event Hub Properties of the event subscription destination", - "x-ms-client-flatten": true + }, + "isSubjectCaseSensitive": { + "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter \r\nshould be compared in a case sensitive manner.", + "default": false, + "type": "boolean" + }, + "advancedFilters": { + "description": "An array of advanced filters that are used for filtering event subscriptions.", + "type": "array", + "items": { + "$ref": "#/definitions/AdvancedFilter" + } + } + } + }, + "RetryPolicy": { + "description": "Information about the retry policy for an event subscription.", + "type": "object", + "properties": { + "maxDeliveryAttempts": { + "format": "int32", + "description": "Maximum number of delivery retry attempts for events.", + "type": "integer" + }, + "eventTimeToLiveInMinutes": { + "format": "int32", + "description": "Time To Live (in minutes) for events.", + "type": "integer" + } + } + }, + "WebHookEventSubscriptionDestinationProperties": { + "description": "Information about the webhook destination properties for an event subscription.", + "type": "object", + "properties": { + "endpointUrl": { + "description": "The URL that represents the endpoint of the destination of an event subscription.", + "type": "string" + }, + "endpointBaseUrl": { + "description": "The base URL that represents the endpoint of the destination of an event subscription.", + "type": "string", + "readOnly": true + } + } + }, + "StorageBlobDeadLetterDestinationProperties": { + "description": "Properties of the storage blob based dead letter destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events", + "type": "string" + }, + "blobContainerName": { + "description": "The name of the Storage blob container that is the destination of the deadletter events", + "type": "string" + } + } + }, + "NumberInAdvancedFilter": { + "description": "NumberIn Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { + "format": "double", + "type": "number" } - }, - "x-ms-discriminator-value": "EventHub" + } }, - "StorageQueueEventSubscriptionDestinationProperties": { - "description": "The properties for a storage queue destination.", - "type": "object", + "x-ms-discriminator-value": "NumberIn" + }, + "StorageBlobDeadLetterDestination": { + "description": "Information about the storage blob based dead letter destination.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DeadLetterDestination" + } + ], + "properties": { "properties": { - "resourceId": { - "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", - "type": "string" - }, - "queueName": { - "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", - "type": "string" - } + "$ref": "#/definitions/StorageBlobDeadLetterDestinationProperties", + "description": "The properties of the Storage Blob based deadletter destination", + "x-ms-client-flatten": true } }, - "StorageQueueEventSubscriptionDestination": { - "description": "Information about the storage queue destination for an event subscription.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EventSubscriptionDestination" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StorageQueueEventSubscriptionDestinationProperties", - "description": "Storage Queue Properties of the event subscription destination", - "x-ms-client-flatten": true + "x-ms-discriminator-value": "StorageBlob" + }, + "NumberNotInAdvancedFilter": { + "description": "NumberNotIn Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { + "format": "double", + "type": "number" } - }, - "x-ms-discriminator-value": "StorageQueue" + } }, - "HybridConnectionEventSubscriptionDestinationProperties": { - "description": "The properties for a hybrid connection destination.", - "type": "object", - "properties": { - "resourceId": { - "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", - "type": "string" - } + "x-ms-discriminator-value": "NumberNotIn" + }, + "NumberLessThanAdvancedFilter": { + "description": "NumberLessThan Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "value": { + "format": "double", + "description": "The filter value.", + "type": "number" } }, - "HybridConnectionEventSubscriptionDestination": { - "description": "Information about the HybridConnection destination for an event subscription.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EventSubscriptionDestination" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/HybridConnectionEventSubscriptionDestinationProperties", - "description": "Hybrid connection Properties of the event subscription destination", - "x-ms-client-flatten": true - } - }, - "x-ms-discriminator-value": "HybridConnection" + "x-ms-discriminator-value": "NumberLessThan" + }, + "NumberGreaterThanAdvancedFilter": { + "description": "NumberGreaterThan Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "value": { + "format": "double", + "description": "The filter value.", + "type": "number" + } }, - "EventSubscriptionDestination": { - "description": "Information about the destination for an event subscription", - "type": "object", - "required": [ - "endpointType" - ], - "properties": { - "endpointType": { - "description": "Type of the endpoint for the event subscription destination", - "enum": [ - "WebHook", - "EventHub", - "StorageQueue", - "HybridConnection" - ], - "type": "string", - "x-ms-enum": { - "name": "EndpointType", - "modelAsString": true - } - } - }, - "discriminator": "endpointType" + "x-ms-discriminator-value": "NumberGreaterThan" + }, + "NumberLessThanOrEqualsAdvancedFilter": { + "description": "NumberLessThanOrEquals Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "value": { + "format": "double", + "description": "The filter value.", + "type": "number" + } }, - "EventSubscription": { - "description": "Event Subscription", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/EventSubscriptionProperties", - "description": "Properties of the event subscription", - "x-ms-client-flatten": true - } + "x-ms-discriminator-value": "NumberLessThanOrEquals" + }, + "NumberGreaterThanOrEqualsAdvancedFilter": { + "description": "NumberGreaterThanOrEquals Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "value": { + "format": "double", + "description": "The filter value.", + "type": "number" } }, - "EventSubscriptionUpdateParameters": { - "description": "Properties of the Event Subscription update", - "type": "object", - "properties": { - "destination": { - "$ref": "#/definitions/EventSubscriptionDestination", - "description": "Information about the destination where events have to be delivered for the event subscription." - }, - "filter": { - "$ref": "#/definitions/EventSubscriptionFilter", - "description": "Information about the filter for the event subscription." - }, - "labels": { - "description": "List of user defined labels.", - "type": "array", - "items": { - "type": "string" - } - }, - "retryPolicy": { - "$ref": "#/definitions/RetryPolicy", - "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." - }, - "deadLetterDestination": { - "$ref": "#/definitions/DeadLetterDestination", - "description": "The DeadLetter destination of the event subscription." - } + "x-ms-discriminator-value": "NumberGreaterThanOrEquals" + }, + "BoolEqualsAdvancedFilter": { + "description": "BoolEquals Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "value": { + "description": "The boolean filter value.", + "type": "boolean" } }, - "EventSubscriptionFullUrl": { - "description": "Full endpoint url of an event subscription", - "type": "object", - "properties": { - "endpointUrl": { - "description": "The URL that represents the endpoint of the destination of an event subscription.", + "x-ms-discriminator-value": "BoolEquals" + }, + "StringInAdvancedFilter": { + "description": "StringIn Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { "type": "string" } } }, - "EventSubscriptionsListResult": { - "description": "Result of the List EventSubscriptions operation", - "type": "object", - "properties": { - "value": { - "description": "A collection of EventSubscriptions", - "type": "array", - "items": { - "$ref": "#/definitions/EventSubscription" - } + "x-ms-discriminator-value": "StringIn" + }, + "StringNotInAdvancedFilter": { + "description": "StringNotIn Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { + "type": "string" } } }, - "OperationsListResult": { - "description": "Result of the List Operations operation", - "type": "object", - "properties": { - "value": { - "description": "A collection of operations", - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - } + "x-ms-discriminator-value": "StringNotIn" + }, + "StringBeginsWithAdvancedFilter": { + "description": "StringBeginsWith Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { + "type": "string" } } }, - "Operation": { - "description": "Represents an operation returned by the GetOperations request", - "type": "object", - "properties": { - "name": { - "description": "Name of the operation", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationInfo", - "description": "Display name of the operation" - }, - "origin": { - "description": "Origin of the operation", + "x-ms-discriminator-value": "StringBeginsWith" + }, + "StringEndsWithAdvancedFilter": { + "description": "StringEndsWith Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { "type": "string" - }, - "properties": { - "description": "Properties of the operation", - "type": "object", - "x-ms-client-flatten": true } } }, - "OperationInfo": { - "description": "Information about an operation", - "type": "object", - "properties": { - "provider": { - "description": "Name of the provider", - "type": "string" - }, - "resource": { - "description": "Name of the resource type", - "type": "string" - }, - "operation": { - "description": "Name of the operation", - "type": "string" - }, - "description": { - "description": "Description of the operation", + "x-ms-discriminator-value": "StringEndsWith" + }, + "StringContainsAdvancedFilter": { + "description": "StringContains Advanced Filter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AdvancedFilter" + } + ], + "properties": { + "values": { + "description": "The set of filter values.", + "type": "array", + "items": { "type": "string" } } }, - "TopicProperties": { - "description": "Properties of the Topic", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the topic.", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Canceled", - "Failed" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "TopicProvisioningState", - "modelAsString": true - } - }, - "endpoint": { - "description": "Endpoint for the topic.", - "type": "string", - "readOnly": true + "x-ms-discriminator-value": "StringContains" + }, + "AdvancedFilter": { + "description": "This is the base type that represents an advanced filter. To configure an advanced filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key based on which you want to filter.", + "required": [ + "operatorType" + ], + "type": "object", + "properties": { + "operatorType": { + "description": "The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.", + "enum": [ + "NumberIn", + "NumberNotIn", + "NumberLessThan", + "NumberGreaterThan", + "NumberLessThanOrEquals", + "NumberGreaterThanOrEquals", + "BoolEquals", + "StringIn", + "StringNotIn", + "StringBeginsWith", + "StringEndsWith", + "StringContains" + ], + "type": "string", + "x-ms-enum": { + "name": "AdvancedFilterOperatorType", + "modelAsString": true } + }, + "key": { + "description": "The field/property in the event based on which you want to filter.", + "type": "string" } }, - "TrackedResource": { - "description": "Definition of a Tracked Resource", - "required": [ - "location" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "discriminator": "operatorType" + }, + "WebHookEventSubscriptionDestination": { + "description": "Information about the webhook destination for an event subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { "properties": { - "location": { - "description": "Location of the resource", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "tags": { - "description": "Tags of the resource", - "type": "object", - "additionalProperties": { - "type": "string" - } - } + "$ref": "#/definitions/WebHookEventSubscriptionDestinationProperties", + "description": "WebHook Properties of the event subscription destination", + "x-ms-client-flatten": true } }, - "Topic": { - "description": "EventGrid Topic", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TopicProperties", - "description": "Properties of the topic", - "x-ms-client-flatten": true + "x-ms-discriminator-value": "WebHook" + }, + "DeadLetterDestination": { + "description": "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.", + "type": "object", + "required": [ + "endpointType" + ], + "properties": { + "endpointType": { + "description": "Type of the endpoint for the dead letter destination", + "enum": [ + "StorageBlob" + ], + "type": "string", + "x-ms-enum": { + "name": "DeadLetterEndPointType", + "modelAsString": true } } }, - "TopicUpdateParameters": { - "description": "Properties of the Topic update", - "type": "object", + "discriminator": "endpointType" + }, + "EventHubEventSubscriptionDestinationProperties": { + "description": "The properties for a event hub destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", + "type": "string" + } + } + }, + "EventHubEventSubscriptionDestination": { + "description": "Information about the event hub destination for an event subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { "properties": { - "tags": { - "description": "Tags of the resource", - "type": "object", - "additionalProperties": { - "type": "string" - } - } + "$ref": "#/definitions/EventHubEventSubscriptionDestinationProperties", + "description": "Event Hub Properties of the event subscription destination", + "x-ms-client-flatten": true } }, - "TopicsListResult": { - "description": "Result of the List Topics operation", - "type": "object", + "x-ms-discriminator-value": "EventHub" + }, + "StorageQueueEventSubscriptionDestinationProperties": { + "description": "The properties for a storage queue destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", + "type": "string" + }, + "queueName": { + "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", + "type": "string" + } + } + }, + "StorageQueueEventSubscriptionDestination": { + "description": "Information about the storage queue destination for an event subscription.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { "properties": { - "value": { - "description": "A collection of Topics", - "type": "array", - "items": { - "$ref": "#/definitions/Topic" - } - } + "$ref": "#/definitions/StorageQueueEventSubscriptionDestinationProperties", + "description": "Storage Queue Properties of the event subscription destination", + "x-ms-client-flatten": true } }, - "TopicSharedAccessKeys": { - "description": "Shared access keys of the Topic", - "type": "object", + "x-ms-discriminator-value": "StorageQueue" + }, + "HybridConnectionEventSubscriptionDestinationProperties": { + "description": "The properties for a hybrid connection destination.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", + "type": "string" + } + } + }, + "HybridConnectionEventSubscriptionDestination": { + "description": "Information about the HybridConnection destination for an event subscription.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { "properties": { - "key1": { - "description": "Shared access key1 for the topic.", - "type": "string" - }, - "key2": { - "description": "Shared access key2 for the topic.", - "type": "string" - } + "$ref": "#/definitions/HybridConnectionEventSubscriptionDestinationProperties", + "description": "Hybrid connection Properties of the event subscription destination", + "x-ms-client-flatten": true } }, - "TopicRegenerateKeyRequest": { - "description": "Topic regenerate share access key request", - "required": [ - "keyName" - ], - "type": "object", + "x-ms-discriminator-value": "HybridConnection" + }, + "ServiceBusQueueEventSubscriptionDestinationProperties": { + "description": "The properties that represent the Service Bus destination of an event subscription.", + "type": "object", + "properties": { + "resourceId": { + "description": "The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.", + "type": "string" + } + } + }, + "ServiceBusQueueEventSubscriptionDestination": { + "description": "Information about the service bus destination for an event subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EventSubscriptionDestination" + } + ], + "properties": { "properties": { - "keyName": { - "description": "Key name to regenerate key1 or key2", - "type": "string" - } + "$ref": "#/definitions/ServiceBusQueueEventSubscriptionDestinationProperties", + "description": "Service Bus Properties of the event subscription destination", + "x-ms-client-flatten": true } }, - "EventTypesListResult": { - "description": "Result of the List Event Types operation", - "type": "object", - "properties": { - "value": { - "description": "A collection of event types", - "type": "array", - "items": { - "$ref": "#/definitions/EventType" - } + "x-ms-discriminator-value": "ServiceBusQueue" + }, + "EventSubscriptionDestination": { + "description": "Information about the destination for an event subscription", + "type": "object", + "required": [ + "endpointType" + ], + "properties": { + "endpointType": { + "description": "Type of the endpoint for the event subscription destination", + "enum": [ + "WebHook", + "EventHub", + "StorageQueue", + "HybridConnection", + "ServiceBusQueue" + ], + "type": "string", + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": true } } }, - "EventTypeProperties": { - "description": "Properties of the event type", - "type": "object", + "discriminator": "endpointType" + }, + "EventSubscription": { + "description": "Event Subscription", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { "properties": { - "displayName": { - "description": "Display name of the event type.", - "type": "string" - }, - "description": { - "description": "Description of the event type.", - "type": "string" - }, - "schemaUrl": { - "description": "Url of the schema for this event type.", + "$ref": "#/definitions/EventSubscriptionProperties", + "description": "Properties of the event subscription", + "x-ms-client-flatten": true + } + } + }, + "EventSubscriptionUpdateParameters": { + "description": "Properties of the Event Subscription update", + "type": "object", + "properties": { + "destination": { + "$ref": "#/definitions/EventSubscriptionDestination", + "description": "Information about the destination where events have to be delivered for the event subscription." + }, + "filter": { + "$ref": "#/definitions/EventSubscriptionFilter", + "description": "Information about the filter for the event subscription." + }, + "labels": { + "description": "List of user defined labels.", + "type": "array", + "items": { "type": "string" } + }, + "expirationTimeUtc": { + "format": "date-time", + "description": "Information about the expiration time for the event subscription.", + "type": "string" + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events." + }, + "deadLetterDestination": { + "$ref": "#/definitions/DeadLetterDestination", + "description": "The DeadLetter destination of the event subscription." } - }, - "EventType": { - "description": "Event Type for a subject under a topic", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" + } + }, + "EventSubscriptionFullUrl": { + "description": "Full endpoint url of an event subscription", + "type": "object", + "properties": { + "endpointUrl": { + "description": "The URL that represents the endpoint of the destination of an event subscription.", + "type": "string" + } + } + }, + "EventSubscriptionsListResult": { + "description": "Result of the List EventSubscriptions operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of EventSubscriptions", + "type": "array", + "items": { + "$ref": "#/definitions/EventSubscription" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/EventTypeProperties", - "description": "Properties of the event type.", - "x-ms-client-flatten": true + }, + "nextLink": { + "description": "A link for the next page of event subscriptions", + "type": "string" + } + } + }, + "OperationsListResult": { + "description": "Result of the List Operations operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" } } - }, - "TopicTypesListResult": { - "description": "Result of the List Topic Types operation", - "type": "object", + } + }, + "Operation": { + "description": "Represents an operation returned by the GetOperations request", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationInfo", + "description": "Display name of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, "properties": { - "value": { - "description": "A collection of topic types", - "type": "array", - "items": { - "$ref": "#/definitions/TopicTypeInfo" - } + "description": "Properties of the operation", + "type": "object", + "x-ms-client-flatten": true + } + } + }, + "OperationInfo": { + "description": "Information about an operation", + "type": "object", + "properties": { + "provider": { + "description": "Name of the provider", + "type": "string" + }, + "resource": { + "description": "Name of the resource type", + "type": "string" + }, + "operation": { + "description": "Name of the operation", + "type": "string" + }, + "description": { + "description": "Description of the operation", + "type": "string" + } + } + }, + "TopicProperties": { + "description": "Properties of the Topic", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the topic.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "TopicProvisioningState", + "modelAsString": true } + }, + "endpoint": { + "description": "Endpoint for the topic.", + "type": "string", + "readOnly": true } - }, - "TopicTypeProperties": { - "description": "Properties of a topic type.", - "type": "object", + } + }, + "Topic": { + "description": "EventGrid Topic", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { "properties": { - "provider": { - "description": "Namespace of the provider of the topic type.", - "type": "string" - }, - "displayName": { - "description": "Display Name for the topic type.", - "type": "string" - }, - "description": { - "description": "Description of the topic type.", + "$ref": "#/definitions/TopicProperties", + "description": "Properties of the topic", + "x-ms-client-flatten": true + } + } + }, + "TopicUpdateParameters": { + "description": "Properties of the Topic update", + "type": "object", + "properties": { + "tags": { + "description": "Tags of the resource", + "type": "object", + "additionalProperties": { "type": "string" - }, - "resourceRegionType": { - "description": "Region type of the resource.", - "enum": [ - "RegionalResource", - "GlobalResource" - ], - "type": "string", - "x-ms-enum": { - "name": "ResourceRegionType", - "modelAsString": true - } - }, - "provisioningState": { - "description": "Provisioning state of the topic type", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Canceled", - "Failed" - ], - "type": "string", - "x-ms-enum": { - "name": "TopicTypeProvisioningState", - "modelAsString": true - } - }, - "supportedLocations": { - "description": "List of locations supported by this topic type.", - "type": "array", - "items": { - "type": "string" - } } } - }, - "TopicTypeInfo": { - "description": "Properties of a topic type info.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" + } + }, + "TopicsListResult": { + "description": "Result of the List Topics operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of Topics", + "type": "array", + "items": { + "$ref": "#/definitions/Topic" } - ], + }, + "nextLink": { + "description": "A link for the next page of topics", + "type": "string" + } + } + }, + "TopicSharedAccessKeys": { + "description": "Shared access keys of the Topic", + "type": "object", + "properties": { + "key1": { + "description": "Shared access key1 for the topic.", + "type": "string" + }, + "key2": { + "description": "Shared access key2 for the topic.", + "type": "string" + } + } + }, + "TopicRegenerateKeyRequest": { + "description": "Topic regenerate share access key request", + "required": [ + "keyName" + ], + "type": "object", + "properties": { + "keyName": { + "description": "Key name to regenerate key1 or key2", + "type": "string" + } + } + }, + "EventTypesListResult": { + "description": "Result of the List Event Types operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of event types", + "type": "array", + "items": { + "$ref": "#/definitions/EventType" + } + } + } + }, + "EventTypeProperties": { + "description": "Properties of the event type", + "type": "object", + "properties": { + "displayName": { + "description": "Display name of the event type.", + "type": "string" + }, + "description": { + "description": "Description of the event type.", + "type": "string" + }, + "schemaUrl": { + "description": "Url of the schema for this event type.", + "type": "string" + }, + "isInDefaultSet": { + "description": "IsInDefaultSet flag of the event type.", + "type": "boolean" + } + } + }, + "EventType": { + "description": "Event Type for a subject under a topic", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { "properties": { - "properties": { - "$ref": "#/definitions/TopicTypeProperties", - "description": "Properties of the topic type info", - "x-ms-client-flatten": true + "$ref": "#/definitions/EventTypeProperties", + "description": "Properties of the event type.", + "x-ms-client-flatten": true + } + } + }, + "TopicTypesListResult": { + "description": "Result of the List Topic Types operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of topic types", + "type": "array", + "items": { + "$ref": "#/definitions/TopicTypeInfo" } } } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "Version of the API to be used with the client request.", - "required": true, - "type": "string" + "TopicTypeProperties": { + "description": "Properties of a topic type.", + "type": "object", + "properties": { + "provider": { + "description": "Namespace of the provider of the topic type.", + "type": "string" + }, + "displayName": { + "description": "Display Name for the topic type.", + "type": "string" + }, + "description": { + "description": "Description of the topic type.", + "type": "string" + }, + "resourceRegionType": { + "description": "Region type of the resource.", + "enum": [ + "RegionalResource", + "GlobalResource" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceRegionType", + "modelAsString": true + } + }, + "provisioningState": { + "description": "Provisioning state of the topic type", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "TopicTypeProvisioningState", + "modelAsString": true + } + }, + "supportedLocations": { + "description": "List of locations supported by this topic type.", + "type": "array", + "items": { + "type": "string" + } + } } }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" + "TopicTypeInfo": { + "description": "Properties of a topic type info.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TopicTypeProperties", + "description": "Properties of the topic type info", + "x-ms-client-flatten": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Version of the API to be used with the client request.", + "required": true, + "type": "string" + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "description": "The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "TopParameter": { + "name": "$top", + "in": "query", + "description": "The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 iterms per page.", + "required": false, + "type": "integer", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" } } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json new file mode 100644 index 000000000000..43b73d61cd33 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "domainTopicName": "exampledomaintopic1", + "api-version": "2019-06-01" + }, + "responses": { + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1/topics/exampledomaintopic1", + "name": "exampledomaintopic1", + "type": "Microsoft.EventGrid/domains/topics" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json new file mode 100644 index 000000000000..cef84a5b5acc --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName" : "exampledomain1", + "domainTopicName" : "exampledomaintopic1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json new file mode 100644 index 000000000000..38d961eb347e --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "topicName": "topic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1", + "location": "westcentralus", + "name": "topic1", + "type": "Microsoft.EventGrid/domains/topics" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json new file mode 100644 index 000000000000..3448dc9e82a8 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + }, + { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json new file mode 100644 index 000000000000..4c5e701e2b11 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "api-version": "2019-06-01", + "domainInfo": { + "location": "westus2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json new file mode 100644 index 000000000000..01aad8301fdf --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName" : "exampledomain1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json new file mode 100644 index 000000000000..6272e170a782 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json new file mode 100644 index 000000000000..3448dc9e82a8 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + }, + { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json new file mode 100644 index 000000000000..e3c0689a042a --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + }, + { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json new file mode 100644 index 000000000000..921eeea293b9 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName" : "exampledomain2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json new file mode 100644 index 000000000000..99f15a050785 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName" : "exampledomain2", + "api-version": "2019-06-01", + "regenerateKeyRequest": { + "keyName": "key1" + } + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json new file mode 100644 index 000000000000..6ee668345654 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "api-version": "2019-06-01", + "domainUpdateParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json new file mode 100644 index 000000000000..fa4d1d6a1719 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "EventHub", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json deleted file mode 100644 index a9d6c337dec6..000000000000 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01", - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "eventSubscriptionName": "examplesubscription1", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" - }, - "endpointType": "EventHub" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "provisioningState": "Creating", - "labels": null, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - - } - } - } -} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json deleted file mode 100644 index d254f31f7cc9..000000000000 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01", - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "eventSubscriptionName": "examplesubscription1", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "HybridConnection", - "properties": { - "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" - }, - "endpointType": "HybridConnection" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "provisioningState": "Creating", - "labels": null, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - - } - } - } -} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json deleted file mode 100644 index 063a0106c541..000000000000 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01", - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "eventSubscriptionName": "examplesubscription1", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "StorageQueue", - "properties": { - "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "queueName": "queue1" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "queueName": "queue1" - }, - "endpointType": "StorageQueue" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "provisioningState": "Creating", - "labels": null, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - } - } -} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json deleted file mode 100644 index 83a6186d91b1..000000000000 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01", - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "eventSubscriptionName": "examplesubscription1", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1?code=" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointUrl": null, - "endpointBaseUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "provisioningState": "Creating", - "labels": null, - "deadLetterDestination": { - "endpointType": "StorageBlob", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", - "blobContainerName": "contosocontainer" - } - } - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - - } - } - } -} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json index 130af51f5df2..5c0d84256eac 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "eventSubscriptionName": "examplesubscription10", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionInfo": { "properties": { "destination": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json index 0375149313cc..fb8ae39ff4b9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionInfo": { "properties": { "destination": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json index 4204f27d842a..65a5183ee2a9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionInfo": { "properties": { "destination": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json index cce3201d3077..3713dbd8cf45 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "202": {}, diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json index bdf161d7204f..952558393dcc 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "eventSubscriptionName": "examplesubscription10", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "202": {}, diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json index b238cbdf7f41..b5c0b772f465 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "202": {}, diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json index 24bf6cc42f23..6aee4ebd76de 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "202": {}, diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json index d67677160928..8c423994dca1 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json index 816df3aac984..ae87108651a2 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json index 6ab3f9741272..69eec5b9a9f4 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json index 556becd0fc68..c1c17ab45be6 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json index bc58d3771743..52b9aec44ddd 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json index 26aba43cf31f..44c0fc3e773f 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json index f00c6204bb9d..6ae299afc2da 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json index 573f5efd5ae6..e7758e590920 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json new file mode 100644 index 000000000000..52482e117013 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "domain1", + "topicName": "topic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "includedEventTypes": [ + "All" + ], + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json index 023af1f7432a..3879f78ac070 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json @@ -5,7 +5,7 @@ "providerNamespace": "Microsoft.EventGrid", "resourceTypeName": "topics", "resourceName": "exampletopic2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json index 4cc3676ac68b..092816c06fa4 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json index b991ff4d69b7..32af2ca2c5ac 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicTypeName": "Microsoft.Resources.ResourceGroups", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json index faf78facf10c..def235600819 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json index 5a19d61f3d6e..2512d56a48a3 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "topicTypeName": "Microsoft.Resources.Subscriptions", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json index 2b9f85f8403c..84cd4eea915f 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "location": "westus2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json index ad243388fa96..0bac44e51cd4 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "location": "westus2", "topicTypeName": "Microsoft.EventHub.namespaces", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json index 4bfc6e86dcb0..f974f2d8a345 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "location": "westus2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json index 286d231dfe5b..1a5888b79d22 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "location": "westus2", "topicTypeName": "Microsoft.EventHub.namespaces", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json index bd15eb6234fc..b52da186581f 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionUpdateParameters": { "destination": { "endpointType": "WebHook", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json index c2215e558f27..ea2535a02e4e 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionUpdateParameters": { "destination": { "endpointType": "WebHook", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json index 9d34348e61d2..ab92d4fd53db 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionUpdateParameters": { "destination": { "endpointType": "EventHub", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json index 1aba0269b691..2e21a3d86599 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "eventSubscriptionUpdateParameters": { "destination": { "endpointType": "WebHook", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json index cb18d775e61b..f2515cf7f237 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json index d86fe416ddb4..d7fbd8c94eac 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json @@ -1,7 +1,7 @@ { "parameters": { "topicTypeName": "Microsoft.Storage.StorageAccounts", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json index 0b050fe55aef..56e0b9551ca4 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json index 79370c691453..f3a82fd39ec5 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json @@ -1,7 +1,7 @@ { "parameters": { "topicTypeName": "Microsoft.Storage.StorageAccounts", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json index 2d7b702aeaca..e9861e6a1dac 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName": "exampletopic1", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "topicInfo": { "location": "westus2", "tags": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json index 7db78a66b0a8..bf6de06e57cc 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName" : "exampletopic1", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "202": {}, diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json index 35ff2e4fa0b3..6276472f2473 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName": "exampletopic2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json index a5c32d869feb..ddf94abc4b13 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json index f572f1329bdd..6e68b096a00c 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json index 2e90a053001e..41525190daf2 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json @@ -5,7 +5,7 @@ "providerNamespace": "Microsoft.Storage", "resourceTypeName": "storageAccounts", "resourceName": "ExampleStorageAccount", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json index 4721e171a150..789d18d42295 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName" : "exampletopic2", - "api-version": "2019-01-01" + "api-version": "2019-06-01" }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json index 8d6c31538807..29fc7d6c29df 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName" : "exampletopic2", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "regenerateKeyRequest": { "keyName": "key1" } diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json index 201db2cf43a5..11548c552af8 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "topicName": "exampletopic1", - "api-version": "2019-01-01", + "api-version": "2019-06-01", "topicUpdateParameters": { "tags": { "tag1": "value1", diff --git a/specification/eventgrid/resource-manager/readme.go.md b/specification/eventgrid/resource-manager/readme.go.md index fe14866459e2..17c127343ad0 100644 --- a/specification/eventgrid/resource-manager/readme.go.md +++ b/specification/eventgrid/resource-manager/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2019-06 - tag: package-2019-02-preview - tag: package-2019-01 - tag: package-2018-09-preview @@ -22,6 +23,15 @@ batch: - tag: package-2017-06-preview ``` +### Tag: package-2019-06 and go + +These settings apply only when `--tag=package-2019-06 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(go) +output-folder: $(go-sdk-folder)/services/stable/$(namespace)/mgmt/2019-06-01/$(namespace) +``` + ### Tag: package-2019-02-preview and go These settings apply only when `--tag=package-2019-02-preview --go` is specified on the command line. diff --git a/specification/eventgrid/resource-manager/readme.md b/specification/eventgrid/resource-manager/readme.md index 066004f04913..93f022192282 100644 --- a/specification/eventgrid/resource-manager/readme.md +++ b/specification/eventgrid/resource-manager/readme.md @@ -26,7 +26,16 @@ These are the global settings for the Azure EventGrid API. ``` yaml openapi-type: arm -tag: package-2019-02-preview +tag: package-2019-06 +``` + +### Tag: package-2019-06 + +These settings apply only when `--tag=package-2019-06` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06' +input-file: +- Microsoft.EventGrid/stable/2019-06-01/EventGrid.json ``` ### Tag: package-2019-02-preview @@ -205,6 +214,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-eventgrid ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-06 - tag: package-2019-02-preview - tag: package-2019-01 - tag: package-2018-09-preview @@ -212,6 +222,20 @@ batch: - tag: package-2018-01 ``` +### Tag: package-2019-06 and java + +These settings apply only when `--tag=package-2019-06 --java` is specified on the command line. + +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2019-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.eventgrid.v2019_02_01_preview + output-folder: $(azure-libraries-for-java-folder)/eventgrid/resource-manager/v2019_02_01_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2019-02-preview and java These settings apply only when `--tag=package-2019-02-preview --java` is specified on the command line. diff --git a/specification/eventgrid/resource-manager/readme.ruby.md b/specification/eventgrid/resource-manager/readme.ruby.md index 52e68a33738d..f14781bc1c0d 100644 --- a/specification/eventgrid/resource-manager/readme.ruby.md +++ b/specification/eventgrid/resource-manager/readme.ruby.md @@ -12,6 +12,7 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: + - tag: package-2019-06 - tag: package-2019-02-preview - tag: package-2019-01 - tag: package-2018-09-preview @@ -21,6 +22,16 @@ batch: - tag: package-2017-06-preview ``` +### Tag: package-2019-06 and ruby +These settings apply only when `--tag=package-2019-06 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(ruby) + +namespace: "Azure::EventGrid::Mgmt::V2019_02_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_event_grid/lib +``` + ### Tag: package-2019-02-preview and ruby These settings apply only when `--tag=package-2019-02-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. From 476ebd879295f7a17e0ccc90f5685ee110dfd8bf Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Thu, 16 May 2019 23:42:20 -0700 Subject: [PATCH 3/7] address CR comments and fix example --- .../stable/2019-06-01/EventGrid.json | 2 +- .../2019-06-01/examples/DomainTopics_Get.json | 35 ++++++++-------- .../examples/DomainTopics_ListByDomain.json | 42 +++++++------------ 3 files changed, 32 insertions(+), 47 deletions(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json index 316e643dc703..d27e2718c6b8 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json @@ -3477,7 +3477,7 @@ "TopParameter": { "name": "$top", "in": "query", - "description": "The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 iterms per page.", + "description": "The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page.", "required": false, "type": "integer", "x-ms-parameter-location": "method" diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json index 38d961eb347e..72ee46095f71 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -1,21 +1,20 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain2", - "topicName": "topic1", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1", - "location": "westcentralus", - "name": "topic1", - "type": "Microsoft.EventGrid/domains/topics" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "topicName": "topic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1", + "name": "topic1", + "provisioningState": "Succeeded", + "resourceGroup": "examplerg", + "type": "Microsoft.EventGrid/domains/topics" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json index 3448dc9e82a8..d124c31f7bd5 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json @@ -8,34 +8,20 @@ "200": { "body": { "value": [ - { - "properties": { - "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", - "location": "westus2", - "name": "exampledomain1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", - "location": "westcentralus", - "name": "exampledomain2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1", + "name": "domainCli100topic1", + "provisioningState": "Succeeded", + "resourceGroup": "examplerg", + "type": "Microsoft.EventGrid/domains/topics" + }, + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2", + "name": "domainCli100topic2", + "provisioningState": "Succeeded", + "resourceGroup": "examplerg", + "type": "Microsoft.EventGrid/domains/topics" + } ] } } From 2f2f8f87cf78177f541f013606ce94f10a9c93b7 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Thu, 16 May 2019 23:58:21 -0700 Subject: [PATCH 4/7] fix test --- .../stable/2019-06-01/examples/DomainTopics_Get.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json index 72ee46095f71..e47e77c0b440 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -3,8 +3,9 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "domainName": "exampledomain2", - "topicName": "topic1", + "domainTopicName": "topic1", "api-version": "2019-06-01" + }, "responses": { "200": { From 20fc5d64954b49dd734028f9c9226642bef43002 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Fri, 17 May 2019 00:09:04 -0700 Subject: [PATCH 5/7] fix example --- .../stable/2019-06-01/examples/DomainTopics_Get.json | 4 +++- .../2019-06-01/examples/DomainTopics_ListByDomain.json | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json index e47e77c0b440..6af6f07a31c6 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -12,7 +12,9 @@ "body": { "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1", "name": "topic1", - "provisioningState": "Succeeded", + "properties": { + "provisioningState": "Succeeded" + }, "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" } diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json index d124c31f7bd5..d1a4dd77ec74 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json @@ -11,14 +11,18 @@ { "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1", "name": "domainCli100topic1", - "provisioningState": "Succeeded", + "properties": { + "provisioningState": "Succeeded" + }, "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" }, { "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2", "name": "domainCli100topic2", - "provisioningState": "Succeeded", + "properties": { + "provisioningState": "Succeeded" + }, "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" } From 5229f07d8aaeeeddef942e419840512e8d5e6aca Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Fri, 17 May 2019 00:18:02 -0700 Subject: [PATCH 6/7] fix example --- .../stable/2019-06-01/examples/DomainTopics_Get.json | 1 - .../2019-06-01/examples/DomainTopics_ListByDomain.json | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json index 6af6f07a31c6..8c70abd17d85 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -15,7 +15,6 @@ "properties": { "provisioningState": "Succeeded" }, - "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" } } diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json index d1a4dd77ec74..4808ac0ab308 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json @@ -2,8 +2,9 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", + "domainName": "exampledomain2", "api-version": "2019-06-01" - }, + }, "responses": { "200": { "body": { @@ -14,7 +15,6 @@ "properties": { "provisioningState": "Succeeded" }, - "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" }, { @@ -23,7 +23,6 @@ "properties": { "provisioningState": "Succeeded" }, - "resourceGroup": "examplerg", "type": "Microsoft.EventGrid/domains/topics" } ] From d0fda3b36ba8c53871125d1fd5de016f60f514f0 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Fri, 17 May 2019 12:00:57 -0700 Subject: [PATCH 7/7] Add missing examples and fix others --- .../stable/2019-06-01/EventGrid.json | 13 +- .../examples/DomainTopics_CreateOrUpdate.json | 36 ++-- .../examples/DomainTopics_Delete.json | 24 +-- .../2019-06-01/examples/DomainTopics_Get.json | 1 - .../examples/DomainTopics_ListByDomain.json | 58 +++---- .../examples/Domains_CreateOrUpdate.json | 60 +++---- .../2019-06-01/examples/Domains_Delete.json | 22 +-- .../2019-06-01/examples/Domains_Get.json | 46 ++--- .../examples/Domains_ListByResourceGroup.json | 80 ++++----- .../examples/Domains_ListBySubscription.json | 78 ++++----- .../Domains_ListSharedAccessKeys.json | 28 +-- .../examples/Domains_RegenerateKey.json | 34 ++-- .../2019-06-01/examples/Domains_Update.json | 58 +++---- ...ateForCustomTopic_EventHubDestination.json | 61 +++++++ ...stomTopic_HybridConnectionDestination.json | 61 +++++++ ...orCustomTopic_StorageQueueDestination.json | 63 +++++++ ...ateForCustomTopic_WebhookDestination.json} | 3 - ...bscriptions_CreateOrUpdateForResource.json | 87 +++++----- ...ptions_CreateOrUpdateForResourceGroup.json | 87 +++++----- ...iptions_CreateOrUpdateForSubscription.json | 83 +++++---- ...entSubscriptions_DeleteForCustomTopic.json | 22 +-- .../EventSubscriptions_DeleteForResource.json | 22 +-- ...tSubscriptions_DeleteForResourceGroup.json | 22 +-- ...ntSubscriptions_DeleteForSubscription.json | 22 +-- .../EventSubscriptions_GetForCustomTopic.json | 3 - .../EventSubscriptions_GetForResource.json | 67 ++++---- ...ventSubscriptions_GetForResourceGroup.json | 67 ++++---- ...EventSubscriptions_GetForSubscription.json | 67 ++++---- ...ubscriptions_GetFullUrlForCustomTopic.json | 24 +-- ...ntSubscriptions_GetFullUrlForResource.json | 24 +-- ...scriptions_GetFullUrlForResourceGroup.json | 24 +-- ...bscriptions_GetFullUrlForSubscription.json | 24 +-- .../EventSubscriptions_ListByDomainTopic.json | 159 ++++++++--------- .../EventSubscriptions_ListByResource.json | 161 +++++++++--------- ...bscriptions_ListGlobalByResourceGroup.json | 110 ++++++------ ...ListGlobalByResourceGroupForTopicType.json | 77 ++++----- ...ubscriptions_ListGlobalBySubscription.json | 108 ++++++------ ..._ListGlobalBySubscriptionForTopicType.json | 75 ++++---- ...criptions_ListRegionalByResourceGroup.json | 128 +++++++------- ...stRegionalByResourceGroupForTopicType.json | 130 +++++++------- ...scriptions_ListRegionalBySubscription.json | 126 +++++++------- ...istRegionalBySubscriptionForTopicType.json | 128 +++++++------- ...entSubscriptions_UpdateForCustomTopic.json | 99 ++++++----- .../EventSubscriptions_UpdateForResource.json | 93 +++++----- ...tSubscriptions_UpdateForResourceGroup.json | 93 +++++----- ...ntSubscriptions_UpdateForSubscription.json | 93 +++++----- .../2019-06-01/examples/Operations_List.json | 160 ++++++++--------- .../2019-06-01/examples/TopicTypes_Get.json | 38 ++--- .../2019-06-01/examples/TopicTypes_List.json | 68 ++++---- .../examples/TopicTypes_ListEventTypes.json | 62 +++---- .../examples/Topics_CreateOrUpdate.json | 60 +++---- .../2019-06-01/examples/Topics_Delete.json | 22 +-- .../2019-06-01/examples/Topics_Get.json | 46 ++--- .../examples/Topics_ListByResourceGroup.json | 80 ++++----- .../examples/Topics_ListBySubscription.json | 78 ++++----- .../examples/Topics_ListEventTypes.json | 70 ++++---- .../examples/Topics_ListSharedAccessKeys.json | 28 +-- .../examples/Topics_RegenerateKey.json | 34 ++-- .../2019-06-01/examples/Topics_Update.json | 58 +++---- 59 files changed, 1926 insertions(+), 1829 deletions(-) create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json rename specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/{EventSubscriptions_CreateOrUpdateForCustomTopic.json => EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json} (95%) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json index d27e2718c6b8..d5a279e11476 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json @@ -816,8 +816,17 @@ "EventSubscriptions_CreateOrUpdateForResource": { "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResource.json" }, - "EventSubscriptions_CreateOrUpdateForCustomTopic": { - "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json" + "EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json" + }, + "EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination": { + "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json" } }, "x-ms-long-running-operation": true diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json index 43b73d61cd33..4e14eb5ed95d 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_CreateOrUpdate.json @@ -1,21 +1,21 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain1", - "domainTopicName": "exampledomaintopic1", - "api-version": "2019-06-01" - }, - "responses": { - "201": { - "body": { - "properties": { - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1/topics/exampledomaintopic1", - "name": "exampledomaintopic1", - "type": "Microsoft.EventGrid/domains/topics" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "domainTopicName": "exampledomaintopic1", + "api-version": "2019-06-01" + }, + "responses": { + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1/topics/exampledomaintopic1", + "name": "exampledomaintopic1", + "type": "Microsoft.EventGrid/domains/topics" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json index cef84a5b5acc..4bcb46b523ad 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Delete.json @@ -1,13 +1,13 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName" : "exampledomain1", - "domainTopicName" : "exampledomaintopic1", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {} - } -} + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "domainTopicName": "exampledomaintopic1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json index 8c70abd17d85..023ceb858337 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_Get.json @@ -5,7 +5,6 @@ "domainName": "exampledomain2", "domainTopicName": "topic1", "api-version": "2019-06-01" - }, "responses": { "200": { diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json index 4808ac0ab308..1dd9334d7137 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/DomainTopics_ListByDomain.json @@ -1,32 +1,32 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1", - "name": "domainCli100topic1", - "properties": { - "provisioningState": "Succeeded" - }, - "type": "Microsoft.EventGrid/domains/topics" - }, - { - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2", - "name": "domainCli100topic2", - "properties": { - "provisioningState": "Succeeded" - }, - "type": "Microsoft.EventGrid/domains/topics" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1", + "name": "domainCli100topic1", + "properties": { + "provisioningState": "Succeeded" + }, + "type": "Microsoft.EventGrid/domains/topics" + }, + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2", + "name": "domainCli100topic2", + "properties": { + "provisioningState": "Succeeded" + }, + "type": "Microsoft.EventGrid/domains/topics" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json index 4c5e701e2b11..de01ac001907 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_CreateOrUpdate.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain1", - "api-version": "2019-06-01", - "domainInfo": { - "location": "westus2", - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", - "location": "westus2", - "name": "exampledomain1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "api-version": "2019-06-01", + "domainInfo": { + "location": "westus2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json index 01aad8301fdf..b07476de8450 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Delete.json @@ -1,12 +1,12 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName" : "exampledomain1", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {} - } -} + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json index 6272e170a782..14101cf06bdc 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", - "location": "westcentralus", - "name": "exampledomain2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json index 3448dc9e82a8..e066c32f9249 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListByResourceGroup.json @@ -1,43 +1,43 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", - "location": "westus2", - "name": "exampledomain1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", - "location": "westcentralus", - "name": "exampledomain2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + }, + { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json index e3c0689a042a..0a29f38258ff 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListBySubscription.json @@ -1,42 +1,42 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", - "location": "westus2", - "name": "exampledomain1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", - "location": "westcentralus", - "name": "exampledomain2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + }, + { + "properties": { + "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", + "location": "westcentralus", + "name": "exampledomain2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json index 921eeea293b9..3f4229f816c8 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_ListSharedAccessKeys.json @@ -1,16 +1,16 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName" : "exampledomain2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", - "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json index 99f15a050785..43cf899ae3e4 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_RegenerateKey.json @@ -1,19 +1,19 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName" : "exampledomain2", - "api-version": "2019-06-01", - "regenerateKeyRequest": { - "keyName": "key1" - } - }, - "responses": { - "200": { - "body": { - "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", - "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain2", + "api-version": "2019-06-01", + "regenerateKeyRequest": { + "keyName": "key1" } -} + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json index 6ee668345654..3c4ab3ec3e36 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Domains_Update.json @@ -1,32 +1,32 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "exampledomain1", - "api-version": "2019-06-01", - "domainUpdateParameters": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", - "location": "westus2", - "name": "exampledomain1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/domains" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "exampledomain1", + "api-version": "2019-06-01", + "domainUpdateParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", + "location": "westus2", + "name": "exampledomain1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/domains" + } + } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json new file mode 100644 index 000000000000..fbd46557435b --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "EventHub", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json new file mode 100644 index 000000000000..594d4408985f --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "HybridConnection", + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" + }, + "endpointType": "HybridConnection" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json new file mode 100644 index 000000000000..d341ac90c2f1 --- /dev/null +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "StorageQueue", + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "queueName": "queue1" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "queueName": "queue1" + }, + "endpointType": "StorageQueue" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "provisioningState": "Creating", + "labels": null, + "deadLetterDestination": { + "endpointType": "StorageBlob", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", + "blobContainerName": "contosocontainer" + } + } + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json similarity index 95% rename from specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json rename to specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json index fa4d1d6a1719..e1099790d600 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json @@ -30,9 +30,6 @@ "endpointType": "WebHook" }, "filter": { - "includedEventTypes": [ - "All" - ], "isSubjectCaseSensitive": false, "subjectBeginsWith": "ExamplePrefix", "subjectEndsWith": "ExampleSuffix" diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json index 5c0d84256eac..2237aac8fbe1 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json @@ -1,49 +1,46 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", - "eventSubscriptionName": "examplesubscription10", - "api-version": "2019-06-01", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", - "name": "examplesubscription10", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription10", + "api-version": "2019-06-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json index fb8ae39ff4b9..97dba3beafc5 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json @@ -1,49 +1,46 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", - "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-06-01", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-06-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json index 65a5183ee2a9..a932b5fb8608 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json @@ -1,47 +1,44 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-06-01", - "eventSubscriptionInfo": { - "properties": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": false - } - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-06-01", + "eventSubscriptionInfo": { + "properties": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" + } + }, + "filter": { + "isSubjectCaseSensitive": false } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json index 3713dbd8cf45..38a40dd58af7 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json @@ -1,12 +1,12 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {}, - "200": {} - } -} + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json index 952558393dcc..691c7d06245a 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResource.json @@ -1,12 +1,12 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", - "eventSubscriptionName": "examplesubscription10", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {}, - "200": {} - } -} + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription10", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json index b5c0b772f465..5ef8e7ba72d9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json @@ -1,12 +1,12 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", - "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {}, - "200": {} - } -} + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json index 6aee4ebd76de..4618dd3e39ef 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_DeleteForSubscription.json @@ -1,12 +1,12 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {}, - "200": {} - } -} + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json index 8c423994dca1..7c5c1eb5ceae 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForCustomTopic.json @@ -15,9 +15,6 @@ "endpointType": "WebHook" }, "filter": { - "includedEventTypes": [ - "All" - ], "isSubjectCaseSensitive": false, "subjectBeginsWith": "ExamplePrefix", "subjectEndsWith": "ExampleSuffix" diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json index ae87108651a2..38fe1ad9f9b0 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResource.json @@ -1,38 +1,35 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "destination": { - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" - }, - "endpointType": "EventHub" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "label1", - "label2" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json index 69eec5b9a9f4..6334e2e6d7ff 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForResourceGroup.json @@ -1,38 +1,35 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", - "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "label1", - "label2" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json index c1c17ab45be6..a4ac7efbad55 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetForSubscription.json @@ -1,38 +1,35 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "label1", - "label2" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json index 52b9aec44ddd..de57336d57e5 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json @@ -1,14 +1,14 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "endpointUrl": "https://requestb.in/15ksip71" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json index 44c0fc3e773f..5a29ebfe477b 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResource.json @@ -1,14 +1,14 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "endpointUrl": "https://requestb.in/15ksip71" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json index 6ae299afc2da..8f7009b7e2ad 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json @@ -1,14 +1,14 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", - "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "endpointUrl": "https://requestb.in/15ksip71" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json index e7758e590920..eb8fbbde848a 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json @@ -1,14 +1,14 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "endpointUrl": "https://requestb.in/15ksip71" - } - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "endpointUrl": "https://requestb.in/15ksip71" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json index 52482e117013..0bc01ab22a3c 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByDomainTopic.json @@ -1,87 +1,78 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "domainName": "domain1", - "topicName": "topic1", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "domainName": "domain1", + "topicName": "topic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json index 3879f78ac070..8c4991903dd2 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListByResource.json @@ -1,88 +1,79 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "providerNamespace": "Microsoft.EventGrid", - "resourceTypeName": "topics", - "resourceName": "exampletopic2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerNamespace": "Microsoft.EventGrid", + "resourceTypeName": "topics", + "resourceName": "exampletopic2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json index 092816c06fa4..0cc7445c9ba1 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json @@ -1,61 +1,55 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", - "name": "examplesubscription4", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", + "name": "examplesubscription4", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json index 32af2ca2c5ac..01cb5dfe623c 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json @@ -1,43 +1,40 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicTypeName": "Microsoft.Resources.ResourceGroups", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicTypeName": "Microsoft.Resources.ResourceGroups", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json index def235600819..77ebc79b7866 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json @@ -1,60 +1,54 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", - "name": "examplesubscription4", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "", + "subjectEndsWith": "" + }, + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4", + "name": "examplesubscription4", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json index 2512d56a48a3..4fae8b727b6b 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json @@ -1,42 +1,39 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "topicTypeName": "Microsoft.Resources.Subscriptions", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "topicTypeName": "Microsoft.Resources.Subscriptions", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json index 84cd4eea915f..89761d662288 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json @@ -1,70 +1,64 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "location": "westus2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", - "name": "examplesubscription10", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", - "name": "examplesubscription11", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "location": "westus2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json index 0bac44e51cd4..f1271083d87a 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json @@ -1,71 +1,65 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "location": "westus2", - "topicTypeName": "Microsoft.EventHub.namespaces", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", - "name": "examplesubscription10", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", - "name": "examplesubscription11", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "location": "westus2", + "topicTypeName": "Microsoft.EventHub.namespaces", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json index f974f2d8a345..74d0ce2d2a22 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json @@ -1,69 +1,63 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "location": "westus2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" - }, - "endpointType": "EventHub" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", - "name": "examplesubscription10", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", - "name": "examplesubscription11", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "location": "westus2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" + }, + "endpointType": "EventHub" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json index 1a5888b79d22..8696a872566f 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json @@ -1,70 +1,64 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "location": "westus2", - "topicTypeName": "Microsoft.EventHub.namespaces", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", - "name": "examplesubscription10", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": false, - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix" - }, - "labels": [ - "Finance", - "HR" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", - "name": "examplesubscription11", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "location": "westus2", + "topicTypeName": "Microsoft.EventHub.namespaces", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", + "name": "examplesubscription10", + "type": "Microsoft.EventGrid/eventSubscriptions" + }, + { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": false, + "subjectBeginsWith": "ExamplePrefix", + "subjectEndsWith": "ExampleSuffix" + }, + "labels": [ + "Finance", + "HR" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11", + "name": "examplesubscription11", + "type": "Microsoft.EventGrid/eventSubscriptions" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json index b52da186581f..6a16d099a504 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json @@ -1,55 +1,52 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01", - "eventSubscriptionUpdateParameters": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [ - "label1", - "label2" - ] - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [ - "label1", - "label2" - ], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json index ea2535a02e4e..5ae99b02a4dd 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResource.json @@ -1,52 +1,49 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", - "eventSubscriptionName": "examplesubscription1", - "api-version": "2019-06-01", - "eventSubscriptionUpdateParameters": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [ - "label1", - "label2" - ] - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", - "name": "examplesubscription1", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", + "eventSubscriptionName": "examplesubscription1", + "api-version": "2019-06-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", + "name": "examplesubscription1", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json index ab92d4fd53db..bc366adb543b 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json @@ -1,52 +1,49 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", - "eventSubscriptionName": "examplesubscription2", - "api-version": "2019-06-01", - "eventSubscriptionUpdateParameters": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" - } - }, - "filter": { - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [ - "label1", - "label2" - ] - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", + "eventSubscriptionName": "examplesubscription2", + "api-version": "2019-06-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "EventHub", + "properties": { + "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", + "name": "examplesubscription2", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json index 2e21a3d86599..104007370dd9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/EventSubscriptions_UpdateForSubscription.json @@ -1,52 +1,49 @@ { - "parameters": { - "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "eventSubscriptionName": "examplesubscription3", - "api-version": "2019-06-01", - "eventSubscriptionUpdateParameters": { - "destination": { - "endpointType": "WebHook", - "properties": { - "endpointUrl": "https://requestb.in/15ksip71" - } - }, - "filter": { - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [ - "label1", - "label2" - ] - } - }, - "responses": { - "201": { - "body": { - "properties": { - "destination": { - "properties": { - "endpointBaseUrl": "https://requestb.in/15ksip71" - }, - "endpointType": "WebHook" - }, - "filter": { - "includedEventTypes": [ - "All" - ], - "isSubjectCaseSensitive": true, - "subjectBeginsWith": "existingPrefix", - "subjectEndsWith": "newSuffix" - }, - "labels": [], - "provisioningState": "Succeeded", - "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - } + "parameters": { + "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "eventSubscriptionName": "examplesubscription3", + "api-version": "2019-06-01", + "eventSubscriptionUpdateParameters": { + "destination": { + "endpointType": "WebHook", + "properties": { + "endpointUrl": "https://requestb.in/15ksip71" } + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [ + "label1", + "label2" + ] + } + }, + "responses": { + "201": { + "body": { + "properties": { + "destination": { + "properties": { + "endpointBaseUrl": "https://requestb.in/15ksip71" + }, + "endpointType": "WebHook" + }, + "filter": { + "isSubjectCaseSensitive": true, + "subjectBeginsWith": "existingPrefix", + "subjectEndsWith": "newSuffix" + }, + "labels": [], + "provisioningState": "Succeeded", + "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", + "name": "examplesubscription3", + "type": "Microsoft.EventGrid/eventSubscriptions" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json index f2515cf7f237..baa659534cb2 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Operations_List.json @@ -1,83 +1,83 @@ { - "parameters": { - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.EventGrid/register/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventGrid Resource Provider", - "operation": "Registers the EventGrid Resource Provider", - "description": "Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions." - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write EventSubscription", - "description": "Create or update a eventSubscription" - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read EventSubscription", - "description": "Read a eventSubscription" - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete EventSubscription", - "description": "Delete a eventSubscription" - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/topics/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Write Topic", - "description": "Create or update a topic" - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/topics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Read Topic", - "description": "Read a topic" - }, - "origin": "UserAndSystem" - }, - { - "name": "Microsoft.EventGrid/topics/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Delete Topic", - "description": "Delete a topic" - }, - "origin": "UserAndSystem" - } - ] - } - } + "parameters": { + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.EventGrid/register/action", + "display": { + "provider": "Microsoft Event Grid", + "resource": "EventGrid Resource Provider", + "operation": "Registers the EventGrid Resource Provider", + "description": "Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions." + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/write", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Write EventSubscription", + "description": "Create or update a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/read", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Read EventSubscription", + "description": "Read a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/eventSubscriptions/delete", + "display": { + "provider": "Microsoft Event Grid", + "resource": "eventSubscriptions", + "operation": "Delete EventSubscription", + "description": "Delete a eventSubscription" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/write", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Write Topic", + "description": "Create or update a topic" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/read", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Read Topic", + "description": "Read a topic" + }, + "origin": "UserAndSystem" + }, + { + "name": "Microsoft.EventGrid/topics/delete", + "display": { + "provider": "Microsoft Event Grid", + "resource": "topics", + "operation": "Delete Topic", + "description": "Delete a topic" + }, + "origin": "UserAndSystem" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json index d7fbd8c94eac..817a670bf63a 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_Get.json @@ -1,22 +1,22 @@ { - "parameters": { - "topicTypeName": "Microsoft.Storage.StorageAccounts", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "description": "Microsoft Storage service events.", - "displayName": "Storage Accounts", - "provider": "Microsoft.Storage", - "provisioningState": "Succeeded", - "resourceRegionType": "RegionalResource" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", - "name": "Microsoft.Storage.StorageAccounts", - "type": "Microsoft.EventGrid/topicTypes" - } - } + "parameters": { + "topicTypeName": "Microsoft.Storage.StorageAccounts", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "Microsoft Storage service events.", + "displayName": "Storage Accounts", + "provider": "Microsoft.Storage", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", + "name": "Microsoft.Storage.StorageAccounts", + "type": "Microsoft.EventGrid/topicTypes" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json index 56e0b9551ca4..765b6119b817 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_List.json @@ -1,37 +1,37 @@ { - "parameters": { - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "description": "Microsoft EventHubs service events.", - "displayName": "EventHubs Namespace", - "provider": "Microsoft.Eventhub", - "provisioningState": "Succeeded", - "resourceRegionType": "RegionalResource" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces", - "name": "Microsoft.Eventhub.Namespaces", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "description": "Microsoft Storage service events.", - "displayName": "Storage Accounts", - "provider": "Microsoft.Storage", - "provisioningState": "Succeeded", - "resourceRegionType": "RegionalResource" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", - "name": "Microsoft.Storage.StorageAccounts", - "type": "Microsoft.EventGrid/topicTypes" - } - ] - } - } + "parameters": { + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Microsoft EventHubs service events.", + "displayName": "EventHubs Namespace", + "provider": "Microsoft.Eventhub", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces", + "name": "Microsoft.Eventhub.Namespaces", + "type": "Microsoft.EventGrid/topicTypes" + }, + { + "properties": { + "description": "Microsoft Storage service events.", + "displayName": "Storage Accounts", + "provider": "Microsoft.Storage", + "provisioningState": "Succeeded", + "resourceRegionType": "RegionalResource" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", + "name": "Microsoft.Storage.StorageAccounts", + "type": "Microsoft.EventGrid/topicTypes" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json index f3a82fd39ec5..f95ec0b3ad52 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/TopicTypes_ListEventTypes.json @@ -1,34 +1,34 @@ { - "parameters": { - "topicTypeName": "Microsoft.Storage.StorageAccounts", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "Blob Created", - "description": "Raised when a blob is created.", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", - "name": "Microsoft.Storage.BlobCreated", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "description": "Raised when a blob is deleted.", - "schemaUrl": "tbd", - "displayName": "Blob Deleted" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", - "name": "Microsoft.Storage.BlobDeleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - } - ] - } - } + "parameters": { + "topicTypeName": "Microsoft.Storage.StorageAccounts", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "Blob Created", + "description": "Raised when a blob is created.", + "schemaUrl": "tbd" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", + "name": "Microsoft.Storage.BlobCreated", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + }, + { + "properties": { + "description": "Raised when a blob is deleted.", + "schemaUrl": "tbd", + "displayName": "Blob Deleted" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", + "name": "Microsoft.Storage.BlobDeleted", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json index e9861e6a1dac..2ac1ad2898a6 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_CreateOrUpdate.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName": "exampletopic1", - "api-version": "2019-06-01", - "topicInfo": { - "location": "westus2", - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "location": "westus2", - "name": "exampletopic1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic1", + "api-version": "2019-06-01", + "topicInfo": { + "location": "westus2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json index bf6de06e57cc..4c5d8c5aa208 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Delete.json @@ -1,12 +1,12 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName" : "exampletopic1", - "api-version": "2019-06-01" - }, - "responses": { - "202": {}, - "204": {} - } -} + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic1", + "api-version": "2019-06-01" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json index 6276472f2473..c672b5dab142 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName": "exampletopic2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", - "location": "westcentralus", - "name": "exampletopic2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json index ddf94abc4b13..aeaa17a17d6f 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListByResourceGroup.json @@ -1,43 +1,43 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "location": "westus2", - "name": "exampletopic1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - }, - { - "properties": { - "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", - "location": "westcentralus", - "name": "exampletopic2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + }, + { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json index 6e68b096a00c..f32eb128a7e9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListBySubscription.json @@ -1,42 +1,42 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "location": "westus2", - "name": "exampletopic1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - }, - { - "properties": { - "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", - "location": "westcentralus", - "name": "exampletopic2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + }, + { + "properties": { + "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", + "location": "westcentralus", + "name": "exampletopic2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json index 41525190daf2..02586f4b7ab9 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListEventTypes.json @@ -1,38 +1,38 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "providerNamespace": "Microsoft.Storage", - "resourceTypeName": "storageAccounts", - "resourceName": "ExampleStorageAccount", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "description": "Raised when a blob is created.", - "schemaUrl": "tbd", - "displayName": "Blob Created" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", - "name": "Microsoft.Storage.BlobCreated", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "description": "Raised when a blob is deleted.", - "schemaUrl": "tbd", - "displayName": "Blob Deleted" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", - "name": "Microsoft.Storage.BlobDeleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - } - ] - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerNamespace": "Microsoft.Storage", + "resourceTypeName": "storageAccounts", + "resourceName": "ExampleStorageAccount", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Raised when a blob is created.", + "schemaUrl": "tbd", + "displayName": "Blob Created" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", + "name": "Microsoft.Storage.BlobCreated", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + }, + { + "properties": { + "description": "Raised when a blob is deleted.", + "schemaUrl": "tbd", + "displayName": "Blob Deleted" + }, + "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", + "name": "Microsoft.Storage.BlobDeleted", + "type": "Microsoft.EventGrid/topicTypes/eventTypes" + } + ] + } } + } } \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json index 789d18d42295..138c73d5f532 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_ListSharedAccessKeys.json @@ -1,16 +1,16 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName" : "exampletopic2", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "body": { - "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", - "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic2", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } } -} + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json index 29fc7d6c29df..ebae797070c5 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_RegenerateKey.json @@ -1,19 +1,19 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName" : "exampletopic2", - "api-version": "2019-06-01", - "regenerateKeyRequest": { - "keyName": "key1" - } - }, - "responses": { - "200": { - "body": { - "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", - "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic2", + "api-version": "2019-06-01", + "regenerateKeyRequest": { + "keyName": "key1" } -} + }, + "responses": { + "200": { + "body": { + "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", + "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json index 11548c552af8..eb61883fb087 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-06-01/examples/Topics_Update.json @@ -1,32 +1,32 @@ { - "parameters": { - "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "resourceGroupName": "examplerg", - "topicName": "exampletopic1", - "api-version": "2019-06-01", - "topicUpdateParameters": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", - "location": "westus2", - "name": "exampletopic1", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "type": "Microsoft.EventGrid/topics" - } - } + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "topicName": "exampletopic1", + "api-version": "2019-06-01", + "topicUpdateParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } } + }, + "responses": { + "201": { + "body": { + "properties": { + "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", + "location": "westus2", + "name": "exampletopic1", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.EventGrid/topics" + } + } + } } \ No newline at end of file