1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getTaskRecord
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.FleetAppsManagement.getTaskRecord

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides details about a specific Task Record resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Gets a Task by identifier

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTaskRecord = oci.FleetAppsManagement.getTaskRecord({
    taskRecordId: testTaskRecordOciFleetAppsManagementTaskRecord.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_task_record = oci.FleetAppsManagement.get_task_record(task_record_id=test_task_record_oci_fleet_apps_management_task_record["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.GetTaskRecord(ctx, &fleetappsmanagement.GetTaskRecordArgs{
			TaskRecordId: testTaskRecordOciFleetAppsManagementTaskRecord.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTaskRecord = Oci.FleetAppsManagement.GetTaskRecord.Invoke(new()
    {
        TaskRecordId = testTaskRecordOciFleetAppsManagementTaskRecord.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetTaskRecordArgs;
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 testTaskRecord = FleetAppsManagementFunctions.getTaskRecord(GetTaskRecordArgs.builder()
            .taskRecordId(testTaskRecordOciFleetAppsManagementTaskRecord.id())
            .build());

    }
}
Copy
variables:
  testTaskRecord:
    fn::invoke:
      function: oci:FleetAppsManagement:getTaskRecord
      arguments:
        taskRecordId: ${testTaskRecordOciFleetAppsManagementTaskRecord.id}
Copy

Using getTaskRecord

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 getTaskRecord(args: GetTaskRecordArgs, opts?: InvokeOptions): Promise<GetTaskRecordResult>
function getTaskRecordOutput(args: GetTaskRecordOutputArgs, opts?: InvokeOptions): Output<GetTaskRecordResult>
Copy
def get_task_record(task_record_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetTaskRecordResult
def get_task_record_output(task_record_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetTaskRecordResult]
Copy
func GetTaskRecord(ctx *Context, args *GetTaskRecordArgs, opts ...InvokeOption) (*GetTaskRecordResult, error)
func GetTaskRecordOutput(ctx *Context, args *GetTaskRecordOutputArgs, opts ...InvokeOption) GetTaskRecordResultOutput
Copy

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

public static class GetTaskRecord 
{
    public static Task<GetTaskRecordResult> InvokeAsync(GetTaskRecordArgs args, InvokeOptions? opts = null)
    public static Output<GetTaskRecordResult> Invoke(GetTaskRecordInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTaskRecordResult> getTaskRecord(GetTaskRecordArgs args, InvokeOptions options)
public static Output<GetTaskRecordResult> getTaskRecord(GetTaskRecordArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getTaskRecord:getTaskRecord
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TaskRecordId This property is required. string
unique TaskDetail identifier
TaskRecordId This property is required. string
unique TaskDetail identifier
taskRecordId This property is required. String
unique TaskDetail identifier
taskRecordId This property is required. string
unique TaskDetail identifier
task_record_id This property is required. str
unique TaskDetail identifier
taskRecordId This property is required. String
unique TaskDetail identifier

getTaskRecord Result

The following output properties are available:

CompartmentId string
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description string
The description of the argument.
Details List<GetTaskRecordDetail>
The details of the task.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags 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 OCID of the resource.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
ResourceRegion string
Associated region
State string
The current state of the TaskRecord.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TaskRecordId string
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
Type string
Task type.
Version string
The version of the task
CompartmentId string
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description string
The description of the argument.
Details []GetTaskRecordDetail
The details of the task.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags 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 OCID of the resource.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
ResourceRegion string
Associated region
State string
The current state of the TaskRecord.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TaskRecordId string
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
Type string
Task type.
Version string
The version of the task
compartmentId String
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description String
The description of the argument.
details List<GetTaskRecordDetail>
The details of the task.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags 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 OCID of the resource.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
resourceRegion String
Associated region
state String
The current state of the TaskRecord.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskRecordId String
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
type String
Task type.
version String
The version of the task
compartmentId string
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description string
The description of the argument.
details GetTaskRecordDetail[]
The details of the task.
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags {[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 OCID of the resource.
lifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
resourceRegion string
Associated region
state string
The current state of the TaskRecord.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskRecordId string
timeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
type string
Task type.
version string
The version of the task
compartment_id str
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description str
The description of the argument.
details Sequence[fleetappsmanagement.GetTaskRecordDetail]
The details of the task.
display_name str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeform_tags 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 OCID of the resource.
lifecycle_details str
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
resource_region str
Associated region
state str
The current state of the TaskRecord.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
task_record_id str
time_created str
The time this resource was created. An RFC3339 formatted datetime string.
time_updated str
The time this resource was last updated. An RFC3339 formatted datetime string.
type str
Task type.
version str
The version of the task
compartmentId String
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description String
The description of the argument.
details List<Property Map>
The details of the task.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags 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 OCID of the resource.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
resourceRegion String
Associated region
state String
The current state of the TaskRecord.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskRecordId String
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
type String
Task type.
version String
The version of the task

Supporting Types

GetTaskRecordDetail

ExecutionDetails This property is required. List<GetTaskRecordDetailExecutionDetail>
Execution details.
IsApplySubjectTask This property is required. bool
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
IsDiscoveryOutputTask This property is required. bool
Is this a discovery output task?
OsType This property is required. string
The OS for the task
Platform This property is required. string
The platform of the runbook.
Properties This property is required. List<GetTaskRecordDetailProperty>
The properties of the task.
Scope This property is required. string
The scope of the task
ExecutionDetails This property is required. []GetTaskRecordDetailExecutionDetail
Execution details.
IsApplySubjectTask This property is required. bool
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
IsDiscoveryOutputTask This property is required. bool
Is this a discovery output task?
OsType This property is required. string
The OS for the task
Platform This property is required. string
The platform of the runbook.
Properties This property is required. []GetTaskRecordDetailProperty
The properties of the task.
Scope This property is required. string
The scope of the task
executionDetails This property is required. List<GetTaskRecordDetailExecutionDetail>
Execution details.
isApplySubjectTask This property is required. Boolean
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
isDiscoveryOutputTask This property is required. Boolean
Is this a discovery output task?
osType This property is required. String
The OS for the task
platform This property is required. String
The platform of the runbook.
properties This property is required. List<GetTaskRecordDetailProperty>
The properties of the task.
scope This property is required. String
The scope of the task
executionDetails This property is required. GetTaskRecordDetailExecutionDetail[]
Execution details.
isApplySubjectTask This property is required. boolean
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
isDiscoveryOutputTask This property is required. boolean
Is this a discovery output task?
osType This property is required. string
The OS for the task
platform This property is required. string
The platform of the runbook.
properties This property is required. GetTaskRecordDetailProperty[]
The properties of the task.
scope This property is required. string
The scope of the task
execution_details This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailExecutionDetail]
Execution details.
is_apply_subject_task This property is required. bool
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
is_discovery_output_task This property is required. bool
Is this a discovery output task?
os_type This property is required. str
The OS for the task
platform This property is required. str
The platform of the runbook.
properties This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailProperty]
The properties of the task.
scope This property is required. str
The scope of the task
executionDetails This property is required. List<Property Map>
Execution details.
isApplySubjectTask This property is required. Boolean
Is this an Apply Subject Task? Set this to true for a Patch Execution Task which applies patches(subjects) on a target.
isDiscoveryOutputTask This property is required. Boolean
Is this a discovery output task?
osType This property is required. String
The OS for the task
platform This property is required. String
The platform of the runbook.
properties This property is required. List<Property Map>
The properties of the task.
scope This property is required. String
The scope of the task

GetTaskRecordDetailExecutionDetail

Command This property is required. string
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
Contents This property is required. List<GetTaskRecordDetailExecutionDetailContent>
Content Source details.
Credentials This property is required. List<GetTaskRecordDetailExecutionDetailCredential>
Credentials required for executing the task.
Endpoint This property is required. string
Endpoint to be invoked.
ExecutionType This property is required. string
The action type of the task
Variables This property is required. List<GetTaskRecordDetailExecutionDetailVariable>
The variable of the task. At least one of the dynamicArguments or output needs to be provided.
Command This property is required. string
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
Contents This property is required. []GetTaskRecordDetailExecutionDetailContent
Content Source details.
Credentials This property is required. []GetTaskRecordDetailExecutionDetailCredential
Credentials required for executing the task.
Endpoint This property is required. string
Endpoint to be invoked.
ExecutionType This property is required. string
The action type of the task
Variables This property is required. []GetTaskRecordDetailExecutionDetailVariable
The variable of the task. At least one of the dynamicArguments or output needs to be provided.
command This property is required. String
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
contents This property is required. List<GetTaskRecordDetailExecutionDetailContent>
Content Source details.
credentials This property is required. List<GetTaskRecordDetailExecutionDetailCredential>
Credentials required for executing the task.
endpoint This property is required. String
Endpoint to be invoked.
executionType This property is required. String
The action type of the task
variables This property is required. List<GetTaskRecordDetailExecutionDetailVariable>
The variable of the task. At least one of the dynamicArguments or output needs to be provided.
command This property is required. string
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
contents This property is required. GetTaskRecordDetailExecutionDetailContent[]
Content Source details.
credentials This property is required. GetTaskRecordDetailExecutionDetailCredential[]
Credentials required for executing the task.
endpoint This property is required. string
Endpoint to be invoked.
executionType This property is required. string
The action type of the task
variables This property is required. GetTaskRecordDetailExecutionDetailVariable[]
The variable of the task. At least one of the dynamicArguments or output needs to be provided.
command This property is required. str
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
contents This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailExecutionDetailContent]
Content Source details.
credentials This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailExecutionDetailCredential]
Credentials required for executing the task.
endpoint This property is required. str
Endpoint to be invoked.
execution_type This property is required. str
The action type of the task
variables This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailExecutionDetailVariable]
The variable of the task. At least one of the dynamicArguments or output needs to be provided.
command This property is required. String
Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
contents This property is required. List<Property Map>
Content Source details.
credentials This property is required. List<Property Map>
Credentials required for executing the task.
endpoint This property is required. String
Endpoint to be invoked.
executionType This property is required. String
The action type of the task
variables This property is required. List<Property Map>
The variable of the task. At least one of the dynamicArguments or output needs to be provided.

GetTaskRecordDetailExecutionDetailContent

Bucket This property is required. string
Bucket Name.
Checksum This property is required. string
md5 checksum of the artifact.
Namespace This property is required. string
Namespace.
Object This property is required. string
Object Name.
SourceType This property is required. string
Content Source type details.
Bucket This property is required. string
Bucket Name.
Checksum This property is required. string
md5 checksum of the artifact.
Namespace This property is required. string
Namespace.
Object This property is required. string
Object Name.
SourceType This property is required. string
Content Source type details.
bucket This property is required. String
Bucket Name.
checksum This property is required. String
md5 checksum of the artifact.
namespace This property is required. String
Namespace.
object This property is required. String
Object Name.
sourceType This property is required. String
Content Source type details.
bucket This property is required. string
Bucket Name.
checksum This property is required. string
md5 checksum of the artifact.
namespace This property is required. string
Namespace.
object This property is required. string
Object Name.
sourceType This property is required. string
Content Source type details.
bucket This property is required. str
Bucket Name.
checksum This property is required. str
md5 checksum of the artifact.
namespace This property is required. str
Namespace.
object This property is required. str
Object Name.
source_type This property is required. str
Content Source type details.
bucket This property is required. String
Bucket Name.
checksum This property is required. String
md5 checksum of the artifact.
namespace This property is required. String
Namespace.
object This property is required. String
Object Name.
sourceType This property is required. String
Content Source type details.

GetTaskRecordDetailExecutionDetailCredential

DisplayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
Id This property is required. string
The OCID of the resource.
DisplayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
Id This property is required. string
The OCID of the resource.
displayName This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
id This property is required. String
The OCID of the resource.
displayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
id This property is required. string
The OCID of the resource.
display_name This property is required. str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
id This property is required. str
The OCID of the resource.
displayName This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
id This property is required. String
The OCID of the resource.

GetTaskRecordDetailExecutionDetailVariable

InputVariables This property is required. List<GetTaskRecordDetailExecutionDetailVariableInputVariable>
The input variables for the task.
OutputVariables This property is required. List<string>
The list of output variables.
InputVariables This property is required. []GetTaskRecordDetailExecutionDetailVariableInputVariable
The input variables for the task.
OutputVariables This property is required. []string
The list of output variables.
inputVariables This property is required. List<GetTaskRecordDetailExecutionDetailVariableInputVariable>
The input variables for the task.
outputVariables This property is required. List<String>
The list of output variables.
inputVariables This property is required. GetTaskRecordDetailExecutionDetailVariableInputVariable[]
The input variables for the task.
outputVariables This property is required. string[]
The list of output variables.
input_variables This property is required. Sequence[fleetappsmanagement.GetTaskRecordDetailExecutionDetailVariableInputVariable]
The input variables for the task.
output_variables This property is required. Sequence[str]
The list of output variables.
inputVariables This property is required. List<Property Map>
The input variables for the task.
outputVariables This property is required. List<String>
The list of output variables.

GetTaskRecordDetailExecutionDetailVariableInputVariable

Description This property is required. string
The description of the argument.
Name This property is required. string
The name of the argument.
Type This property is required. string
Task type.
Description This property is required. string
The description of the argument.
Name This property is required. string
The name of the argument.
Type This property is required. string
Task type.
description This property is required. String
The description of the argument.
name This property is required. String
The name of the argument.
type This property is required. String
Task type.
description This property is required. string
The description of the argument.
name This property is required. string
The name of the argument.
type This property is required. string
Task type.
description This property is required. str
The description of the argument.
name This property is required. str
The name of the argument.
type This property is required. str
Task type.
description This property is required. String
The description of the argument.
name This property is required. String
The name of the argument.
type This property is required. String
Task type.

GetTaskRecordDetailProperty

NumRetries This property is required. int
The number of retries allowed.
TimeoutInSeconds This property is required. int
The timeout in seconds for the task.
NumRetries This property is required. int
The number of retries allowed.
TimeoutInSeconds This property is required. int
The timeout in seconds for the task.
numRetries This property is required. Integer
The number of retries allowed.
timeoutInSeconds This property is required. Integer
The timeout in seconds for the task.
numRetries This property is required. number
The number of retries allowed.
timeoutInSeconds This property is required. number
The timeout in seconds for the task.
num_retries This property is required. int
The number of retries allowed.
timeout_in_seconds This property is required. int
The timeout in seconds for the task.
numRetries This property is required. Number
The number of retries allowed.
timeoutInSeconds This property is required. Number
The timeout in seconds for the task.

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 v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi