1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getDiscoveryJob
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.StackMonitoring.getDiscoveryJob

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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 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, 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 string
    The OCID of Management Agent
    Credentials List<GetDiscoveryJobDiscoveryDetailCredential>
    List of DiscoveryJOb Credential Details.
    License string
    License edition of the monitored resource.
    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.
    License string
    License edition of the monitored resource.
    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.
    license String
    License edition of the monitored resource.
    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.
    license string
    License edition of the monitored resource.
    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 Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailCredential]
    List of DiscoveryJOb Credential Details.
    license str
    License edition of the monitored resource.
    properties Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailProperty]
    Property Details
    resource_name str
    The Name of resource type
    resource_type str
    Resource Type.
    tags Sequence[stackmonitoring.GetDiscoveryJobDiscoveryDetailTag]
    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.
    tags List<Property Map>
    Property Details

    GetDiscoveryJobDiscoveryDetailCredential

    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
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi