Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 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[_stackmonitoring.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[_stackmonitoring.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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- Filters
Changes to this property will trigger replacement.
Discovery Jobs Filter> - Name string
- A filter to return only discovery jobs that match the entire resource name given.
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- Filters
Changes to this property will trigger replacement.
Discovery Jobs Filter - Name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Discovery Jobs Filter> - name String
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Discovery Jobs Filter[] - name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartment_
id This property is required. str - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Get Discovery Jobs Filter] - name str
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
- name String
- A filter to return only discovery jobs that match the entire resource name given.
getDiscoveryJobs Result
The following output properties are available:
- Compartment
Id string - The OCID of the Compartment
- Discovery
Job 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<Get
Discovery Jobs Filter> - Name string
- Compartment
Id string - The OCID of the Compartment
- Discovery
Job []GetCollections Discovery Jobs Discovery Job Collection - The list of discovery_job_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Discovery Jobs Filter - Name string
- compartment
Id String - The OCID of the Compartment
- discovery
Job 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<Get
Discovery Jobs Filter> - name String
- compartment
Id string - The OCID of the Compartment
- discovery
Job GetCollections Discovery Jobs Discovery Job Collection[] - The list of discovery_job_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Discovery Jobs Filter[] - name string
- compartment_
id str - The OCID of the Compartment
- discovery_
job_ Sequence[stackmonitoring.collections Get Discovery Jobs Discovery Job Collection] - The list of discovery_job_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[stackmonitoring.
Get Discovery Jobs Filter] - name str
- compartment
Id String - The OCID of the Compartment
- discovery
Job 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
This property is required. List<GetDiscovery Jobs Discovery Job Collection Item> - List of DiscoveryJob credentials.
- Items
This property is required. []GetDiscovery Jobs Discovery Job Collection Item - List of DiscoveryJob credentials.
- items
This property is required. List<GetDiscovery Jobs Discovery Job Collection Item> - List of DiscoveryJob credentials.
- items
This property is required. GetDiscovery Jobs Discovery Job Collection Item[] - List of DiscoveryJob credentials.
- items
This property is required. Sequence[stackmonitoring.Get Discovery Jobs Discovery Job Collection Item] - List of DiscoveryJob credentials.
- items
This property is required. List<Property Map> - List of DiscoveryJob credentials.
GetDiscoveryJobsDiscoveryJobCollectionItem
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
This property is required. Dictionary<string, string>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Discovery
Type This property is required. string - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. 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
This property is required. string - The OCID of Discovery job
- Resource
Name This property is required. string - The Name of resource type
- Resource
Type This property is required. string - Resource Type.
- State
This property is required. string - The current state of the DiscoveryJob Resource.
- Status
This property is required. string - Specifies the status of the discovery job
- Status
Message This property is required. string - The short summary of the status of the discovery job
This property is required. Dictionary<string, string>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id This property is required. string - The OCID of Tenant
- Time
Updated This property is required. string - The time the discovery Job was updated.
- User
Id This property is required. string - The OCID of user in which the job is submitted
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
This property is required. map[string]string- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Discovery
Type This property is required. string - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. 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
This property is required. string - The OCID of Discovery job
- Resource
Name This property is required. string - The Name of resource type
- Resource
Type This property is required. string - Resource Type.
- State
This property is required. string - The current state of the DiscoveryJob Resource.
- Status
This property is required. string - Specifies the status of the discovery job
- Status
Message This property is required. string - The short summary of the status of the discovery job
This property is required. map[string]string- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id This property is required. string - The OCID of Tenant
- Time
Updated This property is required. string - The time the discovery Job was updated.
- User
Id This property is required. string - The OCID of user in which the job is submitted
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
This property is required. Map<String,String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- discovery
Type This property is required. String - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. 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
This property is required. String - The OCID of Discovery job
- resource
Name This property is required. String - The Name of resource type
- resource
Type This property is required. String - Resource Type.
- state
This property is required. String - The current state of the DiscoveryJob Resource.
- status
This property is required. String - Specifies the status of the discovery job
- status
Message This property is required. String - The short summary of the status of the discovery job
This property is required. Map<String,String>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id This property is required. String - The OCID of Tenant
- time
Updated This property is required. String - The time the discovery Job was updated.
- user
Id This property is required. String - The OCID of user in which the job is submitted
- compartment
Id This property is required. string - The ID of the compartment in which data is listed.
This property is required. {[key: string]: string}- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- discovery
Type This property is required. string - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. {[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
This property is required. string - The OCID of Discovery job
- resource
Name This property is required. string - The Name of resource type
- resource
Type This property is required. string - Resource Type.
- state
This property is required. string - The current state of the DiscoveryJob Resource.
- status
This property is required. string - Specifies the status of the discovery job
- status
Message This property is required. string - The short summary of the status of the discovery job
This property is required. {[key: string]: string}- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id This property is required. string - The OCID of Tenant
- time
Updated This property is required. string - The time the discovery Job was updated.
- user
Id This property is required. string - The OCID of user in which the job is submitted
- compartment_
id This property is required. str - The ID of the compartment in which data is listed.
This property is required. 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 This property is required. str - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. 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
This property is required. str - The OCID of Discovery job
- resource_
name This property is required. str - The Name of resource type
- resource_
type This property is required. str - Resource Type.
- state
This property is required. str - The current state of the DiscoveryJob Resource.
- status
This property is required. str - Specifies the status of the discovery job
- status_
message This property is required. str - The short summary of the status of the discovery job
This property is required. Mapping[str, str]- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant_
id This property is required. str - The OCID of Tenant
- time_
updated This property is required. str - The time the discovery Job was updated.
- user_
id This property is required. str - The OCID of user in which the job is submitted
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
This property is required. Map<String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- discovery
Type This property is required. String - Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
This property is required. 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
This property is required. String - The OCID of Discovery job
- resource
Name This property is required. String - The Name of resource type
- resource
Type This property is required. String - Resource Type.
- state
This property is required. String - The current state of the DiscoveryJob Resource.
- status
This property is required. String - Specifies the status of the discovery job
- status
Message This property is required. String - The short summary of the status of the discovery job
This property is required. Map<String>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id This property is required. String - The OCID of Tenant
- time
Updated This property is required. String - The time the discovery Job was updated.
- user
Id This property is required. 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
oci
Terraform Provider.