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
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 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
})
}
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());
}
}
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});
resources:
testMonitorPluginManagement:
type: oci:AppMgmtControl:MonitorPluginManagement
properties:
#Required
monitoredInstanceId: ${oci_appmgmt_control_monitored_instance.test_monitored_instance.id}
Create 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:
- Monitored
Instance stringId 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 stringId 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 StringId 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 stringId 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_ strid 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 StringId 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:
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Monitored
Instance stringDescription - Monitored
Instance stringDisplay Name - Monitored
Instance stringManagement Agent Id - State string
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Monitored
Instance stringDescription - Monitored
Instance stringDisplay Name - Monitored
Instance stringManagement Agent Id - State string
- compartment
Id String - id String
The provider-assigned unique ID for this managed resource.
- monitored
Instance StringDescription - monitored
Instance StringDisplay Name - monitored
Instance StringManagement Agent Id - state String
- compartment
Id string - id string
The provider-assigned unique ID for this managed resource.
- monitored
Instance stringDescription - monitored
Instance stringDisplay Name - monitored
Instance stringManagement Agent Id - state string
- compartment_
id str - id str
The provider-assigned unique ID for this managed resource.
- monitored_
instance_ strdescription - monitored_
instance_ strdisplay_ name - monitored_
instance_ strmanagement_ agent_ id - state str
- compartment
Id String - id String
The provider-assigned unique ID for this managed resource.
- monitored
Instance StringDescription - monitored
Instance StringDisplay Name - monitored
Instance StringManagement Agent Id - 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.
- Compartment
Id string - Monitored
Instance stringDescription - Monitored
Instance stringDisplay Name - Monitored
Instance stringId 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 stringManagement Agent Id - State string
- Compartment
Id string - Monitored
Instance stringDescription - Monitored
Instance stringDisplay Name - Monitored
Instance stringId 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 stringManagement Agent Id - State string
- compartment
Id String - monitored
Instance StringDescription - monitored
Instance StringDisplay Name - monitored
Instance StringId 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 StringManagement Agent Id - state String
- compartment
Id string - monitored
Instance stringDescription - monitored
Instance stringDisplay Name - monitored
Instance stringId 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 stringManagement Agent Id - state string
- compartment_
id str - monitored_
instance_ strdescription - monitored_
instance_ strdisplay_ name - monitored_
instance_ strid 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_ strmanagement_ agent_ id - state str
- compartment
Id String - monitored
Instance StringDescription - monitored
Instance StringDisplay Name - monitored
Instance StringId 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 StringManagement Agent Id - state String
Import
Import is not supported for this resource.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.