Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.StackMonitoring.getDiscoveryJobs
Explore with Pulumi AI
This data source provides the list of Discovery Jobs in Oracle Cloud Infrastructure Stack Monitoring service.
API to get the details of all Discovery Jobs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDiscoveryJobs = oci.StackMonitoring.getDiscoveryJobs({
    compartmentId: compartmentId,
    name: discoveryJobName,
});
import pulumi
import pulumi_oci as oci
test_discovery_jobs = oci.StackMonitoring.get_discovery_jobs(compartment_id=compartment_id,
    name=discovery_job_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.GetDiscoveryJobs(ctx, &stackmonitoring.GetDiscoveryJobsArgs{
			CompartmentId: compartmentId,
			Name:          pulumi.StringRef(discoveryJobName),
		}, 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 testDiscoveryJobs = Oci.StackMonitoring.GetDiscoveryJobs.Invoke(new()
    {
        CompartmentId = compartmentId,
        Name = discoveryJobName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
import com.pulumi.oci.StackMonitoring.inputs.GetDiscoveryJobsArgs;
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 testDiscoveryJobs = StackMonitoringFunctions.getDiscoveryJobs(GetDiscoveryJobsArgs.builder()
            .compartmentId(compartmentId)
            .name(discoveryJobName)
            .build());
    }
}
variables:
  testDiscoveryJobs:
    fn::invoke:
      function: oci:StackMonitoring:getDiscoveryJobs
      arguments:
        compartmentId: ${compartmentId}
        name: ${discoveryJobName}
Using getDiscoveryJobs
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 getDiscoveryJobs(args: GetDiscoveryJobsArgs, opts?: InvokeOptions): Promise<GetDiscoveryJobsResult>
function getDiscoveryJobsOutput(args: GetDiscoveryJobsOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryJobsResult>def get_discovery_jobs(compartment_id: Optional[str] = None,
                       filters: Optional[Sequence[GetDiscoveryJobsFilter]] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDiscoveryJobsResult
def get_discovery_jobs_output(compartment_id: Optional[pulumi.Input[str]] = None,
                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDiscoveryJobsFilterArgs]]]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryJobsResult]func GetDiscoveryJobs(ctx *Context, args *GetDiscoveryJobsArgs, opts ...InvokeOption) (*GetDiscoveryJobsResult, error)
func GetDiscoveryJobsOutput(ctx *Context, args *GetDiscoveryJobsOutputArgs, opts ...InvokeOption) GetDiscoveryJobsResultOutput> Note: This function is named GetDiscoveryJobs in the Go SDK.
public static class GetDiscoveryJobs 
{
    public static Task<GetDiscoveryJobsResult> InvokeAsync(GetDiscoveryJobsArgs args, InvokeOptions? opts = null)
    public static Output<GetDiscoveryJobsResult> Invoke(GetDiscoveryJobsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDiscoveryJobsResult> getDiscoveryJobs(GetDiscoveryJobsArgs args, InvokeOptions options)
public static Output<GetDiscoveryJobsResult> getDiscoveryJobs(GetDiscoveryJobsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:StackMonitoring/getDiscoveryJobs:getDiscoveryJobs
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which data is listed.
- Filters
List<GetDiscovery Jobs Filter> 
- Name string
- A filter to return only discovery jobs that match the entire resource name given.
- CompartmentId string
- The ID of the compartment in which data is listed.
- Filters
[]GetDiscovery Jobs Filter 
- Name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartmentId String
- The ID of the compartment in which data is listed.
- filters
List<GetDiscovery Jobs Filter> 
- name String
- A filter to return only discovery jobs that match the entire resource name given.
- compartmentId string
- The ID of the compartment in which data is listed.
- filters
GetDiscovery Jobs Filter[] 
- name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartment_id str
- The ID of the compartment in which data is listed.
- filters
Sequence[GetDiscovery Jobs Filter] 
- name str
- A filter to return only discovery jobs that match the entire resource name given.
- compartmentId String
- The ID of the compartment in which data is listed.
- filters List<Property Map>
- name String
- A filter to return only discovery jobs that match the entire resource name given.
getDiscoveryJobs Result
The following output properties are available:
- CompartmentId string
- The OCID of the Compartment
- DiscoveryJob List<GetCollections Discovery Jobs Discovery Job Collection> 
- The list of discovery_job_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetDiscovery Jobs Filter> 
- Name string
- CompartmentId string
- The OCID of the Compartment
- DiscoveryJob []GetCollections Discovery Jobs Discovery Job Collection 
- The list of discovery_job_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetDiscovery Jobs Filter 
- Name string
- compartmentId String
- The OCID of the Compartment
- discoveryJob List<GetCollections Discovery Jobs Discovery Job Collection> 
- The list of discovery_job_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetDiscovery Jobs Filter> 
- name String
- compartmentId string
- The OCID of the Compartment
- discoveryJob GetCollections Discovery Jobs Discovery Job Collection[] 
- The list of discovery_job_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetDiscovery Jobs Filter[] 
- name string
- compartment_id str
- The OCID of the Compartment
- discovery_job_ Sequence[Getcollections Discovery Jobs Discovery Job Collection] 
- The list of discovery_job_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetDiscovery Jobs Filter] 
- name str
- compartmentId String
- The OCID of the Compartment
- discoveryJob List<Property Map>Collections 
- The list of discovery_job_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- name String
Supporting Types
GetDiscoveryJobsDiscoveryJobCollection     
- Items
List<GetDiscovery Jobs Discovery Job Collection Item> 
- List of DiscoveryJob credentials.
- Items
[]GetDiscovery Jobs Discovery Job Collection Item 
- List of DiscoveryJob credentials.
- items
List<GetDiscovery Jobs Discovery Job Collection Item> 
- List of DiscoveryJob credentials.
- items
GetDiscovery Jobs Discovery Job Collection Item[] 
- List of DiscoveryJob credentials.
- items
Sequence[GetDiscovery Jobs Discovery Job Collection Item] 
- List of DiscoveryJob credentials.
- items List<Property Map>
- List of DiscoveryJob credentials.
GetDiscoveryJobsDiscoveryJobCollectionItem      
- CompartmentId string
- The ID of the compartment in which data is listed.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DiscoveryType string
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- 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 Discovery job
- ResourceName string
- The Name of resource type
- ResourceType string
- Resource Type.
- State string
- The current state of the DiscoveryJob Resource.
- Status string
- Specifies the status of the discovery job
- StatusMessage string
- The short summary of the status of the discovery job
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TenantId string
- The OCID of Tenant
- TimeUpdated string
- The time the discovery Job was updated.
- UserId string
- The OCID of user in which the job is submitted
- CompartmentId string
- The ID of the compartment in which data is listed.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DiscoveryType string
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- 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 Discovery job
- ResourceName string
- The Name of resource type
- ResourceType string
- Resource Type.
- State string
- The current state of the DiscoveryJob Resource.
- Status string
- Specifies the status of the discovery job
- StatusMessage string
- The short summary of the status of the discovery job
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TenantId string
- The OCID of Tenant
- TimeUpdated string
- The time the discovery Job was updated.
- UserId string
- The OCID of user in which the job is submitted
- compartmentId String
- The ID of the compartment in which data is listed.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- discoveryType String
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- 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 Discovery job
- resourceName String
- The Name of resource type
- resourceType String
- Resource Type.
- state String
- The current state of the DiscoveryJob Resource.
- status String
- Specifies the status of the discovery job
- statusMessage String
- The short summary of the status of the discovery job
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- tenantId String
- The OCID of Tenant
- timeUpdated String
- The time the discovery Job was updated.
- userId String
- The OCID of user in which the job is submitted
- compartmentId string
- The ID of the compartment in which data is listed.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- discoveryType string
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- {[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 Discovery job
- resourceName string
- The Name of resource type
- resourceType string
- Resource Type.
- state string
- The current state of the DiscoveryJob Resource.
- status string
- Specifies the status of the discovery job
- statusMessage string
- The short summary of the status of the discovery job
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- tenantId string
- The OCID of Tenant
- timeUpdated string
- The time the discovery Job was updated.
- userId string
- The OCID of user in which the job is submitted
- compartment_id str
- The ID of the compartment in which data is listed.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- discovery_type str
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- 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 Discovery job
- resource_name str
- The Name of resource type
- resource_type str
- Resource Type.
- state str
- The current state of the DiscoveryJob Resource.
- status str
- Specifies the status of the discovery job
- status_message str
- The short summary of the status of the discovery job
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- tenant_id str
- The OCID of Tenant
- time_updated str
- The time the discovery Job was updated.
- user_id str
- The OCID of user in which the job is submitted
- compartmentId String
- The ID of the compartment in which data is listed.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- discoveryType String
- Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
- 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 Discovery job
- resourceName String
- The Name of resource type
- resourceType String
- Resource Type.
- state String
- The current state of the DiscoveryJob Resource.
- status String
- Specifies the status of the discovery job
- statusMessage String
- The short summary of the status of the discovery job
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- tenantId String
- The OCID of Tenant
- timeUpdated String
- The time the discovery Job was updated.
- userId String
- The OCID of user in which the job is submitted
GetDiscoveryJobsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.