1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MonitoredResourcesAssociateMonitoredResource
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource

Explore with Pulumi AI

This resource provides the Monitored Resources Associate Monitored Resource resource in Oracle Cloud Infrastructure Stack Monitoring service.

Create an association between two monitored resources. Associations can be created between resources from different compartments as long they are in same tenancy. User should have required access in both the compartments.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMonitoredResourcesAssociateMonitoredResource = new oci.stackmonitoring.MonitoredResourcesAssociateMonitoredResource("test_monitored_resources_associate_monitored_resource", {
    associationType: monitoredResourcesAssociateMonitoredResourceAssociationType,
    compartmentId: compartmentId,
    destinationResourceId: testDestinationResource.id,
    sourceResourceId: testSourceResource.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_monitored_resources_associate_monitored_resource = oci.stack_monitoring.MonitoredResourcesAssociateMonitoredResource("test_monitored_resources_associate_monitored_resource",
    association_type=monitored_resources_associate_monitored_resource_association_type,
    compartment_id=compartment_id,
    destination_resource_id=test_destination_resource["id"],
    source_resource_id=test_source_resource["id"])
Copy
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.NewMonitoredResourcesAssociateMonitoredResource(ctx, "test_monitored_resources_associate_monitored_resource", &stackmonitoring.MonitoredResourcesAssociateMonitoredResourceArgs{
			AssociationType:       pulumi.Any(monitoredResourcesAssociateMonitoredResourceAssociationType),
			CompartmentId:         pulumi.Any(compartmentId),
			DestinationResourceId: pulumi.Any(testDestinationResource.Id),
			SourceResourceId:      pulumi.Any(testSourceResource.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMonitoredResourcesAssociateMonitoredResource = new Oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource("test_monitored_resources_associate_monitored_resource", new()
    {
        AssociationType = monitoredResourcesAssociateMonitoredResourceAssociationType,
        CompartmentId = compartmentId,
        DestinationResourceId = testDestinationResource.Id,
        SourceResourceId = testSourceResource.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource;
import com.pulumi.oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResourceArgs;
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 testMonitoredResourcesAssociateMonitoredResource = new MonitoredResourcesAssociateMonitoredResource("testMonitoredResourcesAssociateMonitoredResource", MonitoredResourcesAssociateMonitoredResourceArgs.builder()
            .associationType(monitoredResourcesAssociateMonitoredResourceAssociationType)
            .compartmentId(compartmentId)
            .destinationResourceId(testDestinationResource.id())
            .sourceResourceId(testSourceResource.id())
            .build());

    }
}
Copy
resources:
  testMonitoredResourcesAssociateMonitoredResource:
    type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
    name: test_monitored_resources_associate_monitored_resource
    properties:
      associationType: ${monitoredResourcesAssociateMonitoredResourceAssociationType}
      compartmentId: ${compartmentId}
      destinationResourceId: ${testDestinationResource.id}
      sourceResourceId: ${testSourceResource.id}
Copy

Create MonitoredResourcesAssociateMonitoredResource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new MonitoredResourcesAssociateMonitoredResource(name: string, args: MonitoredResourcesAssociateMonitoredResourceArgs, opts?: CustomResourceOptions);
@overload
def MonitoredResourcesAssociateMonitoredResource(resource_name: str,
                                                 args: MonitoredResourcesAssociateMonitoredResourceArgs,
                                                 opts: Optional[ResourceOptions] = None)

@overload
def MonitoredResourcesAssociateMonitoredResource(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 association_type: Optional[str] = None,
                                                 compartment_id: Optional[str] = None,
                                                 destination_resource_id: Optional[str] = None,
                                                 source_resource_id: Optional[str] = None)
func NewMonitoredResourcesAssociateMonitoredResource(ctx *Context, name string, args MonitoredResourcesAssociateMonitoredResourceArgs, opts ...ResourceOption) (*MonitoredResourcesAssociateMonitoredResource, error)
public MonitoredResourcesAssociateMonitoredResource(string name, MonitoredResourcesAssociateMonitoredResourceArgs args, CustomResourceOptions? opts = null)
public MonitoredResourcesAssociateMonitoredResource(String name, MonitoredResourcesAssociateMonitoredResourceArgs args)
public MonitoredResourcesAssociateMonitoredResource(String name, MonitoredResourcesAssociateMonitoredResourceArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MonitoredResourcesAssociateMonitoredResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MonitoredResourcesAssociateMonitoredResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MonitoredResourcesAssociateMonitoredResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MonitoredResourcesAssociateMonitoredResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MonitoredResourcesAssociateMonitoredResourceArgs
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 monitoredResourcesAssociateMonitoredResourceResource = new Oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", new()
{
    AssociationType = "string",
    CompartmentId = "string",
    DestinationResourceId = "string",
    SourceResourceId = "string",
});
Copy
example, err := StackMonitoring.NewMonitoredResourcesAssociateMonitoredResource(ctx, "monitoredResourcesAssociateMonitoredResourceResource", &StackMonitoring.MonitoredResourcesAssociateMonitoredResourceArgs{
	AssociationType:       pulumi.String("string"),
	CompartmentId:         pulumi.String("string"),
	DestinationResourceId: pulumi.String("string"),
	SourceResourceId:      pulumi.String("string"),
})
Copy
var monitoredResourcesAssociateMonitoredResourceResource = new MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", MonitoredResourcesAssociateMonitoredResourceArgs.builder()
    .associationType("string")
    .compartmentId("string")
    .destinationResourceId("string")
    .sourceResourceId("string")
    .build());
Copy
monitored_resources_associate_monitored_resource_resource = oci.stack_monitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource",
    association_type="string",
    compartment_id="string",
    destination_resource_id="string",
    source_resource_id="string")
Copy
const monitoredResourcesAssociateMonitoredResourceResource = new oci.stackmonitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", {
    associationType: "string",
    compartmentId: "string",
    destinationResourceId: "string",
    sourceResourceId: "string",
});
Copy
type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
properties:
    associationType: string
    compartmentId: string
    destinationResourceId: string
    sourceResourceId: string
Copy

MonitoredResourcesAssociateMonitoredResource 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 MonitoredResourcesAssociateMonitoredResource resource accepts the following input properties:

AssociationType
This property is required.
Changes to this property will trigger replacement.
string
Association type to be created between source and destination resources.
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
Compartment Identifier OCID.
DestinationResourceId
This property is required.
Changes to this property will trigger replacement.
string
Destination Monitored Resource Identifier OCID.
SourceResourceId
This property is required.
Changes to this property will trigger replacement.
string

Source Monitored Resource Identifier OCID.

** 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

AssociationType
This property is required.
Changes to this property will trigger replacement.
string
Association type to be created between source and destination resources.
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
Compartment Identifier OCID.
DestinationResourceId
This property is required.
Changes to this property will trigger replacement.
string
Destination Monitored Resource Identifier OCID.
SourceResourceId
This property is required.
Changes to this property will trigger replacement.
string

Source Monitored Resource Identifier OCID.

** 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

associationType
This property is required.
Changes to this property will trigger replacement.
String
Association type to be created between source and destination resources.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
Compartment Identifier OCID.
destinationResourceId
This property is required.
Changes to this property will trigger replacement.
String
Destination Monitored Resource Identifier OCID.
sourceResourceId
This property is required.
Changes to this property will trigger replacement.
String

Source Monitored Resource Identifier OCID.

** 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

associationType
This property is required.
Changes to this property will trigger replacement.
string
Association type to be created between source and destination resources.
compartmentId
This property is required.
Changes to this property will trigger replacement.
string
Compartment Identifier OCID.
destinationResourceId
This property is required.
Changes to this property will trigger replacement.
string
Destination Monitored Resource Identifier OCID.
sourceResourceId
This property is required.
Changes to this property will trigger replacement.
string

Source Monitored Resource Identifier OCID.

** 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

association_type
This property is required.
Changes to this property will trigger replacement.
str
Association type to be created between source and destination resources.
compartment_id
This property is required.
Changes to this property will trigger replacement.
str
Compartment Identifier OCID.
destination_resource_id
This property is required.
Changes to this property will trigger replacement.
str
Destination Monitored Resource Identifier OCID.
source_resource_id
This property is required.
Changes to this property will trigger replacement.
str

Source Monitored Resource Identifier OCID.

** 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

associationType
This property is required.
Changes to this property will trigger replacement.
String
Association type to be created between source and destination resources.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
Compartment Identifier OCID.
destinationResourceId
This property is required.
Changes to this property will trigger replacement.
String
Destination Monitored Resource Identifier OCID.
sourceResourceId
This property is required.
Changes to this property will trigger replacement.
String

Source Monitored Resource Identifier OCID.

** 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 MonitoredResourcesAssociateMonitoredResource resource produces the following output properties:

Category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
DestinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
Association Resource Details.
Id string
The provider-assigned unique ID for this managed resource.
SourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
Association Resource Details.
TenantId string
Tenancy Identifier OCID.
TimeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
Category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
DestinationResourceDetails []MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail
Association Resource Details.
Id string
The provider-assigned unique ID for this managed resource.
SourceResourceDetails []MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail
Association Resource Details.
TenantId string
Tenancy Identifier OCID.
TimeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
category String
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
destinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
Association Resource Details.
id String
The provider-assigned unique ID for this managed resource.
sourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
Association Resource Details.
tenantId String
Tenancy Identifier OCID.
timeCreated String
The time when the association was created. An RFC3339 formatted datetime string.
category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
destinationResourceDetails MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail[]
Association Resource Details.
id string
The provider-assigned unique ID for this managed resource.
sourceResourceDetails MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail[]
Association Resource Details.
tenantId string
Tenancy Identifier OCID.
timeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
category str
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
destination_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail]
Association Resource Details.
id str
The provider-assigned unique ID for this managed resource.
source_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail]
Association Resource Details.
tenant_id str
Tenancy Identifier OCID.
time_created str
The time when the association was created. An RFC3339 formatted datetime string.
category String
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
destinationResourceDetails List<Property Map>
Association Resource Details.
id String
The provider-assigned unique ID for this managed resource.
sourceResourceDetails List<Property Map>
Association Resource Details.
tenantId String
Tenancy Identifier OCID.
timeCreated String
The time when the association was created. An RFC3339 formatted datetime string.

