গুরুত্বপূর্ণ: আমরা আর প্লে EMM API-এর জন্য নতুন নিবন্ধন গ্রহণ করছি না।
আরও জানুন
Devices: update
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ডিভাইস নীতি আপডেট করে।
নীতিটি সঠিকভাবে প্রয়োগ করা হয়েছে তা নিশ্চিত করতে, আপনাকে Google Play প্যাকেজের জন্য পরিচালিত কনফিগারেশনে allowed_accounts
সেট করে Google Play অ্যাক্সেস করা থেকে অব্যবস্থাপিত অ্যাকাউন্টগুলিকে আটকাতে হবে৷ Google Play এ সীমাবদ্ধ অ্যাকাউন্ট দেখুন।
অনুরোধ
HTTP অনুরোধ
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId
পরামিতি
পরামিতি নাম | মান | বর্ণনা |
---|
পাথ প্যারামিটার |
deviceId | string | ডিভাইসের আইডি। |
enterpriseId | string | এন্টারপ্রাইজের আইডি। |
userId | string | ব্যবহারকারীর আইডি। |
ঐচ্ছিক ক্যোয়ারী পরামিতি |
updateMask | string | কোন ক্ষেত্র আপডেট করতে হবে তা চিহ্নিত করে মাস্ক। যদি সেট না করা হয়, সব পরিবর্তনযোগ্য ক্ষেত্র পরিবর্তন করা হবে।
একটি ক্যোয়ারী প্যারামিটারে সেট করা হলে, এই ক্ষেত্রটিকে updateMask=<field1>,<field2>,... হিসাবে নির্দিষ্ট করা উচিত। |
অনুমোদন
এই অনুরোধের জন্য নিম্নলিখিত সুযোগের সাথে অনুমোদন প্রয়োজন:
ব্যাপ্তি |
---|
https://www.googleapis.com/auth/androidenterprise |
আরও তথ্যের জন্য, প্রমাণীকরণ এবং অনুমোদন পৃষ্ঠাটি দেখুন।
শরীরের অনুরোধ
অনুরোধের অংশে, একটি ডিভাইস সংস্থান সরবরাহ করুন।
প্রতিক্রিয়া
সফল হলে, এই পদ্ধতিটি রেসপন্স বডিতে একটি ডিভাইস রিসোর্স ফেরত দেয়।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis operation updates a device's policy, requiring authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eTo enforce the policy effectively, it's crucial to restrict unmanaged accounts from accessing Google Play by configuring \u003ccode\u003eallowed_accounts\u003c/code\u003e in the managed configuration for the Google Play package.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify which fields to update using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, otherwise all modifiable fields will be changed.\u003c/p\u003e\n"],["\u003cp\u003eThe request utilizes a PUT method and targets a specific URL structure including enterprise ID, user ID, and device ID.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation returns a \u003ccode\u003eDevices\u003c/code\u003e resource, reflecting the updated device policy information.\u003c/p\u003e\n"]]],[],null,["# Devices: update\n\n| **Note:** Requires [authorization](#auth).\n\nUpdates the device policy.\n\n\u003cbr /\u003e\n\n\nTo ensure the policy is properly enforced, you need to prevent unmanaged\naccounts from accessing Google Play by setting the\n`allowed_accounts` in the managed configuration for the Google\nPlay package. See [restrict\naccounts in Google Play](https://developer.android.com/work/dpc/security#google-play-accounts).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `deviceId` | `string` | The ID of the device. |\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `userId` | `string` | The ID of the user. |\n| **Optional query parameters** |||\n| `updateMask` | `string` | Mask that identifies which fields to update. If not set, all modifiable fields will be modified. \u003cbr /\u003e When set in a query parameter, this field should be specified as `updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...` |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply a [Devices resource](/android/work/play/emm-api/v1/devices#resource).\n\nResponse\n--------\n\nIf successful, this method returns a [Devices resource](/android/work/play/emm-api/v1/devices#resource) in the response body."]]