Method: enterprises.devices.operations.cancel
একটি দীর্ঘ-চলমান অপারেশনে অ্যাসিঙ্ক্রোনাস বাতিলকরণ শুরু করে। সার্ভার অপারেশন বাতিল করার জন্য সর্বোত্তম প্রচেষ্টা করে, কিন্তু সাফল্য নিশ্চিত করা হয় না। সার্ভার এই পদ্ধতি সমর্থন না করলে, এটি google.rpc.Code.UNIMPLEMENTED
প্রদান করে। বাতিলকরণ সফল হয়েছে কিনা বা বাতিল হওয়া সত্ত্বেও অপারেশন সম্পন্ন হয়েছে কিনা তা পরীক্ষা করতে গ্রাহকরা Operations.GetOperation
বা অন্যান্য পদ্ধতি ব্যবহার করতে পারেন। সফল বাতিলকরণে, অপারেশনটি মুছে ফেলা হয় না; পরিবর্তে, এটি Code.CANCELLED
এর সাথে সঙ্গতিপূর্ণ 1
এর google.rpc.Status.code
সহ একটি Operation.error
মান সহ একটি অপারেশন হয়ে যায়।
HTTP অনুরোধ
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*/operations/*}:cancel
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
name | string অপারেশন রিসোর্সের নাম বাতিল করা হবে। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডি একটি খালি JSON অবজেক্ট।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/androidmanagement
আরো তথ্যের জন্য, দেখুনOAuth 2.0 Overview .
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Cancels a long-running operation asynchronously, with the server making a best effort to cancel the operation but success is not guaranteed."],["Uses an HTTP POST request to `https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*/operations/*}:cancel` with the operation name as a path parameter and an empty request body."],["If cancellation is successful, the response body will be empty and the operation will have an error value with a code of 1, indicating cancellation."],["Requires authorization with the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This document details the process of initiating asynchronous cancellation for a long-running operation. The core action is sending a `POST` request to a specific URL, defined by a path parameter `name`, indicating the operation to cancel. The request body must be empty. A successful cancellation results in an empty JSON object response, and the operation's error code is set to `1` (`Code.CANCELLED`). The authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The server might not support this method, and cancellation is not guaranteed.\n"]]