Look up Existing MonitoredResourcesAssociateMonitoredResource Resource

Get an existing MonitoredResourcesAssociateMonitoredResource 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?: MonitoredResourcesAssociateMonitoredResourceState, opts?: CustomResourceOptions): MonitoredResourcesAssociateMonitoredResource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        association_type: Optional[str] = None,
        category: Optional[str] = None,
        compartment_id: Optional[str] = None,
        destination_resource_details: Optional[Sequence[_stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs]] = None,
        destination_resource_id: Optional[str] = None,
        source_resource_details: Optional[Sequence[_stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs]] = None,
        source_resource_id: Optional[str] = None,
        tenant_id: Optional[str] = None,
        time_created: Optional[str] = None) -> MonitoredResourcesAssociateMonitoredResource
func GetMonitoredResourcesAssociateMonitoredResource(ctx *Context, name string, id IDInput, state *MonitoredResourcesAssociateMonitoredResourceState, opts ...ResourceOption) (*MonitoredResourcesAssociateMonitoredResource, error)
public static MonitoredResourcesAssociateMonitoredResource Get(string name, Input<string> id, MonitoredResourcesAssociateMonitoredResourceState? state, CustomResourceOptions? opts = null)
public static MonitoredResourcesAssociateMonitoredResource get(String name, Output<String> id, MonitoredResourcesAssociateMonitoredResourceState state, CustomResourceOptions options)
resources:  _:    type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AssociationType Changes to this property will trigger replacement. string
Association type to be created between source and destination resources.
Category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
CompartmentId Changes to this property will trigger replacement. string
Compartment Identifier OCID.
DestinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
Association Resource Details.
DestinationResourceId Changes to this property will trigger replacement. string
Destination Monitored Resource Identifier OCID.
SourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
Association Resource Details.
SourceResourceId Changes to this property will trigger replacement. string

