Method: enterprises.policies.removePolicyApplications
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:removePolicyApplications
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。要移除的 ApplicationPolicy 对象所在的政策的名称,格式为 enterprises/{enterpriseId}/policies/{policyId} 。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"packageNames": [
string
]
} |
字段 |
packageNames[] |
string
必需。要移除的软件包名称。系统会忽略未找到的条目。packageNames 中必须至少有一个条目。
|
响应正文
对移除指定政策中的 ApplicationPolicy 对象的请求的响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"policy": {
object (Policy )
}
} |
字段 |
policy |
object (Policy )
移除了 ApplicationPolicy 对象后的更新政策。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidmanagement
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Method: enterprises.policies.removePolicyApplications\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RemovePolicyApplicationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRemoves applications in a policy.\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:removePolicyApplications`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the policy containing the ApplicationPolicy objects to be removed, in the form `enterprises/{enterpriseId}/policies/{policyId}`. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------|\n| ``` { \"packageNames\": [ string ] } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageNames[]` | `string` Required. Package names to be removed. Entries that are not found are ignored. There must be at least one entry in `packageNames`. |\n\n### Response body\n\nResponse to a request to remove ApplicationPolicy objects in the given policy.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------|\n| ``` { \"policy\": { object (/android/management/reference/rest/v1/enterprises.policies#Policy) } } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `policy` | `object (`[Policy](/android/management/reference/rest/v1/enterprises.policies#Policy)`)` The updated policy after ApplicationPolicy objects have been removed. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]