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/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
The MonitoredResourcesListMember resource accepts the following input properties:
- Monitored
Resource 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 stringId - Destination Monitored Resource Identifier OCID.
- Limit
Level int - The field which determines the depth of hierarchy while searching for members.
- Monitored
Resource 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 stringId - Destination Monitored Resource Identifier OCID.
- Limit
Level int - The field which determines the depth of hierarchy while searching for members.
- monitored
Resource 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 StringId - Destination Monitored Resource Identifier OCID.
- limit
Level Integer - The field which determines the depth of hierarchy while searching for members.
- monitored
Resource 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 stringId - Destination Monitored Resource Identifier OCID.
- limit
Level 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.
- monitored
Resource 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 StringId - Destination Monitored Resource Identifier OCID.
- limit
Level 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<Monitored
Resources List Member Item> - List of member resources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Monitored
Resources List Member Item - List of member resources.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Monitored
Resources List Member Item> - List of member resources.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Monitored
Resources List Member Item[] - List of member resources.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[stackmonitoring.
Monitored Resources 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[_stackmonitoring.MonitoredResourcesListMemberItemArgs]] = None,
limit_level: Optional[int] = None,
monitored_resource_id: Optional[str] = None) -> MonitoredResourcesListMember
func 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)
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.
- Destination
Resource stringId - Destination Monitored Resource Identifier OCID.
- Items
List<Monitored
Resources List Member Item> - List of member resources.
- Limit
Level int - The field which determines the depth of hierarchy while searching for members.
- Monitored
Resource 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 stringId - Destination Monitored Resource Identifier OCID.
- Items
[]Monitored
Resources 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 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 StringId - Destination Monitored Resource Identifier OCID.
- items
List<Monitored
Resources List Member Item> - List of member resources.
- limit
Level Integer - The field which determines the depth of hierarchy while searching for members.
- monitored
Resource 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 stringId - Destination Monitored Resource Identifier OCID.
- items
Monitored
Resources List Member Item[] - List of member resources.
- limit
Level number - The field which determines the depth of hierarchy while searching for members.
- monitored
Resource 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[stackmonitoring.
Monitored Resources 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
- destination
Resource StringId - Destination Monitored Resource Identifier OCID.
- items List<Property Map>
- List of member resources.
- limit
Level Number - The field which determines the depth of hierarchy while searching for members.
- monitored
Resource 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
- Compartment
Id string - Compartment Identifier OCID.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- External
Id 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, object>
- 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 string - Monitored Resource Host Name.
- License string
- License edition of the monitored resource.
- Parent
Id string - Parent monitored resource identifier OCID.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Resource
Display stringName - Monitored resource display name.
- Resource
Id string - Monitored resource identifier OCID.
- Resource
Name string - Monitored Resource Name.
- Resource
Type string - Monitored Resource Type.
- Source
Type 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, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Compartment
Id string - Compartment Identifier OCID.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- External
Id 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]interface{}
- 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 string - Monitored Resource Host Name.
- License string
- License edition of the monitored resource.
- Parent
Id string - Parent monitored resource identifier OCID.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Resource
Display stringName - Monitored resource display name.
- Resource
Id string - Monitored resource identifier OCID.
- Resource
Name string - Monitored Resource Name.
- Resource
Type string - Monitored Resource Type.
- Source
Type 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]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id String - Compartment Identifier OCID.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- external
Id 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,Object>
- 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 String - Monitored Resource Host Name.
- license String
- License edition of the monitored resource.
- parent
Id String - Parent monitored resource identifier OCID.
- resource
Category String - Resource Category to indicate the kind of resource type.
- resource
Display StringName - Monitored resource display name.
- resource
Id String - Monitored resource identifier OCID.
- resource
Name String - Monitored Resource Name.
- resource
Type String - Monitored Resource Type.
- source
Type 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,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id string - Compartment Identifier OCID.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- external
Id 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]: any}
- 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 string - Monitored Resource Host Name.
- license string
- License edition of the monitored resource.
- parent
Id string - Parent monitored resource identifier OCID.
- resource
Category string - Resource Category to indicate the kind of resource type.
- resource
Display stringName - Monitored resource display name.
- resource
Id string - Monitored resource identifier OCID.
- resource
Name string - Monitored Resource Name.
- resource
Type string - Monitored Resource Type.
- source
Type 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]: any}
- 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, Any]
- 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, Any]
- 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, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id String - Compartment Identifier OCID.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- external
Id 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<Any>
- 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 String - Monitored Resource Host Name.
- license String
- License edition of the monitored resource.
- parent
Id String - Parent monitored resource identifier OCID.
- resource
Category String - Resource Category to indicate the kind of resource type.
- resource
Display StringName - Monitored resource display name.
- resource
Id String - Monitored resource identifier OCID.
- resource
Name String - Monitored Resource Name.
- resource
Type String - Monitored Resource Type.
- source
Type 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<Any>
- 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
oci
Terraform Provider.