Delen via


Data Collection Rule Associations - Create

Hiermee maakt of werkt u een koppeling bij.

PUT https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}?api-version=2023-03-11

URI-parameters

Name In Vereist Type Description
associationName
path True

string

De naam van de koppeling. De naam is niet hoofdlettergevoelig.

resourceUri
path True

string

minLength: 1

De id van de resource.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Name Type Description
properties.dataCollectionEndpointId

string

De resource-id van het eindpunt voor gegevensverzameling dat moet worden gekoppeld.

properties.dataCollectionRuleId

string

De resource-id van de regel voor gegevensverzameling die moet worden gekoppeld.

properties.description

string

Beschrijving van de koppeling.

Antwoorden

Name Type Description
200 OK

DataCollectionRuleAssociationProxyOnlyResource

De koppeling is bijgewerkt

201 Created

DataCollectionRuleAssociationProxyOnlyResource

De koppeling is gemaakt

Other Status Codes

ErrorResponseCommonV2

Fout

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Create or update association
Create or update association with a data collection endpoint

Create or update association

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2023-03-11

{
  "properties": {
    "dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation",
  "name": "myAssociation",
  "type": "Microsoft.Insights/dataCollectionRuleAssociations",
  "properties": {
    "dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2024-03-22T19:15:08.2155156Z",
    "lastModifiedBy": "user1",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
  },
  "etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
{
  "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation",
  "name": "myAssociation",
  "type": "Microsoft.Insights/dataCollectionRuleAssociations",
  "properties": {
    "dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2024-03-22T19:15:08.2155156Z",
    "lastModifiedBy": "user1",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
  },
  "etag": "00000836-0000-0100-0000-65fdd8bc0000"
}

Create or update association with a data collection endpoint

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint?api-version=2023-03-11

{
  "properties": {
    "dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint",
  "name": "configurationAccessEndpoint",
  "type": "Microsoft.Insights/dataCollectionRuleAssociations",
  "properties": {
    "dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2024-03-22T19:15:08.2155156Z",
    "lastModifiedBy": "user1",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
  },
  "etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
{
  "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint",
  "name": "configurationAccessEndpoint",
  "type": "Microsoft.Insights/dataCollectionRuleAssociations",
  "properties": {
    "dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
  },
  "systemData": {
    "createdBy": "user1",
    "createdByType": "User",
    "createdAt": "2024-03-22T19:15:08.2155156Z",
    "lastModifiedBy": "user1",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
  },
  "etag": "00000836-0000-0100-0000-65fdd8bc0000"
}

Definities

Name Description
createdByType

Het type identiteit waarmee de resource is gemaakt.

DataCollectionRuleAssociationProxyOnlyResource

Definitie van algemene ARM-proxyresource.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponseCommonV2

Foutreactie

KnownDataCollectionRuleAssociationProvisioningState

De inrichtingsstatus van de resource.

Metadata

Metagegevens over de resource

SystemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
Application
Key
ManagedIdentity
User

DataCollectionRuleAssociationProxyOnlyResource

Definitie van algemene ARM-proxyresource.

Name Type Description
etag

string

Resource-entiteitstag (ETag).

id

string

Volledig gekwalificeerde id van de resource.

name

string

De naam van de resource.

properties.dataCollectionEndpointId

string

De resource-id van het eindpunt voor gegevensverzameling dat moet worden gekoppeld.

properties.dataCollectionRuleId

string

De resource-id van de regel voor gegevensverzameling die moet worden gekoppeld.

properties.description

string

Beschrijving van de koppeling.

properties.metadata

Metadata

Metagegevens over de resource

properties.provisioningState

KnownDataCollectionRuleAssociationProvisioningState

De inrichtingsstatus van de resource.

systemData

SystemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

type

string

Het type resource.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponseCommonV2

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

KnownDataCollectionRuleAssociationProvisioningState

De inrichtingsstatus van de resource.

Waarde Description
Canceled
Creating
Deleting
Failed
Succeeded
Updating

Metadata

Metagegevens over de resource

Name Type Description
provisionedBy

string

Azure-aanbieding voor het beheren van deze resource namens de klant.

provisionedByImmutableId

string

Onveranderbare id van azure-aanbieding die deze resource namens de klant beheert.

provisionedByResourceId

string

Resource-id van azure-aanbieding die deze resource namens de klant beheert.

SystemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Name Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.