Method: domains.get
รับโดเมนเฉพาะที่จดทะเบียนโดยไคลเอ็นต์ แสดงผล NOT_FOUND หากไม่มีโดเมน
คำขอ HTTP
GET https://gmailpostmastertools.googleapis.com/v1/{name=domains/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อทรัพยากรของโดเมน ซึ่งควรอยู่ในรูปแบบ domains/{domain_name} โดยที่ domain_name คือชื่อโดเมนที่สมบูรณ์ในตัวเอง
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Domain
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/postmaster.readonly
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-05 UTC
[null,null,["อัปเดตล่าสุด 2024-09-05 UTC"],[[["Retrieves details about a specific domain registered by the client, returning a NOT_FOUND error if the domain doesn't exist."],["Uses a GET request with the domain name as a path parameter, formatted as `domains/{domain_name}`."],["Requires an empty request body and returns a Domain object in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/postmaster.readonly` scope for access."]]],["The core content describes how to retrieve a specific domain registered by a client. A `GET` request is sent to a URL following gRPC Transcoding syntax, with the domain's resource name (`domains/{domain_name}`) provided as a path parameter. The request body must be empty. A successful response returns a `Domain` instance. The request requires the `https://www.googleapis.com/auth/postmaster.readonly` OAuth scope. A `NOT_FOUND` error is returned if the domain doesn't exist.\n"]]