Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Adm.getKnowledgebase
Explore with Pulumi AI
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:
- Knowledge
Base stringId - The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- Knowledge
Base stringId - The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledge
Base StringId - The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
- knowledge
Base 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.
- knowledge
Base StringId - The Oracle Cloud Identifier (OCID) of a Knowledge Base, as a URL path parameter.
getKnowledgebase Result
The following output properties are available:
- Compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - The name of the knowledge base.
- 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.
- Knowledge
Base stringId - State string
- The current lifecycle state of the knowledge base.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation date and time of the knowledge base (formatted according to RFC3339).
- Time
Updated string - The date and time the knowledge base was last updated (formatted according to RFC3339).
- Compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - The name of the knowledge base.
- 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.
- Knowledge
Base stringId - State string
- The current lifecycle state of the knowledge base.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation date and time of the knowledge base (formatted according to RFC3339).
- Time
Updated string - The date and time the knowledge base was last updated (formatted according to RFC3339).
- compartment
Id String - The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - The name of the knowledge base.
- 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.
- knowledge
Base StringId - state String
- The current lifecycle state of the knowledge base.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation date and time of the knowledge base (formatted according to RFC3339).
- time
Updated String - The date and time the knowledge base was last updated (formatted according to RFC3339).
- compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - The name of the knowledge base.
- {[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.
- knowledge
Base stringId - state string
- The current lifecycle state of the knowledge base.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The creation date and time of the knowledge base (formatted according to RFC3339).
- time
Updated 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, 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.
- 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_ strid - state str
- The current lifecycle state of the knowledge base.
- 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).
- compartment
Id String - The compartment Oracle Cloud Identifier (OCID) of the knowledge base.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - The name of the knowledge base.
- 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.
- knowledge
Base StringId - state String
- The current lifecycle state of the knowledge base.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation date and time of the knowledge base (formatted according to RFC3339).
- time
Updated 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi