securityConfigurationTask を作成する

名前空間: microsoft.graph

大事な: /beta バージョンの Microsoft Graph API は変更される可能性があります。運用環境での使用はサポートされていません。

注:Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。

新しい securityConfigurationTask オブジェクトを 作成します。

この API は、次の国内クラウド展開で使用できます。

グローバル サービス 米国政府機関 L4 米国政府機関 L5 (DOD) 21Vianet が運営する中国

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) DeviceManagementConfiguration.ReadWrite.All、DeviceManagementApps.ReadWrite.All
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション DeviceManagementConfiguration.ReadWrite.All、DeviceManagementApps.ReadWrite.All

HTTP 要求

POST /deviceAppManagement/deviceAppManagementTasks

要求ヘッダー

ヘッダー
Authorization ベアラー {token}。 必須です。 認証と承認の詳細については、こちらをご覧ください。
承諾 application/json

要求本文

要求本文で、securityConfigurationTask オブジェクトの JSON 表現を指定します。

次の表は、securityConfigurationTask を作成するときに必要なプロパティを示しています。

プロパティ 説明
id String エンティティ キー。 deviceAppManagementTask から継承
displayName String 名前。 deviceAppManagementTask から継承
説明 String 説明。 deviceAppManagementTask から継承
createdDateTime DateTimeOffset 作成された日付。 deviceAppManagementTask から継承
dueDateTime DateTimeOffset 期限。 deviceAppManagementTask から継承
category deviceAppManagementTaskCategory カテゴリ。 deviceAppManagementTask から継承されます。 可能な値は、unknownadvancedThreatProtection です。
priority deviceAppManagementTaskPriority 優先度。 deviceAppManagementTask から継承されます。 可能な値は nonehighlow です。
creator String 作成者のメール アドレス。 deviceAppManagementTask から継承
creatorNotes String 作成者からのメモ。 deviceAppManagementTask から継承
assignedTo String このタスクが割り当てられている管理者の名前またはメール。 deviceAppManagementTask から継承
status deviceAppManagementTaskStatus ステータス。 deviceAppManagementTask から継承されます。 可能な値は、unknownpendingactivecompletedrejected です。
endpointSecurityPolicy endpointSecurityConfigurationType エンドポイント セキュリティ ポリシーの種類。 可能な値は、unknownantivirusdiskEncryptionfirewallendpointDetectionAndResponseattackSurfaceReductionaccountProtection です。
applicablePlatform endpointSecurityConfigurationApplicablePlatform 該当するプラットフォーム。 使用可能な値: unknownmacOSwindows10AndLaterwindows10AndWindowsServer
endpointSecurityPolicyProfile endpointSecurityConfigurationProfileType エンドポイント セキュリティ ポリシー プロファイル。 使用できる値は、antivirusunknownwindowsSecurity、、bitLocker、、fileVaultfirewallfirewallRules、、 appAndBrowserIsolationattackSurfaceReductionRulesdeviceControlaccountProtectionendpointDetectionAndResponseexploitProtectionwebProtectionapplicationControlです。
insights String 軽減策に関する情報。
managedDeviceCount Int32 脆弱なデバイスの数。 有効な値 0 から 65536
intendedSettings keyValuePair コレクション 目的の設定とその値。

応答

成功した場合、このメソッドは 201 Created 応答コードと、応答本文に securityConfigurationTask オブジェクトを返します。

要求

以下は、要求の例です。

POST https://graph.microsoft.com/beta/deviceAppManagement/deviceAppManagementTasks
Content-type: application/json
Content-length: 746

{
  "@odata.type": "#microsoft.graph.securityConfigurationTask",
  "displayName": "Display Name value",
  "description": "Description value",
  "dueDateTime": "2017-01-01T00:02:18.1994089-08:00",
  "category": "advancedThreatProtection",
  "priority": "high",
  "creator": "Creator value",
  "creatorNotes": "Creator Notes value",
  "assignedTo": "Assigned To value",
  "status": "pending",
  "endpointSecurityPolicy": "antivirus",
  "applicablePlatform": "macOS",
  "endpointSecurityPolicyProfile": "antivirus",
  "insights": "Insights value",
  "managedDeviceCount": 2,
  "intendedSettings": [
    {
      "@odata.type": "microsoft.graph.keyValuePair",
      "name": "Name value",
      "value": "Value value"
    }
  ]
}

応答

以下は、応答の例です。 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。 実際の呼び出しではすべてのプロパティが返されます。

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 854

{
  "@odata.type": "#microsoft.graph.securityConfigurationTask",
  "id": "5d630f12-0f12-5d63-120f-635d120f635d",
  "displayName": "Display Name value",
  "description": "Description value",
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "dueDateTime": "2017-01-01T00:02:18.1994089-08:00",
  "category": "advancedThreatProtection",
  "priority": "high",
  "creator": "Creator value",
  "creatorNotes": "Creator Notes value",
  "assignedTo": "Assigned To value",
  "status": "pending",
  "endpointSecurityPolicy": "antivirus",
  "applicablePlatform": "macOS",
  "endpointSecurityPolicyProfile": "antivirus",
  "insights": "Insights value",
  "managedDeviceCount": 2,
  "intendedSettings": [
    {
      "@odata.type": "microsoft.graph.keyValuePair",
      "name": "Name value",
      "value": "Value value"
    }
  ]
}