Chrome Policy API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Chrome Policy API 是一套服务,可让 Chrome 管理员控制应用于受管理的 Chrome 操作系统设备和 Chrome 浏览器的政策。
服务:chromepolicy.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://chromepolicy.googleapis.com
方法 |
resolve |
POST /v1/{customer=customers/*}/policies:resolve ( )
获取与搜索查询匹配的一系列政策的解析政策值。 |
方法 |
batchDelete |
POST /v1/{customer=customers/*}/policies/groups:batchDelete ( )
删除应用于特定群组的多个政策值。 |
batchModify |
POST /v1/{customer=customers/*}/policies/groups:batchModify ( )
修改应用于特定群组的多个政策值。 |
listGroupPriorityOrdering |
POST /v1/{customer=customers/*}/policies/groups:listGroupPriorityOrdering ( )
检索应用的群组优先级排序。 |
updateGroupPriorityOrdering |
POST /v1/{customer=customers/*}/policies/groups:updateGroupPriorityOrdering ( )
更新应用的群组优先级排序。 |
方法 |
defineCertificate |
POST /v1/{customer=customers/*}/policies/networks:defineCertificate ( )
在指定组织部门为客户创建证书。 |
defineNetwork |
POST /v1/{customer=customers/*}/policies/networks:defineNetwork ( )
定义一个新网络。 |
removeCertificate |
POST /v1/{customer=customers/*}/policies/networks:removeCertificate ( )
按照 guid 移除现有证书。 |
removeNetwork |
POST /v1/{customer=customers/*}/policies/networks:removeNetwork ( )
根据 guid 移除现有网络。 |
方法 |
batchInherit |
POST /v1/{customer=customers/*}/policies/orgunits:batchInherit ( )
修改应用于特定组织部门的多个政策值,使其现在继承上级组织部门的值(如果适用)。 |
batchModify |
POST /v1/{customer=customers/*}/policies/orgunits:batchModify ( )
修改应用于特定组织部门的多个政策值。 |
方法 |
get |
GET /v1/{name=customers/*/policySchemas/**} ( )
按资源名称获取客户的特定政策架构。 |
list |
GET /v1/{parent=customers/*}/policySchemas ( )
获取与指定客户的指定过滤条件值匹配的政策架构列表。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-29。
[null,null,["最后更新时间 (UTC):2024-07-29。"],[[["\u003cp\u003eThe Chrome Policy API empowers Chrome administrators to manage policies for Chrome OS devices and Chrome browsers.\u003c/p\u003e\n"],["\u003cp\u003eIt offers a suite of REST resources to define, modify, and resolve policies across various scopes like groups, networks, and organizational units.\u003c/p\u003e\n"],["\u003cp\u003eAdministrators can leverage the API to control policies related to certificates, networks, and group priority ordering, amongst other functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods for retrieving policy schema details and uploading enterprise files.\u003c/p\u003e\n"],["\u003cp\u003eGoogle-provided client libraries are recommended for interacting with the API, and a discovery document is available for integration purposes.\u003c/p\u003e\n"]]],[],null,["# Chrome Policy API\n\nThe Chrome Policy API is a suite of services that allows Chrome administrators to control the policies applied to their managed Chrome OS devices and Chrome browsers.\n\n- [REST Resource: v1.customers.policies](#v1.customers.policies)\n- [REST Resource: v1.customers.policies.groups](#v1.customers.policies.groups)\n- [REST Resource: v1.customers.policies.networks](#v1.customers.policies.networks)\n- [REST Resource: v1.customers.policies.orgunits](#v1.customers.policies.orgunits)\n- [REST Resource: v1.customers.policySchemas](#v1.customers.policySchemas)\n- [REST Resource: v1.media](#v1.media)\n\nService: chromepolicy.googleapis.com\n------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://chromepolicy.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://chromepolicy.googleapis.com`\n\nREST Resource: [v1.customers.policies](/chrome/policy/reference/rest/v1/customers.policies)\n-------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [resolve](/chrome/policy/reference/rest/v1/customers.policies/resolve) | `POST /v1/{customer=customers/*}/policies:resolve` Gets the resolved policy values for a list of policies that match a search query. |\n\nREST Resource: [v1.customers.policies.groups](/chrome/policy/reference/rest/v1/customers.policies.groups)\n---------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [batchDelete](/chrome/policy/reference/rest/v1/customers.policies.groups/batchDelete) | `POST /v1/{customer=customers/*}/policies/groups:batchDelete` Delete multiple policy values that are applied to a specific group. |\n| [batchModify](/chrome/policy/reference/rest/v1/customers.policies.groups/batchModify) | `POST /v1/{customer=customers/*}/policies/groups:batchModify` Modify multiple policy values that are applied to a specific group. |\n| [listGroupPriorityOrdering](/chrome/policy/reference/rest/v1/customers.policies.groups/listGroupPriorityOrdering) | `POST /v1/{customer=customers/*}/policies/groups:listGroupPriorityOrdering` Retrieve a group priority ordering for an app. |\n| [updateGroupPriorityOrdering](/chrome/policy/reference/rest/v1/customers.policies.groups/updateGroupPriorityOrdering) | `POST /v1/{customer=customers/*}/policies/groups:updateGroupPriorityOrdering` Update a group priority ordering for an app. |\n\nREST Resource: [v1.customers.policies.networks](/chrome/policy/reference/rest/v1/customers.policies.networks)\n-------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| [defineCertificate](/chrome/policy/reference/rest/v1/customers.policies.networks/defineCertificate) | `POST /v1/{customer=customers/*}/policies/networks:defineCertificate` Creates a certificate at a specified OU for a customer. |\n| [defineNetwork](/chrome/policy/reference/rest/v1/customers.policies.networks/defineNetwork) | `POST /v1/{customer=customers/*}/policies/networks:defineNetwork` Define a new network. |\n| [removeCertificate](/chrome/policy/reference/rest/v1/customers.policies.networks/removeCertificate) | `POST /v1/{customer=customers/*}/policies/networks:removeCertificate` Remove an existing certificate by guid. |\n| [removeNetwork](/chrome/policy/reference/rest/v1/customers.policies.networks/removeNetwork) | `POST /v1/{customer=customers/*}/policies/networks:removeNetwork` Remove an existing network by guid. |\n\nREST Resource: [v1.customers.policies.orgunits](/chrome/policy/reference/rest/v1/customers.policies.orgunits)\n-------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [batchInherit](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit) | `POST /v1/{customer=customers/*}/policies/orgunits:batchInherit` Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). |\n| [batchModify](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify) | `POST /v1/{customer=customers/*}/policies/orgunits:batchModify` Modify multiple policy values that are applied to a specific org unit. |\n\nREST Resource: [v1.customers.policySchemas](/chrome/policy/reference/rest/v1/customers.policySchemas)\n-----------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [get](/chrome/policy/reference/rest/v1/customers.policySchemas/get) | `GET /v1/{name=customers/*/policySchemas/**}` Get a specific policy schema for a customer by its resource name. |\n| [list](/chrome/policy/reference/rest/v1/customers.policySchemas/list) | `GET /v1/{parent=customers/*}/policySchemas` Gets a list of policy schemas that match a specified filter value for a given customer. |\n\nREST Resource: [v1.media](/chrome/policy/reference/rest/v1/media)\n-----------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [upload](/chrome/policy/reference/rest/v1/media/upload) | `POST /v1/{customer=customers/*}/policies/files:uploadPolicyFile` `POST /upload/v1/{customer=customers/*}/policies/files:uploadPolicyFile` Creates an enterprise file from the content provided by user. |"]]