Method: customers.policies.networks.defineCertificate
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ग्राहक के लिए तय की गई ओयू में सर्टिफ़िकेट बनाता है.
एचटीटीपी अनुरोध
POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineCertificate
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
customer |
string
ज़रूरी है. वह ग्राहक जिसके लिए सर्टिफ़िकेट लागू होगा.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"targetResource": string,
"ceritificateName": string,
"certificate": string,
"settings": [
{
object (NetworkSetting )
}
]
} |
फ़ील्ड |
targetResource |
string
ज़रूरी है. वह लक्ष्य संसाधन जिस पर यह प्रमाणपत्र लागू किया गया है. इन संसाधनों का इस्तेमाल किया जा सकता है: * संगठन की इकाई ("orgunits/{orgunit_id}")
|
ceritificateName |
string
ज़रूरी नहीं. सर्टिफ़िकेट का वैकल्पिक नाम. अगर इसके बारे में नहीं बताया गया है, तो सर्टिफ़िकेट जारी करने वाली कंपनी के नाम का इस्तेमाल किया जाएगा.
|
certificate |
string
ज़रूरी है. .PEM, .CRT या .CER फ़ाइल का रॉ कॉन्टेंट.
|
settings[] |
object (NetworkSetting )
ज़रूरी नहीं. chrome.networks.certificates नेमस्पेस में मौजूद, सर्टिफ़िकेट की सेटिंग.
|
जवाब का मुख्य भाग
सर्टिफ़िकेट बनाने के लिए रिस्पॉन्स ऑब्जेक्ट.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"settings": [
{
object (NetworkSetting )
}
],
"networkId": string,
"targetResource": string
} |
फ़ील्ड |
settings[] |
object (NetworkSetting )
सर्टिफ़िकेट से जुड़ी सेटिंग (शामिल नहीं की गई)
|
networkId |
string
कार्रवाई से बनाए गए सर्टिफ़िकेट का गाइड.
|
targetResource |
string
वह संसाधन जहां सर्टिफ़िकेट तय किया गया है.
|
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/chrome.management.policy
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eDefines a certificate at a specified organizational unit (OU) for a customer using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the certificate data, target resource, and optionally, a certificate name and settings.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful creation, the response includes the certificate's settings, network ID, and target resource.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.policy\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: customers.policies.networks.defineCertificate\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.DefineCertificateResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a certificate at a specified OU for a customer.\n\n### HTTP request\n\n`POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineCertificate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------|\n| `customer` | `string` Required. The customer for which the certificate will apply. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetResource\": string, \"ceritificateName\": string, \"certificate\": string, \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ] } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetResource` | `string` Required. The target resource on which this certificate is applied. The following resources are supported: \\* Organizational Unit (\"orgunits/{orgunit_id}\") |\n| `ceritificateName` | `string` Optional. The optional name of the certificate. If not specified, the certificate issuer will be used as the name. |\n| `certificate` | `string` Required. The raw contents of the .PEM, .CRT, or .CER file. |\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` Optional. Certificate settings within the chrome.networks.certificates namespace. |\n\n### Response body\n\nResponse object for creating a certificate.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ], \"networkId\": string, \"targetResource\": string } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` the affiliated settings of the certificate (NOT IMPLEMENTED) |\n| `networkId` | `string` The guid of the certificate created by the action. |\n| `targetResource` | `string` the resource at which the certificate is defined. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chrome.management.policy`"]]