次の方法で共有


deviceCustomAttributeShellScript リソースの種類

名前空間: microsoft.graph

大事な:Microsoft では/beta API Intuneサポートされていますが、変更の頻度が高くなります。 可能であれば、バージョン v1.0 を使用することをお勧めします。 バージョン セレクターを使用して、バージョン v1.0 で API の可用性を確認します。

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

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

メソッド

メソッド 戻り値の型 説明
deviceCustomAttributeShellScripts を一覧表示する deviceCustomAttributeShellScript コレクション deviceCustomAttributeShellScript オブジェクトのプロパティとリレーションシップを一覧表示します。
deviceCustomAttributeShellScript を取得する 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"
  ]
}