Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getKnowledgebase

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testKnowledgeBase = Oci.Adm.GetKnowledgebase.Invoke(new()
    {
        KnowledgeBaseId = oci_adm_knowledge_base.Test_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: oci_adm_knowledge_base.Test_knowledge_base.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_adm_knowledge_base.test_knowledge_base().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_knowledge_base = oci.Adm.get_knowledgebase(knowledge_base_id=oci_adm_knowledge_base["test_knowledge_base"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testKnowledgeBase = oci.Adm.getKnowledgebase({
    knowledgeBaseId: oci_adm_knowledge_base.test_knowledge_base.id,
});
variables:
  testKnowledgeBase:
    Fn::Invoke:
      Function: oci:Adm:getKnowledgebase
      Arguments:
        knowledgeBaseId: ${oci_adm_knowledge_base.test_knowledge_base.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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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 Oracle Cloud Identifier (OCID) of the Knowledge Base's compartment.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.