Data Collection Rule Associations - Create

Erstellt oder aktualisiert eine Zuordnung.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
associationName
path True

string

Der Name der Zuordnung. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

resourceUri
path True

string

Der Bezeichner der Ressource.

api-version
query True

string

Hierbei handelt es sich um die für diesen Vorgang zu verwendende API-Version.

Anforderungstext

Name Typ Beschreibung
properties.dataCollectionEndpointId

string

Die Ressourcen-ID des Zuzuordnenden Datensammlungsendpunkts.

properties.dataCollectionRuleId

string

Die Ressourcen-ID der Datensammlungsregel, die zugeordnet werden soll.

properties.description

string

Beschreibung der Zuordnung.

Antworten

Name Typ Beschreibung
200 OK

DataCollectionRuleAssociationProxyOnlyResource

Zuordnung wurde erfolgreich aktualisiert

201 Created

DataCollectionRuleAssociationProxyOnlyResource

Zuordnung wurde erfolgreich erstellt

Other Status Codes

ErrorResponseCommonV2

Fehler

Sicherheit

azure_auth

Azure Active Directory-OAuth2-Flow

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

Scopes

Name Beschreibung
user_impersonation Identitätswechsel Ihres Benutzerkontos

Beispiele

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"
}

Definitionen

Name Beschreibung
createdByType

Der Identitätstyp, der die Ressource erstellt hat.

DataCollectionRuleAssociationProxyOnlyResource

Definition der generischen ARM-Proxyressource.

ErrorAdditionalInfo

Zusätzliche Informationen zum Ressourcenverwaltungsfehler.

ErrorDetail

Die Fehlerdetails.

ErrorResponseCommonV2

Fehlerantwort

KnownDataCollectionRuleAssociationProvisioningState

Der Ressourcenbereitstellungsstatus.

Metadata

Metadaten zur Ressource

SystemData

Metadaten, die sich auf die Erstellung und letzte Änderung der Ressource beziehen.

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

Name Typ Beschreibung
Application

string

Key

string

ManagedIdentity

string

User

string

DataCollectionRuleAssociationProxyOnlyResource

Definition der generischen ARM-Proxyressource.

Name Typ Beschreibung
etag

string

Ressourcenentitätstag (ETag).

id

string

Vollqualifizierte ID der Ressource.

name

string

Der Name der Ressource.

properties.dataCollectionEndpointId

string

Die Ressourcen-ID des Zuzuordnenden Datensammlungsendpunkts.

properties.dataCollectionRuleId

string

Die Ressourcen-ID der Datensammlungsregel, die zugeordnet werden soll.

properties.description

string

Beschreibung der Zuordnung.

properties.metadata

Metadata

Metadaten zur Ressource

properties.provisioningState

KnownDataCollectionRuleAssociationProvisioningState

Der Ressourcenbereitstellungsstatus.

systemData

SystemData

Metadaten, die sich auf die Erstellung und letzte Änderung der Ressource beziehen.

type

string

Der Typ der Ressource.

ErrorAdditionalInfo

Zusätzliche Informationen zum Ressourcenverwaltungsfehler.

Name Typ Beschreibung
info

object

Zusätzliche Informationen.

type

string

Typ der zusätzlichen Informationen.

ErrorDetail

Die Fehlerdetails.

Name Typ Beschreibung
additionalInfo

ErrorAdditionalInfo[]

Die zusätzlichen Fehlerinformationen.

code

string

Der Fehlercode.

details

ErrorDetail[]

Die Fehlerdetails.

message

string

Die Fehlermeldung.

target

string

Das Fehlerziel.

ErrorResponseCommonV2

Fehlerantwort

Name Typ Beschreibung
error

ErrorDetail

Das Fehlerobjekt.

KnownDataCollectionRuleAssociationProvisioningState

Der Ressourcenbereitstellungsstatus.

Name Typ Beschreibung
Canceled

string

Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

Metadata

Metadaten zur Ressource

Name Typ Beschreibung
provisionedBy

string

Azure bietet die Verwaltung dieser Ressource im Auftrag des Kunden an.

provisionedByResourceId

string

Ressourcen-ID des Azure-Angebots, das diese Ressource im Auftrag des Kunden verwaltet.

SystemData

Metadaten, die sich auf die Erstellung und letzte Änderung der Ressource beziehen.

Name Typ Beschreibung
createdAt

string

Der Zeitstempel der Ressourcenerstellung (UTC).

createdBy

string

Die Identität, die die Ressource erstellt hat.

createdByType

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

lastModifiedAt

string

Der Zeitstempel der letzten Änderung der Ressource (UTC)

lastModifiedBy

string

Die Identität, die die Ressource zuletzt geändert hat.

lastModifiedByType

createdByType

Der Identitätstyp, der die Ressource zuletzt geändert hat.