diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionEndpoints_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionEndpoints_API.json new file mode 100644 index 000000000000..77b785c40fa4 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionEndpoints_API.json @@ -0,0 +1,576 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Monitor Data Collection Endpoints API", + "description": "Provides operations for working with Azure Monitor data collection endpoints", + "version": "2021-04-01", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints": { + "get": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Lists all data collection endpoints in the specified resource group.", + "operationId": "DataCollectionEndpoints_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResourceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List data collection endpoints by resource group": { + "$ref": "./examples/DataCollectionEndpointsListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints": { + "get": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Lists all data collection endpoints in the specified subscription", + "operationId": "DataCollectionEndpoints_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResourceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List data collection endpoints by subscription": { + "$ref": "./examples/DataCollectionEndpointsListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}": { + "get": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Returns the specified data collection endpoint.", + "operationId": "DataCollectionEndpoints_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DataCollectionEndpointNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get data collection endpoint": { + "$ref": "./examples/DataCollectionEndpointsGet.json" + } + } + }, + "put": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Creates or updates a data collection endpoint.", + "operationId": "DataCollectionEndpoints_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DataCollectionEndpointNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The payload", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Data collection endpoint was successfully updated", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + }, + "201": { + "description": "Data collection endpoint was successfully created", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update data collection endpoint": { + "$ref": "./examples/DataCollectionEndpointsCreate.json" + } + } + }, + "patch": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Updates part of a data collection endpoint.", + "operationId": "DataCollectionEndpoints_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DataCollectionEndpointNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The payload", + "schema": { + "$ref": "#/definitions/ResourceForUpdate" + } + } + ], + "responses": { + "200": { + "description": "Data collection endpoint was successfully updated", + "schema": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update data collection endpoint": { + "$ref": "./examples/DataCollectionEndpointsUpdate.json" + } + } + }, + "delete": { + "tags": [ + "DataCollectionEndpoints" + ], + "summary": "Deletes a data collection endpoint.", + "operationId": "DataCollectionEndpoints_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DataCollectionEndpointNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Data collection endpoint was successfully deleted" + }, + "204": { + "description": "Data collection endpoint did not exist" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete data collection endpoint": { + "$ref": "./examples/DataCollectionEndpointsDelete.json" + } + } + } + } + }, + "definitions": { + "ConfigurationAccessEndpointSpec": { + "description": "Definition of the endpoint used for accessing configuration.", + "type": "object", + "properties": { + "endpoint": { + "description": "The endpoint. This property is READ-ONLY.", + "type": "string", + "readOnly": true, + "example": "https://mydce-abcd.eastus-1.control.monitor.azure.com", + "x-ms-mutability": [ + "read" + ] + } + } + }, + "LogsIngestionEndpointSpec": { + "description": "Definition of the endpoint used for ingesting logs.", + "type": "object", + "properties": { + "endpoint": { + "description": "The endpoint. This property is READ-ONLY.", + "type": "string", + "readOnly": true, + "example": "https://mydce-abcd.eastus-1.ingest.monitor.azure.com", + "x-ms-mutability": [ + "read" + ] + } + } + }, + "NetworkRuleSet": { + "description": "Definition of the network rules.", + "type": "object", + "properties": { + "publicNetworkAccess": { + "description": "The configuration to set whether network access from public internet to the endpoints are allowed.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "KnownPublicNetworkAccessOptions", + "modelAsString": true + } + } + } + }, + "DataCollectionEndpoint": { + "description": "Definition of data collection endpoint.", + "type": "object", + "properties": { + "description": { + "description": "Description of the data collection endpoint.", + "type": "string" + }, + "immutableId": { + "description": "The immutable ID of this data collection endpoint resource. This property is READ-ONLY.", + "type": "string", + "example": "dce-b74e0d383fc9415abaa584ec41adece3" + }, + "configurationAccess": { + "description": "The endpoint used by agents to access their configuration.", + "allOf": [ + { + "$ref": "#/definitions/ConfigurationAccessEndpointSpec" + } + ] + }, + "logsIngestion": { + "description": "The endpoint used by clients to ingest logs.", + "allOf": [ + { + "$ref": "#/definitions/LogsIngestionEndpointSpec" + } + ] + }, + "networkAcls": { + "description": "Network access control rules for the endpoints.", + "allOf": [ + { + "$ref": "#/definitions/NetworkRuleSet" + } + ] + }, + "provisioningState": { + "description": "The resource provisioning state. This property is READ-ONLY.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed" + ], + "type": "string", + "readOnly": true, + "example": "Creating", + "x-ms-enum": { + "name": "KnownDataCollectionEndpointProvisioningState", + "modelAsString": true + }, + "x-ms-mutability": [ + "read" + ] + } + } + }, + "DataCollectionEndpointResource": { + "description": "Definition of ARM tracked top level resource.", + "required": [ + "location" + ], + "type": "object", + "properties": { + "properties": { + "description": "Resource properties.", + "allOf": [ + { + "$ref": "#/definitions/DataCollectionEndpoint" + } + ], + "x-ms-client-flatten": true + }, + "location": { + "description": "The geo-location where the resource lives.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kind": { + "description": "The kind of the resource.", + "enum": [ + "Linux", + "Windows" + ], + "type": "string", + "example": "Linux", + "x-ms-enum": { + "name": "KnownDataCollectionEndpointResourceKind", + "modelAsString": true + } + }, + "id": { + "description": "Fully qualified ID of the resource.", + "type": "string", + "readOnly": true, + "example": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "x-ms-mutability": [ + "read" + ] + }, + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true, + "example": "myCollectionEndpoint", + "x-ms-mutability": [ + "read" + ] + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true, + "example": "Microsoft.Insights/dataCollectionEndpoints", + "x-ms-mutability": [ + "read" + ] + }, + "etag": { + "description": "Resource entity tag (ETag).", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + ], + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + } + }, + "x-ms-azure-resource": true + }, + "DataCollectionEndpointResourceListResult": { + "description": "A pageable list of resources.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "A list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/DataCollectionEndpointResource" + } + }, + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string" + } + } + }, + "ResourceForUpdate": { + "description": "Definition of ARM tracked top level resource properties for update operation.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "parameters": { + "DataCollectionEndpointNameParameter": { + "in": "path", + "name": "dataCollectionEndpointName", + "description": "The name of the data collection endpoint. The name is case insensitive.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRuleAssociations_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRuleAssociations_API.json index 7aba75e971a1..61ae89f8e81e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRuleAssociations_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRuleAssociations_API.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Monitor Data Collection Rule Associations API", "description": "Provides operations for working with Azure Monitor data collection rule associations", - "version": "2019-11-01-preview", + "version": "2021-04-01", "x-ms-code-generation-settings": { "name": "MonitorManagementClient" } @@ -263,6 +263,11 @@ "type": "string", "example": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule" }, + "dataCollectionEndpointId": { + "description": "The resource ID of the data collection endpoint that is to be associated.", + "type": "string", + "example": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint" + }, "provisioningState": { "description": "The resource provisioning state.", "enum": [ @@ -332,6 +337,18 @@ "x-ms-mutability": [ "read" ] + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + ], + "readOnly": true, + "x-ms-mutability": [ + "read" + ] } }, "x-ms-azure-resource": true diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json index ee1120b4af5e..35355020ccc7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Monitor Data Collection Rules API", "description": "Provides operations for working with Azure Monitor data collection rules", - "version": "2019-11-01-preview", + "version": "2021-04-01", "x-ms-code-generation-settings": { "name": "MonitorManagementClient" } @@ -773,6 +773,18 @@ "x-ms-mutability": [ "read" ] + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + ], + "readOnly": true, + "x-ms-mutability": [ + "read" + ] } }, "x-ms-azure-resource": true diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsCreate.json new file mode 100644 index 000000000000..dd848fc9eecc --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsCreate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "dataCollectionEndpointName": "myCollectionEndpoint", + "api-version": "2021-04-01", + "body": { + "location": "eastus", + "properties": { + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + }, + "201": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsDelete.json new file mode 100644 index 000000000000..bfce402e320e --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "dataCollectionEndpointName": "myCollectionEndpoint", + "api-version": "2021-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsGet.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsGet.json new file mode 100644 index 000000000000..5b4f1d838a3d --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "dataCollectionEndpointName": "myCollectionEndpoint", + "api-version": "2021-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListByResourceGroup.json new file mode 100644 index 000000000000..8a827e318674 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListByResourceGroup.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "api-version": "2021-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/herCollectionEndpoint", + "name": "herCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "westus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://hercollectionendpoint-xywz.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://hercollectionendpoint-xywz.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Disabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListBySubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListBySubscription.json new file mode 100644 index 000000000000..9680afc1df3c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListBySubscription.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "api-version": "2021-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/herCollectionEndpoint", + "name": "herCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "westus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://hercollectionendpoint-xywz.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://hercollectionendpoint-xywz.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Disabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsUpdate.json new file mode 100644 index 000000000000..f9ade7ef2adc --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "dataCollectionEndpointName": "myCollectionEndpoint", + "api-version": "2021-04-01", + "body": { + "tags": { + "tag1": "A", + "tag2": "B", + "tag3": "C" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint", + "name": "myCollectionEndpoint", + "type": "Microsoft.Insights/dataCollectionEndpoints", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B", + "tag3": "C" + }, + "properties": { + "configurationAccess": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.control.monitor.azure.com" + }, + "logsIngestion": { + "endpoint": "https://mycollectionendpoint-abcd.eastus-1.ingest.monitor.azure.com" + }, + "networkAcls": { + "publicNetworkAccess": "Enabled" + } + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsCreate.json index 4876e909994f..6f8c23202c87 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsCreate.json @@ -2,7 +2,7 @@ "parameters": { "resourceUri": "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm", "associationName": "myAssociation", - "api-version": "2019-11-01-preview", + "api-version": "2021-04-01", "body": { "properties": { "dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule" diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsDelete.json index c131dc605378..7b22da7da56f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsDelete.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsDelete.json @@ -2,7 +2,7 @@ "parameters": { "resourceUri": "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm", "associationName": "myAssociation", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": {}, diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json index a16f737e64d4..02d43da580ee 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json @@ -2,7 +2,7 @@ "parameters": { "resourceUri": "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm", "associationName": "myAssociation", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json index 682b4fa3cec0..c60c3df0ac6c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json @@ -1,7 +1,7 @@ { "parameters": { "resourceUri": "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json index 4e4ebb8559de..1eba2f640401 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json @@ -3,7 +3,7 @@ "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", "dataCollectionRuleName": "myCollectionRule", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json index bc0ec0180881..f62d904f51bc 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json @@ -3,7 +3,7 @@ "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", "dataCollectionRuleName": "myCollectionRule", - "api-version": "2019-11-01-preview", + "api-version": "2021-04-01", "body": { "location": "eastus", "properties": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json index 7d3a366d0c80..47de56ce55d3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", "dataCollectionRuleName": "myCollectionRule", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": {}, diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json index fbc3ded22da4..70b814e2e3b3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json @@ -3,7 +3,7 @@ "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", "dataCollectionRuleName": "myCollectionRule", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json index 4843d4810263..0e2fe88af923 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json index 58a188f48e35..0c2fa2fa9cea 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", - "api-version": "2019-11-01-preview" + "api-version": "2021-04-01" }, "responses": { "200": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json index 4c42feb17ce3..321cd70867d7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", "resourceGroupName": "myResourceGroup", "dataCollectionRuleName": "myCollectionRule", - "api-version": "2019-11-01-preview", + "api-version": "2021-04-01", "body": { "tags": { "tag1": "A",