oci.StackMonitoring.DiscoveryJob
Explore with Pulumi AI
This resource provides the Discovery Job resource in Oracle Cloud Infrastructure Stack Monitoring service.
API to create discovery Job and submit discovery Details to agent.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDiscoveryJob = new oci.stackmonitoring.DiscoveryJob("test_discovery_job", {
compartmentId: compartmentId,
discoveryDetails: {
agentId: managementAgentId,
properties: {
propertiesMap: discoveryJobDiscoveryDetailsPropertiesPropertiesMap,
},
resourceName: discoveryJobDiscoveryDetailsResourceName,
resourceType: discoveryJobDiscoveryDetailsResourceType,
credentials: {
items: [{
credentialName: discoveryJobDiscoveryDetailsCredentialsItemsCredentialName,
credentialType: discoveryJobDiscoveryDetailsCredentialsItemsCredentialType,
properties: {
propertiesMap: discoveryJobDiscoveryDetailsCredentialsItemsPropertiesPropertiesMap,
},
}],
},
license: discoveryJobDiscoveryDetailsLicense,
tags: {
propertiesMap: discoveryJobDiscoveryDetailsTagsPropertiesMap,
},
},
definedTags: {
"foo-namespace.bar-key": "value",
},
discoveryClient: discoveryJobDiscoveryClient,
discoveryType: discoveryJobDiscoveryType,
freeformTags: {
"bar-key": "value",
},
shouldPropagateTagsToDiscoveredResources: discoveryJobShouldPropagateTagsToDiscoveredResources,
});
import pulumi
import pulumi_oci as oci
test_discovery_job = oci.stack_monitoring.DiscoveryJob("test_discovery_job",
compartment_id=compartment_id,
discovery_details={
"agent_id": management_agent_id,
"properties": {
"properties_map": discovery_job_discovery_details_properties_properties_map,
},
"resource_name": discovery_job_discovery_details_resource_name,
"resource_type": discovery_job_discovery_details_resource_type,
"credentials": {
"items": [{
"credential_name": discovery_job_discovery_details_credentials_items_credential_name,
"credential_type": discovery_job_discovery_details_credentials_items_credential_type,
"properties": {
"properties_map": discovery_job_discovery_details_credentials_items_properties_properties_map,
},
}],
},
"license": discovery_job_discovery_details_license,
"tags": {
"properties_map": discovery_job_discovery_details_tags_properties_map,
},
},
defined_tags={
"foo-namespace.bar-key": "value",
},
discovery_client=discovery_job_discovery_client,
discovery_type=discovery_job_discovery_type,
freeform_tags={
"bar-key": "value",
},
should_propagate_tags_to_discovered_resources=discovery_job_should_propagate_tags_to_discovered_resources)
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.NewDiscoveryJob(ctx, "test_discovery_job", &StackMonitoring.DiscoveryJobArgs{
CompartmentId: pulumi.Any(compartmentId),
DiscoveryDetails: &stackmonitoring.DiscoveryJobDiscoveryDetailsArgs{
AgentId: pulumi.Any(managementAgentId),
Properties: &stackmonitoring.DiscoveryJobDiscoveryDetailsPropertiesArgs{
PropertiesMap: pulumi.Any(discoveryJobDiscoveryDetailsPropertiesPropertiesMap),
},
ResourceName: pulumi.Any(discoveryJobDiscoveryDetailsResourceName),
ResourceType: pulumi.Any(discoveryJobDiscoveryDetailsResourceType),
Credentials: &stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsArgs{
Items: stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemArray{
&stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemArgs{
CredentialName: pulumi.Any(discoveryJobDiscoveryDetailsCredentialsItemsCredentialName),
CredentialType: pulumi.Any(discoveryJobDiscoveryDetailsCredentialsItemsCredentialType),
Properties: &stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs{
PropertiesMap: pulumi.Any(discoveryJobDiscoveryDetailsCredentialsItemsPropertiesPropertiesMap),
},
},
},
},
License: pulumi.Any(discoveryJobDiscoveryDetailsLicense),
Tags: &stackmonitoring.DiscoveryJobDiscoveryDetailsTagsArgs{
PropertiesMap: pulumi.Any(discoveryJobDiscoveryDetailsTagsPropertiesMap),
},
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
DiscoveryClient: pulumi.Any(discoveryJobDiscoveryClient),
DiscoveryType: pulumi.Any(discoveryJobDiscoveryType),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
ShouldPropagateTagsToDiscoveredResources: pulumi.Any(discoveryJobShouldPropagateTagsToDiscoveredResources),
})
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 = new Oci.StackMonitoring.DiscoveryJob("test_discovery_job", new()
{
CompartmentId = compartmentId,
DiscoveryDetails = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsArgs
{
AgentId = managementAgentId,
Properties = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsPropertiesArgs
{
PropertiesMap = discoveryJobDiscoveryDetailsPropertiesPropertiesMap,
},
ResourceName = discoveryJobDiscoveryDetailsResourceName,
ResourceType = discoveryJobDiscoveryDetailsResourceType,
Credentials = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsArgs
{
Items = new[]
{
new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsItemArgs
{
CredentialName = discoveryJobDiscoveryDetailsCredentialsItemsCredentialName,
CredentialType = discoveryJobDiscoveryDetailsCredentialsItemsCredentialType,
Properties = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs
{
PropertiesMap = discoveryJobDiscoveryDetailsCredentialsItemsPropertiesPropertiesMap,
},
},
},
},
License = discoveryJobDiscoveryDetailsLicense,
Tags = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsTagsArgs
{
PropertiesMap = discoveryJobDiscoveryDetailsTagsPropertiesMap,
},
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
DiscoveryClient = discoveryJobDiscoveryClient,
DiscoveryType = discoveryJobDiscoveryType,
FreeformTags =
{
{ "bar-key", "value" },
},
ShouldPropagateTagsToDiscoveredResources = discoveryJobShouldPropagateTagsToDiscoveredResources,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.DiscoveryJob;
import com.pulumi.oci.StackMonitoring.DiscoveryJobArgs;
import com.pulumi.oci.StackMonitoring.inputs.DiscoveryJobDiscoveryDetailsArgs;
import com.pulumi.oci.StackMonitoring.inputs.DiscoveryJobDiscoveryDetailsPropertiesArgs;
import com.pulumi.oci.StackMonitoring.inputs.DiscoveryJobDiscoveryDetailsCredentialsArgs;
import com.pulumi.oci.StackMonitoring.inputs.DiscoveryJobDiscoveryDetailsTagsArgs;
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) {
var testDiscoveryJob = new DiscoveryJob("testDiscoveryJob", DiscoveryJobArgs.builder()
.compartmentId(compartmentId)
.discoveryDetails(DiscoveryJobDiscoveryDetailsArgs.builder()
.agentId(managementAgentId)
.properties(DiscoveryJobDiscoveryDetailsPropertiesArgs.builder()
.propertiesMap(discoveryJobDiscoveryDetailsPropertiesPropertiesMap)
.build())
.resourceName(discoveryJobDiscoveryDetailsResourceName)
.resourceType(discoveryJobDiscoveryDetailsResourceType)
.credentials(DiscoveryJobDiscoveryDetailsCredentialsArgs.builder()
.items(DiscoveryJobDiscoveryDetailsCredentialsItemArgs.builder()
.credentialName(discoveryJobDiscoveryDetailsCredentialsItemsCredentialName)
.credentialType(discoveryJobDiscoveryDetailsCredentialsItemsCredentialType)
.properties(DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs.builder()
.propertiesMap(discoveryJobDiscoveryDetailsCredentialsItemsPropertiesPropertiesMap)
.build())
.build())
.build())
.license(discoveryJobDiscoveryDetailsLicense)
.tags(DiscoveryJobDiscoveryDetailsTagsArgs.builder()
.propertiesMap(discoveryJobDiscoveryDetailsTagsPropertiesMap)
.build())
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.discoveryClient(discoveryJobDiscoveryClient)
.discoveryType(discoveryJobDiscoveryType)
.freeformTags(Map.of("bar-key", "value"))
.shouldPropagateTagsToDiscoveredResources(discoveryJobShouldPropagateTagsToDiscoveredResources)
.build());
}
}
resources:
testDiscoveryJob:
type: oci:StackMonitoring:DiscoveryJob
name: test_discovery_job
properties:
compartmentId: ${compartmentId}
discoveryDetails:
agentId: ${managementAgentId}
properties:
propertiesMap: ${discoveryJobDiscoveryDetailsPropertiesPropertiesMap}
resourceName: ${discoveryJobDiscoveryDetailsResourceName}
resourceType: ${discoveryJobDiscoveryDetailsResourceType}
credentials:
items:
- credentialName: ${discoveryJobDiscoveryDetailsCredentialsItemsCredentialName}
credentialType: ${discoveryJobDiscoveryDetailsCredentialsItemsCredentialType}
properties:
propertiesMap: ${discoveryJobDiscoveryDetailsCredentialsItemsPropertiesPropertiesMap}
license: ${discoveryJobDiscoveryDetailsLicense}
tags:
propertiesMap: ${discoveryJobDiscoveryDetailsTagsPropertiesMap}
definedTags:
foo-namespace.bar-key: value
discoveryClient: ${discoveryJobDiscoveryClient}
discoveryType: ${discoveryJobDiscoveryType}
freeformTags:
bar-key: value
shouldPropagateTagsToDiscoveredResources: ${discoveryJobShouldPropagateTagsToDiscoveredResources}
Create DiscoveryJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DiscoveryJob(name: string, args: DiscoveryJobArgs, opts?: CustomResourceOptions);
@overload
def DiscoveryJob(resource_name: str,
args: DiscoveryJobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DiscoveryJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
discovery_details: Optional[_stackmonitoring.DiscoveryJobDiscoveryDetailsArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
discovery_client: Optional[str] = None,
discovery_type: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
should_propagate_tags_to_discovered_resources: Optional[bool] = None)
func NewDiscoveryJob(ctx *Context, name string, args DiscoveryJobArgs, opts ...ResourceOption) (*DiscoveryJob, error)
public DiscoveryJob(string name, DiscoveryJobArgs args, CustomResourceOptions? opts = null)
public DiscoveryJob(String name, DiscoveryJobArgs args)
public DiscoveryJob(String name, DiscoveryJobArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:DiscoveryJob
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DiscoveryJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DiscoveryJobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DiscoveryJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiscoveryJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiscoveryJobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var discoveryJobResource = new Oci.StackMonitoring.DiscoveryJob("discoveryJobResource", new()
{
CompartmentId = "string",
DiscoveryDetails = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsArgs
{
AgentId = "string",
Properties = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsPropertiesArgs
{
PropertiesMap =
{
{ "string", "string" },
},
},
ResourceName = "string",
ResourceType = "string",
Credentials = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsArgs
{
Items = new[]
{
new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsItemArgs
{
CredentialName = "string",
CredentialType = "string",
Properties = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs
{
PropertiesMap =
{
{ "string", "string" },
},
},
},
},
},
License = "string",
Tags = new Oci.StackMonitoring.Inputs.DiscoveryJobDiscoveryDetailsTagsArgs
{
PropertiesMap =
{
{ "string", "string" },
},
},
},
DefinedTags =
{
{ "string", "string" },
},
DiscoveryClient = "string",
DiscoveryType = "string",
FreeformTags =
{
{ "string", "string" },
},
ShouldPropagateTagsToDiscoveredResources = false,
});
example, err := StackMonitoring.NewDiscoveryJob(ctx, "discoveryJobResource", &StackMonitoring.DiscoveryJobArgs{
CompartmentId: pulumi.String("string"),
DiscoveryDetails: &stackmonitoring.DiscoveryJobDiscoveryDetailsArgs{
AgentId: pulumi.String("string"),
Properties: &stackmonitoring.DiscoveryJobDiscoveryDetailsPropertiesArgs{
PropertiesMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
ResourceName: pulumi.String("string"),
ResourceType: pulumi.String("string"),
Credentials: &stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsArgs{
Items: stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemArray{
&stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemArgs{
CredentialName: pulumi.String("string"),
CredentialType: pulumi.String("string"),
Properties: &stackmonitoring.DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs{
PropertiesMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
},
},
License: pulumi.String("string"),
Tags: &stackmonitoring.DiscoveryJobDiscoveryDetailsTagsArgs{
PropertiesMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DiscoveryClient: pulumi.String("string"),
DiscoveryType: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ShouldPropagateTagsToDiscoveredResources: pulumi.Bool(false),
})
var discoveryJobResource = new DiscoveryJob("discoveryJobResource", DiscoveryJobArgs.builder()
.compartmentId("string")
.discoveryDetails(DiscoveryJobDiscoveryDetailsArgs.builder()
.agentId("string")
.properties(DiscoveryJobDiscoveryDetailsPropertiesArgs.builder()
.propertiesMap(Map.of("string", "string"))
.build())
.resourceName("string")
.resourceType("string")
.credentials(DiscoveryJobDiscoveryDetailsCredentialsArgs.builder()
.items(DiscoveryJobDiscoveryDetailsCredentialsItemArgs.builder()
.credentialName("string")
.credentialType("string")
.properties(DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs.builder()
.propertiesMap(Map.of("string", "string"))
.build())
.build())
.build())
.license("string")
.tags(DiscoveryJobDiscoveryDetailsTagsArgs.builder()
.propertiesMap(Map.of("string", "string"))
.build())
.build())
.definedTags(Map.of("string", "string"))
.discoveryClient("string")
.discoveryType("string")
.freeformTags(Map.of("string", "string"))
.shouldPropagateTagsToDiscoveredResources(false)
.build());
discovery_job_resource = oci.stack_monitoring.DiscoveryJob("discoveryJobResource",
compartment_id="string",
discovery_details={
"agent_id": "string",
"properties": {
"properties_map": {
"string": "string",
},
},
"resource_name": "string",
"resource_type": "string",
"credentials": {
"items": [{
"credential_name": "string",
"credential_type": "string",
"properties": {
"properties_map": {
"string": "string",
},
},
}],
},
"license": "string",
"tags": {
"properties_map": {
"string": "string",
},
},
},
defined_tags={
"string": "string",
},
discovery_client="string",
discovery_type="string",
freeform_tags={
"string": "string",
},
should_propagate_tags_to_discovered_resources=False)
const discoveryJobResource = new oci.stackmonitoring.DiscoveryJob("discoveryJobResource", {
compartmentId: "string",
discoveryDetails: {
agentId: "string",
properties: {
propertiesMap: {
string: "string",
},
},
resourceName: "string",
resourceType: "string",
credentials: {
items: [{
credentialName: "string",
credentialType: "string",
properties: {
propertiesMap: {
string: "string",
},
},
}],
},
license: "string",
tags: {
propertiesMap: {
string: "string",
},
},
},
definedTags: {
string: "string",
},
discoveryClient: "string",
discoveryType: "string",
freeformTags: {
string: "string",
},
shouldPropagateTagsToDiscoveredResources: false,
});
type: oci:StackMonitoring:DiscoveryJob
properties:
compartmentId: string
definedTags:
string: string
discoveryClient: string
discoveryDetails:
agentId: string
credentials:
items:
- credentialName: string
credentialType: string
properties:
propertiesMap:
string: string
license: string
properties:
propertiesMap:
string: string
resourceName: string
resourceType: string
tags:
propertiesMap:
string: string
discoveryType: string
freeformTags:
string: string
shouldPropagateTagsToDiscoveredResources: false
DiscoveryJob Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DiscoveryJob resource accepts the following input properties:
- Compartment
Id string - The OCID of Compartment
- Discovery
Details DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- 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
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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - The OCID of Compartment
- Discovery
Details DiscoveryJob Discovery Details Args - The request of DiscoveryJob Resource details.
- 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
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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - The OCID of Compartment
- discovery
Details DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- 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
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"}
- Boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - The OCID of Compartment
- discovery
Details DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- {[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
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"}
- boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - The OCID of Compartment
- discovery_
details stackmonitoring.Discovery Job Discovery Details Args - The request of DiscoveryJob Resource details.
- 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_
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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - The OCID of Compartment
- discovery
Details Property Map - The request of DiscoveryJob Resource details.
- 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
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"}
- Boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the DiscoveryJob resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
Look up Existing DiscoveryJob Resource
Get an existing DiscoveryJob resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DiscoveryJobState, opts?: CustomResourceOptions): DiscoveryJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
discovery_client: Optional[str] = None,
discovery_details: Optional[_stackmonitoring.DiscoveryJobDiscoveryDetailsArgs] = None,
discovery_type: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
should_propagate_tags_to_discovered_resources: Optional[bool] = None,
state: Optional[str] = None,
status: Optional[str] = None,
status_message: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
tenant_id: Optional[str] = None,
time_updated: Optional[str] = None,
user_id: Optional[str] = None) -> DiscoveryJob
func GetDiscoveryJob(ctx *Context, name string, id IDInput, state *DiscoveryJobState, opts ...ResourceOption) (*DiscoveryJob, error)
public static DiscoveryJob Get(string name, Input<string> id, DiscoveryJobState? state, CustomResourceOptions? opts = null)
public static DiscoveryJob get(String name, Output<String> id, DiscoveryJobState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - The OCID of 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 DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- 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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 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 DiscoveryJob Discovery Details Args - The request of DiscoveryJob Resource details.
- 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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 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 DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- 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"}
- Boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 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 DiscoveryJob Discovery Details - The request of DiscoveryJob Resource details.
- 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"}
- boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 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 stackmonitoring.Discovery Job Discovery Details Args - The request of DiscoveryJob Resource details.
- 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"}
- bool
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 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 Property Map - The request of DiscoveryJob Resource details.
- 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"}
- Boolean
If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
DiscoveryJobDiscoveryDetails, DiscoveryJobDiscoveryDetailsArgs
- Agent
Id string - The OCID of Management Agent
- Properties
Discovery
Job Discovery Details Properties - Property Details
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- Credentials
Discovery
Job Discovery Details Credentials - List of DiscoveryJob Credential Details.
- License string
- License edition of the monitored resource.
- Discovery
Job Discovery Details Tags - Property Details
- Agent
Id string - The OCID of Management Agent
- Properties
Discovery
Job Discovery Details Properties - Property Details
- Resource
Name string - The Name of resource type
- Resource
Type string - Resource Type.
- Credentials
Discovery
Job Discovery Details Credentials - List of DiscoveryJob Credential Details.
- License string
- License edition of the monitored resource.
- Discovery
Job Discovery Details Tags - Property Details
- agent
Id String - The OCID of Management Agent
- properties
Discovery
Job Discovery Details Properties - Property Details
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- credentials
Discovery
Job Discovery Details Credentials - List of DiscoveryJob Credential Details.
- license String
- License edition of the monitored resource.
- Discovery
Job Discovery Details Tags - Property Details
- agent
Id string - The OCID of Management Agent
- properties
Discovery
Job Discovery Details Properties - Property Details
- resource
Name string - The Name of resource type
- resource
Type string - Resource Type.
- credentials
Discovery
Job Discovery Details Credentials - List of DiscoveryJob Credential Details.
- license string
- License edition of the monitored resource.
- Discovery
Job Discovery Details Tags - Property Details
- agent_
id str - The OCID of Management Agent
- properties
stackmonitoring.
Discovery Job Discovery Details Properties - Property Details
- resource_
name str - The Name of resource type
- resource_
type str - Resource Type.
- credentials
stackmonitoring.
Discovery Job Discovery Details Credentials - List of DiscoveryJob Credential Details.
- license str
- License edition of the monitored resource.
- stackmonitoring.
Discovery Job Discovery Details Tags - Property Details
- agent
Id String - The OCID of Management Agent
- properties Property Map
- Property Details
- resource
Name String - The Name of resource type
- resource
Type String - Resource Type.
- credentials Property Map
- List of DiscoveryJob Credential Details.
- license String
- License edition of the monitored resource.
- Property Map
- Property Details
DiscoveryJobDiscoveryDetailsCredentials, DiscoveryJobDiscoveryDetailsCredentialsArgs
- Items
List<Discovery
Job Discovery Details Credentials Item> - List of DiscoveryJob credentials.
- Items
[]Discovery
Job Discovery Details Credentials Item - List of DiscoveryJob credentials.
- items
List<Discovery
Job Discovery Details Credentials Item> - List of DiscoveryJob credentials.
- items
Discovery
Job Discovery Details Credentials Item[] - List of DiscoveryJob credentials.
- items
Sequence[stackmonitoring.
Discovery Job Discovery Details Credentials Item] - List of DiscoveryJob credentials.
- items List<Property Map>
- List of DiscoveryJob credentials.
DiscoveryJobDiscoveryDetailsCredentialsItem, DiscoveryJobDiscoveryDetailsCredentialsItemArgs
- Credential
Name string - Name of Credential
- Credential
Type string - Name of Credential Type
- Properties
Discovery
Job Discovery Details Credentials Item Properties - Property Details
- Credential
Name string - Name of Credential
- Credential
Type string - Name of Credential Type
- Properties
Discovery
Job Discovery Details Credentials Item Properties - Property Details
- credential
Name String - Name of Credential
- credential
Type String - Name of Credential Type
- properties
Discovery
Job Discovery Details Credentials Item Properties - Property Details
- credential
Name string - Name of Credential
- credential
Type string - Name of Credential Type
- properties
Discovery
Job Discovery Details Credentials Item Properties - Property Details
- credential_
name str - Name of Credential
- credential_
type str - Name of Credential Type
- properties
stackmonitoring.
Discovery Job Discovery Details Credentials Item Properties - Property Details
- credential
Name String - Name of Credential
- credential
Type String - Name of Credential Type
- properties Property Map
- Property Details
DiscoveryJobDiscoveryDetailsCredentialsItemProperties, DiscoveryJobDiscoveryDetailsCredentialsItemPropertiesArgs
- 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
DiscoveryJobDiscoveryDetailsProperties, DiscoveryJobDiscoveryDetailsPropertiesArgs
- 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
DiscoveryJobDiscoveryDetailsTags, DiscoveryJobDiscoveryDetailsTagsArgs
- 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
Import
DiscoveryJobs can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/discoveryJob:DiscoveryJob test_discovery_job "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.