Method: domains.get
क्लाइंट ने जो डोमेन रजिस्टर किया है वह मिलता है. डोमेन मौजूद न होने पर, NOT_FOUND कोड दिखता है.
एचटीटीपी अनुरोध
GET https://gmailpostmastertools.googleapis.com/v1/{name=domains/*}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
name |
string
डोमेन के संसाधन का नाम. इसका फ़ॉर्म domains/{domain_name} होना चाहिए, जिसमेंdomain_name पूरी तरह क्वालिफ़ाइड डोमेन नेम है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Domain
का एक इंस्टेंस शामिल किया जाता है.
अनुमति देने के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/postmaster.readonly
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]