Edit

attachment resource type

Namespace: microsoft.graph.security.caseManagement

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents metadata and content for a file attached to a case.

Inherited from caseManagementEntity.

Methods

Method Return type Description
List microsoft.graph.security.caseManagement.attachment collection List attachments for a case.
Create microsoft.graph.security.caseManagement.attachment Create an attachment for a case.
Get microsoft.graph.security.caseManagement.attachment Read the properties and relationships of microsoft.graph.security.caseManagement.attachment object.
Update None Update an attachment object.
Download content Stream Download the attachment content after malware scanning completes.
Upload content None Upload the attachment content in chunks.

Properties

Property Type Description
content Stream The binary content stream for the attachment. Use the Upload content and Download content methods to access it.
createdBy String The user or service that created the resource. Inherited from caseManagementEntity.
createdDateTime DateTimeOffset The date and time when the resource was created. Inherited from caseManagementEntity.
description String The description of the attachment.
displayName String The display name of the attachment.
fileExtension String The file extension of the attachment. The service normalizes the value to include a leading period.
fileSize Int64 The size of the attachment in bytes. The maximum file size is 100 MB.
id String The unique identifier for the resource. Inherited from entity.
lastModifiedBy String The user or service that last modified the resource. Inherited from caseManagementEntity.
lastModifiedDateTime DateTimeOffset The date and time when the resource was last modified. Inherited from caseManagementEntity.
origin microsoft.graph.security.caseManagement.attachmentOrigin The origin reference for the attachment.
scanResult microsoft.graph.security.caseManagement.attachmentScanResult The service-controlled malware scan result for the attachment. Read-only.

attachmentScanResult values

Member Description
unscanned The attachment hasn't been scanned.
noThreatsFound No threats were found in the attachment.
malicious The attachment was identified as malicious.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.security.caseManagement.attachment",
  "id": "String (identifier)",
  "createdDateTime": "String (timestamp)",
  "createdBy": "String",
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": "String",
  "displayName": "String",
  "description": "String",
  "fileSize": "Integer",
  "fileExtension": "String",
  "scanResult": "String",
  "origin": {"@odata.type": "#microsoft.graph.security.caseManagement.attachmentOrigin"},
  "content": "Stream"
}