oci.oci.DbmulticloudMultiCloudResourceDiscovery
This resource provides the Multi Cloud Resource Discovery resource in Oracle Cloud Infrastructure Dbmulticloud service.
Discovers Multicloud Resource and their associated resources based on the information provided.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMultiCloudResourceDiscovery = new oci.oci.DbmulticloudMultiCloudResourceDiscovery("test_multi_cloud_resource_discovery", {
compartmentId: compartmentId,
displayName: multiCloudResourceDiscoveryDisplayName,
oracleDbConnectorId: testOracleDbConnector.id,
resourceType: multiCloudResourceDiscoveryResourceType,
definedTags: {
"Operations.CostCenter": "42",
},
freeformTags: {
Department: "Finance",
},
resourcesFilter: multiCloudResourceDiscoveryResourcesFilter,
});
import pulumi
import pulumi_oci as oci
test_multi_cloud_resource_discovery = oci.oci.DbmulticloudMultiCloudResourceDiscovery("test_multi_cloud_resource_discovery",
compartment_id=compartment_id,
display_name=multi_cloud_resource_discovery_display_name,
oracle_db_connector_id=test_oracle_db_connector["id"],
resource_type=multi_cloud_resource_discovery_resource_type,
defined_tags={
"Operations.CostCenter": "42",
},
freeform_tags={
"Department": "Finance",
},
resources_filter=multi_cloud_resource_discovery_resources_filter)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.NewDbmulticloudMultiCloudResourceDiscovery(ctx, "test_multi_cloud_resource_discovery", &oci.DbmulticloudMultiCloudResourceDiscoveryArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(multiCloudResourceDiscoveryDisplayName),
OracleDbConnectorId: pulumi.Any(testOracleDbConnector.Id),
ResourceType: pulumi.Any(multiCloudResourceDiscoveryResourceType),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
ResourcesFilter: pulumi.Any(multiCloudResourceDiscoveryResourcesFilter),
})
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 testMultiCloudResourceDiscovery = new Oci.Oci.DbmulticloudMultiCloudResourceDiscovery("test_multi_cloud_resource_discovery", new()
{
CompartmentId = compartmentId,
DisplayName = multiCloudResourceDiscoveryDisplayName,
OracleDbConnectorId = testOracleDbConnector.Id,
ResourceType = multiCloudResourceDiscoveryResourceType,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
FreeformTags =
{
{ "Department", "Finance" },
},
ResourcesFilter = multiCloudResourceDiscoveryResourcesFilter,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.oci.DbmulticloudMultiCloudResourceDiscovery;
import com.pulumi.oci.oci.DbmulticloudMultiCloudResourceDiscoveryArgs;
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 testMultiCloudResourceDiscovery = new DbmulticloudMultiCloudResourceDiscovery("testMultiCloudResourceDiscovery", DbmulticloudMultiCloudResourceDiscoveryArgs.builder()
.compartmentId(compartmentId)
.displayName(multiCloudResourceDiscoveryDisplayName)
.oracleDbConnectorId(testOracleDbConnector.id())
.resourceType(multiCloudResourceDiscoveryResourceType)
.definedTags(Map.of("Operations.CostCenter", "42"))
.freeformTags(Map.of("Department", "Finance"))
.resourcesFilter(multiCloudResourceDiscoveryResourcesFilter)
.build());
}
}
resources:
testMultiCloudResourceDiscovery:
type: oci:oci:DbmulticloudMultiCloudResourceDiscovery
name: test_multi_cloud_resource_discovery
properties:
compartmentId: ${compartmentId}
displayName: ${multiCloudResourceDiscoveryDisplayName}
oracleDbConnectorId: ${testOracleDbConnector.id}
resourceType: ${multiCloudResourceDiscoveryResourceType}
definedTags:
Operations.CostCenter: '42'
freeformTags:
Department: Finance
resourcesFilter: ${multiCloudResourceDiscoveryResourcesFilter}
Create DbmulticloudMultiCloudResourceDiscovery Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbmulticloudMultiCloudResourceDiscovery(name: string, args: DbmulticloudMultiCloudResourceDiscoveryArgs, opts?: CustomResourceOptions);
@overload
def DbmulticloudMultiCloudResourceDiscovery(resource_name: str,
args: DbmulticloudMultiCloudResourceDiscoveryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbmulticloudMultiCloudResourceDiscovery(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
oracle_db_connector_id: Optional[str] = None,
resource_type: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
resources_filter: Optional[Mapping[str, str]] = None)
func NewDbmulticloudMultiCloudResourceDiscovery(ctx *Context, name string, args DbmulticloudMultiCloudResourceDiscoveryArgs, opts ...ResourceOption) (*DbmulticloudMultiCloudResourceDiscovery, error)
public DbmulticloudMultiCloudResourceDiscovery(string name, DbmulticloudMultiCloudResourceDiscoveryArgs args, CustomResourceOptions? opts = null)
public DbmulticloudMultiCloudResourceDiscovery(String name, DbmulticloudMultiCloudResourceDiscoveryArgs args)
public DbmulticloudMultiCloudResourceDiscovery(String name, DbmulticloudMultiCloudResourceDiscoveryArgs args, CustomResourceOptions options)
type: oci:oci:DbmulticloudMultiCloudResourceDiscovery
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 DbmulticloudMultiCloudResourceDiscoveryArgs
- 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 DbmulticloudMultiCloudResourceDiscoveryArgs
- 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 DbmulticloudMultiCloudResourceDiscoveryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbmulticloudMultiCloudResourceDiscoveryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbmulticloudMultiCloudResourceDiscoveryArgs
- 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 dbmulticloudMultiCloudResourceDiscoveryResource = new Oci.Oci.DbmulticloudMultiCloudResourceDiscovery("dbmulticloudMultiCloudResourceDiscoveryResource", new()
{
CompartmentId = "string",
DisplayName = "string",
OracleDbConnectorId = "string",
ResourceType = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
ResourcesFilter =
{
{ "string", "string" },
},
});
example, err := oci.NewDbmulticloudMultiCloudResourceDiscovery(ctx, "dbmulticloudMultiCloudResourceDiscoveryResource", &oci.DbmulticloudMultiCloudResourceDiscoveryArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
OracleDbConnectorId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourcesFilter: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dbmulticloudMultiCloudResourceDiscoveryResource = new DbmulticloudMultiCloudResourceDiscovery("dbmulticloudMultiCloudResourceDiscoveryResource", DbmulticloudMultiCloudResourceDiscoveryArgs.builder()
.compartmentId("string")
.displayName("string")
.oracleDbConnectorId("string")
.resourceType("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.resourcesFilter(Map.of("string", "string"))
.build());
dbmulticloud_multi_cloud_resource_discovery_resource = oci.oci.DbmulticloudMultiCloudResourceDiscovery("dbmulticloudMultiCloudResourceDiscoveryResource",
compartment_id="string",
display_name="string",
oracle_db_connector_id="string",
resource_type="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
resources_filter={
"string": "string",
})
const dbmulticloudMultiCloudResourceDiscoveryResource = new oci.oci.DbmulticloudMultiCloudResourceDiscovery("dbmulticloudMultiCloudResourceDiscoveryResource", {
compartmentId: "string",
displayName: "string",
oracleDbConnectorId: "string",
resourceType: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
resourcesFilter: {
string: "string",
},
});
type: oci:oci:DbmulticloudMultiCloudResourceDiscovery
properties:
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
oracleDbConnectorId: string
resourceType: string
resourcesFilter:
string: string
DbmulticloudMultiCloudResourceDiscovery 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 DbmulticloudMultiCloudResourceDiscovery resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- Resource
Type string - (Updatable) Resource Type to discover.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Resources
Filter Dictionary<string, string> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- Resource
Type string - (Updatable) Resource Type to discover.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Resources
Filter map[string]string Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- display
Name String - (Updatable) Display name of the Multicloud Resource Discovery resource.
- oracle
Db StringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type String - (Updatable) Resource Type to discover.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- resources
Filter Map<String,String> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type string - (Updatable) Resource Type to discover.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- resources
Filter {[key: string]: string} Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- display_
name str - (Updatable) Display name of the Multicloud Resource Discovery resource.
- oracle_
db_ strconnector_ id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource_
type str - (Updatable) Resource Type to discover.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- resources_
filter Mapping[str, str] Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- display
Name String - (Updatable) Display name of the Multicloud Resource Discovery resource.
- oracle
Db StringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type String - (Updatable) Resource Type to discover.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- resources
Filter Map<String> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 DbmulticloudMultiCloudResourceDiscovery resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Resources
List<Dbmulticloud
Multi Cloud Resource Discovery Resource> - List of All Discovered resources.
- State string
- The current lifecycle state of the discovered resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Resources
[]Dbmulticloud
Multi Cloud Resource Discovery Resource - List of All Discovered resources.
- State string
- The current lifecycle state of the discovered resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modification String - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- resources
List<Dbmulticloud
Multi Cloud Resource Discovery Resource> - List of All Discovered resources.
- state String
- The current lifecycle state of the discovered resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated String - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- resources
Dbmulticloud
Multi Cloud Resource Discovery Resource[] - List of All Discovered resources.
- state string
- The current lifecycle state of the discovered resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modification str - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle_
state_ strdetails - Description of the current lifecycle state in more detail.
- resources
Sequence[Dbmulticloud
Multi Cloud Resource Discovery Resource] - List of All Discovered resources.
- state str
- The current lifecycle state of the discovered resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time_
updated str - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modification String - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- resources List<Property Map>
- List of All Discovered resources.
- state String
- The current lifecycle state of the discovered resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated String - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
Look up Existing DbmulticloudMultiCloudResourceDiscovery Resource
Get an existing DbmulticloudMultiCloudResourceDiscovery 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?: DbmulticloudMultiCloudResourceDiscoveryState, opts?: CustomResourceOptions): DbmulticloudMultiCloudResourceDiscovery
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
last_modification: Optional[str] = None,
lifecycle_state_details: Optional[str] = None,
oracle_db_connector_id: Optional[str] = None,
resource_type: Optional[str] = None,
resources: Optional[Sequence[DbmulticloudMultiCloudResourceDiscoveryResourceArgs]] = None,
resources_filter: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> DbmulticloudMultiCloudResourceDiscovery
func GetDbmulticloudMultiCloudResourceDiscovery(ctx *Context, name string, id IDInput, state *DbmulticloudMultiCloudResourceDiscoveryState, opts ...ResourceOption) (*DbmulticloudMultiCloudResourceDiscovery, error)
public static DbmulticloudMultiCloudResourceDiscovery Get(string name, Input<string> id, DbmulticloudMultiCloudResourceDiscoveryState? state, CustomResourceOptions? opts = null)
public static DbmulticloudMultiCloudResourceDiscovery get(String name, Output<String> id, DbmulticloudMultiCloudResourceDiscoveryState state, CustomResourceOptions options)
resources: _: type: oci:oci:DbmulticloudMultiCloudResourceDiscovery get: id: ${id}
- 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 - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- Resource
Type string - (Updatable) Resource Type to discover.
- Resources
List<Dbmulticloud
Multi Cloud Resource Discovery Resource> - List of All Discovered resources.
- Resources
Filter Dictionary<string, string> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Compartment
Id string - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- Resource
Type string - (Updatable) Resource Type to discover.
- Resources
[]Dbmulticloud
Multi Cloud Resource Discovery Resource Args - List of All Discovered resources.
- Resources
Filter map[string]string Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- compartment
Id String - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- last
Modification String - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- oracle
Db StringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type String - (Updatable) Resource Type to discover.
- resources
List<Dbmulticloud
Multi Cloud Resource Discovery Resource> - List of All Discovered resources.
- resources
Filter Map<String,String> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated String - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- compartment
Id string - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) Display name of the Multicloud Resource Discovery resource.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- last
Modification string - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- oracle
Db stringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type string - (Updatable) Resource Type to discover.
- resources
Dbmulticloud
Multi Cloud Resource Discovery Resource[] - List of All Discovered resources.
- resources
Filter {[key: string]: string} Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated string - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- compartment_
id str - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- last_
modification str - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle_
state_ strdetails - Description of the current lifecycle state in more detail.
- oracle_
db_ strconnector_ id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource_
type str - (Updatable) Resource Type to discover.
- resources
Sequence[Dbmulticloud
Multi Cloud Resource Discovery Resource Args] - List of All Discovered resources.
- resources_
filter Mapping[str, str] Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time_
updated str - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- compartment
Id String - (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) Display name of the Multicloud Resource Discovery resource.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- last
Modification String - Description of the latest modification of the Multicloud Resource Discovery resource.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- oracle
Db StringConnector Id - (Updatable) The OCID of the Oracle DB Connector resource.
- resource
Type String - (Updatable) Resource Type to discover.
- resources List<Property Map>
- List of All Discovered resources.
- resources
Filter Map<String> Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example
{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}
or{"keyRing": "dbmci-keyring"}
Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}
or{"keyVault": "orp7HSM001"}
** 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 lifecycle state of the discovered resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated String - Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
Supporting Types
DbmulticloudMultiCloudResourceDiscoveryResource, DbmulticloudMultiCloudResourceDiscoveryResourceArgs
- Id string
- The ID of the Discovered Resource.
- Location string
- Discovered Resource Location.
- Name string
- Discovered Resource Name.
- Properties Dictionary<string, string>
- Discovered Resource's properties.
- Resource
Group string - Discovered Resource Group Name.
- Type string
- Discovered Resource Type.
- Id string
- The ID of the Discovered Resource.
- Location string
- Discovered Resource Location.
- Name string
- Discovered Resource Name.
- Properties map[string]string
- Discovered Resource's properties.
- Resource
Group string - Discovered Resource Group Name.
- Type string
- Discovered Resource Type.
- id String
- The ID of the Discovered Resource.
- location String
- Discovered Resource Location.
- name String
- Discovered Resource Name.
- properties Map<String,String>
- Discovered Resource's properties.
- resource
Group String - Discovered Resource Group Name.
- type String
- Discovered Resource Type.
- id string
- The ID of the Discovered Resource.
- location string
- Discovered Resource Location.
- name string
- Discovered Resource Name.
- properties {[key: string]: string}
- Discovered Resource's properties.
- resource
Group string - Discovered Resource Group Name.
- type string
- Discovered Resource Type.
- id str
- The ID of the Discovered Resource.
- location str
- Discovered Resource Location.
- name str
- Discovered Resource Name.
- properties Mapping[str, str]
- Discovered Resource's properties.
- resource_
group str - Discovered Resource Group Name.
- type str
- Discovered Resource Type.
- id String
- The ID of the Discovered Resource.
- location String
- Discovered Resource Location.
- name String
- Discovered Resource Name.
- properties Map<String>
- Discovered Resource's properties.
- resource
Group String - Discovered Resource Group Name.
- type String
- Discovered Resource Type.
Import
MultiCloudResourceDiscoveries can be imported using the id
, e.g.
$ pulumi import oci:oci/dbmulticloudMultiCloudResourceDiscovery:DbmulticloudMultiCloudResourceDiscovery test_multi_cloud_resource_discovery "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.