Data Collection Endpoints - Create

Creates or updates a data collection endpoint.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}?api-version=2021-09-01-preview

URI Parameters

Name In Required Type Description
dataCollectionEndpointName
path True

string

The name of the data collection endpoint. The name is case insensitive.

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Required Type Description
location True

string

The geo-location where the resource lives.

kind

KnownDataCollectionEndpointResourceKind

The kind of the resource.

properties.configurationAccess

ConfigurationAccess

The endpoint used by clients to access their configuration.

properties.description

string

Description of the data collection endpoint.

properties.immutableId

string

The immutable ID of this data collection endpoint resource. This property is READ-ONLY.

properties.logsIngestion

LogsIngestion

The endpoint used by clients to ingest logs.

properties.networkAcls

NetworkAcls

Network access control rules for the endpoints.

tags

object

Resource tags.

Responses

Name Type Description
200 OK

DataCollectionEndpointResource

Data collection endpoint was successfully updated

201 Created

DataCollectionEndpointResource

Data collection endpoint was successfully created

Other Status Codes

ErrorResponseCommonV2

Error

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Create or update data collection endpoint

Sample Request

PUT https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint?api-version=2021-09-01-preview

{
  "location": "eastus",
  "properties": {
    "networkAcls": {
      "publicNetworkAccess": "Enabled"
    }
  }
}

Sample Response

{
  "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"
    }
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2021-04-01T12:34:56.1234567Z",
    "lastModifiedBy": "user2",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-04-02T12:34:56.1234567Z"
  },
  "etag": "070057da-0000-0000-0000-5ba70d6c0000"
}
{
  "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"
    }
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2021-04-01T12:34:56.1234567Z",
    "lastModifiedBy": "user2",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-04-02T12:34:56.1234567Z"
  },
  "etag": "070057da-0000-0000-0000-5ba70d6c0000"
}

Definitions

ConfigurationAccess

The endpoint used by clients to access their configuration.

createdByType

The type of identity that created the resource.

DataCollectionEndpointResource

Definition of ARM tracked top level resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponseCommonV2

Error response

KnownDataCollectionEndpointProvisioningState

The resource provisioning state. This property is READ-ONLY.

KnownDataCollectionEndpointResourceKind

The kind of the resource.

KnownPublicNetworkAccessOptions

The configuration to set whether network access from public internet to the endpoints are allowed.

LogsIngestion

The endpoint used by clients to ingest logs.

NetworkAcls

Network access control rules for the endpoints.

SystemData

Metadata pertaining to creation and last modification of the resource.

ConfigurationAccess

The endpoint used by clients to access their configuration.

Name Type Description
endpoint

string

The endpoint. This property is READ-ONLY.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

DataCollectionEndpointResource

Definition of ARM tracked top level resource.

Name Type Description
etag

string

Resource entity tag (ETag).

id

string

Fully qualified ID of the resource.

kind

KnownDataCollectionEndpointResourceKind

The kind of the resource.

location

string

The geo-location where the resource lives.

name

string

The name of the resource.

properties.configurationAccess

ConfigurationAccess

The endpoint used by clients to access their configuration.

properties.description

string

Description of the data collection endpoint.

properties.immutableId

string

The immutable ID of this data collection endpoint resource. This property is READ-ONLY.

properties.logsIngestion

LogsIngestion

The endpoint used by clients to ingest logs.

properties.networkAcls

NetworkAcls

Network access control rules for the endpoints.

properties.provisioningState

KnownDataCollectionEndpointProvisioningState

The resource provisioning state. This property is READ-ONLY.

systemData

SystemData

Metadata pertaining to creation and last modification of the resource.

tags

object

Resource tags.

type

string

The type of the resource.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponseCommonV2

Error response

Name Type Description
error

ErrorDetail

The error object.

KnownDataCollectionEndpointProvisioningState

The resource provisioning state. This property is READ-ONLY.

Name Type Description
Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

KnownDataCollectionEndpointResourceKind

The kind of the resource.

Name Type Description
Linux

string

Windows

string

KnownPublicNetworkAccessOptions

The configuration to set whether network access from public internet to the endpoints are allowed.

Name Type Description
Disabled

string

Enabled

string

LogsIngestion

The endpoint used by clients to ingest logs.

Name Type Description
endpoint

string

The endpoint. This property is READ-ONLY.

NetworkAcls

Network access control rules for the endpoints.

Name Type Description
publicNetworkAccess

KnownPublicNetworkAccessOptions

The configuration to set whether network access from public internet to the endpoints are allowed.

SystemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.