Method: partners.devices.unclaim
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
      
        
          HTTP 请求
          POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaim
网址采用 gRPC 转码语法。
        
        
          路径参数
          
            
              
                | 参数 | 
            
            
              
                | partnerId | string (int64 format)
 必需。转销商合作伙伴的 ID。 | 
            
          
        
        
          请求正文
          请求正文中包含结构如下的数据:
          
            
              
                
                  | JSON 表示法 | 
              
              
                
                  | {
  "sectionType": enum (DeviceProvisioningSectionType),
  // Union fielddevice_to_unclaimcan be only one of the following:
  "deviceId": string,
  "deviceIdentifier": {
    object (DeviceIdentifier)
  }
  // End of list of possible types for union fielddevice_to_unclaim.
} | 
              
            
          
          
            
              
                
                  | 字段 | 
              
              
                
                  | sectionType | enum (DeviceProvisioningSectionType)
 必需。设备配置记录所属的部分类型。 | 
                
                  | 联合字段 device_to_unclaim。必需。要取消申领的设备。device_to_unclaim只能是下列其中一项: | 
                
                  | deviceId | string (int64 format)
 必需。devices.claim返回的设备 ID。 | 
                
                  | deviceIdentifier | object (DeviceIdentifier)
 必需。您认领此设备时使用的设备标识符。 | 
              
            
          
        
        
        
          授权范围
          需要以下 OAuth 范围:
          
            - https://www.googleapis.com/auth/androidworkprovisioning
如需了解详情,请参阅 OAuth 2.0 概览。
        
      
    
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-25。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-25。"],[],["This document details the process to unclaim a device from a customer, removing it from zero-touch enrollment.  It uses a `POST` HTTP request to the endpoint: `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaim`, requires the `partnerId` path parameter and the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. The request body requires a `sectionType`, along with either a `deviceId` or a `deviceIdentifier` to specify the device to unclaim. A successful request returns an empty response body.\n"]]