1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Adm
  5. getKnowledgebase
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Adm.getKnowledgebase

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific Knowledge Base resource in Oracle Cloud Infrastructure ADM service.

    Returns the details of the specified Knowledge Base.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testKnowledgeBase = oci.Adm.getKnowledgebase({
        knowledgeBaseId: testKnowledgeBaseOciAdmKnowledgeBase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_knowledge_base = oci.Adm.get_knowledgebase(knowledge_base_id=test_knowledge_base_oci_adm_knowledge_base["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Adm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Adm.GetKnowledgebase(ctx, &adm.GetKnowledgebaseArgs{
    			KnowledgeBaseId: testKnowledgeBaseOciAdmKnowledgeBase.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testKnowledgeBase = Oci.Adm.GetKnowledgebase.Invoke(new()
        {
            KnowledgeBaseId = testKnowledgeBaseOciAdmKnowledgeBase.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Adm.AdmFunctions;
    import com.pulumi.oci.Adm.inputs.GetKnowledgebaseArgs;
    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) {
            final var testKnowledgeBase = AdmFunctions.getKnowledgebase(GetKnowledgebaseArgs.builder()
                .knowledgeBaseId(testKnowledgeBaseOciAdmKnowledgeBase.id())
                .build());
    
        }
    }
    
    variables:
      testKnowledgeBase:
        fn::invoke:
          Function: oci:Adm:getKnowledgebase
          Arguments:
            knowledgeBaseId: ${testKnowledgeBaseOciAdmKnowledgeBase.id}
    

    Using getKnowledgebase

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getKnowledgebase(args: GetKnowledgebaseArgs, opts?: InvokeOptions): Promise<GetKnowledgebaseResult>
    function getKnowledgebaseOutput(args: GetKnowledgebaseOutputArgs, opts?: InvokeOptions): Output<GetKnowledgebaseResult>
    def get_knowledgebase(knowledge_base_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetKnowledgebaseResult
    def get_knowledgebase_output(knowledge_base_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetKnowledgebaseResult]
    func GetKnowledgebase(ctx *Context, args *GetKnowledgebaseArgs, opts ...InvokeOption) (*GetKnowledgebaseResult, error)
    func GetKnowledgebaseOutput(ctx *Context, args *GetKnowledgebaseOutputArgs, opts ...InvokeOption) GetKnowledgebaseResultOutput

    > Note: This function is named GetKnowledgebase in the Go SDK.

    public static class GetKnowledgebase 
    {
        public static Task<GetKnowledgebaseResult> InvokeAsync(GetKnowledgebaseArgs args, InvokeOptions? opts = null)
        public static Output<GetKnowledgebaseResult> Invoke(GetKnowledgebaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKnowledgebaseResult> getKnowledgebase(GetKnowledgebaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Adm/getKnowledgebase:getKnowledgebase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    KnowledgeBaseId string
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
    KnowledgeBaseId string
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
    knowledgeBaseId String
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
    knowledgeBaseId string
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
    knowledge_base_id str
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
    knowledgeBaseId String
    The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.

    getKnowledgebase Result

    The following output properties are available:

    CompartmentId string
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The name of the knowledge base.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    KnowledgeBaseId string
    State string
    The current lifecycle state of the knowledge base.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The creation date and time of the knowledge base (formatted according to RFC3339).
    TimeUpdated string
    The date and time the knowledge base was last updated (formatted according to RFC3339).
    CompartmentId string
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The name of the knowledge base.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    KnowledgeBaseId string
    State string
    The current lifecycle state of the knowledge base.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The creation date and time of the knowledge base (formatted according to RFC3339).
    TimeUpdated string
    The date and time the knowledge base was last updated (formatted according to RFC3339).
    compartmentId String
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The name of the knowledge base.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    knowledgeBaseId String
    state String
    The current lifecycle state of the knowledge base.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The creation date and time of the knowledge base (formatted according to RFC3339).
    timeUpdated String
    The date and time the knowledge base was last updated (formatted according to RFC3339).
    compartmentId string
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    The name of the knowledge base.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    knowledgeBaseId string
    state string
    The current lifecycle state of the knowledge base.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The creation date and time of the knowledge base (formatted according to RFC3339).
    timeUpdated string
    The date and time the knowledge base was last updated (formatted according to RFC3339).
    compartment_id str
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    The name of the knowledge base.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    knowledge_base_id str
    state str
    The current lifecycle state of the knowledge base.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The creation date and time of the knowledge base (formatted according to RFC3339).
    time_updated str
    The date and time the knowledge base was last updated (formatted according to RFC3339).
    compartmentId String
    The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The name of the knowledge base.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The Oracle Cloud Identifier (OCID) of the knowledge base.
    knowledgeBaseId String
    state String
    The current lifecycle state of the knowledge base.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The creation date and time of the knowledge base (formatted according to RFC3339).
    timeUpdated String
    The date and time the knowledge base was last updated (formatted according to RFC3339).

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi