Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.FleetAppsManagement.getSchedulerJobJobActivityResources
Explore with Pulumi AI
This data source provides the list of Scheduler Job Job Activity Resources in Oracle Cloud Infrastructure Fleet Apps Management service.
Returns a list of resources for an Activity Execution.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedulerJobJobActivityResources = oci.FleetAppsManagement.getSchedulerJobJobActivityResources({
    jobActivityId: testJobActivity.id,
    schedulerJobId: testJob.id,
    resourceTaskId: testResourceTask.id,
    sequence: schedulerJobJobActivityResourceSequence,
    stepName: schedulerJobJobActivityResourceStepName,
    targetName: testTarget.name,
});
import pulumi
import pulumi_oci as oci
test_scheduler_job_job_activity_resources = oci.FleetAppsManagement.get_scheduler_job_job_activity_resources(job_activity_id=test_job_activity["id"],
    scheduler_job_id=test_job["id"],
    resource_task_id=test_resource_task["id"],
    sequence=scheduler_job_job_activity_resource_sequence,
    step_name=scheduler_job_job_activity_resource_step_name,
    target_name=test_target["name"])
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.GetSchedulerJobJobActivityResources(ctx, &fleetappsmanagement.GetSchedulerJobJobActivityResourcesArgs{
			JobActivityId:  testJobActivity.Id,
			SchedulerJobId: testJob.Id,
			ResourceTaskId: pulumi.StringRef(testResourceTask.Id),
			Sequence:       pulumi.StringRef(schedulerJobJobActivityResourceSequence),
			StepName:       pulumi.StringRef(schedulerJobJobActivityResourceStepName),
			TargetName:     pulumi.StringRef(testTarget.Name),
		}, 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 testSchedulerJobJobActivityResources = Oci.FleetAppsManagement.GetSchedulerJobJobActivityResources.Invoke(new()
    {
        JobActivityId = testJobActivity.Id,
        SchedulerJobId = testJob.Id,
        ResourceTaskId = testResourceTask.Id,
        Sequence = schedulerJobJobActivityResourceSequence,
        StepName = schedulerJobJobActivityResourceStepName,
        TargetName = testTarget.Name,
    });
});
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.GetSchedulerJobJobActivityResourcesArgs;
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 testSchedulerJobJobActivityResources = FleetAppsManagementFunctions.getSchedulerJobJobActivityResources(GetSchedulerJobJobActivityResourcesArgs.builder()
            .jobActivityId(testJobActivity.id())
            .schedulerJobId(testJob.id())
            .resourceTaskId(testResourceTask.id())
            .sequence(schedulerJobJobActivityResourceSequence)
            .stepName(schedulerJobJobActivityResourceStepName)
            .targetName(testTarget.name())
            .build());
    }
}
variables:
  testSchedulerJobJobActivityResources:
    fn::invoke:
      function: oci:FleetAppsManagement:getSchedulerJobJobActivityResources
      arguments:
        jobActivityId: ${testJobActivity.id}
        schedulerJobId: ${testJob.id}
        resourceTaskId: ${testResourceTask.id}
        sequence: ${schedulerJobJobActivityResourceSequence}
        stepName: ${schedulerJobJobActivityResourceStepName}
        targetName: ${testTarget.name}
Using getSchedulerJobJobActivityResources
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 getSchedulerJobJobActivityResources(args: GetSchedulerJobJobActivityResourcesArgs, opts?: InvokeOptions): Promise<GetSchedulerJobJobActivityResourcesResult>
function getSchedulerJobJobActivityResourcesOutput(args: GetSchedulerJobJobActivityResourcesOutputArgs, opts?: InvokeOptions): Output<GetSchedulerJobJobActivityResourcesResult>def get_scheduler_job_job_activity_resources(filters: Optional[Sequence[GetSchedulerJobJobActivityResourcesFilter]] = None,
                                             job_activity_id: Optional[str] = None,
                                             resource_task_id: Optional[str] = None,
                                             scheduler_job_id: Optional[str] = None,
                                             sequence: Optional[str] = None,
                                             step_name: Optional[str] = None,
                                             target_name: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetSchedulerJobJobActivityResourcesResult
def get_scheduler_job_job_activity_resources_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSchedulerJobJobActivityResourcesFilterArgs]]]] = None,
                                             job_activity_id: Optional[pulumi.Input[str]] = None,
                                             resource_task_id: Optional[pulumi.Input[str]] = None,
                                             scheduler_job_id: Optional[pulumi.Input[str]] = None,
                                             sequence: Optional[pulumi.Input[str]] = None,
                                             step_name: Optional[pulumi.Input[str]] = None,
                                             target_name: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetSchedulerJobJobActivityResourcesResult]func GetSchedulerJobJobActivityResources(ctx *Context, args *GetSchedulerJobJobActivityResourcesArgs, opts ...InvokeOption) (*GetSchedulerJobJobActivityResourcesResult, error)
