OnUploadFilters Class

Definition

Optional. Determine which blobs get scanned by On Upload malware scanning. An Or operation is performed between each filter type.

public class OnUploadFilters : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityCenter.Models.OnUploadFilters>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityCenter.Models.OnUploadFilters>
type OnUploadFilters = class
    interface IJsonModel<OnUploadFilters>
    interface IPersistableModel<OnUploadFilters>
Public Class OnUploadFilters
Implements IJsonModel(Of OnUploadFilters), IPersistableModel(Of OnUploadFilters)
Inheritance
OnUploadFilters
Implements

Constructors

Name Description
OnUploadFilters()

Initializes a new instance of OnUploadFilters.

Properties

Name Description
ExcludeBlobsLargerThan

Optional. Specifies the maximum size in bytes for blobs to be scanned. This parameter accepts a single positive integer value. Blobs larger than this value will be excluded from scanning.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

ExcludeBlobsWithPrefix

Optional. A list of prefixes to exclude from on-upload malware scanning. Format: container-name/blob-name (start with the container name; do not include the storage account name). Exclude entire containers: Use prefix of container names you want to exclude without a trailing /. Exclude a single container: Add a trailing slash / after the container name to avoid excluding other containers with similar prefixes.

ExcludeBlobsWithSuffix

Optional. A list of suffixes to exclude from on-upload malware scanning. Suffixes match only the end of blob names, and should be used for file extensions or blob name endings only.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<OnUploadFilters>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<OnUploadFilters>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<OnUploadFilters>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<OnUploadFilters>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<OnUploadFilters>.Write(ModelReaderWriterOptions)

Applies to