Skip to main content

target_sites

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

Overview

Nametarget_sites
TypeResource
Idgoogle.discoveryengine.target_sites

Fields

NameDatatypeDescription
namestringOutput only. The fully qualified resource name of the target site. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} The target_site_id is system-generated.
exactMatchbooleanInput only. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.
failureReasonobjectSite search indexing failure reasons.
generatedUriPatternstringOutput only. This is system-generated based on the provided_uri_pattern.
indexingStatusstringOutput only. Indexing status.
providedUriPatternstringRequired. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.
rootDomainUristringOutput only. Root domain of the provided_uri_pattern.
siteVerificationInfoobjectVerification information for target sites in advanced site search.
typestringThe type of the target site, e.g., whether the site is to be included or excluded.
updateTimestringOutput only. The target site's last updated time.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_collections_data_stores_site_search_engine_target_sites_getSELECTcollectionsId, dataStoresId, locationsId, projectsId, targetSitesIdGets a TargetSite.
projects_locations_collections_data_stores_site_search_engine_target_sites_listSELECTcollectionsId, dataStoresId, locationsId, projectsIdGets a list of TargetSites.
projects_locations_data_stores_site_search_engine_target_sites_getSELECTdataStoresId, locationsId, projectsId, targetSitesIdGets a TargetSite.
projects_locations_data_stores_site_search_engine_target_sites_listSELECTdataStoresId, locationsId, projectsIdGets a list of TargetSites.
projects_locations_collections_data_stores_site_search_engine_target_sites_batch_createINSERTcollectionsId, dataStoresId, locationsId, projectsIdCreates TargetSite in a batch.
projects_locations_collections_data_stores_site_search_engine_target_sites_createINSERTcollectionsId, dataStoresId, locationsId, projectsIdCreates a TargetSite.
projects_locations_data_stores_site_search_engine_target_sites_batch_createINSERTdataStoresId, locationsId, projectsIdCreates TargetSite in a batch.
projects_locations_data_stores_site_search_engine_target_sites_createINSERTdataStoresId, locationsId, projectsIdCreates a TargetSite.
projects_locations_collections_data_stores_site_search_engine_target_sites_deleteDELETEcollectionsId, dataStoresId, locationsId, projectsId, targetSitesIdDeletes a TargetSite.
projects_locations_data_stores_site_search_engine_target_sites_deleteDELETEdataStoresId, locationsId, projectsId, targetSitesIdDeletes a TargetSite.
projects_locations_collections_data_stores_site_search_engine_target_sites_patchUPDATEcollectionsId, dataStoresId, locationsId, projectsId, targetSitesIdUpdates a TargetSite.
projects_locations_data_stores_site_search_engine_target_sites_patchUPDATEdataStoresId, locationsId, projectsId, targetSitesIdUpdates a TargetSite.

SELECT examples

Gets a list of TargetSites.

SELECT
name,
exactMatch,
failureReason,
generatedUriPattern,
indexingStatus,
providedUriPattern,
rootDomainUri,
siteVerificationInfo,
type,
updateTime
FROM google.discoveryengine.target_sites
WHERE dataStoresId = '{{ dataStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new target_sites resource.

/*+ create */
INSERT INTO google.discoveryengine.target_sites (
dataStoresId,
locationsId,
projectsId,
requests
)
SELECT
'{{ dataStoresId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ requests }}'
;

UPDATE example

Updates a target_sites resource.

/*+ update */
UPDATE google.discoveryengine.target_sites
SET
providedUriPattern = '{{ providedUriPattern }}',
type = '{{ type }}',
exactMatch = true|false
WHERE
dataStoresId = '{{ dataStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND targetSitesId = '{{ targetSitesId }}';

DELETE example

Deletes the specified target_sites resource.

/*+ delete */
DELETE FROM google.discoveryengine.target_sites
WHERE dataStoresId = '{{ dataStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND targetSitesId = '{{ targetSitesId }}';