deviceCustomAttributeShellScript 资源类型

命名空间:microsoft.graph

重要: /beta 版本下的 Microsoft Graph API 可能会更改;不支持生产使用。

注意:适用于 Intune 的 Microsoft Graph API 需要适用于租户的活动 Intune 许可证

表示 macOS 的自定义属性脚本。

方法

方法 返回类型 说明
列出 deviceCustomAttributeShellScripts deviceCustomAttributeShellScript 集合 列出 deviceCustomAttributeShellScript 对象的属性和关系。
获取 deviceCustomAttributeShellScript deviceCustomAttributeShellScript 读取 deviceCustomAttributeShellScript 对象的属性和关系。
创建 deviceCustomAttributeShellScript deviceCustomAttributeShellScript 创建新的 deviceCustomAttributeShellScript 对象。
删除 deviceCustomAttributeShellScript 删除 deviceCustomAttributeShellScript
更新 deviceCustomAttributeShellScript deviceCustomAttributeShellScript 更新 deviceCustomAttributeShellScript 对象的属性。
分配操作

属性

属性 类型 说明
id String 自定义属性实体的唯一标识符。
customAttributeName String 自定义属性的名称。
customAttributeType deviceCustomAttributeValueType 自定义属性值的预期类型。 可取值为:integerstringdateTime
displayName String 设备管理脚本的名称。
说明 String 设备管理脚本的可选说明。
scriptContent 二进制 脚本内容。
createdDateTime DateTimeOffset 创建设备管理脚本的日期和时间。 此属性是只读的。
lastModifiedDateTime DateTimeOffset 上次修改设备管理脚本的日期和时间。 此属性是只读的。
runAsAccount runAsAccountType 指示执行上下文的类型。 可取值为:systemuser
fileName String 脚本文件名。
roleScopeTagIds 字符串集合 此 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"
  ]
}