Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.StackMonitoring.getDiscoveryJob
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testDiscoveryJob:
    fn::invoke:
      function: oci:StackMonitoring:getDiscoveryJob
      arguments:
        discoveryJobId: ${testDiscoveryJobOciStackMonitoringDiscoveryJob.id}
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>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]func LookupDiscoveryJob(ctx *Context, args *LookupDiscoveryJobArgs, opts ...InvokeOption) (*LookupDiscoveryJobResult, error)
func LookupDiscoveryJobOutput(ctx *Context, args *LookupDiscoveryJobOutputArgs, opts ...InvokeOption) LookupDiscoveryJobResultOutput> Note: This function is named LookupDiscoveryJob 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)
}public static CompletableFuture<GetDiscoveryJobResult> getDiscoveryJob(GetDiscoveryJobArgs args, InvokeOptions options)
public static Output<GetDiscoveryJobResult> getDiscoveryJob(GetDiscoveryJobArgs args, InvokeOptions options)
fn::invoke:
  function: oci:StackMonitoring/getDiscoveryJob:getDiscoveryJob
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DiscoveryJob stringId 
- The Discovery Job ID
- DiscoveryJob stringId 
- The Discovery Job ID
- discoveryJob StringId 
- The Discovery Job ID
- discoveryJob stringId 
- The Discovery Job ID
- discovery_job_ strid 
- The Discovery Job ID
- discoveryJob StringId 
- The Discovery Job ID
getDiscoveryJob Result
The following output properties are available:
- CompartmentId string
- The OCID of the Compartment
- 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<GetDiscovery Job Discovery Detail> 
- The request of DiscoveryJob Resource details.
- DiscoveryJob stringId 
- 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
- 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
- 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
- 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 []GetDiscovery Job Discovery Detail 
- The request of DiscoveryJob Resource details.
- DiscoveryJob stringId 
- 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
- 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
- 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
- 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<GetDiscovery Job Discovery Detail> 
- The request of DiscoveryJob Resource details.
- discoveryJob StringId 
- 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
- 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
- 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
- {[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 GetDiscovery Job Discovery Detail[] 
- The request of DiscoveryJob Resource details.
- discoveryJob stringId 
- 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
- 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
- {[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
- 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[GetDiscovery Job Discovery Detail] 
- The request of DiscoveryJob Resource details.
- discovery_job_ strid 
- 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
- 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
- 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
- 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.
- discoveryJob StringId 
- 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
- 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
- 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 string
- The OCID of Management Agent
- Credentials
List<GetDiscovery Job Discovery Detail Credential> 
- List of DiscoveryJOb Credential Details.
- License string
- License edition of the monitored resource.
- Properties
List<GetDiscovery Job Discovery Detail Property> 
- Property Details
- ResourceName string
- The Name of resource type
- ResourceType string
- Resource Type.
- 
List<GetDiscovery Job Discovery Detail Tag> 
- Property Details
- AgentId string
- The OCID of Management Agent
- Credentials
[]GetDiscovery Job Discovery Detail Credential 
- List of DiscoveryJOb Credential Details.
- License string
- License edition of the monitored resource.
- Properties
[]GetDiscovery Job Discovery Detail Property 
- Property Details
- ResourceName string
- The Name of resource type
- ResourceType string
- Resource Type.
- 
[]GetDiscovery Job Discovery Detail Tag 
- Property Details
- agentId String
- The OCID of Management Agent
- credentials
List<GetDiscovery Job Discovery Detail Credential> 
- List of DiscoveryJOb Credential Details.
- license String
- License edition of the monitored resource.
- properties
List<GetDiscovery Job Discovery Detail Property> 
- Property Details
- resourceName String
- The Name of resource type
- resourceType String
- Resource Type.
- 
List<GetDiscovery Job Discovery Detail Tag> 
- Property Details
- agentId string
- The OCID of Management Agent
- credentials
GetDiscovery Job Discovery Detail Credential[] 
- List of DiscoveryJOb Credential Details.
- license string
- License edition of the monitored resource.
- properties
GetDiscovery Job Discovery Detail Property[] 
- Property Details
- resourceName string
- The Name of resource type
- resourceType string
- Resource Type.
- 
GetDiscovery Job Discovery Detail Tag[] 
- Property Details
- agent_id str
- The OCID of Management Agent
- credentials
Sequence[GetDiscovery Job Discovery Detail Credential] 
- List of DiscoveryJOb Credential Details.
- license str
- License edition of the monitored resource.
- properties
Sequence[GetDiscovery Job Discovery Detail Property] 
- Property Details
- resource_name str
- The Name of resource type
- resource_type str
- Resource Type.
- 
Sequence[GetDiscovery Job Discovery Detail Tag] 
- Property Details
- agentId String
- The OCID of Management Agent
- credentials List<Property Map>
- List of DiscoveryJOb Credential Details.
- license String
- License edition of the monitored resource.
- properties List<Property Map>
- Property Details
- resourceName String
- The Name of resource type
- resourceType String
- Resource Type.
- List<Property Map>
- Property Details
GetDiscoveryJobDiscoveryDetailCredential     
- Items
List<GetDiscovery Job Discovery Detail Credential Item> 
- List of DiscoveryJob credentials.
- Items
[]GetDiscovery Job Discovery Detail Credential Item 
- List of DiscoveryJob credentials.
- items
List<GetDiscovery Job Discovery Detail Credential Item> 
- List of DiscoveryJob credentials.
- items
GetDiscovery Job Discovery Detail Credential Item[] 
- List of DiscoveryJob credentials.
- items
Sequence[GetDiscovery Job Discovery Detail Credential Item] 
- List of DiscoveryJob credentials.
- items List<Property Map>
- List of DiscoveryJob credentials.
GetDiscoveryJobDiscoveryDetailCredentialItem      
- CredentialName string
- Name of Credential
- CredentialType string
- Name of Credential Type
- Properties
List<GetDiscovery Job Discovery Detail Credential Item Property> 
- Property Details
- CredentialName string
- Name of Credential
- CredentialType string
- Name of Credential Type
- Properties
[]GetDiscovery Job Discovery Detail Credential Item Property 
- Property Details
- credentialName String
- Name of Credential
- credentialType String
- Name of Credential Type
- properties
List<GetDiscovery Job Discovery Detail Credential Item Property> 
- Property Details
- credentialName string
- Name of Credential
- credentialType string
- Name of Credential Type
- properties
GetDiscovery Job Discovery Detail Credential Item Property[] 
- Property Details
- credential_name str
- Name of Credential
- credential_type str
- Name of Credential Type
- properties
Sequence[GetDiscovery Job Discovery Detail Credential Item Property] 
- Property Details
- credentialName String
- Name of Credential
- credentialType String
- Name of Credential Type
- properties List<Property Map>
- Property Details
GetDiscoveryJobDiscoveryDetailCredentialItemProperty       
- PropertiesMap Dictionary<string, string>
- Key/Value pair of Property
- PropertiesMap map[string]string
- Key/Value pair of Property
- propertiesMap Map<String,String>
- Key/Value pair of Property
- propertiesMap {[key: string]: string}
- Key/Value pair of Property
- properties_map Mapping[str, str]
- Key/Value pair of Property
- propertiesMap Map<String>
- Key/Value pair of Property
GetDiscoveryJobDiscoveryDetailProperty     
- PropertiesMap Dictionary<string, string>
- Key/Value pair of Property
- PropertiesMap map[string]string
- Key/Value pair of Property
- propertiesMap Map<String,String>
- Key/Value pair of Property
- propertiesMap {[key: string]: string}
- Key/Value pair of Property
- properties_map Mapping[str, str]
- Key/Value pair of Property
- propertiesMap Map<String>
- Key/Value pair of Property
GetDiscoveryJobDiscoveryDetailTag     
- PropertiesMap Dictionary<string, string>
- Key/Value pair of Property
- PropertiesMap map[string]string
- Key/Value pair of Property
- propertiesMap Map<String,String>
- Key/Value pair of Property
- propertiesMap {[key: string]: string}
- Key/Value pair of Property
- properties_map Mapping[str, str]
- Key/Value pair of Property
- propertiesMap 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 ociTerraform Provider.