deviceCustomAttributeShellScript リソースの種類

名前空間: microsoft.graph

重要:Microsoft は Intune /beta API をサポートしていますが、より頻繁に変更される可能性があります。 可能な場合は、バージョン v1.0 を使用することをお勧めします。 バージョン セレクターを使用して、バージョン v1.0 で API が使用できるかどうかを確認します。

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

macOS のカスタム属性スクリプトを表します。

メソッド

メソッド 戻り値の型 説明
deviceCustomAttributeShellScripts の一覧表示 deviceCustomAttributeShellScript コレクション deviceCustomAttributeShellScript オブジェクトのプロパティと関係を一覧表示します。
getdeviceCustomAttributeShellScript deviceCustomAttributeShellScript deviceCustomAttributeShellScript オブジェクトのプロパティとリレーションシップを読み取ります。
deviceCustomAttributeShellScript の作成 deviceCustomAttributeShellScript 新しい deviceCustomAttributeShellScript オブジェクトを作成します。
deviceCustomAttributeShellScript を削除する なし deviceCustomAttributeShellScript を削除します。
deviceCustomAttributeShellScript の更新 deviceCustomAttributeShellScript deviceCustomAttributeShellScript オブジェクトのプロパティを更新します。
assign アクション なし

プロパティ

プロパティ 説明
id 文字列 カスタム属性エンティティの一意識別子。
customAttributeName 文字列 カスタム属性の名前。
customAttributeType deviceCustomAttributeValueType カスタム属性値の想定される型。 可能な値は integerstringdateTime です。
displayName 文字列 デバイス管理スクリプトの名前。
説明 String デバイス管理スクリプトの省略可能な説明。
scriptContent Binary スクリプト コンテンツ。
createdDateTime DateTimeOffset デバイス管理スクリプトが作成された日時。 このプロパティは読み取り専用です。
lastModifiedDateTime DateTimeOffset デバイス管理スクリプトが最後に変更された日時。 このプロパティは読み取り専用です。
runAsAccount runAsAccountType 実行コンテキストの種類を示します。 可能な値は、systemuser です。
fileName 文字列 スクリプト ファイル名。
roleScopeTagIds String collection この PowerShellScript インスタンスのスコープ タグ ID の一覧。

リレーションシップ

リレーションシップ 説明
groupAssignments deviceManagementScriptGroupAssignment コレクション デバイス管理スクリプトのグループ割り当ての一覧。
assignments deviceManagementScriptAssignment コレクション デバイス管理スクリプトのグループ割り当ての一覧。
runSummary deviceManagementScriptRunSummary デバイス管理スクリプトの概要を実行します。
deviceRunStates deviceManagementScriptDeviceState コレクション すべてのデバイスにおけるこのスクリプトの実行状態の一覧。
userRunStates deviceManagementScriptUserState コレクション すべてのユーザーにおけるこのスクリプトの実行状態の一覧。

JSON 表記

以下は、リソースの JSON 表記です。

{
  "@odata.type": "#microsoft.graph.deviceCustomAttributeShellScript",
  "id": "String (identifier)",
  "customAttributeName": "String",
  "customAttributeType": "String",
  "displayName": "String",
  "description": "String",
  "scriptContent": "binary",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "runAsAccount": "String",
  "fileName": "String",
  "roleScopeTagIds": [
    "String"
  ]
}