Chrome Policy API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Chrome Policy API 是一套服務套件,可讓 Chrome 管理員控管套用至受管理 Chrome OS 裝置和 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 個
依據指南移除現有憑證。 |
removeNetwork |
POST /v1/{customer=customers/*}/policies/networks:removeNetwork 個
按照指南移除現有的網路。 |
方法 |
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 個
取得政策結構定義清單,其中符合指定客戶的指定篩選器值。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-29 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]