Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.GenerativeAi.getAgentDataIngestionJobLogContent
Explore with Pulumi AI
This data source provides details about a specific Data Ingestion Job Log Content resource in Oracle Cloud Infrastructure Generative Ai Agent service.
GetDataIngestionJobLogContent
Returns the raw log file for the specified data ingestion job in text format.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataIngestionJobLogContent = oci.GenerativeAi.getAgentDataIngestionJobLogContent({
dataIngestionJobId: testDataIngestionJob.id,
});
import pulumi
import pulumi_oci as oci
test_data_ingestion_job_log_content = oci.GenerativeAi.get_agent_data_ingestion_job_log_content(data_ingestion_job_id=test_data_ingestion_job["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/GenerativeAi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := GenerativeAi.GetAgentDataIngestionJobLogContent(ctx, &generativeai.GetAgentDataIngestionJobLogContentArgs{
DataIngestionJobId: testDataIngestionJob.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 testDataIngestionJobLogContent = Oci.GenerativeAi.GetAgentDataIngestionJobLogContent.Invoke(new()
{
DataIngestionJobId = testDataIngestionJob.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
import com.pulumi.oci.GenerativeAi.inputs.GetAgentDataIngestionJobLogContentArgs;
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 testDataIngestionJobLogContent = GenerativeAiFunctions.getAgentDataIngestionJobLogContent(GetAgentDataIngestionJobLogContentArgs.builder()
.dataIngestionJobId(testDataIngestionJob.id())
.build());
}
}
variables:
testDataIngestionJobLogContent:
fn::invoke:
Function: oci:GenerativeAi:getAgentDataIngestionJobLogContent
Arguments:
dataIngestionJobId: ${testDataIngestionJob.id}
Using getAgentDataIngestionJobLogContent
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 getAgentDataIngestionJobLogContent(args: GetAgentDataIngestionJobLogContentArgs, opts?: InvokeOptions): Promise<GetAgentDataIngestionJobLogContentResult>
function getAgentDataIngestionJobLogContentOutput(args: GetAgentDataIngestionJobLogContentOutputArgs, opts?: InvokeOptions): Output<GetAgentDataIngestionJobLogContentResult>
def get_agent_data_ingestion_job_log_content(data_ingestion_job_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAgentDataIngestionJobLogContentResult
def get_agent_data_ingestion_job_log_content_output(data_ingestion_job_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAgentDataIngestionJobLogContentResult]
func GetAgentDataIngestionJobLogContent(ctx *Context, args *GetAgentDataIngestionJobLogContentArgs, opts ...InvokeOption) (*GetAgentDataIngestionJobLogContentResult, error)
func GetAgentDataIngestionJobLogContentOutput(ctx *Context, args *GetAgentDataIngestionJobLogContentOutputArgs, opts ...InvokeOption) GetAgentDataIngestionJobLogContentResultOutput
> Note: This function is named GetAgentDataIngestionJobLogContent
in the Go SDK.
public static class GetAgentDataIngestionJobLogContent
{
public static Task<GetAgentDataIngestionJobLogContentResult> InvokeAsync(GetAgentDataIngestionJobLogContentArgs args, InvokeOptions? opts = null)
public static Output<GetAgentDataIngestionJobLogContentResult> Invoke(GetAgentDataIngestionJobLogContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAgentDataIngestionJobLogContentResult> getAgentDataIngestionJobLogContent(GetAgentDataIngestionJobLogContentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GenerativeAi/getAgentDataIngestionJobLogContent:getAgentDataIngestionJobLogContent
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Ingestion stringJob Id - The OCID of the data ingestion job.
- Data
Ingestion stringJob Id - The OCID of the data ingestion job.
- data
Ingestion StringJob Id - The OCID of the data ingestion job.
- data
Ingestion stringJob Id - The OCID of the data ingestion job.
- data_
ingestion_ strjob_ id - The OCID of the data ingestion job.
- data
Ingestion StringJob Id - The OCID of the data ingestion job.
getAgentDataIngestionJobLogContent Result
The following output properties are available:
- Data
Ingestion stringJob Id - Id string
- The provider-assigned unique ID for this managed resource.
- Data
Ingestion stringJob Id - Id string
- The provider-assigned unique ID for this managed resource.
- data
Ingestion StringJob Id - id String
- The provider-assigned unique ID for this managed resource.
- data
Ingestion stringJob Id - id string
- The provider-assigned unique ID for this managed resource.
- data_
ingestion_ strjob_ id - id str
- The provider-assigned unique ID for this managed resource.
- data
Ingestion StringJob Id - id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.