oci.StackMonitoring.MonitoredResourcesListMember
Explore with Pulumi AI
This resource provides the Monitored Resources List Member resource in Oracle Cloud Infrastructure Stack Monitoring service.
List the member resources for the given monitored resource identifier OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoredResourcesListMember = new oci.stackmonitoring.MonitoredResourcesListMember("test_monitored_resources_list_member", {
    monitoredResourceId: testMonitoredResource.id,
    destinationResourceId: testDestinationResource.id,
    limitLevel: monitoredResourcesListMemberLimitLevel,
});
import pulumi
import pulumi_oci as oci
test_monitored_resources_list_member = oci.stack_monitoring.MonitoredResourcesListMember("test_monitored_resources_list_member",
    monitored_resource_id=test_monitored_resource["id"],
    destination_resource_id=test_destination_resource["id"],
    limit_level=monitored_resources_list_member_limit_level)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.NewMonitoredResourcesListMember(ctx, "test_monitored_resources_list_member", &stackmonitoring.MonitoredResourcesListMemberArgs{
			MonitoredResourceId:   pulumi.Any(testMonitoredResource.Id),
			DestinationResourceId: pulumi.Any(testDestinationResource.Id),
			LimitLevel:            pulumi.Any(monitoredResourcesListMemberLimitLevel),
		})
		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 testMonitoredResourcesListMember = new Oci.StackMonitoring.MonitoredResourcesListMember("test_monitored_resources_list_member", new()
    {
        MonitoredResourceId = testMonitoredResource.Id,
        DestinationResourceId = testDestinationResource.Id,
        LimitLevel = monitoredResourcesListMemberLimitLevel,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourcesListMember;
import com.pulumi.oci.StackMonitoring.MonitoredResourcesListMemberArgs;
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 testMonitoredResourcesListMember = new MonitoredResourcesListMember("testMonitoredResourcesListMember", MonitoredResourcesListMemberArgs.builder()
            .monitoredResourceId(testMonitoredResource.id())
            .destinationResourceId(testDestinationResource.id())
            .limitLevel(monitoredResourcesListMemberLimitLevel)
            .build());
    }
}
resources:
  testMonitoredResourcesListMember:
    type: oci:StackMonitoring:MonitoredResourcesListMember
    name: test_monitored_resources_list_member
    properties:
      monitoredResourceId: ${testMonitoredResource.id}
      destinationResourceId: ${testDestinationResource.id}
      limitLevel: ${monitoredResourcesListMemberLimitLevel}
