Chrome Policy API की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Chrome Policy API ऐसी सेवाओं का सुइट है जो Chrome एडमिन को यह सुविधा देती है कि वे अपने संगठन में संगठन की इकाइयों को असाइन की गई Chrome की नीतियों को प्रोग्राम के हिसाब से, अपने-आप देख और मैनेज कर सकते हैं. इस एपीआई की मदद से, Chrome एडमिन को यह अहम जानकारी मिल सकती है कि
उनके संगठन में ChromeOS डिवाइसों और Chrome ब्राउज़र का इस्तेमाल किस तरह किया जा रहा है.
खास फ़ायदे
Google Admin console के साथ काम करने की सुविधा: एपीआई की मदद से जो बदलाव किए जाते हैं वे Google Admin console के यूज़र इंटरफ़ेस (यूआई) में दिखते हैं. इसी तरह Google Admin console में एपीआई की मदद से किए गए बदलाव, Google Admin console के यूज़र इंटरफ़ेस (यूआई) में दिखते हैं.
ऑडिट लॉग करना: इस एपीआई की मदद से किए गए बदलाव, स्टैंडर्ड एडमिन ऑडिट लॉग में लॉग किए जाते हैं.
डेटा पर आधारित तरीका: Chrome की नीतियों को डेटा के तौर पर दिखाया जाता है. इन नीतियों का इस्तेमाल सीधे तौर पर एपीआई इंटरफ़ेस से नहीं किया जाता. इससे Chrome की नीतियों को आने वाले समय में इस्तेमाल करने के लिए, एपीआई क्लाइंट को ऑटोमेट करने की सुविधा मिलती है. इसके लिए, अलग से कोई डेवलपमेंट नहीं करना पड़ता. समय के साथ, एपीआई की मदद से काम करने वाली नीतियों की संख्या बढ़ जाएगी.
एडमिन SDK API के साथ-साथ: यह एपीआई, एडमिन SDK API के साथ काम करता है. इसमें Chrome के एडमिन ये काम कर सकते हैं:
इस्तेमाल के लोकप्रिय उदाहरण
नीचे दी गई टेबल में उन मुख्य कामों की सूची दी गई है जिन्हें इस एपीआई की मदद से पूरा किया जा सकता है. अनुरोध और जवाबों के उदाहरण देखने के लिए, कोड सैंपल पर जाएं.
यूआरएल, https://chromepolicy.googleapis.com/v1/customers/$CUSTOMER
से जुड़े हैं.
टास्क के बारे में जानकारी |
मिलता-जुलता यूआरएल |
एचटीटीपी तरीका |
अनुरोध के पैरामीटर |
नीति के स्कीमा की सूची बनाना |
./policySchemas |
GET |
ज़रूरी नहीं है: filter , pageSize , और pageToken |
नीति का स्कीमा पाना |
./policySchemas/$SCHEMA_NAME |
GET |
|
संगठन की किसी इकाई या ग्रुप के लिए, नीतियां देखना या उनकी सूची बनाना |
./policies:resolve |
POST |
ज़रूरी है: policySchemaFilter , policyTargetKey
ज़रूरी नहीं: pageSize , pageToken
|
संगठन की किसी इकाई की नीतियों में बदलाव करना |
./policies/orgunits:batchModify |
POST |
ज़रूरी है: requests: {policyTargetKey, policyValue, updateMask} |
संगठन की किसी इकाई में नीतियां इनहेरिट करें |
./policies/orgunits:batchInherit |
POST |
ज़रूरी है: requests: {policyTargetKey, policySchema} |
ग्रुप की नीतियों में बदलाव करना |
./policies/groups:batchModify |
POST |
ज़रूरी है: requests: {policyTargetKey, policyValue, updateMask} |
किसी ग्रुप की नीतियां मिटाना |
./policies/groups:batchDelete |
POST |
ज़रूरी है: requests: {policyTargetKey, policySchema} |
ग्रुप में प्राथमिकता वाले क्रम की सूची बनाना |
./policies/groups:listGroupPriorityOrdering |
POST |
ज़रूरी है: requests: {policyTargetKey, policyNamespace} |
ग्रुप में प्राथमिकता के क्रम को अपडेट करना |
./policies/groups:updateGroupPriorityOrdering |
POST |
ज़रूरी है: requests: {policyTargetKey, policyNamespace, groupIds} |
किसी नीति से जुड़ी फ़ाइलें अपलोड करना |
./policies/files:uploadPolicyFile |
POST |
ज़रूरी है: requests: {policyField} |
इस्तेमाल करने की सीमा
यह एपीआई सिर्फ़ Chrome का इस्तेमाल करने वाले ग्राहक के संगठन में अंदरूनी तौर पर इस्तेमाल करने के लिए है. ज़्यादा जानकारी के लिए, Chrome Policy API की सेवा की शर्तें देखें. Google के साथ साझेदारी में व्यावसायिक एपीआई क्लाइंट बनाने के लिए, पार्टनर ऐप्लिकेशन सबमिट करें.
अगले चरण
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Chrome Policy API enables Chrome administrators to programmatically view and manage Chrome policies for their organization's ChromeOS devices and Chrome browsers.\u003c/p\u003e\n"],["\u003cp\u003eIt offers key benefits like Google Admin console compatibility, audit logging, and a data-driven approach for easier automation.\u003c/p\u003e\n"],["\u003cp\u003eAdmins can utilize this API to perform tasks such as listing policy schemas, retrieving specific schemas, and managing policies for organizational units and groups.\u003c/p\u003e\n"],["\u003cp\u003eUsage of this API is restricted to internal use within a Chrome customer's organization, with commercial partnerships requiring a separate application process.\u003c/p\u003e\n"],["\u003cp\u003eFurther exploration is encouraged through provided resources on policy schemas, request setup, and code samples.\u003c/p\u003e\n"]]],[],null,["# Chrome Policy API Overview\n\nThe Chrome Policy API is a suite of services that empower Chrome administrators\nto programmatically view and manage Chrome policies assigned to the\n[Organizational Units](https://support.google.com/a/answer/4352075)\nin their organization. With this API, Chrome admins can gain insights about how\nChromeOS devices and Chrome browsers are being used in their organization.\n\nKey advantages\n--------------\n\n- **Google Admin console compatibility:** Changes you make with the API are\n reflected in Google Admin console UI, and vice versa.\n\n- **Audit logging:** Changes made with this API are logged in the standard\n [Admin Audit logs](https://support.google.com/a/answer/4579579).\n\n- **Data-driven approach:** Chrome policies are represented as data and aren't\n directly referenced by the API interface. This lets you automate API clients\n for consumption of future Chrome policies without additional development. Over\n time, the number of policies supported via API will increase.\n\n- **Complements the Admin SDK API:** This API complements the Admin SDK API,\n where Chrome admins can perform the following tasks:\n\n - [Manage Chrome devices](/admin-sdk/directory/v1/guides/manage-chrome-devices) with the Admin SDK's Directory API.\n - [Manage Chrome browsers](https://support.google.com/chrome/a/answer/9681204) with the Admin SDK's Chrome Browser Management API.\n - [Manage Chrome CUPS printers](/admin-sdk/chrome-printer) with the Admin SDK's Chrome Printer Management API.\n\nPopular use cases\n-----------------\n\nThe table below lists the top tasks you can complete with this API. To review\nexample requests and responses, go to [Code samples](/chrome/policy/guides/samples_policyapi).\n\nURLs are relative to `https://chromepolicy.googleapis.com/v1/customers/`\u003cvar translate=\"no\"\u003e$CUSTOMER\u003c/var\u003e.\n\n| Task description | Relative URL | HTTP method | Request parameters |\n|--------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|-------------|-----------------------------------------------------------------------------------------|\n| [List policy schemas](/chrome/policy/reference/rest/v1/customers.policySchemas/list) | `./policySchemas` | `GET` | *Optional:* `filter`, `pageSize`, `pageToken` |\n| [Get a policy schema](/chrome/policy/reference/rest/v1/customers.policySchemas/get) | `./policySchemas/`\u003cvar translate=\"no\"\u003e$SCHEMA_NAME\u003c/var\u003e | `GET` | |\n| [Get or list policies for an Organizational Unit or Group](/chrome/policy/reference/rest/v1/customers.policies/resolve) | `./policies:resolve` | `POST` | *Required:* `policySchemaFilter`, `policyTargetKey` *Optional:* `pageSize`, `pageToken` |\n| [Modify policies in an Organizational Unit](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify) | `./policies/orgunits:batchModify` | `POST` | *Required:* `requests: {policyTargetKey, policyValue, updateMask}` |\n| [Inherit policies in an Organizational Unit](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit) | `./policies/orgunits:batchInherit` | `POST` | *Required:* `requests: {policyTargetKey, policySchema}` |\n| [Modify policies in a Group](/chrome/policy/reference/rest/v1/customers.policies.groups/batchModify) | `./policies/groups:batchModify` | `POST` | *Required:* `requests: {policyTargetKey, policyValue, updateMask}` |\n| [Delete policies in a Group](/chrome/policy/reference/rest/v1/customers.policies.groups/batchDelete) | `./policies/groups:batchDelete` | `POST` | *Required:* `requests: {policyTargetKey, policySchema}` |\n| [List priority orderings in a Group](/chrome/policy/reference/rest/v1/customers.policies.groups/listGroupPriorityOrdering) | `./policies/groups:listGroupPriorityOrdering` | `POST` | *Required:* `requests: {policyTargetKey, policyNamespace}` |\n| [Update priority orderings in a Group](/chrome/policy/reference/rest/v1/customers.policies.groups/updateGroupPriorityOrdering) | `./policies/groups:updateGroupPriorityOrdering` | `POST` | *Required:* `requests: {policyTargetKey, policyNamespace, groupIds}` |\n| [Upload files for a policy](/chrome/policy/reference/rest/v1/media/upload) | `./policies/files:uploadPolicyFile` | `POST` | *Required:* `requests: {policyField}` |\n\nUsage limits\n------------\n\nThis API is only for use internally within a Chrome customer's organization. For more details, review the [Chrome Policy API Terms of Service](http://console.cloud.google.com/tos?id=chrome-policy). To build a commercial API client in partnership with Google, submit a [partner application](https://docs.google.com/forms/d/e/1FAIpQLSdJA-2_BZ3FJLSBtuWkPCMPXqUpxGbCta1wXRrrVdUCX7apog/viewform).\n\nNext steps\n----------\n\n- [Learn about policy schemas](./policy-schemas)\n- [Set up and authorize requests](./setup)\n- [Review code samples](./samples)"]]