Skip to main content

sitemaps

Creates, updates, deletes, gets or lists a sitemaps resource.

Overview

Namesitemaps
TypeResource
Idgoogle.discoveryengine.sitemaps

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
sitemapsMetadataarrayList of Sitemaps fetched.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_data_stores_site_search_engine_sitemaps_fetchselectprojectsId, locationsId, collectionsId, dataStoresIdmatcher.urisMatcher.urisFetch Sitemaps in a DataStore.
projects_locations_data_stores_site_search_engine_sitemaps_fetchselectprojectsId, locationsId, dataStoresIdmatcher.urisMatcher.urisFetch Sitemaps in a DataStore.
projects_locations_collections_data_stores_site_search_engine_sitemaps_createinsertprojectsId, locationsId, collectionsId, dataStoresIdCreates a Sitemap.
projects_locations_data_stores_site_search_engine_sitemaps_createinsertprojectsId, locationsId, dataStoresIdCreates a Sitemap.
projects_locations_collections_data_stores_site_search_engine_sitemaps_deletedeleteprojectsId, locationsId, collectionsId, dataStoresId, sitemapsIdDeletes a Sitemap.
projects_locations_data_stores_site_search_engine_sitemaps_deletedeleteprojectsId, locationsId, dataStoresId, sitemapsIdDeletes a Sitemap.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collectionsIdstring
dataStoresIdstring
locationsIdstring
projectsIdstring
sitemapsIdstring
matcher.urisMatcher.urisstring

SELECT examples

Fetch Sitemaps in a DataStore.

SELECT
sitemapsMetadata
FROM google.discoveryengine.sitemaps
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND collectionsId = '{{ collectionsId }}' -- required
AND dataStoresId = '{{ dataStoresId }}' -- required
AND matcher.urisMatcher.uris = '{{ matcher.urisMatcher.uris }}';

INSERT examples

Creates a Sitemap.

INSERT INTO google.discoveryengine.sitemaps (
data__uri,
projectsId,
locationsId,
collectionsId,
dataStoresId
)
SELECT
'{{ uri }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ collectionsId }}',
'{{ dataStoresId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a Sitemap.

DELETE FROM google.discoveryengine.sitemaps
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND dataStoresId = '{{ dataStoresId }}' --required
AND sitemapsId = '{{ sitemapsId }}' --required;