1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AppMgmtControl
  5. MonitorPluginManagement
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.AppMgmtControl.MonitorPluginManagement

Explore with Pulumi AI

This resource provides the Monitor Plugin Management resource in Oracle Cloud Infrastructure Appmgmt Control service.

Activates Resource Plugin for compute instance identified by the instance ocid. Stores monitored instances Id and its state. Tries to enable Resource Monitoring plugin by making remote calls to Oracle Cloud Agent and Management Agent Cloud Service.

Example Usage

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

const testMonitorPluginManagement = new oci.appmgmtcontrol.MonitorPluginManagement("test_monitor_plugin_management", {monitoredInstanceId: testMonitoredInstance.id});
Copy
import pulumi
import pulumi_oci as oci

test_monitor_plugin_management = oci.app_mgmt_control.MonitorPluginManagement("test_monitor_plugin_management", monitored_instance_id=test_monitored_instance["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/appmgmtcontrol"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmgmtcontrol.NewMonitorPluginManagement(ctx, "test_monitor_plugin_management", &appmgmtcontrol.MonitorPluginManagementArgs{
			MonitoredInstanceId: pulumi.Any(testMonitoredInstance.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 testMonitorPluginManagement = new Oci.AppMgmtControl.MonitorPluginManagement("test_monitor_plugin_management", new()
    {
        MonitoredInstanceId = testMonitoredInstance.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AppMgmtControl.MonitorPluginManagement;
import com.pulumi.oci.AppMgmtControl.MonitorPluginManagementArgs;
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 testMonitorPluginManagement = new MonitorPluginManagement("testMonitorPluginManagement", MonitorPluginManagementArgs.builder()
            .monitoredInstanceId(testMonitoredInstance.id())
            .build());

    }
}
Copy
resources:
  testMonitorPluginManagement:
    type: oci:AppMgmtControl:MonitorPluginManagement
    name: test_monitor_plugin_management
    properties:
      monitoredInstanceId: ${testMonitoredInstance.id}
Copy

Create MonitorPluginManagement Resource

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

Constructor syntax

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

@overload
def MonitorPluginManagement(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            monitored_instance_id: Optional[str] = None)
func NewMonitorPluginManagement(ctx *Context, name string, args MonitorPluginManagementArgs, opts ...ResourceOption) (*MonitorPluginManagement, error)
public MonitorPluginManagement(string name, MonitorPluginManagementArgs args, CustomResourceOptions? opts = null)
public MonitorPluginManagement(String name, MonitorPluginManagementArgs args)
public MonitorPluginManagement(String name, MonitorPluginManagementArgs args, CustomResourceOptions options)
type: oci:AppMgmtControl:MonitorPluginManagement
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. MonitorPluginManagementArgs
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. MonitorPluginManagementArgs
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. MonitorPluginManagementArgs
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. MonitorPluginManagementArgs
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. MonitorPluginManagementArgs
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 monitorPluginManagementResource = new Oci.AppMgmtControl.MonitorPluginManagement("monitorPluginManagementResource", new()
{
    MonitoredInstanceId = "string",
});
Copy
example, err := appmgmtcontrol.NewMonitorPluginManagement(ctx, "monitorPluginManagementResource", &appmgmtcontrol.MonitorPluginManagementArgs{
	MonitoredInstanceId: pulumi.String("string"),
})
Copy
var monitorPluginManagementResource = new MonitorPluginManagement("monitorPluginManagementResource", MonitorPluginManagementArgs.builder()
    .monitoredInstanceId("string")
    .build());
Copy
monitor_plugin_management_resource = oci.app_mgmt_control.MonitorPluginManagement("monitorPluginManagementResource", monitored_instance_id="string")
Copy
const monitorPluginManagementResource = new oci.appmgmtcontrol.MonitorPluginManagement("monitorPluginManagementResource", {monitoredInstanceId: "string"});
Copy
type: oci:AppMgmtControl:MonitorPluginManagement
properties:
    monitoredInstanceId: string
Copy

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

MonitoredInstanceId
This property is required.
Changes to this property will trigger replacement.
string

OCID of monitored instance.

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

MonitoredInstanceId
This property is required.
Changes to this property will trigger replacement.
string

OCID of monitored instance.

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

monitoredInstanceId
This property is required.
Changes to this property will trigger replacement.
String

OCID of monitored instance.

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

monitoredInstanceId
This property is required.
Changes to this property will trigger replacement.
string

OCID of monitored instance.

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

monitored_instance_id
This property is required.
Changes to this property will trigger replacement.
str

OCID of monitored instance.

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

monitoredInstanceId
This property is required.
Changes to this property will trigger replacement.
String

OCID of monitored instance.

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

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
MonitoredInstanceDescription string
MonitoredInstanceDisplayName string
MonitoredInstanceManagementAgentId string
State string
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
MonitoredInstanceDescription string
MonitoredInstanceDisplayName string
MonitoredInstanceManagementAgentId string
State string
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
monitoredInstanceDescription String
monitoredInstanceDisplayName String
monitoredInstanceManagementAgentId String
state String
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
monitoredInstanceDescription string
monitoredInstanceDisplayName string
monitoredInstanceManagementAgentId string
state string
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
monitored_instance_description str
monitored_instance_display_name str
monitored_instance_management_agent_id str
state str
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
monitoredInstanceDescription String
monitoredInstanceDisplayName String
monitoredInstanceManagementAgentId String
state String

Look up Existing MonitorPluginManagement Resource

Get an existing MonitorPluginManagement 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?: MonitorPluginManagementState, opts?: CustomResourceOptions): MonitorPluginManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        monitored_instance_description: Optional[str] = None,
        monitored_instance_display_name: Optional[str] = None,
        monitored_instance_id: Optional[str] = None,
        monitored_instance_management_agent_id: Optional[str] = None,
        state: Optional[str] = None) -> MonitorPluginManagement
func GetMonitorPluginManagement(ctx *Context, name string, id IDInput, state *MonitorPluginManagementState, opts ...ResourceOption) (*MonitorPluginManagement, error)
public static MonitorPluginManagement Get(string name, Input<string> id, MonitorPluginManagementState? state, CustomResourceOptions? opts = null)
public static MonitorPluginManagement get(String name, Output<String> id, MonitorPluginManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:AppMgmtControl:MonitorPluginManagement    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:
CompartmentId string
MonitoredInstanceDescription string
MonitoredInstanceDisplayName string
MonitoredInstanceId Changes to this property will trigger replacement. string

OCID of monitored instance.

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

MonitoredInstanceManagementAgentId string
State string
CompartmentId string
MonitoredInstanceDescription string
MonitoredInstanceDisplayName string
MonitoredInstanceId Changes to this property will trigger replacement. string

OCID of monitored instance.

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

MonitoredInstanceManagementAgentId string
State string
compartmentId String
monitoredInstanceDescription String
monitoredInstanceDisplayName String
monitoredInstanceId Changes to this property will trigger replacement. String

OCID of monitored instance.

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

monitoredInstanceManagementAgentId String
state String
compartmentId string
monitoredInstanceDescription string
monitoredInstanceDisplayName string
monitoredInstanceId Changes to this property will trigger replacement. string

OCID of monitored instance.

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

monitoredInstanceManagementAgentId string
state string
compartment_id str
monitored_instance_description str
monitored_instance_display_name str
monitored_instance_id Changes to this property will trigger replacement. str

OCID of monitored instance.

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

monitored_instance_management_agent_id str
state str
compartmentId String
monitoredInstanceDescription String
monitoredInstanceDisplayName String
monitoredInstanceId Changes to this property will trigger replacement. String

OCID of monitored instance.

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

monitoredInstanceManagementAgentId String
state String

Import

Import is not supported for this resource.

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.