func GetSchedulerJobJobActivityResourcesOutput(ctx *Context, args *GetSchedulerJobJobActivityResourcesOutputArgs, opts ...InvokeOption) GetSchedulerJobJobActivityResourcesResultOutput> Note: This function is named GetSchedulerJobJobActivityResources in the Go SDK.
public static class GetSchedulerJobJobActivityResources 
{
    public static Task<GetSchedulerJobJobActivityResourcesResult> InvokeAsync(GetSchedulerJobJobActivityResourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetSchedulerJobJobActivityResourcesResult> Invoke(GetSchedulerJobJobActivityResourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchedulerJobJobActivityResourcesResult> getSchedulerJobJobActivityResources(GetSchedulerJobJobActivityResourcesArgs args, InvokeOptions options)
public static Output<GetSchedulerJobJobActivityResourcesResult> getSchedulerJobJobActivityResources(GetSchedulerJobJobActivityResourcesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FleetAppsManagement/getSchedulerJobJobActivityResources:getSchedulerJobJobActivityResources
  arguments:
    # arguments dictionaryThe following arguments are supported:
- JobActivity stringId 
- unique jobActivity identifier
- SchedulerJob stringId 
- unique SchedulerJob identifier
- Filters
List<GetScheduler Job Job Activity Resources Filter> 
- ResourceTask stringId 
- Task Id
- Sequence string
- Task Order Sequence
- StepName string
- Unique step name
- TargetName string
- Unique target name
- JobActivity stringId 
- unique jobActivity identifier
- SchedulerJob stringId 
- unique SchedulerJob identifier
- Filters
[]GetScheduler Job Job Activity Resources Filter 
- ResourceTask stringId 
- Task Id
- Sequence string
- Task Order Sequence
- StepName string
- Unique step name
- TargetName string
- Unique target name
- jobActivity StringId 
- unique jobActivity identifier
- schedulerJob StringId 
- unique SchedulerJob identifier
- filters
List<GetScheduler Job Job Activity Resources Filter> 
- resourceTask StringId 
- Task Id
- sequence String
- Task Order Sequence
- stepName String
- Unique step name
- targetName String
- Unique target name
- jobActivity stringId 
- unique jobActivity identifier
- schedulerJob stringId 
- unique SchedulerJob identifier
- filters
GetScheduler Job Job Activity Resources Filter[] 
- resourceTask stringId 
- Task Id
- sequence string
- Task Order Sequence
- stepName string
- Unique step name
- targetName string
- Unique target name
- job_activity_ strid 
- unique jobActivity identifier
- scheduler_job_ strid 
- unique SchedulerJob identifier
- filters
Sequence[GetScheduler Job Job Activity Resources Filter] 
- resource_task_ strid 
- Task Id
- sequence str
- Task Order Sequence
- step_name str
- Unique step name
- target_name str
- Unique target name
- jobActivity StringId 
- unique jobActivity identifier
- schedulerJob StringId 
- unique SchedulerJob identifier
- filters List<Property Map>
- resourceTask StringId 
- Task Id
- sequence String
- Task Order Sequence
- stepName String
- Unique step name
- targetName String
- Unique target name
getSchedulerJobJobActivityResources Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- JobActivity stringId 
- ResourceCollections List<GetScheduler Job Job Activity Resources Resource Collection> 
- The list of resource_collection.
- SchedulerJob stringId 
- Filters
List<GetScheduler Job Job Activity Resources Filter> 
- ResourceTask stringId 
- Sequence string
- The sequence of the Resource.
- StepName string
- TargetName string
- Target Name.
- Id string
- The provider-assigned unique ID for this managed resource.
- JobActivity stringId 
- ResourceCollections []GetScheduler Job Job Activity Resources Resource Collection 
- The list of resource_collection.
- SchedulerJob stringId 
- Filters
[]GetScheduler Job Job Activity Resources Filter 
- ResourceTask stringId 
- Sequence string
- The sequence of the Resource.
- StepName string
- TargetName string
- Target Name.
- id String
- The provider-assigned unique ID for this managed resource.
- jobActivity StringId 
- resourceCollections List<GetScheduler Job Job Activity Resources Resource Collection> 
- The list of resource_collection.
- schedulerJob StringId 
- filters
List<GetScheduler Job Job Activity Resources Filter> 
- resourceTask StringId 
- sequence String
- The sequence of the Resource.
- stepName String
- targetName String
- Target Name.
- id string
- The provider-assigned unique ID for this managed resource.
- jobActivity stringId 
- resourceCollections GetScheduler Job Job Activity Resources Resource Collection[] 
- The list of resource_collection.
- schedulerJob stringId 
- filters
GetScheduler Job Job Activity Resources Filter[] 
- resourceTask stringId 
- sequence string
- The sequence of the Resource.
- stepName string
- targetName string
- Target Name.
- id str
- The provider-assigned unique ID for this managed resource.
- job_activity_ strid 
- resource_collections Sequence[GetScheduler Job Job Activity Resources Resource Collection] 
- The list of resource_collection.
- scheduler_job_ strid 
- filters
Sequence[GetScheduler Job Job Activity Resources Filter] 
- resource_task_ strid 
- sequence str
- The sequence of the Resource.
- step_name str
- target_name str
- Target Name.
- id String
- The provider-assigned unique ID for this managed resource.
- jobActivity StringId 
- resourceCollections List<Property Map>
- The list of resource_collection.
- schedulerJob StringId 
- filters List<Property Map>
- resourceTask StringId 
- sequence String
- The sequence of the Resource.
- stepName String
- targetName String
- Target Name.
Supporting Types
GetSchedulerJobJobActivityResourcesFilter      
GetSchedulerJobJobActivityResourcesResourceCollection       
- Items
List<GetScheduler Job Job Activity Resources Resource Collection Item> 
- List of Execution Resources.
- Items
[]GetScheduler Job Job Activity Resources Resource Collection Item 
- List of Execution Resources.
- items
List<GetScheduler Job Job Activity Resources Resource Collection Item> 
- List of Execution Resources.
- items
GetScheduler Job Job Activity Resources Resource Collection Item[] 
- List of Execution Resources.
- items
Sequence[GetScheduler Job Job Activity Resources Resource Collection Item] 
- List of Execution Resources.
- items List<Property Map>
- List of Execution Resources.
GetSchedulerJobJobActivityResourcesResourceCollectionItem        
- Description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- ResourceDisplay stringName 
- Resource Display Name.
- ResourceId string
- Resource Identifier associated with the Work Request.
- Sequence string
- Task Order Sequence
- Status string
- Status of the Job at target Level.
- Targets
List<GetScheduler Job Job Activity Resources Resource Collection Item Target> 
- Targets associated with the resource.
- TimeEnded string
- The time the task ended for the resource. An RFC3339 formatted datetime string
- TimeStarted string
- The time the task started for the resource. An RFC3339 formatted datetime string
- Description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- ResourceDisplay stringName 
- Resource Display Name.
- ResourceId string
- Resource Identifier associated with the Work Request.
- Sequence string
- Task Order Sequence
- Status string
- Status of the Job at target Level.
- Targets
[]GetScheduler Job Job Activity Resources Resource Collection Item Target 
- Targets associated with the resource.
- TimeEnded string
- The time the task ended for the resource. An RFC3339 formatted datetime string
- TimeStarted string
- The time the task started for the resource. An RFC3339 formatted datetime string
- description String
- Description of the Execution status. If there are any errors, this can also include a short error message.
- resourceDisplay StringName 
- Resource Display Name.
- resourceId String
- Resource Identifier associated with the Work Request.
- sequence String
- Task Order Sequence
- status String
- Status of the Job at target Level.
- targets
List<GetScheduler Job Job Activity Resources Resource Collection Item Target> 
- Targets associated with the resource.
- timeEnded String
- The time the task ended for the resource. An RFC3339 formatted datetime string
- timeStarted String
- The time the task started for the resource. An RFC3339 formatted datetime string
- description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- resourceDisplay stringName 
- Resource Display Name.
- resourceId string
- Resource Identifier associated with the Work Request.
- sequence string
- Task Order Sequence
- status string
- Status of the Job at target Level.
- targets
GetScheduler Job Job Activity Resources Resource Collection Item Target[] 
- Targets associated with the resource.
- timeEnded string
- The time the task ended for the resource. An RFC3339 formatted datetime string
- timeStarted string
- The time the task started for the resource. An RFC3339 formatted datetime string
- description str
- Description of the Execution status. If there are any errors, this can also include a short error message.
- resource_display_ strname 
- Resource Display Name.
- resource_id str
- Resource Identifier associated with the Work Request.
- sequence str
- Task Order Sequence
- status str
- Status of the Job at target Level.
- targets
Sequence[GetScheduler Job Job Activity Resources Resource Collection Item Target] 
- Targets associated with the resource.
- time_ended str
- The time the task ended for the resource. An RFC3339 formatted datetime string
- time_started str
- The time the task started for the resource. An RFC3339 formatted datetime string
- description String
- Description of the Execution status. If there are any errors, this can also include a short error message.
- resourceDisplay StringName 
- Resource Display Name.
- resourceId String
- Resource Identifier associated with the Work Request.
- sequence String
- Task Order Sequence
- status String
- Status of the Job at target Level.
- targets List<Property Map>
- Targets associated with the resource.
- timeEnded String
- The time the task ended for the resource. An RFC3339 formatted datetime string
- timeStarted String
- The time the task started for the resource. An RFC3339 formatted datetime string
GetSchedulerJobJobActivityResourcesResourceCollectionItemTarget         
- Description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- Status string
- Status of the Job at target Level.
- TargetName string
- Unique target name
- Description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- Status string
- Status of the Job at target Level.
- TargetName string
- Unique target name
- description String
- Description of the Execution status. If there are any errors, this can also include a short error message.
- status String
- Status of the Job at target Level.
- targetName String
- Unique target name
- description string
- Description of the Execution status. If there are any errors, this can also include a short error message.
- status string
- Status of the Job at target Level.
- targetName string
- Unique target name
- description str
- Description of the Execution status. If there are any errors, this can also include a short error message.
- status str
- Status of the Job at target Level.
- target_name str
- Unique target name
- description String
- Description of the Execution status. If there are any errors, this can also include a short error message.
- status String
- Status of the Job at target Level.
- targetName String
- Unique target name
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.