有关此类资源的方法列表,请参阅本页面的结尾部分。
资源表示形式
站点地图
包含作为站点地图提交的特定网址的相关详细信息。
{
  "path": string,
  "lastSubmitted": datetime,
  "isPending": boolean,
  "isSitemapsIndex": boolean,
  "type": string,
  "lastDownloaded": datetime,
  "warnings": long,
  "errors": long,
  "contents": [
    {
      "type": string,
      "submitted": long,
      "indexed": long
    }
  ]
}| 属性名称 | 值 | 说明 | 备注 | 
|---|---|---|---|
| contents[] | list | 站点地图中的各种内容类型。 | |
| contents[].indexed | N/A | 已弃用;请勿使用。 | |
| contents[].submitted | long | (属于内容类型)站点地图中的网址数量。 | |
| contents[].type | string | 此站点地图中特定类型的内容。例如: web。可接受的值包括: <ph type="x-smartling-placeholder"> 
 | |
| errors | long | 站点地图中的错误数量。这些都是站点地图本身的问题,您需要先修正这些问题,然后才能正确处理。 | |
| isPending | boolean | 如果为 true,则表示站点地图尚未处理。 | |
| isSitemapsIndex | boolean | 如果值为 true,则站点地图是站点地图的集合。 | |
| lastDownloaded | datetime | 日期和上次下载此站点地图的时间。日期格式为 RFC 3339 格式 (yyyy-mm-dd)。 | |
| lastSubmitted | datetime | 日期和此站点地图的提交时间。日期格式为 RFC 3339 格式 (yyyy-mm-dd)。 | |
| path | string | 站点地图的网址。 | |
| type | string | 站点地图的类型。例如: rssFeed。可接受的值包括: <ph type="x-smartling-placeholder"> 
 | |
| warnings | long | 站点地图警告的数量。这些通常是与站点地图中的网址有关的非严重问题。 | 
方法
- delete
- 从此网站中删除站点地图。
- get
- 检索特定站点地图的相关信息。
- list
- 列出为此网站提交的或包含在站点地图索引文件中(如果在请求中指定了 sitemapIndex)的 sitemaps-entries。
- 提交
- 提交网站的站点地图。