Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.StackMonitoring.getDiscoveryJobs
Explore with Pulumi AI
This data source provides the list of Discovery Jobs in Oracle Cloud Infrastructure Stack Monitoring service.
API to get the details of all Discovery Jobs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDiscoveryJobs = oci.StackMonitoring.getDiscoveryJobs({
compartmentId: compartmentId,
name: discoveryJobName,
});
import pulumi
import pulumi_oci as oci
test_discovery_jobs = oci.StackMonitoring.get_discovery_jobs(compartment_id=compartment_id,
name=discovery_job_name)
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.GetDiscoveryJobs(ctx, &stackmonitoring.GetDiscoveryJobsArgs{
CompartmentId: compartmentId,
Name: pulumi.StringRef(discoveryJobName),
}, 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 testDiscoveryJobs = Oci.StackMonitoring.GetDiscoveryJobs.Invoke(new()
{
CompartmentId = compartmentId,
Name = discoveryJobName,
});
});
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.GetDiscoveryJobsArgs;
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 testDiscoveryJobs = StackMonitoringFunctions.getDiscoveryJobs(GetDiscoveryJobsArgs.builder()
.compartmentId(compartmentId)
.name(discoveryJobName)
.build());
}
}
variables:
testDiscoveryJobs:
fn::invoke:
Function: oci:StackMonitoring:getDiscoveryJobs
Arguments:
compartmentId: ${compartmentId}
name: ${discoveryJobName}
Using getDiscoveryJobs
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 getDiscoveryJobs(args: GetDiscoveryJobsArgs, opts?: InvokeOptions): Promise<GetDiscoveryJobsResult>
function getDiscoveryJobsOutput(args: GetDiscoveryJobsOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryJobsResult>
def get_discovery_jobs(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_stackmonitoring.GetDiscoveryJobsFilter]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiscoveryJobsResult
def get_discovery_jobs_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_stackmonitoring.GetDiscoveryJobsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryJobsResult]
func GetDiscoveryJobs(ctx *Context, args *GetDiscoveryJobsArgs, opts ...InvokeOption) (*GetDiscoveryJobsResult, error)
func GetDiscoveryJobsOutput(ctx *Context, args *GetDiscoveryJobsOutputArgs, opts ...InvokeOption) GetDiscoveryJobsResultOutput
> Note: This function is named GetDiscoveryJobs
in the Go SDK.
public static class GetDiscoveryJobs
{
public static Task<GetDiscoveryJobsResult> InvokeAsync(GetDiscoveryJobsArgs args, InvokeOptions? opts = null)
public static Output<GetDiscoveryJobsResult> Invoke(GetDiscoveryJobsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiscoveryJobsResult> getDiscoveryJobs(GetDiscoveryJobsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:StackMonitoring/getDiscoveryJobs:getDiscoveryJobs
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which data is listed.
- Filters
List<Get
Discovery Jobs Filter> - Name string
- A filter to return only discovery jobs that match the entire resource name given.
- Compartment
Id string - The ID of the compartment in which data is listed.
- Filters
[]Get
Discovery Jobs Filter - Name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id String - The ID of the compartment in which data is listed.
- filters
List<Get
Discovery Jobs Filter> - name String
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id string - The ID of the compartment in which data is listed.
- filters
Get
Discovery Jobs Filter[] - name string
- A filter to return only discovery jobs that match the entire resource name given.
- compartment_
id str - The ID of the compartment in which data is listed.
- filters
Sequence[stackmonitoring.
Get Discovery Jobs Filter] - name str
- A filter to return only discovery jobs that match the entire resource name given.
- compartment
Id String - The ID of the compartment in which data is listed.
- filters List<Property Map>
- name String
- A filter to return only discovery jobs that match the entire resource name given.
getDiscoveryJobs Result
The following output properties are available:
- Compartment
Id string - The OCID of the Compartment
- Discovery
Job List<GetCollections Discovery Jobs Discovery Job Collection> - The list of discovery_job_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Discovery Jobs Filter> - Name string
- Compartment
Id string - The OCID of the Compartment
- Discovery
Job []GetCollections Discovery Jobs Discovery Job Collection - The list of discovery_job_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Discovery Jobs Filter - Name string
- compartment
Id String - The OCID of the Compartment
- discovery
Job List<GetCollections Discovery Jobs Discovery Job Collection> - The list of discovery_job_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Discovery Jobs Filter> - name String
- compartment
Id string - The OCID of the Compartment
- discovery
Job GetCollections Discovery Jobs Discovery Job Collection[] - The list of discovery_job_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Discovery Jobs Filter[] - name string
- compartment_
id str - The OCID of the Compartment
- discovery_
job_ Sequence[stackmonitoring.collections Get Discovery Jobs Discovery Job Collection] - The list of discovery_job_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[stackmonitoring.
Get Discovery Jobs Filter] - name str
- compartment
Id String - The OCID of the Compartment
- discovery
Job List<Property Map>Collections - The list of discovery_job_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- name String
Supporting Types
GetDiscoveryJobsDiscoveryJobCollection
- Items
List<Get
Discovery Jobs Discovery Job Collection Item> - List of DiscoveryJob credentials.
- Items
[]Get
Discovery Jobs Discovery Job Collection Item - List of DiscoveryJob credentials.
- items
List<Get
Discovery Jobs Discovery Job Collection Item> - List of DiscoveryJob credentials.
- items
Get
Discovery Jobs Discovery Job Collection Item[] - List of DiscoveryJob credentials.
- items
Sequence[stackmonitoring.
Get Discovery Jobs Discovery Job Collection Item] - List of DiscoveryJob credentials.
- items List<Property Map>
- List of DiscoveryJob credentials.
GetDiscoveryJobsDiscoveryJobCollectionItem
- Compartment
Id string - The ID of the compartment in which data is listed.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- 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 ID of the compartment in which data is listed.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- 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 ID of the compartment in which data is listed.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- 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 ID of the compartment in which data is listed.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- resource
Name string - The Name of resource type
- resource
Type string - Resource Type.
- 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 ID of the compartment in which data is listed.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- resource_
name str - The Name of resource type
- resource_
type str - Resource Type.
- 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 ID of the compartment in which data is listed.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- 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
GetDiscoveryJobsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.