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});
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"])
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
})
}
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,
});
});
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());
}
}
resources:
testMonitorPluginManagement:
type: oci:AppMgmtControl:MonitorPluginManagement
name: test_monitor_plugin_management
properties:
monitoredInstanceId: ${testMonitoredInstance.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.
Constructor 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
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:
- 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.
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.