Method: partners.devices.claimAsync

อ้างสิทธิ์อุปกรณ์ชุดหนึ่งให้ลูกค้าไม่พร้อมกัน เพิ่มอุปกรณ์ในการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการดำเนินการแบบกลุ่มที่ใช้เวลานาน

คำขอ HTTP

POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:claimAsync

URL ใช้ไวยากรณ์การแปลง gRPC

พารามิเตอร์เส้นทาง

พารามิเตอร์
partnerId

string (int64 format)

ต้องระบุ รหัสของพาร์ทเนอร์ตัวแทนจำหน่าย

เนื้อหาของคำขอ

เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้

การแสดง JSON
{
  "claims": [
    {
      object (PartnerClaim)
    }
  ]
}
ช่อง
claims[]

object (PartnerClaim)

ต้องระบุ รายการการอ้างสิทธิ์ของอุปกรณ์

เนื้อหาการตอบกลับ

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth ต่อไปนี้

  • https://www.googleapis.com/auth/androidworkprovisioning

สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0

PartnerClaim

ระบุคำขอการอ้างสิทธิ์ 1 รายการ

การแสดง JSON
{
  "deviceIdentifier": {
    object (DeviceIdentifier)
  },
  "sectionType": enum (DeviceProvisioningSectionType),
  "deviceMetadata": {
    object (DeviceMetadata)
  },
  "preProvisioningToken": string,

  // Union field customer can be only one of the following:
  "customerId": string,
  "googleWorkspaceCustomerId": string
  // End of list of possible types for union field customer.
}
ช่อง
deviceIdentifier

object (DeviceIdentifier)

ต้องระบุ ต้องระบุ ตัวระบุของอุปกรณ์

sectionType

enum (DeviceProvisioningSectionType)

ต้องระบุ ประเภทส่วนของระเบียนการจัดสรรของอุปกรณ์

deviceMetadata

object (DeviceMetadata)

ต้องระบุ ข้อมูลเมตาที่จะแนบกับอุปกรณ์ที่อ้างสิทธิ์

preProvisioningToken

string

ไม่บังคับ ต้องตั้งค่าและต้องตั้งค่าสำหรับอุปกรณ์ Chrome OS เท่านั้น

ฟิลด์การรวม customer ต้องระบุ ลูกค้าที่จะอ้างสิทธิ์อุปกรณ์ customer ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
customerId

string (int64 format)

รหัสของลูกค้าที่จะอ้างสิทธิ์อุปกรณ์

googleWorkspaceCustomerId

string

รหัสลูกค้า Google Workspace