Sites
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูรายการเมธอดสำหรับทรัพยากรนี้ได้ที่ส่วนท้ายของหน้านี้
การนำเสนอแหล่งข้อมูล
มีข้อมูลระดับสิทธิ์เกี่ยวกับเว็บไซต์ Search Console ดูข้อมูลเพิ่มเติมได้ที่ สิทธิ์ใน Search Console
{
"siteUrl": string,
"permissionLevel": string
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
Notes |
permissionLevel |
string |
ระดับสิทธิ์ของผู้ใช้สำหรับเว็บไซต์
ค่าที่ยอมรับได้ มีดังนี้
- "
siteFullUser "
- "
siteOwner "
- "
siteRestrictedUser "
- "
siteUnverifiedUser "
|
|
siteUrl |
string |
URL ของพร็อพเพอร์ตี้ที่จะเพิ่ม ตัวอย่าง:
http://www.example.com/ (สำหรับพร็อพเพอร์ตี้คำนำหน้า URL) หรือ sc-domain:example.com (สำหรับพร็อพเพอร์ตี้โดเมน)
|
|
วิธีการ
- เพิ่ม
- เพิ่มเว็บไซต์ลงในชุดเว็บไซต์ของผู้ใช้ใน Search Console
- ลบ
- นำเว็บไซต์ออกจากชุดเว็บไซต์ Search Console ของผู้ใช้
- รับ
- เรียกดูข้อมูลเกี่ยวกับเว็บไซต์ที่เฉพาะเจาะจง
- list
- แสดงรายการเว็บไซต์ Search Console ของผู้ใช้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-07-23 UTC
[null,null,["อัปเดตล่าสุด 2024-07-23 UTC"],[[["\u003cp\u003eThis resource outlines site permission levels within Google Search Console, including details on ownership, full user, restricted user, and unverified user roles.\u003c/p\u003e\n"],["\u003cp\u003eIt provides structured data representation with properties like \u003ccode\u003esiteUrl\u003c/code\u003e and \u003ccode\u003epermissionLevel\u003c/code\u003e to manage Search Console sites.\u003c/p\u003e\n"],["\u003cp\u003eUsers can utilize provided methods (add, delete, get, list) for managing their websites within Google Search Console via the API.\u003c/p\u003e\n"],["\u003cp\u003eThis information assists developers in programmatically interacting with Search Console to retrieve site data and manage site settings based on user permissions.\u003c/p\u003e\n"]]],["This resource details Search Console site information, including `siteUrl` and `permissionLevel`. Permission levels include `siteFullUser`, `siteOwner`, `siteRestrictedUser`, and `siteUnverifiedUser`. Key actions (methods) include `add` to add a site, `delete` to remove a site, `get` to retrieve site information, and `list` to show the user's sites. The `siteUrl` property is provided for both URL-prefix and Domain properties.\n"],null,["# Sites\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\nContains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).\n\n```text\n{\n \"siteUrl\": string,\n \"permissionLevel\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|-------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `permissionLevel` | `string` | The user's permission level for the site. \u003cbr /\u003e Acceptable values are: - \"`siteFullUser`\" - \"`siteOwner`\" - \"`siteRestrictedUser`\" - \"`siteUnverifiedUser`\" | |\n| `siteUrl` | `string` | The URL of the property to add. **Examples:** `http://www.example.com/` (for a URL-prefix property) or `sc-domain:example.com` (for a Domain property) | |\n\nMethods\n-------\n\n[add](/webmaster-tools/v1/sites/add)\n: Adds a site to the set of the user's sites in Search Console.\n\n[delete](/webmaster-tools/v1/sites/delete)\n: Removes a site from the set of the user's Search Console sites.\n\n[get](/webmaster-tools/v1/sites/get)\n: Retrieves information about specific site.\n\n[list](/webmaster-tools/v1/sites/list)\n: Lists the user's Search Console sites."]]