একটি দীর্ঘ-চলমান অপারেশনে অ্যাসিঙ্ক্রোনাস বাতিলকরণ শুরু করে। সার্ভার অপারেশন বাতিল করার জন্য সর্বোত্তম প্রচেষ্টা করে, কিন্তু সাফল্য নিশ্চিত করা হয় না। সার্ভার এই পদ্ধতি সমর্থন না করলে, এটি google.rpc.Code.UNIMPLEMENTED প্রদান করে। বাতিলকরণ সফল হয়েছে কিনা বা বাতিল হওয়া সত্ত্বেও অপারেশন সম্পন্ন হয়েছে কিনা তা পরীক্ষা করতে গ্রাহকরা Operations.GetOperation বা অন্যান্য পদ্ধতি ব্যবহার করতে পারেন। সফল বাতিলকরণে, অপারেশনটি মুছে ফেলা হয় না; পরিবর্তে, এটি Code.CANCELLED এর সাথে সঙ্গতিপূর্ণ 1 এর google.rpc.Status.code সহ একটি Operation.error মান সহ একটি অপারেশন হয়ে যায়।
HTTP অনুরোধ
POST https://vault.googleapis.com/v1/{name=operations/**}:cancel
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-02-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Initiates the cancellation process for a long-running operation, although cancellation success is not guaranteed."],["Uses the `POST` method with a specific URL structure including the operation name for cancellation."],["Requires an empty request body and returns an empty response body upon successful cancellation."],["In case of unsupported cancellation by the server, an `UNIMPLEMENTED` error code is returned."],["If cancelled successfully, the operation is not deleted but marked with a `CANCELLED` status code."]]],["This document details the process of initiating asynchronous cancellation for a long-running operation. It uses an HTTP POST request to `vault.googleapis.com/v1/{name=operations/**}:cancel`. The `name` parameter specifies the operation to cancel. The request body must be empty, and a successful response returns an empty JSON object. The server attempts cancellation, and clients can check the status via `Operations.GetOperation`. Successful cancellation results in an `Operation.error` with `Code.CANCELLED`. Authorization requires the `https://www.googleapis.com/auth/ediscovery` OAuth scope.\n"]]