Source Monitored Resource Identifier OCID.

** 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

TenantId string
Tenancy Identifier OCID.
TimeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
AssociationType Changes to this property will trigger replacement. string
Association type to be created between source and destination resources.
Category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
CompartmentId Changes to this property will trigger replacement. string
Compartment Identifier OCID.
DestinationResourceDetails []MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs
Association Resource Details.
DestinationResourceId Changes to this property will trigger replacement. string
Destination Monitored Resource Identifier OCID.
SourceResourceDetails []MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs
Association Resource Details.
SourceResourceId Changes to this property will trigger replacement. string

Source Monitored Resource Identifier OCID.

** 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

TenantId string
Tenancy Identifier OCID.
TimeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
associationType Changes to this property will trigger replacement. String
Association type to be created between source and destination resources.
category String
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
compartmentId Changes to this property will trigger replacement. String
Compartment Identifier OCID.
destinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
Association Resource Details.
destinationResourceId Changes to this property will trigger replacement. String
Destination Monitored Resource Identifier OCID.
sourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
Association Resource Details.
sourceResourceId Changes to this property will trigger replacement. String

Source Monitored Resource Identifier OCID.

** 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

tenantId String
Tenancy Identifier OCID.
timeCreated String
The time when the association was created. An RFC3339 formatted datetime string.
associationType Changes to this property will trigger replacement. string
Association type to be created between source and destination resources.
category string
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
compartmentId Changes to this property will trigger replacement. string
Compartment Identifier OCID.
destinationResourceDetails MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail[]
Association Resource Details.
destinationResourceId Changes to this property will trigger replacement. string
Destination Monitored Resource Identifier OCID.
sourceResourceDetails MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail[]
Association Resource Details.
sourceResourceId Changes to this property will trigger replacement. string

