Microsoft Graph · Schema

microsoft.graph.protectionRuleBase

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphprotectionrulebase-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.protectionRuleBase",
  "title": "microsoft.graph.protectionRuleBase",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.entity"
    },
    {
      "title": "protectionRuleBase",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The identity of person who created the rule."
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "The time of creation of the rule.",
          "format": "date-time",
          "nullable": true
        },
        "error": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.publicError"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Contains error details if an operation on a rule fails."
        },
        "isAutoApplyEnabled": {
          "type": "boolean",
          "description": "true indicates that the protection rule is dynamic; false that it's static.",
          "nullable": true
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The identity of the person who last modified the rule."
        },
        "lastModifiedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Timestamp of the last modification made to the rule.",
          "format": "date-time",
          "nullable": true
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.protectionRuleStatus"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The status of the protection rule. The possible values are: draft, active, completed, completedWithErrors, unknownFutureValue, updateRequested, deleteRequested. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: updateRequested , deleteRequested. The draft member is currently unsupported."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "discriminator": {
        "propertyName": "@odata.type",
        "mapping": {
          "#microsoft.graph.driveProtectionRule": "#/components/schemas/microsoft.graph.driveProtectionRule",
          "#microsoft.graph.mailboxProtectionRule": "#/components/schemas/microsoft.graph.mailboxProtectionRule",
          "#microsoft.graph.siteProtectionRule": "#/components/schemas/microsoft.graph.siteProtectionRule"
        }
      }
    }
  ]
}