Data Exports - Create Or Update
Veri dışarı aktarmayı oluşturun veya güncelleştirin.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}?api-version=2020-08-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
data
|
path | True |
string |
Veri dışarı aktarma kuralı adı. Regex pattern: |
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
workspace
|
path | True |
string |
Çalışma alanının adı. Regex pattern: |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
İstek Gövdesi
Name | Gerekli | Tür | Description |
---|---|---|---|
properties.destination.resourceId | True |
string |
Hedef kaynak kimliği. Bu, Azure'daki hedef kaynağın Özellikler girdisinden kopyalanabilir. |
properties.tableNames | True |
string[] |
Dışarı aktaracak bir tablo dizisi, örneğin: ["Heartbeat, SecurityEvent"]. |
properties.createdDate |
string |
En son veri dışarı aktarma kuralı değiştirme zamanı. |
|
properties.dataExportId |
string |
Veri dışarı aktarma kuralı kimliği. |
|
properties.destination.metaData.eventHubName |
string |
İsteğe bağlı. Olay Hub'ı adı tanımlamaya izin verir. Hedef Depolama Hesabı olduğunda geçerli değildir. |
|
properties.enable |
boolean |
Etkinleştirildiğinde etkin. |
|
properties.lastModifiedDate |
string |
Dışarı aktarma işleminin son değiştirildiği tarih ve saat. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Tamam yanıt tanımı. |
|
201 Created |
Yanıt tanımı oluşturuldu. |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
DataExportCreate
Sample Request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/Microsoft.OperationalInsights/workspaces/DeWnTest1234/dataExports/export1?api-version=2020-08-01
{
"properties": {
"destination": {
"resourceId": "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"
},
"tableNames": [
"Heartbeat"
]
}
}
Sample Response
{
"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"
}
Tanımlar
Name | Description |
---|---|
Data |
Üst düzey veri dışarı aktarma kaynak kapsayıcısı. |
Error |
Kaynak yönetimi hatası ek bilgileri. |
Error |
Hata ayrıntısı. |
Error |
Hata yanıtı |
type |
Hedef kaynağın türü |
DataExport
Üst düzey veri dışarı aktarma kaynak kapsayıcısı.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Kaynağın adı |
properties.createdDate |
string |
En son veri dışarı aktarma kuralı değiştirme zamanı. |
properties.dataExportId |
string |
Veri dışarı aktarma kuralı kimliği. |
properties.destination.metaData.eventHubName |
string |
İsteğe bağlı. Olay Hub'ı adı tanımlamaya izin verir. Hedef Depolama Hesabı olduğunda geçerli değildir. |
properties.destination.resourceId |
string |
Hedef kaynak kimliği. Bu, Azure'daki hedef kaynağın Özellikler girdisinden kopyalanabilir. |
properties.destination.type |
Hedef kaynağın türü |
|
properties.enable |
boolean |
Etkinleştirildiğinde etkin. |
properties.lastModifiedDate |
string |
Dışarı aktarma işleminin son değiştirildiği tarih ve saat. |
properties.tableNames |
string[] |
Dışarı aktaracak bir tablo dizisi, örneğin: ["Heartbeat, SecurityEvent"]. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
Name | Tür | Description |
---|---|---|
info |
object |
Ek bilgiler. |
type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
Name | Tür | Description |
---|---|---|
additionalInfo |
Hata ek bilgileri. |
|
code |
string |
Hata kodu. |
details |
Hata ayrıntıları. |
|
message |
string |
Hata iletisi. |
target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
Name | Tür | Description |
---|---|---|
error |
Hata nesnesi. |
type
Hedef kaynağın türü
Name | Tür | Description |
---|---|---|
EventHub |
string |
|
StorageAccount |
string |