oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.StackMonitoring.getDiscoveryJobs

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDiscoveryJobs = Oci.StackMonitoring.GetDiscoveryJobs.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        Name = @var.Discovery_job_name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			Name:          pulumi.StringRef(_var.Discovery_job_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .name(var_.discovery_job_name())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_discovery_jobs = oci.StackMonitoring.get_discovery_jobs(compartment_id=var["compartment_id"],
    name=var["discovery_job_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDiscoveryJobs = oci.StackMonitoring.getDiscoveryJobs({
    compartmentId: _var.compartment_id,
    name: _var.discovery_job_name,
});
variables:
  testDiscoveryJobs:
    fn::invoke:
      Function: oci:StackMonitoring:getDiscoveryJobs
      Arguments:
        compartmentId: ${var.compartment_id}
        name: ${var.discovery_job_name}

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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:StackMonitoring/getDiscoveryJobs:getDiscoveryJobs
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which data is listed.

Filters List<GetDiscoveryJobsFilter>
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 []GetDiscoveryJobsFilter
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<GetDiscoveryJobsFilter>
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 GetDiscoveryJobsFilter[]
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 GetDiscoveryJobsFilter]
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

DiscoveryJobCollections List<GetDiscoveryJobsDiscoveryJobCollection>

The list of discovery_job_collection.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetDiscoveryJobsFilter>
Name string
CompartmentId string

The OCID of the Compartment

DiscoveryJobCollections []GetDiscoveryJobsDiscoveryJobCollection

The list of discovery_job_collection.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetDiscoveryJobsFilter
Name string
compartmentId String

The OCID of the Compartment

discoveryJobCollections List<GetDiscoveryJobsDiscoveryJobCollection>

The list of discovery_job_collection.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetDiscoveryJobsFilter>
name String
compartmentId string

The OCID of the Compartment

discoveryJobCollections GetDiscoveryJobsDiscoveryJobCollection[]

The list of discovery_job_collection.

id string

The provider-assigned unique ID for this managed resource.

filters GetDiscoveryJobsFilter[]
name string
compartment_id str

The OCID of the Compartment

discovery_job_collections GetDiscoveryJobsDiscoveryJobCollection]

The list of discovery_job_collection.

id str

The provider-assigned unique ID for this managed resource.

filters GetDiscoveryJobsFilter]
name str
compartmentId String

The OCID of the Compartment

discoveryJobCollections List<Property Map>

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 []GetDiscoveryJobsDiscoveryJobCollectionItem

List of DiscoveryJob credentials.

items GetDiscoveryJobsDiscoveryJobCollectionItem[]

List of DiscoveryJob credentials.

items GetDiscoveryJobsDiscoveryJobCollectionItem]

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.

DefinedTags Dictionary<string, object>

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.

FreeformTags Dictionary<string, object>

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

SystemTags Dictionary<string, object>

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.

DefinedTags map[string]interface{}

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.

FreeformTags map[string]interface{}

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

SystemTags map[string]interface{}

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.

definedTags Map<String,Object>

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.

freeformTags Map<String,Object>

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

systemTags Map<String,Object>

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.

definedTags {[key: string]: any}

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.

freeformTags {[key: string]: any}

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

systemTags {[key: string]: any}

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.

defined_tags Mapping[str, Any]

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.

freeform_tags Mapping[str, Any]

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

system_tags Mapping[str, Any]

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.

definedTags Map<Any>

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.

freeformTags Map<Any>

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

systemTags Map<Any>

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

Name string

A filter to return only discovery jobs that match the entire resource name given.

Values List<string>
Regex bool
Name string

A filter to return only discovery jobs that match the entire resource name given.

Values []string
Regex bool
name String

A filter to return only discovery jobs that match the entire resource name given.

values List<String>
regex Boolean
name string

A filter to return only discovery jobs that match the entire resource name given.

values string[]
regex boolean
name str

A filter to return only discovery jobs that match the entire resource name given.

values Sequence[str]
regex bool
name String

A filter to return only discovery jobs that match the entire resource name given.

values List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.