1. Packages
  2. DigitalOcean Provider
  3. API Docs
  4. GradientaiKnowledgeBaseDataSource
DigitalOcean v4.57.0 published on Thursday, Feb 12, 2026 by Pulumi
digitalocean logo
DigitalOcean v4.57.0 published on Thursday, Feb 12, 2026 by Pulumi

    Create GradientaiKnowledgeBaseDataSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GradientaiKnowledgeBaseDataSource(name: string, args: GradientaiKnowledgeBaseDataSourceArgs, opts?: CustomResourceOptions);
    @overload
    def GradientaiKnowledgeBaseDataSource(resource_name: str,
                                          args: GradientaiKnowledgeBaseDataSourceInitArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def GradientaiKnowledgeBaseDataSource(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          knowledge_base_uuid: Optional[str] = None,
                                          spaces_data_source: Optional[GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs] = None,
                                          web_crawler_data_source: Optional[GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs] = None)
    func NewGradientaiKnowledgeBaseDataSource(ctx *Context, name string, args GradientaiKnowledgeBaseDataSourceArgs, opts ...ResourceOption) (*GradientaiKnowledgeBaseDataSource, error)
    public GradientaiKnowledgeBaseDataSource(string name, GradientaiKnowledgeBaseDataSourceArgs args, CustomResourceOptions? opts = null)
    public GradientaiKnowledgeBaseDataSource(String name, GradientaiKnowledgeBaseDataSourceArgs args)
    public GradientaiKnowledgeBaseDataSource(String name, GradientaiKnowledgeBaseDataSourceArgs args, CustomResourceOptions options)
    
    type: digitalocean:GradientaiKnowledgeBaseDataSource
    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 GradientaiKnowledgeBaseDataSourceArgs
    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 GradientaiKnowledgeBaseDataSourceInitArgs
    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 GradientaiKnowledgeBaseDataSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GradientaiKnowledgeBaseDataSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GradientaiKnowledgeBaseDataSourceArgs
    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 gradientaiKnowledgeBaseDataSourceResource = new DigitalOcean.GradientaiKnowledgeBaseDataSource("gradientaiKnowledgeBaseDataSourceResource", new()
    {
        KnowledgeBaseUuid = "string",
        SpacesDataSource = new DigitalOcean.Inputs.GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs
        {
            BucketName = "string",
            ItemPath = "string",
            Region = "string",
        },
        WebCrawlerDataSource = new DigitalOcean.Inputs.GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs
        {
            BaseUrl = "string",
            CrawlingOption = "string",
            EmbedMedia = false,
        },
    });
    
    example, err := digitalocean.NewGradientaiKnowledgeBaseDataSource(ctx, "gradientaiKnowledgeBaseDataSourceResource", &digitalocean.GradientaiKnowledgeBaseDataSourceArgs{
    	KnowledgeBaseUuid: pulumi.String("string"),
    	SpacesDataSource: &digitalocean.GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs{
    		BucketName: pulumi.String("string"),
    		ItemPath:   pulumi.String("string"),
    		Region:     pulumi.String("string"),
    	},
    	WebCrawlerDataSource: &digitalocean.GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs{
    		BaseUrl:        pulumi.String("string"),
    		CrawlingOption: pulumi.String("string"),
    		EmbedMedia:     pulumi.Bool(false),
    	},
    })
    
    var gradientaiKnowledgeBaseDataSourceResource = new GradientaiKnowledgeBaseDataSource("gradientaiKnowledgeBaseDataSourceResource", GradientaiKnowledgeBaseDataSourceArgs.builder()
        .knowledgeBaseUuid("string")
        .spacesDataSource(GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs.builder()
            .bucketName("string")
            .itemPath("string")
            .region("string")
            .build())
        .webCrawlerDataSource(GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs.builder()
            .baseUrl("string")
            .crawlingOption("string")
            .embedMedia(false)
            .build())
        .build());
    
    gradientai_knowledge_base_data_source_resource = digitalocean.GradientaiKnowledgeBaseDataSource("gradientaiKnowledgeBaseDataSourceResource",
        knowledge_base_uuid="string",
        spaces_data_source={
            "bucket_name": "string",
            "item_path": "string",
            "region": "string",
        },
        web_crawler_data_source={
            "base_url": "string",
            "crawling_option": "string",
            "embed_media": False,
        })
    
    const gradientaiKnowledgeBaseDataSourceResource = new digitalocean.GradientaiKnowledgeBaseDataSource("gradientaiKnowledgeBaseDataSourceResource", {
        knowledgeBaseUuid: "string",
        spacesDataSource: {
            bucketName: "string",
            itemPath: "string",
            region: "string",
        },
        webCrawlerDataSource: {
            baseUrl: "string",
            crawlingOption: "string",
            embedMedia: false,
        },
    });
    
    type: digitalocean:GradientaiKnowledgeBaseDataSource
    properties:
        knowledgeBaseUuid: string
        spacesDataSource:
            bucketName: string
            itemPath: string
            region: string
        webCrawlerDataSource:
            baseUrl: string
            crawlingOption: string
            embedMedia: false
    

    GradientaiKnowledgeBaseDataSource 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 GradientaiKnowledgeBaseDataSource resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GradientaiKnowledgeBaseDataSource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GradientaiKnowledgeBaseDataSource Resource

    Get an existing GradientaiKnowledgeBaseDataSource 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?: GradientaiKnowledgeBaseDataSourceState, opts?: CustomResourceOptions): GradientaiKnowledgeBaseDataSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            knowledge_base_uuid: Optional[str] = None,
            spaces_data_source: Optional[GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs] = None,
            web_crawler_data_source: Optional[GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs] = None) -> GradientaiKnowledgeBaseDataSource
    func GetGradientaiKnowledgeBaseDataSource(ctx *Context, name string, id IDInput, state *GradientaiKnowledgeBaseDataSourceState, opts ...ResourceOption) (*GradientaiKnowledgeBaseDataSource, error)
    public static GradientaiKnowledgeBaseDataSource Get(string name, Input<string> id, GradientaiKnowledgeBaseDataSourceState? state, CustomResourceOptions? opts = null)
    public static GradientaiKnowledgeBaseDataSource get(String name, Output<String> id, GradientaiKnowledgeBaseDataSourceState state, CustomResourceOptions options)
    resources:  _:    type: digitalocean:GradientaiKnowledgeBaseDataSource    get:      id: ${id}
    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.
    The following state arguments are supported:

    Supporting Types

    GradientaiKnowledgeBaseDataSourceSpacesDataSource, GradientaiKnowledgeBaseDataSourceSpacesDataSourceArgs

    BucketName string
    The name of the Spaces bucket
    ItemPath string
    The path to the item in the bucket
    Region string
    The region of the Spaces bucket
    BucketName string
    The name of the Spaces bucket
    ItemPath string
    The path to the item in the bucket
    Region string
    The region of the Spaces bucket
    bucketName String
    The name of the Spaces bucket
    itemPath String
    The path to the item in the bucket
    region String
    The region of the Spaces bucket
    bucketName string
    The name of the Spaces bucket
    itemPath string
    The path to the item in the bucket
    region string
    The region of the Spaces bucket
    bucket_name str
    The name of the Spaces bucket
    item_path str
    The path to the item in the bucket
    region str
    The region of the Spaces bucket
    bucketName String
    The name of the Spaces bucket
    itemPath String
    The path to the item in the bucket
    region String
    The region of the Spaces bucket

    GradientaiKnowledgeBaseDataSourceWebCrawlerDataSource, GradientaiKnowledgeBaseDataSourceWebCrawlerDataSourceArgs

    BaseUrl string
    The base URL to crawl
    CrawlingOption string
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    EmbedMedia bool
    Whether to embed media content
    BaseUrl string
    The base URL to crawl
    CrawlingOption string
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    EmbedMedia bool
    Whether to embed media content
    baseUrl String
    The base URL to crawl
    crawlingOption String
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    embedMedia Boolean
    Whether to embed media content
    baseUrl string
    The base URL to crawl
    crawlingOption string
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    embedMedia boolean
    Whether to embed media content
    base_url str
    The base URL to crawl
    crawling_option str
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    embed_media bool
    Whether to embed media content
    baseUrl String
    The base URL to crawl
    crawlingOption String
    Options for specifying how URLs found on pages should be handled.

    • UNKNOWN: Default unknown value
    • SCOPED: Only include the base URL.
    • PATH: Crawl the base URL and linked pages within the URL path.
    • DOMAIN: Crawl the base URL and linked pages within the same domain.
    • SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
    embedMedia Boolean
    Whether to embed media content

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.57.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate