Managedconfigurationsfordevice

如需了解此资源的方法列表,请参阅本页结尾部分。

资源表示形式

受管配置资源包含应用开发者在应用受管配置架构中定义的一组受管理属性,以及为用户定义的所有配置变量。

{
  "kind": string,
  "productId": string,
  "managedProperty": [
    {
      "key": string,
      "valueBool": boolean,
      "valueInteger": integer,
      "valueString": string,
      "valueStringArray": [
        string
      ],
      "valueBundle": {
        "managedProperty": [
          (ManagedProperty)
        ]
      },
      "valueBundleArray": [
        {
          "managedProperty": [
            (ManagedProperty)
          ]
        }
      ]
    }
  ],
  "configurationVariables": {
    "kind": "androidenterprise#configurationVariables",
    "mcmId": string,
    "variableSet": [
      {
        "kind": "androidenterprise#variableSet",
        "placeholder": string,
        "userValue": string
      }
    ]
  }
}
属性名称 说明 备注
configurationVariables nested object 包含托管配置文件的 ID 以及为用户定义的一组配置变量(如果有)。
configurationVariables.kind string
configurationVariables.mcmId string 受管配置设置的 ID。
configurationVariables.variableSet[] list 归因于用户的变量集。
configurationVariables.variableSet[].kind string
configurationVariables.variableSet[].placeholder string 占位符字符串;由 EMM 定义。
configurationVariables.variableSet[].userValue string 特定于用户的占位符值。
kind string 已弃用。

managedProperty[] list 此配置的托管属性集。
managedProperty[].key string 用于标识属性的唯一键。
managedProperty[].valueBool boolean 布尔值 - 仅当属性的类型为布尔值时,此字段才会显示。
managedProperty[].valueBundle nested object 受管理资源集合 - 仅当媒体资源类型为“集合”时,此字段才会显示。
managedProperty[].valueBundle.managedProperty[] list 受管理资源的列表。
managedProperty[].valueBundleArray[] list 属性捆绑包列表 - 仅当属性类型为 bundle_array 时才会显示。
managedProperty[].valueBundleArray[].managedProperty[] list 受管理资源的列表。
managedProperty[].valueInteger integer 整数值 - 仅当属性的类型为整数时才存在。
managedProperty[].valueString string 字符串值 - 仅当属性类型为字符串、选项或隐藏时,此字段才会显示。
managedProperty[].valueStringArray[] list 字符串值列表 - 仅当属性类型为多选时,此字段才会显示。
productId string 受管配置所针对的产品的 ID,例如“app:com.google.android.gm”。

方法

删除
针对指定设备移除应用的基于设备的托管配置。
get
检索每台设备的受管配置的详细信息。
list
列出指定设备的所有单一设备托管配置。仅会设置 ID。
update
为指定设备的应用添加或更新基于设备的托管配置。