1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getDiscoveryJob
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.StackMonitoring.getDiscoveryJob

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides details about a specific Discovery Job resource in Oracle Cloud Infrastructure Stack Monitoring service.

API to get the details of discovery Job by identifier.

Example Usage

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

const testDiscoveryJob = oci.StackMonitoring.getDiscoveryJob({
    discoveryJobId: testDiscoveryJobOciStackMonitoringDiscoveryJob.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_discovery_job = oci.StackMonitoring.get_discovery_job(discovery_job_id=test_discovery_job_oci_stack_monitoring_discovery_job["id"])
Copy
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.GetDiscoveryJob(ctx, &stackmonitoring.GetDiscoveryJobArgs{
			DiscoveryJobId: testDiscoveryJobOciStackMonitoringDiscoveryJob.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 testDiscoveryJob = Oci.StackMonitoring.GetDiscoveryJob.Invoke(new()
    {
        DiscoveryJobId = testDiscoveryJobOciStackMonitoringDiscoveryJob.Id,
    });

});
Copy
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.GetDiscoveryJobArgs;
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 testDiscoveryJob = StackMonitoringFunctions.getDiscoveryJob(GetDiscoveryJobArgs.builder()
            .discoveryJobId(testDiscoveryJobOciStackMonitoringDiscoveryJob.id())
            .build());

    }
}
Copy
variables:
  testDiscoveryJob:
    fn::invoke:
      function: oci:StackMonitoring:getDiscoveryJob
      arguments:
        discoveryJobId: ${testDiscoveryJobOciStackMonitoringDiscoveryJob.id}
Copy

Using getDiscoveryJob

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 getDiscoveryJob(args: GetDiscoveryJobArgs, opts?: InvokeOptions): Promise<GetDiscoveryJobResult>
function getDiscoveryJobOutput(args: GetDiscoveryJobOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryJobResult>
Copy
def get_discovery_job(discovery_job_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDiscoveryJobResult
def get_discovery_job_output(discovery_job_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryJobResult]
Copy
func GetDiscoveryJob(ctx *Context, args *GetDiscoveryJobArgs, opts ...InvokeOption) (*GetDiscoveryJobResult, error)
func GetDiscoveryJobOutput(ctx *Context, args *GetDiscoveryJobOutputArgs, opts ...InvokeOption) GetDiscoveryJobResultOutput
Copy

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

public static class GetDiscoveryJob 
{
    public static Task<GetDiscoveryJobResult> InvokeAsync(GetDiscoveryJobArgs args, InvokeOptions? opts = null)
    public static Output<GetDiscoveryJobResult> Invoke(GetDiscoveryJobInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDiscoveryJobResult> getDiscoveryJob(GetDiscoveryJobArgs args, InvokeOptions options)
public static Output<GetDiscoveryJobResult> getDiscoveryJob(GetDiscoveryJobArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:StackMonitoring/getDiscoveryJob:getDiscoveryJob
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DiscoveryJobId This property is required. string
The Discovery Job ID
DiscoveryJobId This property is required. string
The Discovery Job ID
discoveryJobId This property is required. String
The Discovery Job ID
discoveryJobId This property is required. string
The Discovery Job ID
discovery_job_id This property is required. str
The Discovery Job ID
discoveryJobId This property is required. String
The Discovery Job ID

getDiscoveryJob Result

The following output properties are available:

CompartmentId string
The OCID of the Compartment
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DiscoveryClient string
Client who submits discovery job.
DiscoveryDetails List<GetDiscoveryJobDiscoveryDetail>
The request of DiscoveryJob Resource details.
DiscoveryJobId string
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, 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
ShouldPropagateTagsToDiscoveredResources bool
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, 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 OCID of the Compartment
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DiscoveryClient string
Client who submits discovery job.
DiscoveryDetails []GetDiscoveryJobDiscoveryDetail
The request of DiscoveryJob Resource details.
DiscoveryJobId string
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]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
ShouldPropagateTagsToDiscoveredResources bool
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]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 OCID of the Compartment
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
discoveryClient String
Client who submits discovery job.
discoveryDetails List<GetDiscoveryJobDiscoveryDetail>
The request of DiscoveryJob Resource details.
discoveryJobId String
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,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
shouldPropagateTagsToDiscoveredResources Boolean
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,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 OCID of the Compartment
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
discoveryClient string
Client who submits discovery job.
discoveryDetails GetDiscoveryJobDiscoveryDetail[]
The request of DiscoveryJob Resource details.
discoveryJobId string
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]: 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
shouldPropagateTagsToDiscoveredResources boolean
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]: 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 OCID of the Compartment
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"}
discovery_client str
Client who submits discovery job.
discovery_details Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetail]
The request of DiscoveryJob Resource details.
discovery_job_id str
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, 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
should_propagate_tags_to_discovered_resources bool
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, 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 OCID of the Compartment
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
discoveryClient String
Client who submits discovery job.
discoveryDetails List<Property Map>
The request of DiscoveryJob Resource details.
discoveryJobId String
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>
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
shouldPropagateTagsToDiscoveredResources Boolean
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>
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

Supporting Types

GetDiscoveryJobDiscoveryDetail

