Method: customers.devices.applyConfiguration
ज़ीरो-टच रजिस्ट्रेशन के लिए, डिवाइस को रजिस्टर करने के लिए डिवाइस पर एक कॉन्फ़िगरेशन लागू करता है. डिवाइस पर कॉन्फ़िगरेशन लागू करने के बाद, डिवाइस अपने-आप पहले बूट होने पर या अगली बार फ़ैक्ट्री रीसेट किए जाने पर अपने-आप सेट हो जाता है.
एचटीटीपी अनुरोध
POST https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices:applyConfiguration
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. डिवाइस को मैनेज करने वाला ग्राहक. customers/[CUSTOMER_ID] फ़ॉर्मैट में एपीआई संसाधन का नाम.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"device": {
object (DeviceReference )
},
"configuration": string
} |
फ़ील्ड |
device |
object (DeviceReference )
ज़रूरी है. वह डिवाइस जिस पर कॉन्फ़िगरेशन लागू किया गया है.
|
configuration |
string
ज़रूरी है. कॉन्फ़िगरेशन, डिवाइस पर customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID] फ़ॉर्मैट में लागू किया गया.
|
जवाब का मुख्य भाग
जवाब सही होने पर, जवाब का मुख्य हिस्सा खाली होता है.
अनुमति पाने के लिंक
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidworkzerotouchemm
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["This webpage details how to apply a configuration to a device for zero-touch enrollment, allowing automatic provisioning upon the first boot or after a factory reset."],["The process involves sending a POST request to a specific URL endpoint that includes the customer ID as a path parameter, `customers/[CUSTOMER_ID]`."],["The request body must include both the device details and the configuration to be applied, which must be in the provided format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`."],["A successful request results in an empty response body, indicating that the configuration has been applied."],["Utilizing this functionality requires authorization using the OAuth scope: `https://www.googleapis.com/auth/androidworkzerotouchemm`."]]],["This describes applying a configuration to a device for zero-touch enrollment via a `POST` request to `https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices:applyConfiguration`. The `parent` path parameter requires a customer ID. The request body mandates a `device` object and a `configuration` string, referencing the device and configuration. Upon success, an empty response is returned. This action requires the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope.\n"]]