Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Adm.getKnowledgebase
Explore with Pulumi AI
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/v2/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)
public static Output<GetKnowledgebaseResult> getKnowledgebase(GetKnowledgebaseArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Adm/getKnowledgebase:getKnowledgebase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- KnowledgeBase stringId 
- The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- KnowledgeBase stringId 
- The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledgeBase StringId 
- The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledgeBase stringId 
- The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledge_base_ strid 
- The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledgeBase StringId 
- 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.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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.
- KnowledgeBase stringId 
- State string
- The current lifecycle state of the knowledge base.
- Dictionary<string, string>
- 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.
- map[string]string
- 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.
- map[string]string
- 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.
- KnowledgeBase stringId 
- State string
- The current lifecycle state of the knowledge base.
- map[string]string
- 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.
- Map<String,String>
- 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.
- Map<String,String>
- 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.
- knowledgeBase StringId 
- state String
- The current lifecycle state of the knowledge base.
- Map<String,String>
- 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.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- 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.
- knowledgeBase stringId 
- state string
- The current lifecycle state of the knowledge base.
- {[key: string]: string}
- 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.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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_ strid 
- state str
- The current lifecycle state of the knowledge base.
- Mapping[str, str]
- 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.
- Map<String>
- 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.
- Map<String>
- 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.
- knowledgeBase StringId 
- state String
- The current lifecycle state of the knowledge base.
- Map<String>
- 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 ociTerraform Provider.