Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

MonitorPluginManagement

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testMonitorPluginManagement = new Oci.AppMgmtControl.MonitorPluginManagement("testMonitorPluginManagement", new Oci.AppMgmtControl.MonitorPluginManagementArgs
        {
            MonitoredInstanceId = oci_appmgmt_control_monitored_instance.Test_monitored_instance.Id,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := AppMgmtControl.NewMonitorPluginManagement(ctx, "testMonitorPluginManagement", &AppMgmtControl.MonitorPluginManagementArgs{
			MonitoredInstanceId: pulumi.Any(oci_appmgmt_control_monitored_instance.Test_monitored_instance.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_monitor_plugin_management = oci.app_mgmt_control.MonitorPluginManagement("testMonitorPluginManagement", monitored_instance_id=oci_appmgmt_control_monitored_instance["test_monitored_instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMonitorPluginManagement = new oci.appmgmtcontrol.MonitorPluginManagement("testMonitorPluginManagement", {monitoredInstanceId: oci_appmgmt_control_monitored_instance.test_monitored_instance.id});

Coming soon!

Create a MonitorPluginManagement Resource

new MonitorPluginManagement(name: string, args: MonitorPluginManagementArgs, opts?: CustomResourceOptions);
@overload
def MonitorPluginManagement(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            monitored_instance_id: Optional[str] = None)
@overload
def MonitorPluginManagement(resource_name: str,
                            args: MonitorPluginManagementArgs,
                            opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args MonitorPluginManagementArgs
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 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 string
The unique name of the resource.
args MonitorPluginManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MonitorPluginManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args MonitorPluginManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The MonitorPluginManagement resource accepts the following input properties:

MonitoredInstanceId string

OCID of monitored instance.

MonitoredInstanceId string

OCID of monitored instance.

monitoredInstanceId String

OCID of monitored instance.

monitoredInstanceId string

OCID of monitored instance.

monitored_instance_id str

OCID of monitored instance.

monitoredInstanceId String

OCID of monitored instance.

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 an 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)
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.
The following state arguments are supported:

Import

Import is not supported for this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.