1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AppMgmtControl
  5. MonitorPluginManagement
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.AppMgmtControl.MonitorPluginManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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("testMonitorPluginManagement", {monitoredInstanceId: oci_appmgmt_control_monitored_instance.test_monitored_instance.id});
    
    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"])
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMonitorPluginManagement = new Oci.AppMgmtControl.MonitorPluginManagement("testMonitorPluginManagement", new()
        {
            MonitoredInstanceId = oci_appmgmt_control_monitored_instance.Test_monitored_instance.Id,
        });
    
    });
    
    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(oci_appmgmt_control_monitored_instance.test_monitored_instance().id())
                .build());
    
        }
    }
    
    resources:
      testMonitorPluginManagement:
        type: oci:AppMgmtControl:MonitorPluginManagement
        properties:
          #Required
          monitoredInstanceId: ${oci_appmgmt_control_monitored_instance.test_monitored_instance.id}
    

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

    Example

    The following reference example uses placeholder values for all input properties.

    var monitorPluginManagementResource = new Oci.AppMgmtControl.MonitorPluginManagement("monitorPluginManagementResource", new()
    {
        MonitoredInstanceId = "string",
    });
    
    example, err := AppMgmtControl.NewMonitorPluginManagement(ctx, "monitorPluginManagementResource", &AppMgmtControl.MonitorPluginManagementArgs{
    	MonitoredInstanceId: pulumi.String("string"),
    })
    
    var monitorPluginManagementResource = new MonitorPluginManagement("monitorPluginManagementResource", MonitorPluginManagementArgs.builder()        
        .monitoredInstanceId("string")
        .build());
    
    monitor_plugin_management_resource = oci.app_mgmt_control.MonitorPluginManagement("monitorPluginManagementResource", monitored_instance_id="string")
    
    const monitorPluginManagementResource = new oci.appmgmtcontrol.MonitorPluginManagement("monitorPluginManagementResource", {monitoredInstanceId: "string"});
    
    type: oci:AppMgmtControl:MonitorPluginManagement
    properties:
        monitoredInstanceId: string
    

    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.

    ** 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 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 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 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 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 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)
    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:
    CompartmentId string
    MonitoredInstanceDescription string
    MonitoredInstanceDisplayName string
    MonitoredInstanceId 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 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 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 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 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 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.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi