Method: enterprises.devices.operations.cancel
    
    
      
    
    
      
      コレクションでコンテンツを整理
    
    
      
      必要に応じて、コンテンツの保存と分類を行います。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        長時間実行オペレーションの非同期キャンセルを開始します。サーバーは操作のキャンセルに全力を尽くしますが、成功は保証されません。このメソッドがサーバーでサポートされていない場合は、google.rpc.Code.UNIMPLEMENTED を返します。クライアントは Operations.GetOperation などのメソッドを使用して、キャンセルが成功したか、あるいはキャンセルしたにもかかわらずオペレーションが完了したかを確認できます。キャンセルが成功してもそのオペレーションは削除されず、google.rpc.Status.code が 1 の Operation.error 値を持つオペレーションになります(これは Code.CANCELLED に相当します)。
      
      
        
          HTTP リクエスト
          POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*/operations/*}:cancel
この URL は gRPC Transcoding 構文を使用します。
        
        
          パスパラメータ
          
            
              
              
            
            
              
                | パラメータ | 
              
            
            
              
                name | 
                
                   string 
                  キャンセルするオペレーション リソースの名前。 
                 | 
              
            
          
        
        
          リクエストの本文
          リクエストの本文は空にする必要があります。
        
        
          レスポンスの本文
          成功すると、レスポンスの本文は空の JSON オブジェクトになります。
        
        
          認可スコープ
          次の OAuth スコープが必要です。
          
            https://www.googleapis.com/auth/androidmanagement 
          
詳細については、OAuth 2.0 Overview をご覧ください。
        
      
      
    
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
  最終更新日 2025-07-26 UTC。
  
  
  
    
      [null,null,["最終更新日 2025-07-26 UTC。"],[],["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"]]