Create MonitoredResourcesListMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredResourcesListMember(name: string, args: MonitoredResourcesListMemberArgs, opts?: CustomResourceOptions);@overload
def MonitoredResourcesListMember(resource_name: str,
                                 args: MonitoredResourcesListMemberArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def MonitoredResourcesListMember(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 monitored_resource_id: Optional[str] = None,
                                 destination_resource_id: Optional[str] = None,
                                 limit_level: Optional[int] = None)func NewMonitoredResourcesListMember(ctx *Context, name string, args MonitoredResourcesListMemberArgs, opts ...ResourceOption) (*MonitoredResourcesListMember, error)public MonitoredResourcesListMember(string name, MonitoredResourcesListMemberArgs args, CustomResourceOptions? opts = null)
public MonitoredResourcesListMember(String name, MonitoredResourcesListMemberArgs args)
public MonitoredResourcesListMember(String name, MonitoredResourcesListMemberArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MonitoredResourcesListMember
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 MonitoredResourcesListMemberArgs
- 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 MonitoredResourcesListMemberArgs
- 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 MonitoredResourcesListMemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoredResourcesListMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoredResourcesListMemberArgs
- 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 monitoredResourcesListMemberResource = new Oci.StackMonitoring.MonitoredResourcesListMember("monitoredResourcesListMemberResource", new()
{
    MonitoredResourceId = "string",
    DestinationResourceId = "string",
    LimitLevel = 0,
});
example, err := stackmonitoring.NewMonitoredResourcesListMember(ctx, "monitoredResourcesListMemberResource", &stackmonitoring.MonitoredResourcesListMemberArgs{
	MonitoredResourceId:   pulumi.String("string"),
	DestinationResourceId: pulumi.String("string"),
	LimitLevel:            pulumi.Int(0),
})
var monitoredResourcesListMemberResource = new MonitoredResourcesListMember("monitoredResourcesListMemberResource", MonitoredResourcesListMemberArgs.builder()
    .monitoredResourceId("string")
    .destinationResourceId("string")
    .limitLevel(0)
    .build());
monitored_resources_list_member_resource = oci.stack_monitoring.MonitoredResourcesListMember("monitoredResourcesListMemberResource",
    monitored_resource_id="string",
    destination_resource_id="string",
    limit_level=0)
const monitoredResourcesListMemberResource = new oci.stackmonitoring.MonitoredResourcesListMember("monitoredResourcesListMemberResource", {
    monitoredResourceId: "string",
    destinationResourceId: "string",
    limitLevel: 0,
});
type: oci:StackMonitoring:MonitoredResourcesListMember
properties:
    destinationResourceId: string
    limitLevel: 0
    monitoredResourceId: string
MonitoredResourcesListMember 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 MonitoredResourcesListMember resource accepts the following input properties:
- MonitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- DestinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- LimitLevel int
- The field which determines the depth of hierarchy while searching for members.
- MonitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- DestinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- LimitLevel int
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource StringId 
- The OCID of monitored resource. - ** 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 
- destinationResource StringId 
- Destination Monitored Resource Identifier OCID.
- limitLevel Integer
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- destinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- limitLevel number
- The field which determines the depth of hierarchy while searching for members.
- monitored_resource_ strid 
- The OCID of monitored resource. - ** 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 
- destination_resource_ strid 
- Destination Monitored Resource Identifier OCID.
- limit_level int
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource StringId 
- The OCID of monitored resource. - ** 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 
- destinationResource StringId 
- Destination Monitored Resource Identifier OCID.
- limitLevel Number
- The field which determines the depth of hierarchy while searching for members.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoredResourcesListMember resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<MonitoredResources List Member Item> 
- List of member resources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]MonitoredResources List Member Item 
- List of member resources.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<MonitoredResources List Member Item> 
- List of member resources.
- id string
- The provider-assigned unique ID for this managed resource.
- items
MonitoredResources List Member Item[] 
- List of member resources.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[MonitoredResources List Member Item] 
- List of member resources.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- List of member resources.
Look up Existing MonitoredResourcesListMember Resource
Get an existing MonitoredResourcesListMember 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?: MonitoredResourcesListMemberState, opts?: CustomResourceOptions): MonitoredResourcesListMember@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        destination_resource_id: Optional[str] = None,
        items: Optional[Sequence[MonitoredResourcesListMemberItemArgs]] = None,
        limit_level: Optional[int] = None,
        monitored_resource_id: Optional[str] = None) -> MonitoredResourcesListMemberfunc GetMonitoredResourcesListMember(ctx *Context, name string, id IDInput, state *MonitoredResourcesListMemberState, opts ...ResourceOption) (*MonitoredResourcesListMember, error)public static MonitoredResourcesListMember Get(string name, Input<string> id, MonitoredResourcesListMemberState? state, CustomResourceOptions? opts = null)public static MonitoredResourcesListMember get(String name, Output<String> id, MonitoredResourcesListMemberState state, CustomResourceOptions options)resources:  _:    type: oci:StackMonitoring:MonitoredResourcesListMember    get:      id: ${id}- 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.
- DestinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- Items
List<MonitoredResources List Member Item> 
- List of member resources.
- LimitLevel int
- The field which determines the depth of hierarchy while searching for members.
- MonitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- DestinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- Items
[]MonitoredResources List Member Item Args 
- List of member resources.
- LimitLevel int
- The field which determines the depth of hierarchy while searching for members.
- MonitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- destinationResource StringId 
- Destination Monitored Resource Identifier OCID.
- items
List<MonitoredResources List Member Item> 
- List of member resources.
- limitLevel Integer
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource StringId 
- The OCID of monitored resource. - ** 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 
- destinationResource stringId 
- Destination Monitored Resource Identifier OCID.
- items
MonitoredResources List Member Item[] 
- List of member resources.
- limitLevel number
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource stringId 
- The OCID of monitored resource. - ** 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 
- destination_resource_ strid 
- Destination Monitored Resource Identifier OCID.
- items
Sequence[MonitoredResources List Member Item Args] 
- List of member resources.
- limit_level int
- The field which determines the depth of hierarchy while searching for members.
- monitored_resource_ strid 
- The OCID of monitored resource. - ** 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 
- destinationResource StringId 
- Destination Monitored Resource Identifier OCID.
- items List<Property Map>
- List of member resources.
- limitLevel Number
- The field which determines the depth of hierarchy while searching for members.
- monitoredResource StringId 
- The OCID of monitored resource. - ** 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 
Supporting Types
MonitoredResourcesListMemberItem, MonitoredResourcesListMemberItemArgs          
- CompartmentId string
- Compartment Identifier OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- ExternalId string
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- HostName string
- Monitored Resource Host Name.
- License string
- License edition of the monitored resource.
- ParentId string
- Parent monitored resource identifier OCID.
- ResourceCategory string
- Resource Category to indicate the kind of resource type.
- ResourceDisplay stringName 
- Monitored resource display name.
- ResourceId string
- Monitored resource identifier OCID.
- ResourceName string
- Monitored Resource Name.
- ResourceType string
- Monitored Resource Type.
- SourceType string
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- State string
- The current state of the Resource.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- CompartmentId string
- Compartment Identifier OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- ExternalId string
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- HostName string
- Monitored Resource Host Name.
- License string
- License edition of the monitored resource.
- ParentId string
- Parent monitored resource identifier OCID.
- ResourceCategory string
- Resource Category to indicate the kind of resource type.
- ResourceDisplay stringName 
- Monitored resource display name.
- ResourceId string
- Monitored resource identifier OCID.
- ResourceName string
- Monitored Resource Name.
- ResourceType string
- Monitored Resource Type.
- SourceType string
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- State string
- The current state of the Resource.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- compartmentId String
- Compartment Identifier OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- externalId String
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- hostName String
- Monitored Resource Host Name.
- license String
- License edition of the monitored resource.
- parentId String
- Parent monitored resource identifier OCID.
- resourceCategory String
- Resource Category to indicate the kind of resource type.
- resourceDisplay StringName 
- Monitored resource display name.
- resourceId String
- Monitored resource identifier OCID.
- resourceName String
- Monitored Resource Name.
- resourceType String
- Monitored Resource Type.
- sourceType String
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state String
- The current state of the Resource.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- compartmentId string
- Compartment Identifier OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- externalId string
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- hostName string
- Monitored Resource Host Name.
- license string
- License edition of the monitored resource.
- parentId string
- Parent monitored resource identifier OCID.
- resourceCategory string
- Resource Category to indicate the kind of resource type.
- resourceDisplay stringName 
- Monitored resource display name.
- resourceId string
- Monitored resource identifier OCID.
- resourceName string
- Monitored Resource Name.
- resourceType string
- Monitored Resource Type.
- sourceType string
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state string
- The current state of the Resource.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- compartment_id str
- Compartment Identifier OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- external_id str
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- host_name str
- Monitored Resource Host Name.
- license str
- License edition of the monitored resource.
- parent_id str
- Parent monitored resource identifier OCID.
- resource_category str
- Resource Category to indicate the kind of resource type.
- resource_display_ strname 
- Monitored resource display name.
- resource_id str
- Monitored resource identifier OCID.
- resource_name str
- Monitored Resource Name.
- resource_type str
- Monitored Resource Type.
- source_type str
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state str
- The current state of the Resource.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- compartmentId String
- Compartment Identifier OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- externalId String
- External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and Oracle Cloud Infrastructure compute instance.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- hostName String
- Monitored Resource Host Name.
- license String
- License edition of the monitored resource.
- parentId String
- Parent monitored resource identifier OCID.
- resourceCategory String
- Resource Category to indicate the kind of resource type.
- resourceDisplay StringName 
- Monitored resource display name.
- resourceId String
- Monitored resource identifier OCID.
- resourceName String
- Monitored Resource Name.
- resourceType String
- Monitored Resource Type.
- sourceType String
- Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state String
- The current state of the Resource.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
Import
MonitoredResourcesListMembers can be imported using the id, e.g.
$ pulumi import oci:StackMonitoring/monitoredResourcesListMember:MonitoredResourcesListMember test_monitored_resources_list_member "id"
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 ociTerraform Provider.