Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getDiscoveryJob

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

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

return await Deployment.RunAsync(() => 
{
    var testDiscoveryJob = Oci.StackMonitoring.GetDiscoveryJob.Invoke(new()
    {
        DiscoveryJobId = oci_stack_monitoring_discovery_job.Test_discovery_job.Id,
    });

});
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.GetDiscoveryJob(ctx, &stackmonitoring.GetDiscoveryJobArgs{
			DiscoveryJobId: oci_stack_monitoring_discovery_job.Test_discovery_job.Id,
		}, 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.DataSafe.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(oci_stack_monitoring_discovery_job.test_discovery_job().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_discovery_job = oci.StackMonitoring.get_discovery_job(discovery_job_id=oci_stack_monitoring_discovery_job["test_discovery_job"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDiscoveryJob = oci.StackMonitoring.getDiscoveryJob({
    discoveryJobId: oci_stack_monitoring_discovery_job.test_discovery_job.id,
});
variables:
  testDiscoveryJob:
    Fn::Invoke:
      Function: oci:StackMonitoring:getDiscoveryJob
      Arguments:
        discoveryJobId: ${oci_stack_monitoring_discovery_job.test_discovery_job.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 GetDiscoveryJob(ctx *Context, args *GetDiscoveryJobArgs, opts ...InvokeOption) (*GetDiscoveryJobResult, error)
func GetDiscoveryJobOutput(ctx *Context, args *GetDiscoveryJobOutputArgs, opts ...InvokeOption) GetDiscoveryJobResultOutput

> 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)
}
public static CompletableFuture<GetDiscoveryJobResult> getDiscoveryJob(GetDiscoveryJobArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:StackMonitoring/getDiscoveryJob:getDiscoveryJob
  Arguments:
    # Arguments dictionary

The following arguments are supported:

DiscoveryJobId string

The Discovery Job ID

DiscoveryJobId string

The Discovery Job ID

discoveryJobId String

The Discovery Job ID

discoveryJobId string

The Discovery Job ID

discovery_job_id str

The Discovery Job ID

discoveryJobId String

The Discovery Job ID

getDiscoveryJob Result

The following output properties are available:

CompartmentId string

The OCID of the Compartment

DefinedTags Dictionary<string, object>

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, 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

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 OCID of the Compartment

DefinedTags map[string]interface{}

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

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 OCID of the Compartment

definedTags Map<String,Object>

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,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

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 OCID of the Compartment

definedTags {[key: string]: any}

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]: 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

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 OCID of the Compartment

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_client str

Client who submits discovery job.

discovery_details 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, 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

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 OCID of the Compartment

definedTags Map<Any>

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<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

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

Supporting Types

GetDiscoveryJobDiscoveryDetail

AgentId string

The OCID of Management Agent

Credentials List<GetDiscoveryJobDiscoveryDetailCredential>

List of DiscoveryJOb Credential Details.

Properties List<GetDiscoveryJobDiscoveryDetailProperty>

Property Details

ResourceName string

The Name of resource type

ResourceType string

Resource Type.

Tags List<GetDiscoveryJobDiscoveryDetailTag>

Property Details

AgentId string

The OCID of Management Agent

Credentials []GetDiscoveryJobDiscoveryDetailCredential

List of DiscoveryJOb Credential Details.

Properties []GetDiscoveryJobDiscoveryDetailProperty

Property Details

ResourceName string

The Name of resource type

ResourceType string

Resource Type.

Tags []GetDiscoveryJobDiscoveryDetailTag

Property Details

agentId String

The OCID of Management Agent

credentials List<GetDiscoveryJobDiscoveryDetailCredential>

List of DiscoveryJOb Credential Details.

properties List<GetDiscoveryJobDiscoveryDetailProperty>

Property Details

resourceName String

The Name of resource type

resourceType String

Resource Type.

tags List<GetDiscoveryJobDiscoveryDetailTag>

Property Details

agentId string

The OCID of Management Agent

credentials GetDiscoveryJobDiscoveryDetailCredential[]

List of DiscoveryJOb Credential Details.

properties GetDiscoveryJobDiscoveryDetailProperty[]

Property Details

resourceName string

The Name of resource type

resourceType string

Resource Type.

tags GetDiscoveryJobDiscoveryDetailTag[]

Property Details

agent_id str

The OCID of Management Agent

credentials GetDiscoveryJobDiscoveryDetailCredential]

List of DiscoveryJOb Credential Details.

properties GetDiscoveryJobDiscoveryDetailProperty]

Property Details

resource_name str

The Name of resource type

resource_type str

Resource Type.

tags GetDiscoveryJobDiscoveryDetailTag]

Property Details

agentId String

The OCID of Management Agent

credentials List<Property Map>

List of DiscoveryJOb Credential Details.

properties List<Property Map>

Property Details

resourceName String

The Name of resource type

resourceType String

Resource Type.

tags List<Property Map>

Property Details

GetDiscoveryJobDiscoveryDetailCredential

Items []GetDiscoveryJobDiscoveryDetailCredentialItem

List of DiscoveryJob credentials.

items GetDiscoveryJobDiscoveryDetailCredentialItem[]

List of DiscoveryJob credentials.

items GetDiscoveryJobDiscoveryDetailCredentialItem]

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<GetDiscoveryJobDiscoveryDetailCredentialItemProperty>

Property Details

CredentialName string

Name of Credential

CredentialType string

Name of Credential Type

Properties []GetDiscoveryJobDiscoveryDetailCredentialItemProperty

Property Details

credentialName String

Name of Credential

credentialType String

Name of Credential Type

properties List<GetDiscoveryJobDiscoveryDetailCredentialItemProperty>

Property Details

credentialName string

Name of Credential

credentialType string

Name of Credential Type

properties GetDiscoveryJobDiscoveryDetailCredentialItemProperty[]

Property Details

credential_name str

Name of Credential

credential_type str

Name of Credential Type

properties GetDiscoveryJobDiscoveryDetailCredentialItemProperty]

Property Details

credentialName String

Name of Credential

credentialType String

Name of Credential Type

properties List<Property Map>

Property Details

GetDiscoveryJobDiscoveryDetailCredentialItemProperty

PropertiesMap Dictionary<string, object>

Key/Value pair of Property

PropertiesMap map[string]interface{}

Key/Value pair of Property

propertiesMap Map<String,Object>

Key/Value pair of Property

propertiesMap {[key: string]: any}

Key/Value pair of Property

properties_map Mapping[str, Any]

Key/Value pair of Property

propertiesMap Map<Any>

Key/Value pair of Property

GetDiscoveryJobDiscoveryDetailProperty

PropertiesMap Dictionary<string, object>

Key/Value pair of Property

PropertiesMap map[string]interface{}

Key/Value pair of Property

propertiesMap Map<String,Object>

Key/Value pair of Property

propertiesMap {[key: string]: any}

Key/Value pair of Property

properties_map Mapping[str, Any]

Key/Value pair of Property

propertiesMap Map<Any>

Key/Value pair of Property

GetDiscoveryJobDiscoveryDetailTag

PropertiesMap Dictionary<string, object>

Key/Value pair of Property

PropertiesMap map[string]interface{}

Key/Value pair of Property

propertiesMap Map<String,Object>

Key/Value pair of Property

propertiesMap {[key: string]: any}

Key/Value pair of Property

properties_map Mapping[str, Any]

Key/Value pair of Property

propertiesMap Map<Any>

Key/Value pair of Property

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.