Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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 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:
- Discovery
Job stringId - The Discovery Job ID
- Discovery
Job stringId - The Discovery Job ID
- discovery
Job StringId - The Discovery Job ID
- discovery
Job stringId - The Discovery Job ID
- discovery_
job_ strid - The Discovery Job ID
- discovery
Job StringId - The Discovery Job ID
getDiscoveryJob Result
The following output properties are available:
- Compartment
Id 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"}
- Discovery
Client string - Client who submits discovery job.
- Discovery
Details List<GetDiscovery Job Discovery Detail> - The request of DiscoveryJob Resource details.
- Discovery
Job stringId - Discovery
Type 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
- Status
Message 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"}
- Tenant
Id string - The OCID of Tenant
- Time
Updated string - The time the discovery Job was updated.
- User
Id string - The OCID of user in which the job is submitted
- Compartment
Id 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"}
- Discovery
Client string - Client who submits discovery job.
- Discovery
Details []GetDiscovery Job Discovery Detail - The request of DiscoveryJob Resource details.
- Discovery
Job stringId - Discovery
Type 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
- Status
Message 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"}
- Tenant
Id string - The OCID of Tenant
- Time
Updated string - The time the discovery Job was updated.
- User
Id string - The OCID of user in which the job is submitted
- compartment
Id 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"}
- discovery
Client String - Client who submits discovery job.
- discovery
Details List<GetDiscovery Job Discovery Detail> - The request of DiscoveryJob Resource details.
- discovery
Job StringId - discovery
Type 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
- status
Message 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"}
- tenant
Id String - The OCID of Tenant
- time
Updated String - The time the discovery Job was updated.
- user
Id String - The OCID of user in which the job is submitted
- compartment
Id 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"}
- discovery
Client string - Client who submits discovery job.
- discovery
Details GetDiscovery Job Discovery Detail[] - The request of DiscoveryJob Resource details.
- discovery
Job stringId - discovery
Type 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
- status
Message 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"}
- tenant
Id string - The OCID of Tenant
- time
Updated string - The time the discovery Job was updated.
- user
Id 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[stackmonitoring.Get Discovery 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
- compartment
Id 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"}
- discovery
Client String - Client who submits discovery job.
- discovery
Details List<Property Map> - The request of DiscoveryJob Resource details.
- discovery
Job StringId - discovery
Type 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
- status
Message 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"}
- tenant
Id String - The OCID of Tenant
- time
Updated String - The time the discovery Job was updated.
- user
Id String - The OCID of user in which the job is submitted
Supporting Types
GetDiscoveryJobDiscoveryDetail
- Agent
Id string - The OCID of Management Agent
- Credentials
List<Get
Discovery Job Discovery Detail Credential> - List of DiscoveryJOb Credential Details.
- License string
- License edition of the monitored resource.
- Properties
List<Get
Discovery Job Discovery Detail Property> - Property Details
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- List<Get
Discovery Job Discovery Detail Tag> - Property Details
- Agent
Id string - The OCID of Management Agent
- Credentials
[]Get
Discovery Job Discovery Detail Credential - List of DiscoveryJOb Credential Details.
- License string
- License edition of the monitored resource.
- Properties
[]Get
Discovery Job Discovery Detail Property - Property Details
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- []Get
Discovery Job Discovery Detail Tag - Property Details
- agent
Id String - The OCID of Management Agent
- credentials
List<Get
Discovery Job Discovery Detail Credential> - List of DiscoveryJOb Credential Details.
- license String
- License edition of the monitored resource.
- properties
List<Get
Discovery Job Discovery Detail Property> - Property Details
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- List<Get
Discovery Job Discovery Detail Tag> - Property Details
- agent
Id string - The OCID of Management Agent
- credentials
Get
Discovery Job Discovery Detail Credential[] - List of DiscoveryJOb Credential Details.
- license string
- License edition of the monitored resource.
- properties
Get
Discovery Job Discovery Detail Property[] - Property Details
- resource
Name string - The Name of resource type
- resource
Type string - Resource Type.
- Get
Discovery Job Discovery Detail Tag[] - Property Details
- agent_
id str - The OCID of Management Agent
- credentials
Sequence[stackmonitoring.
Get Discovery Job Discovery Detail Credential] - List of DiscoveryJOb Credential Details.
- license str
- License edition of the monitored resource.
- properties
Sequence[stackmonitoring.
Get Discovery Job Discovery Detail Property] - Property Details
- resource_
name str - The Name of resource type
- resource_
type str - Resource Type.
- Sequence[stackmonitoring.
Get Discovery Job Discovery Detail Tag] - Property Details
- agent
Id 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
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- List<Property Map>
- Property Details
GetDiscoveryJobDiscoveryDetailCredential
- Items
List<Get
Discovery Job Discovery Detail Credential Item> - List of DiscoveryJob credentials.
- Items
[]Get
Discovery Job Discovery Detail Credential Item - List of DiscoveryJob credentials.
- items
List<Get
Discovery Job Discovery Detail Credential Item> - List of DiscoveryJob credentials.
- items
Get
Discovery Job Discovery Detail Credential Item[] - List of DiscoveryJob credentials.
- items
Sequence[stackmonitoring.
Get Discovery Job Discovery Detail Credential Item] - List of DiscoveryJob credentials.
- items List<Property Map>
- List of DiscoveryJob credentials.
GetDiscoveryJobDiscoveryDetailCredentialItem
- Credential
Name string - Name of Credential
- Credential
Type string - Name of Credential Type
- Properties
List<Get
Discovery Job Discovery Detail Credential Item Property> - Property Details
- Credential
Name string - Name of Credential
- Credential
Type string - Name of Credential Type
- Properties
[]Get
Discovery Job Discovery Detail Credential Item Property - Property Details
- credential
Name String - Name of Credential
- credential
Type String - Name of Credential Type
- properties
List<Get
Discovery Job Discovery Detail Credential Item Property> - Property Details
- credential
Name string - Name of Credential
- credential
Type string - Name of Credential Type
- properties
Get
Discovery Job Discovery Detail Credential Item Property[] - Property Details
- credential_
name str - Name of Credential
- credential_
type str - Name of Credential Type
- properties
Sequence[stackmonitoring.
Get Discovery Job Discovery Detail Credential Item Property] - Property Details
- credential
Name String - Name of Credential
- credential
Type String - Name of Credential Type
- properties List<Property Map>
- Property Details
GetDiscoveryJobDiscoveryDetailCredentialItemProperty
- Properties
Map Dictionary<string, string> - Key/Value pair of Property
- Properties
Map map[string]string - Key/Value pair of Property
- properties
Map Map<String,String> - Key/Value pair of Property
- properties
Map {[key: string]: string} - Key/Value pair of Property
- properties_
map Mapping[str, str] - Key/Value pair of Property
- properties
Map Map<String> - Key/Value pair of Property
GetDiscoveryJobDiscoveryDetailProperty
- Properties
Map Dictionary<string, string> - Key/Value pair of Property
- Properties
Map map[string]string - Key/Value pair of Property
- properties
Map Map<String,String> - Key/Value pair of Property
- properties
Map {[key: string]: string} - Key/Value pair of Property
- properties_
map Mapping[str, str] - Key/Value pair of Property
- properties
Map Map<String> - Key/Value pair of Property
GetDiscoveryJobDiscoveryDetailTag
- Properties
Map Dictionary<string, string> - Key/Value pair of Property
- Properties
Map map[string]string - Key/Value pair of Property
- properties
Map Map<String,String> - Key/Value pair of Property
- properties
Map {[key: string]: string} - Key/Value pair of Property
- properties_
map Mapping[str, str] - Key/Value pair of Property
- properties
Map 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.