Data Exports - Create Or Update
Erstellen oder Aktualisieren eines Datenexports.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}?api-version=2023-09-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
data
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$ |
Der Name der Datenexportregel. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
Der Name der Ressourcengruppe. Bei dem Namen wird die Groß-/Kleinschreibung nicht beachtet. |
subscription
|
path | True |
string minLength: 1 |
Die ID des Zielabonnements. |
workspace
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
Der Name des Arbeitsbereichs. |
api-version
|
query | True |
string minLength: 1 |
Die API-Version, die für diesen Vorgang verwendet werden soll. |
Anforderungstext
Name | Erforderlich | Typ | Beschreibung |
---|---|---|---|
properties.destination.resourceId | True |
string |
Die Zielressourcen-ID. Dies kann aus dem Eigenschafteneintrag der Zielressource in Azure kopiert werden. |
properties.tableNames | True |
string[] |
Ein Array von Tabellen, die exportiert werden sollen, z. B.: ["Heartbeat, SecurityEvent"]. |
properties.createdDate |
string |
Die neueste Datenexportregeländerungszeit. |
|
properties.dataExportId |
string |
Die Datenexportregel-ID. |
|
properties.destination.metaData.eventHubName |
string |
Wahlfrei. Ermöglicht das Definieren eines Event Hub-Namens. Gilt nicht, wenn das Ziel speicherkonto ist. |
|
properties.enable |
boolean |
Aktiv, wenn aktiviert. |
|
properties.lastModifiedDate |
string |
Datum und Uhrzeit der letzten Änderung des Exports. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
OK-Antwortdefinition. |
|
201 Created |
Die Antwortdefinition wurde erstellt. |
|
Other Status Codes |
Fehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist. |
Sicherheit
azure_auth
Azure Active Directory OAuth2-Fluss
Typ:
oauth2
Ablauf:
implicit
Autorisierungs-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiche
Name | Beschreibung |
---|---|
user_impersonation | Identitätswechsel ihres Benutzerkontos |
Beispiele
DataExportCreate
Beispielanforderung
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/Microsoft.OperationalInsights/workspaces/DeWnTest1234/dataExports/export1?api-version=2023-09-01
{
"properties": {
"destination": {
"resourceId": "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"
},
"tableNames": [
"Heartbeat"
]
}
}
Beispiel für eine Antwort
{
"properties": {
"dataExportId": "d5233afc-7829-4b89-c594-08d7975e19a5",
"destination": {
"resourceId": "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
"type": "EventHub"
},
"tableNames": [
"Heartbeat"
],
"enable": true,
"createdDate": "Sun, 12 Jan 2020 12:51:10 GMT",
"lastModifiedDate": "Sun, 12 Jan 2020 12:51:10 GMT"
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1",
"name": "export1",
"type": "Microsoft.OperationalInsights/workspaces/export"
}
{
"properties": {
"dataExportId": "d5233afc-7829-4b89-c594-08d7975e19a5",
"destination": {
"resourceId": "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
"type": "EventHub"
},
"tableNames": [
"Heartbeat"
],
"enable": true,
"createdDate": "Sun, 12 Jan 2020 12:51:10 GMT",
"lastModifiedDate": "Sun, 12 Jan 2020 12:51:10 GMT"
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1",
"name": "export1",
"type": "Microsoft.OperationalInsights/workspaces/export"
}
Definitionen
Name | Beschreibung |
---|---|
Data |
Der Ressourcencontainer der obersten Ebene des Datenexports. |
Error |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
Error |
Das Fehlerdetails. |
Error |
Fehlerantwort |
type |
Der Typ der Zielressource |
DataExport
Der Ressourcencontainer der obersten Ebene des Datenexports.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Vollqualifizierte Ressourcen-ID für die Ressource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Der Name der Ressource |
properties.createdDate |
string |
Die neueste Datenexportregeländerungszeit. |
properties.dataExportId |
string |
Die Datenexportregel-ID. |
properties.destination.metaData.eventHubName |
string |
Wahlfrei. Ermöglicht das Definieren eines Event Hub-Namens. Gilt nicht, wenn das Ziel speicherkonto ist. |
properties.destination.resourceId |
string |
Die Zielressourcen-ID. Dies kann aus dem Eigenschafteneintrag der Zielressource in Azure kopiert werden. |
properties.destination.type |
Der Typ der Zielressource |
|
properties.enable |
boolean |
Aktiv, wenn aktiviert. |
properties.lastModifiedDate |
string |
Datum und Uhrzeit der letzten Änderung des Exports. |
properties.tableNames |
string[] |
Ein Array von Tabellen, die exportiert werden sollen, z. B.: ["Heartbeat, SecurityEvent"]. |
type |
string |
Der Typ der Ressource. Z. B. "Microsoft.Compute/virtualMachines" oder "Microsoft.Storage/storageAccounts" |
ErrorAdditionalInfo
Der Ressourcenverwaltungsfehler zusätzliche Informationen.
Name | Typ | Beschreibung |
---|---|---|
info |
object |
Die zusätzlichen Informationen. |
type |
string |
Der zusätzliche Informationstyp. |
ErrorDetail
Das Fehlerdetails.
Name | Typ | Beschreibung |
---|---|---|
additionalInfo |
Die zusätzlichen Informationen des Fehlers. |
|
code |
string |
Der Fehlercode. |
details |
Die Fehlerdetails. |
|
message |
string |
Die Fehlermeldung. |
target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
Name | Typ | Beschreibung |
---|---|---|
error |
Das Fehlerobjekt. |
type
Der Typ der Zielressource
Wert | Beschreibung |
---|---|
EventHub | |
StorageAccount |