AgentId This property is required. string
The OCID of Management Agent
Credentials This property is required. List<GetDiscoveryJobDiscoveryDetailCredential>
List of DiscoveryJOb Credential Details.
License This property is required. string
License edition of the monitored resource.
Properties This property is required. List<GetDiscoveryJobDiscoveryDetailProperty>
Property Details
ResourceName This property is required. string
The Name of resource type
ResourceType This property is required. string
Resource Type.
Tags This property is required. List<GetDiscoveryJobDiscoveryDetailTag>
Property Details
AgentId This property is required. string
The OCID of Management Agent
Credentials This property is required. []GetDiscoveryJobDiscoveryDetailCredential
List of DiscoveryJOb Credential Details.
License This property is required. string
License edition of the monitored resource.
Properties This property is required. []GetDiscoveryJobDiscoveryDetailProperty
Property Details
ResourceName This property is required. string
The Name of resource type
ResourceType This property is required. string
Resource Type.
Tags This property is required. []GetDiscoveryJobDiscoveryDetailTag
Property Details
agentId This property is required. String
The OCID of Management Agent
credentials This property is required. List<GetDiscoveryJobDiscoveryDetailCredential>
List of DiscoveryJOb Credential Details.
license This property is required. String
License edition of the monitored resource.
properties This property is required. List<GetDiscoveryJobDiscoveryDetailProperty>
Property Details
resourceName This property is required. String
The Name of resource type
resourceType This property is required. String
Resource Type.
tags This property is required. List<GetDiscoveryJobDiscoveryDetailTag>
Property Details
agentId This property is required. string
The OCID of Management Agent
credentials This property is required. GetDiscoveryJobDiscoveryDetailCredential[]
List of DiscoveryJOb Credential Details.
license This property is required. string
License edition of the monitored resource.
properties This property is required. GetDiscoveryJobDiscoveryDetailProperty[]
Property Details
resourceName This property is required. string
The Name of resource type
resourceType This property is required. string
Resource Type.
tags This property is required. GetDiscoveryJobDiscoveryDetailTag[]
Property Details
agent_id This property is required. str
The OCID of Management Agent
credentials This property is required. Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailCredential]
List of DiscoveryJOb Credential Details.
license This property is required. str
License edition of the monitored resource.
properties This property is required. Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailProperty]
Property Details
resource_name This property is required. str
The Name of resource type
resource_type This property is required. str
Resource Type.
tags This property is required. Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailTag]
Property Details
agentId This property is required. String
The OCID of Management Agent
credentials This property is required. List<Property Map>
List of DiscoveryJOb Credential Details.
license This property is required. String
License edition of the monitored resource.
properties This property is required. List<Property Map>
Property Details
resourceName This property is required. String
The Name of resource type
resourceType This property is required. String
Resource Type.
tags This property is required. List<Property Map>
Property Details

GetDiscoveryJobDiscoveryDetailCredential

Items This property is required. List<GetDiscoveryJobDiscoveryDetailCredentialItem>
List of DiscoveryJob credentials.
Items This property is required. []GetDiscoveryJobDiscoveryDetailCredentialItem
List of DiscoveryJob credentials.
items This property is required. List<GetDiscoveryJobDiscoveryDetailCredentialItem>
List of DiscoveryJob credentials.
items This property is required. GetDiscoveryJobDiscoveryDetailCredentialItem[]
List of DiscoveryJob credentials.
items This property is required. Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailCredentialItem]
List of DiscoveryJob credentials.
items This property is required. List<Property Map>
List of DiscoveryJob credentials.

GetDiscoveryJobDiscoveryDetailCredentialItem

CredentialName This property is required. string
Name of Credential
CredentialType This property is required. string
Name of Credential Type
Properties This property is required. List<GetDiscoveryJobDiscoveryDetailCredentialItemProperty>
Property Details
CredentialName This property is required. string
Name of Credential
CredentialType This property is required. string
Name of Credential Type
Properties This property is required. []GetDiscoveryJobDiscoveryDetailCredentialItemProperty
Property Details
credentialName This property is required. String
Name of Credential
credentialType This property is required. String
Name of Credential Type
properties This property is required. List<GetDiscoveryJobDiscoveryDetailCredentialItemProperty>
Property Details
credentialName This property is required. string
Name of Credential
credentialType This property is required. string
Name of Credential Type
properties This property is required. GetDiscoveryJobDiscoveryDetailCredentialItemProperty[]
Property Details
credential_name This property is required. str
Name of Credential
credential_type This property is required. str
Name of Credential Type
properties This property is required. Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailCredentialItemProperty]
Property Details
credentialName This property is required. String
Name of Credential
credentialType This property is required. String
Name of Credential Type
properties This property is required. List<Property Map>
Property Details

GetDiscoveryJobDiscoveryDetailCredentialItemProperty

PropertiesMap This property is required. Dictionary<string, string>
Key/Value pair of Property
PropertiesMap This property is required. map[string]string
Key/Value pair of Property
propertiesMap This property is required. Map<String,String>
Key/Value pair of Property
propertiesMap This property is required. {[key: string]: string}
Key/Value pair of Property
properties_map This property is required. Mapping[str, str]
Key/Value pair of Property
propertiesMap This property is required. Map<String>
Key/Value pair of Property

GetDiscoveryJobDiscoveryDetailProperty

PropertiesMap This property is required. Dictionary<string, string>
Key/Value pair of Property
PropertiesMap This property is required. map[string]string
Key/Value pair of Property
propertiesMap This property is required. Map<String,String>
Key/Value pair of Property
propertiesMap This property is required. {[key: string]: string}
Key/Value pair of Property
properties_map This property is required. Mapping[str, str]
Key/Value pair of Property
propertiesMap This property is required. Map<String>
Key/Value pair of Property

GetDiscoveryJobDiscoveryDetailTag

PropertiesMap This property is required. Dictionary<string, string>
Key/Value pair of Property
PropertiesMap This property is required. map[string]string
Key/Value pair of Property
propertiesMap This property is required. Map<String,String>
Key/Value pair of Property
propertiesMap This property is required. {[key: string]: string}
Key/Value pair of Property
properties_map This property is required. Mapping[str, str]
Key/Value pair of Property
propertiesMap This property is required. Map<String>
Key/Value pair of Property

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.31.0 published on Thursday, Apr 17, 2025 by Pulumi