Data Collection Rule Associations - Create

Hiermee maakt u een koppeling of werkt u deze bij.

PUT https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}?api-version=2022-06-01

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

De id van de resource.

api-version
query True

string

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

Koppeling is gemaakt

Other Status Codes

ErrorResponseCommonV2

Fout

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

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

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Create or update association

Sample Request

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=2022-06-01

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

Sample Response

{
  "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",
    "provisioningState": "Succeeded"
  },
  "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.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",
    "provisioningState": "Succeeded"
  },
  "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"
}

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 laatste wijzigen van de resource.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

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 laatste wijzigen 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 type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout 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.

Name Type Description
Canceled

string

Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

Metadata

Metagegevens over de resource

Name Type Description
provisionedBy

string

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

provisionedByResourceId

string

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

SystemData

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

Name Type Description
createdAt

string

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit die de resource heeft gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string

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

lastModifiedBy

string

De identiteit die de resource het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource het laatst heeft gewijzigd.