gcp.discoveryengine.TargetSite
Explore with Pulumi AI
TargetSite represents a URI pattern that the users want to confine their search.
To get more information about TargetSite, see:
Example Usage
Discoveryengine Targetsite Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicDataStore = new gcp.discoveryengine.DataStore("basic", {
location: "global",
dataStoreId: "data-store-id",
displayName: "tf-test-basic-site-search-datastore",
industryVertical: "GENERIC",
contentConfig: "PUBLIC_WEBSITE",
solutionTypes: ["SOLUTION_TYPE_SEARCH"],
createAdvancedSiteSearch: false,
skipDefaultSchemaCreation: false,
});
const basic = new gcp.discoveryengine.TargetSite("basic", {
location: basicDataStore.location,
dataStoreId: basicDataStore.dataStoreId,
providedUriPattern: "http://cloud.google.com/docs/*",
type: "INCLUDE",
exactMatch: false,
});
import pulumi
import pulumi_gcp as gcp
basic_data_store = gcp.discoveryengine.DataStore("basic",
location="global",
data_store_id="data-store-id",
display_name="tf-test-basic-site-search-datastore",
industry_vertical="GENERIC",
content_config="PUBLIC_WEBSITE",
solution_types=["SOLUTION_TYPE_SEARCH"],
create_advanced_site_search=False,
skip_default_schema_creation=False)
basic = gcp.discoveryengine.TargetSite("basic",
location=basic_data_store.location,
data_store_id=basic_data_store.data_store_id,
provided_uri_pattern="http://cloud.google.com/docs/*",
type="INCLUDE",
exact_match=False)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/discoveryengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
basicDataStore, err := discoveryengine.NewDataStore(ctx, "basic", &discoveryengine.DataStoreArgs{
Location: pulumi.String("global"),
DataStoreId: pulumi.String("data-store-id"),
DisplayName: pulumi.String("tf-test-basic-site-search-datastore"),
IndustryVertical: pulumi.String("GENERIC"),
ContentConfig: pulumi.String("PUBLIC_WEBSITE"),
SolutionTypes: pulumi.StringArray{
pulumi.String("SOLUTION_TYPE_SEARCH"),
},
CreateAdvancedSiteSearch: pulumi.Bool(false),
SkipDefaultSchemaCreation: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = discoveryengine.NewTargetSite(ctx, "basic", &discoveryengine.TargetSiteArgs{
Location: basicDataStore.Location,
DataStoreId: basicDataStore.DataStoreId,
ProvidedUriPattern: pulumi.String("http://cloud.google.com/docs/*"),
Type: pulumi.String("INCLUDE"),
ExactMatch: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basicDataStore = new Gcp.DiscoveryEngine.DataStore("basic", new()
{
Location = "global",
DataStoreId = "data-store-id",
DisplayName = "tf-test-basic-site-search-datastore",
IndustryVertical = "GENERIC",
ContentConfig = "PUBLIC_WEBSITE",
SolutionTypes = new[]
{
"SOLUTION_TYPE_SEARCH",
},
CreateAdvancedSiteSearch = false,
SkipDefaultSchemaCreation = false,
});
var basic = new Gcp.DiscoveryEngine.TargetSite("basic", new()
{
Location = basicDataStore.Location,
DataStoreId = basicDataStore.DataStoreId,
ProvidedUriPattern = "http://cloud.google.com/docs/*",
Type = "INCLUDE",
ExactMatch = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.discoveryengine.DataStore;
import com.pulumi.gcp.discoveryengine.DataStoreArgs;
import com.pulumi.gcp.discoveryengine.TargetSite;
import com.pulumi.gcp.discoveryengine.TargetSiteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basicDataStore = new DataStore("basicDataStore", DataStoreArgs.builder()
.location("global")
.dataStoreId("data-store-id")
.displayName("tf-test-basic-site-search-datastore")
.industryVertical("GENERIC")
.contentConfig("PUBLIC_WEBSITE")
.solutionTypes("SOLUTION_TYPE_SEARCH")
.createAdvancedSiteSearch(false)
.skipDefaultSchemaCreation(false)
.build());
var basic = new TargetSite("basic", TargetSiteArgs.builder()
.location(basicDataStore.location())
.dataStoreId(basicDataStore.dataStoreId())
.providedUriPattern("http://cloud.google.com/docs/*")
.type("INCLUDE")
.exactMatch(false)
.build());
}
}
resources:
basic:
type: gcp:discoveryengine:TargetSite
properties:
location: ${basicDataStore.location}
dataStoreId: ${basicDataStore.dataStoreId}
providedUriPattern: http://cloud.google.com/docs/*
type: INCLUDE
exactMatch: false
basicDataStore:
type: gcp:discoveryengine:DataStore
name: basic
properties:
location: global
dataStoreId: data-store-id
displayName: tf-test-basic-site-search-datastore
industryVertical: GENERIC
contentConfig: PUBLIC_WEBSITE
solutionTypes:
- SOLUTION_TYPE_SEARCH
createAdvancedSiteSearch: false
skipDefaultSchemaCreation: false
Discoveryengine Targetsite Advanced
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const advancedDataStore = new gcp.discoveryengine.DataStore("advanced", {
location: "global",
dataStoreId: "data-store-id",
displayName: "tf-test-advanced-site-search-datastore",
industryVertical: "GENERIC",
contentConfig: "PUBLIC_WEBSITE",
solutionTypes: ["SOLUTION_TYPE_SEARCH"],
createAdvancedSiteSearch: true,
skipDefaultSchemaCreation: false,
});
const advanced = new gcp.discoveryengine.TargetSite("advanced", {
location: advancedDataStore.location,
dataStoreId: advancedDataStore.dataStoreId,
providedUriPattern: "http://cloud.google.com/docs/*",
type: "INCLUDE",
exactMatch: false,
});
import pulumi
import pulumi_gcp as gcp
advanced_data_store = gcp.discoveryengine.DataStore("advanced",
location="global",
data_store_id="data-store-id",
display_name="tf-test-advanced-site-search-datastore",
industry_vertical="GENERIC",
content_config="PUBLIC_WEBSITE",
solution_types=["SOLUTION_TYPE_SEARCH"],
create_advanced_site_search=True,
skip_default_schema_creation=False)
advanced = gcp.discoveryengine.TargetSite("advanced",
location=advanced_data_store.location,
data_store_id=advanced_data_store.data_store_id,
provided_uri_pattern="http://cloud.google.com/docs/*",
type="INCLUDE",
exact_match=False)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/discoveryengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
advancedDataStore, err := discoveryengine.NewDataStore(ctx, "advanced", &discoveryengine.DataStoreArgs{
Location: pulumi.String("global"),
DataStoreId: pulumi.String("data-store-id"),
DisplayName: pulumi.String("tf-test-advanced-site-search-datastore"),
IndustryVertical: pulumi.String("GENERIC"),
ContentConfig: pulumi.String("PUBLIC_WEBSITE"),
SolutionTypes: pulumi.StringArray{
pulumi.String("SOLUTION_TYPE_SEARCH"),
},
CreateAdvancedSiteSearch: pulumi.Bool(true),
SkipDefaultSchemaCreation: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = discoveryengine.NewTargetSite(ctx, "advanced", &discoveryengine.TargetSiteArgs{
Location: advancedDataStore.Location,
DataStoreId: advancedDataStore.DataStoreId,
ProvidedUriPattern: pulumi.String("http://cloud.google.com/docs/*"),
Type: pulumi.String("INCLUDE"),
ExactMatch: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var advancedDataStore = new Gcp.DiscoveryEngine.DataStore("advanced", new()
{
Location = "global",
DataStoreId = "data-store-id",
DisplayName = "tf-test-advanced-site-search-datastore",
IndustryVertical = "GENERIC",
ContentConfig = "PUBLIC_WEBSITE",
SolutionTypes = new[]
{
"SOLUTION_TYPE_SEARCH",
},
CreateAdvancedSiteSearch = true,
SkipDefaultSchemaCreation = false,
});
var advanced = new Gcp.DiscoveryEngine.TargetSite("advanced", new()
{
Location = advancedDataStore.Location,
DataStoreId = advancedDataStore.DataStoreId,
ProvidedUriPattern = "http://cloud.google.com/docs/*",
Type = "INCLUDE",
ExactMatch = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.discoveryengine.DataStore;
import com.pulumi.gcp.discoveryengine.DataStoreArgs;
import com.pulumi.gcp.discoveryengine.TargetSite;
import com.pulumi.gcp.discoveryengine.TargetSiteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var advancedDataStore = new DataStore("advancedDataStore", DataStoreArgs.builder()
.location("global")
.dataStoreId("data-store-id")
.displayName("tf-test-advanced-site-search-datastore")
.industryVertical("GENERIC")
.contentConfig("PUBLIC_WEBSITE")
.solutionTypes("SOLUTION_TYPE_SEARCH")
.createAdvancedSiteSearch(true)
.skipDefaultSchemaCreation(false)
.build());
var advanced = new TargetSite("advanced", TargetSiteArgs.builder()
.location(advancedDataStore.location())
.dataStoreId(advancedDataStore.dataStoreId())
.providedUriPattern("http://cloud.google.com/docs/*")
.type("INCLUDE")
.exactMatch(false)
.build());
}
}
resources:
advanced:
type: gcp:discoveryengine:TargetSite
properties:
location: ${advancedDataStore.location}
dataStoreId: ${advancedDataStore.dataStoreId}
providedUriPattern: http://cloud.google.com/docs/*
type: INCLUDE
exactMatch: false
advancedDataStore:
type: gcp:discoveryengine:DataStore
name: advanced
properties:
location: global
dataStoreId: data-store-id
displayName: tf-test-advanced-site-search-datastore
industryVertical: GENERIC
contentConfig: PUBLIC_WEBSITE
solutionTypes:
- SOLUTION_TYPE_SEARCH
createAdvancedSiteSearch: true
skipDefaultSchemaCreation: false
Create TargetSite Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetSite(name: string, args: TargetSiteArgs, opts?: CustomResourceOptions);
@overload
def TargetSite(resource_name: str,
args: TargetSiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetSite(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_store_id: Optional[str] = None,
location: Optional[str] = None,
provided_uri_pattern: Optional[str] = None,
exact_match: Optional[bool] = None,
project: Optional[str] = None,
type: Optional[str] = None)
func NewTargetSite(ctx *Context, name string, args TargetSiteArgs, opts ...ResourceOption) (*TargetSite, error)
public TargetSite(string name, TargetSiteArgs args, CustomResourceOptions? opts = null)
public TargetSite(String name, TargetSiteArgs args)
public TargetSite(String name, TargetSiteArgs args, CustomResourceOptions options)
type: gcp:discoveryengine:TargetSite
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetSiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetSiteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TargetSiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetSiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetSiteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var targetSiteResource = new Gcp.DiscoveryEngine.TargetSite("targetSiteResource", new()
{
DataStoreId = "string",
Location = "string",
ProvidedUriPattern = "string",
ExactMatch = false,
Project = "string",
Type = "string",
});
example, err := discoveryengine.NewTargetSite(ctx, "targetSiteResource", &discoveryengine.TargetSiteArgs{
DataStoreId: pulumi.String("string"),
Location: pulumi.String("string"),
ProvidedUriPattern: pulumi.String("string"),
ExactMatch: pulumi.Bool(false),
Project: pulumi.String("string"),
Type: pulumi.String("string"),
})
var targetSiteResource = new TargetSite("targetSiteResource", TargetSiteArgs.builder()
.dataStoreId("string")
.location("string")
.providedUriPattern("string")
.exactMatch(false)
.project("string")
.type("string")
.build());
target_site_resource = gcp.discoveryengine.TargetSite("targetSiteResource",
data_store_id="string",
location="string",
provided_uri_pattern="string",
exact_match=False,
project="string",
type="string")
const targetSiteResource = new gcp.discoveryengine.TargetSite("targetSiteResource", {
dataStoreId: "string",
location: "string",
providedUriPattern: "string",
exactMatch: false,
project: "string",
type: "string",
});
type: gcp:discoveryengine:TargetSite
properties:
dataStoreId: string
exactMatch: false
location: string
project: string
providedUriPattern: string
type: string
TargetSite Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TargetSite resource accepts the following input properties:
- Data
Store stringId - The unique id of the data store.
- Location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- Provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - Exact
Match bool - 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
- Data
Store stringId - The unique id of the data store.
- Location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- Provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - Exact
Match bool - 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
- data
Store StringId - The unique id of the data store.
- location String
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- provided
Uri StringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - exact
Match Boolean - 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type String
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
- data
Store stringId - The unique id of the data store.
- location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - exact
Match boolean - 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.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
- data_
store_ strid - The unique id of the data store.
- location str
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- provided_
uri_ strpattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - exact_
match bool - 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.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type str
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
- data
Store StringId - The unique id of the data store.
- location String
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- provided
Uri StringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - exact
Match Boolean - 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type String
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetSite resource produces the following output properties:
- Failure
Reasons List<TargetSite Failure Reason> - Site search indexing failure reasons. Structure is documented below.
- Generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - Id string
- The provider-assigned unique ID for this managed resource.
- Indexing
Status string - The indexing status.
- Name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - Root
Domain stringUri - Root domain of the
provided_uri_pattern
. - Site
Verification List<TargetInfos Site Site Verification Info> - Site ownership and validity verification status. Structure is documented below.
- Target
Site stringId - The unique id of the target site.
- Update
Time string - The target site's last updated time.
- Failure
Reasons []TargetSite Failure Reason - Site search indexing failure reasons. Structure is documented below.
- Generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - Id string
- The provider-assigned unique ID for this managed resource.
- Indexing
Status string - The indexing status.
- Name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - Root
Domain stringUri - Root domain of the
provided_uri_pattern
. - Site
Verification []TargetInfos Site Site Verification Info - Site ownership and validity verification status. Structure is documented below.
- Target
Site stringId - The unique id of the target site.
- Update
Time string - The target site's last updated time.
- failure
Reasons List<TargetSite Failure Reason> - Site search indexing failure reasons. Structure is documented below.
- generated
Uri StringPattern - This is system-generated based on the
provided_uri_pattern
. - id String
- The provider-assigned unique ID for this managed resource.
- indexing
Status String - The indexing status.
- name String
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - root
Domain StringUri - Root domain of the
provided_uri_pattern
. - site
Verification List<TargetInfos Site Site Verification Info> - Site ownership and validity verification status. Structure is documented below.
- target
Site StringId - The unique id of the target site.
- update
Time String - The target site's last updated time.
- failure
Reasons TargetSite Failure Reason[] - Site search indexing failure reasons. Structure is documented below.
- generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - id string
- The provider-assigned unique ID for this managed resource.
- indexing
Status string - The indexing status.
- name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - root
Domain stringUri - Root domain of the
provided_uri_pattern
. - site
Verification TargetInfos Site Site Verification Info[] - Site ownership and validity verification status. Structure is documented below.
- target
Site stringId - The unique id of the target site.
- update
Time string - The target site's last updated time.
- failure_
reasons Sequence[TargetSite Failure Reason] - Site search indexing failure reasons. Structure is documented below.
- generated_
uri_ strpattern - This is system-generated based on the
provided_uri_pattern
. - id str
- The provider-assigned unique ID for this managed resource.
- indexing_
status str - The indexing status.
- name str
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - root_
domain_ struri - Root domain of the
provided_uri_pattern
. - site_
verification_ Sequence[Targetinfos Site Site Verification Info] - Site ownership and validity verification status. Structure is documented below.
- target_
site_ strid - The unique id of the target site.
- update_
time str - The target site's last updated time.
- failure
Reasons List<Property Map> - Site search indexing failure reasons. Structure is documented below.
- generated
Uri StringPattern - This is system-generated based on the
provided_uri_pattern
. - id String
- The provider-assigned unique ID for this managed resource.
- indexing
Status String - The indexing status.
- name String
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - root
Domain StringUri - Root domain of the
provided_uri_pattern
. - site
Verification List<Property Map>Infos - Site ownership and validity verification status. Structure is documented below.
- target
Site StringId - The unique id of the target site.
- update
Time String - The target site's last updated time.
Look up Existing TargetSite Resource
Get an existing TargetSite resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetSiteState, opts?: CustomResourceOptions): TargetSite
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_store_id: Optional[str] = None,
exact_match: Optional[bool] = None,
failure_reasons: Optional[Sequence[TargetSiteFailureReasonArgs]] = None,
generated_uri_pattern: Optional[str] = None,
indexing_status: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
provided_uri_pattern: Optional[str] = None,
root_domain_uri: Optional[str] = None,
site_verification_infos: Optional[Sequence[TargetSiteSiteVerificationInfoArgs]] = None,
target_site_id: Optional[str] = None,
type: Optional[str] = None,
update_time: Optional[str] = None) -> TargetSite
func GetTargetSite(ctx *Context, name string, id IDInput, state *TargetSiteState, opts ...ResourceOption) (*TargetSite, error)
public static TargetSite Get(string name, Input<string> id, TargetSiteState? state, CustomResourceOptions? opts = null)
public static TargetSite get(String name, Output<String> id, TargetSiteState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Data
Store stringId - The unique id of the data store.
- Exact
Match bool - 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.
- Failure
Reasons List<TargetSite Failure Reason> - Site search indexing failure reasons. Structure is documented below.
- Generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - Indexing
Status string - The indexing status.
- Location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- Name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - Root
Domain stringUri - Root domain of the
provided_uri_pattern
. - Site
Verification List<TargetInfos Site Site Verification Info> - Site ownership and validity verification status. Structure is documented below.
- Target
Site stringId - The unique id of the target site.
- Type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - Update
Time string - The target site's last updated time.
- Data
Store stringId - The unique id of the data store.
- Exact
Match bool - 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.
- Failure
Reasons []TargetSite Failure Reason Args - Site search indexing failure reasons. Structure is documented below.
- Generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - Indexing
Status string - The indexing status.
- Location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- Name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - Root
Domain stringUri - Root domain of the
provided_uri_pattern
. - Site
Verification []TargetInfos Site Site Verification Info Args - Site ownership and validity verification status. Structure is documented below.
- Target
Site stringId - The unique id of the target site.
- Type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - Update
Time string - The target site's last updated time.
- data
Store StringId - The unique id of the data store.
- exact
Match Boolean - 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.
- failure
Reasons List<TargetSite Failure Reason> - Site search indexing failure reasons. Structure is documented below.
- generated
Uri StringPattern - This is system-generated based on the
provided_uri_pattern
. - indexing
Status String - The indexing status.
- location String
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- name String
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Uri StringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - root
Domain StringUri - Root domain of the
provided_uri_pattern
. - site
Verification List<TargetInfos Site Site Verification Info> - Site ownership and validity verification status. Structure is documented below.
- target
Site StringId - The unique id of the target site.
- type String
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - update
Time String - The target site's last updated time.
- data
Store stringId - The unique id of the data store.
- exact
Match boolean - 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.
- failure
Reasons TargetSite Failure Reason[] - Site search indexing failure reasons. Structure is documented below.
- generated
Uri stringPattern - This is system-generated based on the
provided_uri_pattern
. - indexing
Status string - The indexing status.
- location string
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- name string
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Uri stringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - root
Domain stringUri - Root domain of the
provided_uri_pattern
. - site
Verification TargetInfos Site Site Verification Info[] - Site ownership and validity verification status. Structure is documented below.
- target
Site stringId - The unique id of the target site.
- type string
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - update
Time string - The target site's last updated time.
- data_
store_ strid - The unique id of the data store.
- exact_
match bool - 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.
- failure_
reasons Sequence[TargetSite Failure Reason Args] - Site search indexing failure reasons. Structure is documented below.
- generated_
uri_ strpattern - This is system-generated based on the
provided_uri_pattern
. - indexing_
status str - The indexing status.
- location str
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- name str
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided_
uri_ strpattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - root_
domain_ struri - Root domain of the
provided_uri_pattern
. - site_
verification_ Sequence[Targetinfos Site Site Verification Info Args] - Site ownership and validity verification status. Structure is documented below.
- target_
site_ strid - The unique id of the target site.
- type str
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - update_
time str - The target site's last updated time.
- data
Store StringId - The unique id of the data store.
- exact
Match Boolean - 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.
- failure
Reasons List<Property Map> - Site search indexing failure reasons. Structure is documented below.
- generated
Uri StringPattern - This is system-generated based on the
provided_uri_pattern
. - indexing
Status String - The indexing status.
- location String
- The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
- name String
- The unique full resource name of the target site. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/siteSearchEngine/targetSites/{target_site_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Uri StringPattern - The user provided URI pattern from which the
generated_uri_pattern
is generated. - root
Domain StringUri - Root domain of the
provided_uri_pattern
. - site
Verification List<Property Map>Infos - Site ownership and validity verification status. Structure is documented below.
- target
Site StringId - The unique id of the target site.
- type String
- The possible target site types.
Possible values are:
INCLUDE
,EXCLUDE
. - update
Time String - The target site's last updated time.
Supporting Types
TargetSiteFailureReason, TargetSiteFailureReasonArgs
- Quota
Failure TargetSite Failure Reason Quota Failure - Site verification state indicating the ownership and validity. Structure is documented below.
- Quota
Failure TargetSite Failure Reason Quota Failure - Site verification state indicating the ownership and validity. Structure is documented below.
- quota
Failure TargetSite Failure Reason Quota Failure - Site verification state indicating the ownership and validity. Structure is documented below.
- quota
Failure TargetSite Failure Reason Quota Failure - Site verification state indicating the ownership and validity. Structure is documented below.
- quota_
failure TargetSite Failure Reason Quota Failure - Site verification state indicating the ownership and validity. Structure is documented below.
- quota
Failure Property Map - Site verification state indicating the ownership and validity. Structure is documented below.
TargetSiteFailureReasonQuotaFailure, TargetSiteFailureReasonQuotaFailureArgs
- Total
Required intQuota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
- Total
Required intQuota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
- total
Required IntegerQuota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
- total
Required numberQuota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
- total_
required_ intquota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
- total
Required NumberQuota - This number is an estimation on how much total quota this project needs to successfully complete indexing.
TargetSiteSiteVerificationInfo, TargetSiteSiteVerificationInfoArgs
- Site
Verification stringState - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - Verify
Time string - Latest site verification time.
- Site
Verification stringState - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - Verify
Time string - Latest site verification time.
- site
Verification StringState - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - verify
Time String - Latest site verification time.
- site
Verification stringState - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - verify
Time string - Latest site verification time.
- site_
verification_ strstate - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - verify_
time str - Latest site verification time.
- site
Verification StringState - Site verification state indicating the ownership and validity.
Possible values are:
VERIFIED
,UNVERIFIED
,EXEMPTED
. - verify
Time String - Latest site verification time.
Import
TargetSite can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/siteSearchEngine/targetSites/{{target_site_id}}
{{project}}/{{location}}/{{data_store_id}}/{{target_site_id}}
{{location}}/{{data_store_id}}/{{target_site_id}}
When using the pulumi import
command, TargetSite can be imported using one of the formats above. For example:
$ pulumi import gcp:discoveryengine/targetSite:TargetSite default projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/siteSearchEngine/targetSites/{{target_site_id}}
$ pulumi import gcp:discoveryengine/targetSite:TargetSite default {{project}}/{{location}}/{{data_store_id}}/{{target_site_id}}
$ pulumi import gcp:discoveryengine/targetSite:TargetSite default {{location}}/{{data_store_id}}/{{target_site_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.