Microsoft.SecurityInsights fileImports 2023-02-01-preview

Bicep resource definition

The fileImports resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.SecurityInsights/fileImports@2023-02-01-preview' = {
  name: 'string'
  scope: resourceSymbolicName
  properties: {
    contentType: 'string'
    importFile: {
      fileFormat: 'string'
      fileName: 'string'
      fileSize: int
    }
    ingestionMode: 'string'
    source: 'string'
  }
}

Property values

fileImports

Name Description Value
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For Bicep, set this property to the symbolic name of the resource to apply the extension resource.
properties File import properties FileImportProperties

FileImportProperties

Name Description Value
contentType The content type of this file. 'BasicIndicator'
'StixIndicator'
'Unspecified' (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. 'IngestAnyValidRecords'
'IngestOnlyIfAllAreValid'
'Unspecified' (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file 'CSV'
'JSON'
'Unspecified'
fileName The name of the file. string
fileSize The size of the file. int

ARM template resource definition

The fileImports resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following JSON to your template.

{
  "type": "Microsoft.SecurityInsights/fileImports",
  "apiVersion": "2023-02-01-preview",
  "name": "string",
  "scope": "string",
  "properties": {
    "contentType": "string",
    "importFile": {
      "fileFormat": "string",
      "fileName": "string",
      "fileSize": "int"
    },
    "ingestionMode": "string",
    "source": "string"
  }
}

Property values

fileImports

Name Description Value
type The resource type 'Microsoft.SecurityInsights/fileImports'
apiVersion The resource api version '2023-02-01-preview'
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For JSON, set the value to the full name of the resource to apply the extension resource to.
properties File import properties FileImportProperties

FileImportProperties

Name Description Value
contentType The content type of this file. 'BasicIndicator'
'StixIndicator'
'Unspecified' (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. 'IngestAnyValidRecords'
'IngestOnlyIfAllAreValid'
'Unspecified' (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file 'CSV'
'JSON'
'Unspecified'
fileName The name of the file. string
fileSize The size of the file. int

Terraform (AzAPI provider) resource definition

The fileImports resource type is an extension resource, which means you can apply it to another resource.

Use the parent_id property on this resource to set the scope for this resource.

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.SecurityInsights/fileImports@2023-02-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      contentType = "string"
      importFile = {
        fileFormat = "string"
        fileName = "string"
        fileSize = int
      }
      ingestionMode = "string"
      source = "string"
    }
  })
}

Property values

fileImports

Name Description Value
type The resource type "Microsoft.SecurityInsights/fileImports@2023-02-01-preview"
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties File import properties FileImportProperties

FileImportProperties

Name Description Value
contentType The content type of this file. "BasicIndicator"
"StixIndicator"
"Unspecified" (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. "IngestAnyValidRecords"
"IngestOnlyIfAllAreValid"
"Unspecified" (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file "CSV"
"JSON"
"Unspecified"
fileName The name of the file. string
fileSize The size of the file. int