Delen via


Data Exports - Create Or Update

Een gegevensexport maken of bijwerken.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}?api-version=2023-09-01

URI-parameters

Name In Vereist Type Description
dataExportName
path True

string

minLength: 4
maxLength: 63
pattern: ^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$

De naam van de regel voor gegevensexport.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

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

subscriptionId
path True

string

minLength: 1

De id van het doelabonnement.

workspaceName
path True

string

minLength: 4
maxLength: 63
pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$

De naam van de werkruimte.

api-version
query True

string

minLength: 1

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

Aanvraagbody

Name Vereist Type Description
properties.destination.resourceId True

string

De doelresource-id. Dit kan worden gekopieerd uit de vermelding Eigenschappen van de doelresource in Azure.

properties.tableNames True

string[]

Een matrix met tabellen die u wilt exporteren, bijvoorbeeld: ["Heartbeat, SecurityEvent"].

properties.createdDate

string

De meest recente wijzigingstijd voor gegevensexportregels.

properties.dataExportId

string

De regel-id voor gegevensexport.

properties.destination.metaData.eventHubName

string

Facultatief. Hiermee kunt u een Event Hub-naam definiƫren. Niet van toepassing wanneer de bestemming een opslagaccount is.

properties.enable

boolean

Actief wanneer ingeschakeld.

properties.lastModifiedDate

string

De datum en tijd waarop de export voor het laatst is gewijzigd.

Antwoorden

Name Type Description
200 OK

DataExport

Ok-antwoorddefinitie.

201 Created

DataExport

Antwoorddefinitie gemaakt.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

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

DataExportCreate

Voorbeeldaanvraag

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

Voorbeeldrespons

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

Definities

Name Description
DataExport

De resourcecontainer voor het exporteren van gegevens op het hoogste niveau.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

type

Het type doelresource

DataExport

De resourcecontainer voor het exporteren van gegevens op het hoogste niveau.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.createdDate

string

De meest recente wijzigingstijd voor gegevensexportregels.

properties.dataExportId

string

De regel-id voor gegevensexport.

properties.destination.metaData.eventHubName

string

Facultatief. Hiermee kunt u een Event Hub-naam definiƫren. Niet van toepassing wanneer de bestemming een opslagaccount is.

properties.destination.resourceId

string

De doelresource-id. Dit kan worden gekopieerd uit de vermelding Eigenschappen van de doelresource in Azure.

properties.destination.type

type

Het type doelresource

properties.enable

boolean

Actief wanneer ingeschakeld.

properties.lastModifiedDate

string

De datum en tijd waarop de export voor het laatst is gewijzigd.

properties.tableNames

string[]

Een matrix met tabellen die u wilt exporteren, bijvoorbeeld: ["Heartbeat, SecurityEvent"].

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

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.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

type

Het type doelresource

Waarde Description
EventHub
StorageAccount