PolicyTargetKey
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"targetResource": string,
"additionalTargetKeys": {
string: string,
...
}
} |
字段 |
targetResource |
string
应用此政策的目标资源。支持以下资源:
- 组织部门(“orgunits/{orgunit_id}”)
- 群组 ("groups/{groupId})
|
additionalTargetKeys |
map (key: string, value: string)
包含其他目标键名和值对的映射,用于进一步识别政策的目标。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe policy target is identified using a key, primarily focusing on a target resource.\u003c/p\u003e\n"],["\u003cp\u003eSupported target resources include organizational units and groups, specified with their respective IDs.\u003c/p\u003e\n"],["\u003cp\u003eFurther target specification can be achieved through additional key-value pairs provided in \u003ccode\u003eadditionalTargetKeys\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# PolicyTargetKey\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe key used to identify the target on which the policy will be applied.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------|\n| ``` { \"targetResource\": string, \"additionalTargetKeys\": { string: string, ... } } ``` |\n\n| Fields ||\n|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetResource` | `string` The target resource on which this policy is applied. The following resources are supported: - Organizational Unit (\"orgunits/{orgunit_id}\") - group (\"groups/{groupId}\") |\n| `additionalTargetKeys` | `map (key: string, value: string)` Map containing the additional target key name and value pairs used to further identify the target of the policy. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |"]]