Method: resources.buildings.get

เรียกข้อมูลอาคาร

คำขอ HTTP

GET https://admin.googleapis.com/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}

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

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

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

string

รหัสที่ไม่ซ้ำกันสำหรับบัญชี Google Workspace ของลูกค้า ในฐานะผู้ดูแลบัญชี คุณสามารถใช้อีเมลแทน my_customer เพื่อแสดงรหัสลูกค้าของบัญชีได้เช่นกัน

buildingId

string

รหัสที่ไม่ซ้ำกันของอาคารที่จะดึงข้อมูล

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

เนื้อหาของคำขอต้องว่างเปล่า

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

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

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

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

  • https://apps-apis.google.com/a/feeds/calendar/resource/
  • https://www.googleapis.com/auth/admin.directory.resource.calendar
  • https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly

ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์