Source Monitored Resource Identifier OCID.

** 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

tenantId string
Tenancy Identifier OCID.
timeCreated string
The time when the association was created. An RFC3339 formatted datetime string.
association_type Changes to this property will trigger replacement. str
Association type to be created between source and destination resources.
category str
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
compartment_id Changes to this property will trigger replacement. str
Compartment Identifier OCID.
destination_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs]
Association Resource Details.
destination_resource_id Changes to this property will trigger replacement. str
Destination Monitored Resource Identifier OCID.
source_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs]
Association Resource Details.
source_resource_id Changes to this property will trigger replacement. str

Source Monitored Resource Identifier OCID.

** 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

tenant_id str
Tenancy Identifier OCID.
time_created str
The time when the association was created. An RFC3339 formatted datetime string.
associationType Changes to this property will trigger replacement. String
Association type to be created between source and destination resources.
category String
Association category. Possible values are:

  • System created (SYSTEM),
  • User created using API (USER_API)
  • User created using tags (USER_TAG_ASSOC).
compartmentId Changes to this property will trigger replacement. String
Compartment Identifier OCID.
destinationResourceDetails List<Property Map>
Association Resource Details.
destinationResourceId Changes to this property will trigger replacement. String
Destination Monitored Resource Identifier OCID.
sourceResourceDetails List<Property Map>
Association Resource Details.
sourceResourceId Changes to this property will trigger replacement. String

Source Monitored Resource Identifier OCID.

** 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

tenantId String
Tenancy Identifier OCID.
timeCreated String
The time when the association was created. An RFC3339 formatted datetime string.

Supporting Types

MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail
, MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs

CompartmentId string
Compartment Identifier OCID.
Name string
Monitored Resource Name.
Type string
Monitored Resource Type.
CompartmentId string
Compartment Identifier OCID.
Name string
Monitored Resource Name.
Type string
Monitored Resource Type.
compartmentId String
Compartment Identifier OCID.
name String
Monitored Resource Name.
type String
Monitored Resource Type.
compartmentId string
Compartment Identifier OCID.
name string
Monitored Resource Name.
type string
Monitored Resource Type.
compartment_id str
Compartment Identifier OCID.
name str
Monitored Resource Name.
type str
Monitored Resource Type.
compartmentId String
Compartment Identifier OCID.
name String
Monitored Resource Name.
type String
Monitored Resource Type.

MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail
, MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs

CompartmentId string
Compartment Identifier OCID.
Name string
Monitored Resource Name.
Type string
Monitored Resource Type.
CompartmentId string
Compartment Identifier OCID.
Name string
Monitored Resource Name.
Type string
Monitored Resource Type.
compartmentId String
Compartment Identifier OCID.
name String
Monitored Resource Name.
type String
Monitored Resource Type.
compartmentId string
Compartment Identifier OCID.
name string
Monitored Resource Name.
type string
Monitored Resource Type.
compartment_id str
Compartment Identifier OCID.
name str
Monitored Resource Name.
type str
Monitored Resource Type.
compartmentId String
Compartment Identifier OCID.
name String
Monitored Resource Name.
type String
Monitored Resource Type.

Import

MonitoredResourcesAssociateMonitoredResources can be imported using the id, e.g.

$ pulumi import oci:StackMonitoring/monitoredResourcesAssociateMonitoredResource:MonitoredResourcesAssociateMonitoredResource test_monitored_resources_associate_monitored_resource "id"
Copy

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.