命名空间:microsoft.graph
重要:Microsoft支持Intune /beta API,但它们会受到更频繁的更改。 Microsoft建议尽可能使用版本 v1.0。 使用版本选择器检查 API 在 v1.0 版中的可用性。
注意:适用于 Intune 的 Microsoft Graph API 需要适用于租户的活动 Intune 许可证。
表示 macOS 的自定义属性脚本。
方法
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| id | String | 自定义属性实体的唯一标识符。 |
| customAttributeName | String | 自定义属性的名称。 |
| customAttributeType | deviceCustomAttributeValueType | 自定义属性值的预期类型。 可能的值包括 integer、string、dateTime。 |
| displayName | String | 设备管理脚本的名称。 |
| description | String | 设备管理脚本的可选说明。 |
| scriptContent | Binary | 脚本内容。 |
| createdDateTime | DateTimeOffset | 创建设备管理脚本的日期和时间。 此属性是只读的。 |
| lastModifiedDateTime | DateTimeOffset | 上次修改设备管理脚本的日期和时间。 此属性是只读的。 |
| runAsAccount | runAsAccountType | 指示执行上下文的类型。 可能的值为: system、 user。 |
| 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"
]
}