oci.StackMonitoring.MonitoredResourceType
Explore with Pulumi AI
This resource provides the Monitored Resource Type resource in Oracle Cloud Infrastructure Stack Monitoring service.
Creates a new monitored resource type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoredResourceType = new oci.stackmonitoring.MonitoredResourceType("test_monitored_resource_type", {
compartmentId: compartmentId,
name: monitoredResourceTypeName,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: monitoredResourceTypeDescription,
displayName: monitoredResourceTypeDisplayName,
freeformTags: {
"bar-key": "value",
},
metadata: {
format: monitoredResourceTypeMetadataFormat,
agentProperties: monitoredResourceTypeMetadataAgentProperties,
requiredProperties: monitoredResourceTypeMetadataRequiredProperties,
uniquePropertySets: [{
properties: monitoredResourceTypeMetadataUniquePropertySetsProperties,
}],
validPropertiesForCreates: monitoredResourceTypeMetadataValidPropertiesForCreate,
validPropertiesForUpdates: monitoredResourceTypeMetadataValidPropertiesForUpdate,
validPropertyValues: monitoredResourceTypeMetadataValidPropertyValues,
},
metricNamespace: monitoredResourceTypeMetricNamespace,
resourceCategory: monitoredResourceTypeResourceCategory,
sourceType: monitoredResourceTypeSourceType,
});
import pulumi
import pulumi_oci as oci
test_monitored_resource_type = oci.stack_monitoring.MonitoredResourceType("test_monitored_resource_type",
compartment_id=compartment_id,
name=monitored_resource_type_name,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=monitored_resource_type_description,
display_name=monitored_resource_type_display_name,
freeform_tags={
"bar-key": "value",
},
metadata={
"format": monitored_resource_type_metadata_format,
"agent_properties": monitored_resource_type_metadata_agent_properties,
"required_properties": monitored_resource_type_metadata_required_properties,
"unique_property_sets": [{
"properties": monitored_resource_type_metadata_unique_property_sets_properties,
}],
"valid_properties_for_creates": monitored_resource_type_metadata_valid_properties_for_create,
"valid_properties_for_updates": monitored_resource_type_metadata_valid_properties_for_update,
"valid_property_values": monitored_resource_type_metadata_valid_property_values,
},
metric_namespace=monitored_resource_type_metric_namespace,
resource_category=monitored_resource_type_resource_category,
source_type=monitored_resource_type_source_type)
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.NewMonitoredResourceType(ctx, "test_monitored_resource_type", &StackMonitoring.MonitoredResourceTypeArgs{
CompartmentId: pulumi.Any(compartmentId),
Name: pulumi.Any(monitoredResourceTypeName),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(monitoredResourceTypeDescription),
DisplayName: pulumi.Any(monitoredResourceTypeDisplayName),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
Metadata: &stackmonitoring.MonitoredResourceTypeMetadataArgs{
Format: pulumi.Any(monitoredResourceTypeMetadataFormat),
AgentProperties: pulumi.Any(monitoredResourceTypeMetadataAgentProperties),
RequiredProperties: pulumi.Any(monitoredResourceTypeMetadataRequiredProperties),
UniquePropertySets: stackmonitoring.MonitoredResourceTypeMetadataUniquePropertySetArray{
&stackmonitoring.MonitoredResourceTypeMetadataUniquePropertySetArgs{
Properties: pulumi.Any(monitoredResourceTypeMetadataUniquePropertySetsProperties),
},
},
ValidPropertiesForCreates: pulumi.Any(monitoredResourceTypeMetadataValidPropertiesForCreate),
ValidPropertiesForUpdates: pulumi.Any(monitoredResourceTypeMetadataValidPropertiesForUpdate),
ValidPropertyValues: pulumi.Any(monitoredResourceTypeMetadataValidPropertyValues),
},
MetricNamespace: pulumi.Any(monitoredResourceTypeMetricNamespace),
ResourceCategory: pulumi.Any(monitoredResourceTypeResourceCategory),
SourceType: pulumi.Any(monitoredResourceTypeSourceType),
})
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 testMonitoredResourceType = new Oci.StackMonitoring.MonitoredResourceType("test_monitored_resource_type", new()
{
CompartmentId = compartmentId,
Name = monitoredResourceTypeName,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = monitoredResourceTypeDescription,
DisplayName = monitoredResourceTypeDisplayName,
FreeformTags =
{
{ "bar-key", "value" },
},
Metadata = new Oci.StackMonitoring.Inputs.MonitoredResourceTypeMetadataArgs
{
Format = monitoredResourceTypeMetadataFormat,
AgentProperties = monitoredResourceTypeMetadataAgentProperties,
RequiredProperties = monitoredResourceTypeMetadataRequiredProperties,
UniquePropertySets = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTypeMetadataUniquePropertySetArgs
{
Properties = monitoredResourceTypeMetadataUniquePropertySetsProperties,
},
},
ValidPropertiesForCreates = monitoredResourceTypeMetadataValidPropertiesForCreate,
ValidPropertiesForUpdates = monitoredResourceTypeMetadataValidPropertiesForUpdate,
ValidPropertyValues = monitoredResourceTypeMetadataValidPropertyValues,
},
MetricNamespace = monitoredResourceTypeMetricNamespace,
ResourceCategory = monitoredResourceTypeResourceCategory,
SourceType = monitoredResourceTypeSourceType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourceType;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTypeArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTypeMetadataArgs;
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 testMonitoredResourceType = new MonitoredResourceType("testMonitoredResourceType", MonitoredResourceTypeArgs.builder()
.compartmentId(compartmentId)
.name(monitoredResourceTypeName)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(monitoredResourceTypeDescription)
.displayName(monitoredResourceTypeDisplayName)
.freeformTags(Map.of("bar-key", "value"))
.metadata(MonitoredResourceTypeMetadataArgs.builder()
.format(monitoredResourceTypeMetadataFormat)
.agentProperties(monitoredResourceTypeMetadataAgentProperties)
.requiredProperties(monitoredResourceTypeMetadataRequiredProperties)
.uniquePropertySets(MonitoredResourceTypeMetadataUniquePropertySetArgs.builder()
.properties(monitoredResourceTypeMetadataUniquePropertySetsProperties)
.build())
.validPropertiesForCreates(monitoredResourceTypeMetadataValidPropertiesForCreate)
.validPropertiesForUpdates(monitoredResourceTypeMetadataValidPropertiesForUpdate)
.validPropertyValues(monitoredResourceTypeMetadataValidPropertyValues)
.build())
.metricNamespace(monitoredResourceTypeMetricNamespace)
.resourceCategory(monitoredResourceTypeResourceCategory)
.sourceType(monitoredResourceTypeSourceType)
.build());
}
}
resources:
testMonitoredResourceType:
type: oci:StackMonitoring:MonitoredResourceType
name: test_monitored_resource_type
properties:
compartmentId: ${compartmentId}
name: ${monitoredResourceTypeName}
definedTags:
foo-namespace.bar-key: value
description: ${monitoredResourceTypeDescription}
displayName: ${monitoredResourceTypeDisplayName}
freeformTags:
bar-key: value
metadata:
format: ${monitoredResourceTypeMetadataFormat}
agentProperties: ${monitoredResourceTypeMetadataAgentProperties}
requiredProperties: ${monitoredResourceTypeMetadataRequiredProperties}
uniquePropertySets:
- properties: ${monitoredResourceTypeMetadataUniquePropertySetsProperties}
validPropertiesForCreates: ${monitoredResourceTypeMetadataValidPropertiesForCreate}
validPropertiesForUpdates: ${monitoredResourceTypeMetadataValidPropertiesForUpdate}
validPropertyValues: ${monitoredResourceTypeMetadataValidPropertyValues}
metricNamespace: ${monitoredResourceTypeMetricNamespace}
resourceCategory: ${monitoredResourceTypeResourceCategory}
sourceType: ${monitoredResourceTypeSourceType}
Create MonitoredResourceType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredResourceType(name: string, args: MonitoredResourceTypeArgs, opts?: CustomResourceOptions);
@overload
def MonitoredResourceType(resource_name: str,
args: MonitoredResourceTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoredResourceType(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
metadata: Optional[_stackmonitoring.MonitoredResourceTypeMetadataArgs] = None,
metric_namespace: Optional[str] = None,
name: Optional[str] = None,
resource_category: Optional[str] = None,
source_type: Optional[str] = None)
func NewMonitoredResourceType(ctx *Context, name string, args MonitoredResourceTypeArgs, opts ...ResourceOption) (*MonitoredResourceType, error)
public MonitoredResourceType(string name, MonitoredResourceTypeArgs args, CustomResourceOptions? opts = null)
public MonitoredResourceType(String name, MonitoredResourceTypeArgs args)
public MonitoredResourceType(String name, MonitoredResourceTypeArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MonitoredResourceType
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 MonitoredResourceTypeArgs
- 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 MonitoredResourceTypeArgs
- 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 MonitoredResourceTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoredResourceTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoredResourceTypeArgs
- 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 monitoredResourceTypeResource = new Oci.StackMonitoring.MonitoredResourceType("monitoredResourceTypeResource", new()
{
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
Metadata = new Oci.StackMonitoring.Inputs.MonitoredResourceTypeMetadataArgs
{
Format = "string",
AgentProperties = new[]
{
"string",
},
RequiredProperties = new[]
{
"string",
},
UniquePropertySets = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTypeMetadataUniquePropertySetArgs
{
Properties = new[]
{
"string",
},
},
},
ValidPropertiesForCreates = new[]
{
"string",
},
ValidPropertiesForUpdates = new[]
{
"string",
},
ValidPropertyValues =
{
{ "string", "string" },
},
},
MetricNamespace = "string",
Name = "string",
ResourceCategory = "string",
SourceType = "string",
});
example, err := StackMonitoring.NewMonitoredResourceType(ctx, "monitoredResourceTypeResource", &StackMonitoring.MonitoredResourceTypeArgs{
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Metadata: &stackmonitoring.MonitoredResourceTypeMetadataArgs{
Format: pulumi.String("string"),
AgentProperties: pulumi.StringArray{
pulumi.String("string"),
},
RequiredProperties: pulumi.StringArray{
pulumi.String("string"),
},
UniquePropertySets: stackmonitoring.MonitoredResourceTypeMetadataUniquePropertySetArray{
&stackmonitoring.MonitoredResourceTypeMetadataUniquePropertySetArgs{
Properties: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ValidPropertiesForCreates: pulumi.StringArray{
pulumi.String("string"),
},
ValidPropertiesForUpdates: pulumi.StringArray{
pulumi.String("string"),
},
ValidPropertyValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
MetricNamespace: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceCategory: pulumi.String("string"),
SourceType: pulumi.String("string"),
})
var monitoredResourceTypeResource = new MonitoredResourceType("monitoredResourceTypeResource", MonitoredResourceTypeArgs.builder()
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.metadata(MonitoredResourceTypeMetadataArgs.builder()
.format("string")
.agentProperties("string")
.requiredProperties("string")
.uniquePropertySets(MonitoredResourceTypeMetadataUniquePropertySetArgs.builder()
.properties("string")
.build())
.validPropertiesForCreates("string")
.validPropertiesForUpdates("string")
.validPropertyValues(Map.of("string", "string"))
.build())
.metricNamespace("string")
.name("string")
.resourceCategory("string")
.sourceType("string")
.build());
monitored_resource_type_resource = oci.stack_monitoring.MonitoredResourceType("monitoredResourceTypeResource",
compartment_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
metadata=oci.stack_monitoring.MonitoredResourceTypeMetadataArgs(
format="string",
agent_properties=["string"],
required_properties=["string"],
unique_property_sets=[oci.stack_monitoring.MonitoredResourceTypeMetadataUniquePropertySetArgs(
properties=["string"],
)],
valid_properties_for_creates=["string"],
valid_properties_for_updates=["string"],
valid_property_values={
"string": "string",
},
),
metric_namespace="string",
name="string",
resource_category="string",
source_type="string")
const monitoredResourceTypeResource = new oci.stackmonitoring.MonitoredResourceType("monitoredResourceTypeResource", {
compartmentId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
metadata: {
format: "string",
agentProperties: ["string"],
requiredProperties: ["string"],
uniquePropertySets: [{
properties: ["string"],
}],
validPropertiesForCreates: ["string"],
validPropertiesForUpdates: ["string"],
validPropertyValues: {
string: "string",
},
},
metricNamespace: "string",
name: "string",
resourceCategory: "string",
sourceType: "string",
});
type: oci:StackMonitoring:MonitoredResourceType
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
metadata:
agentProperties:
- string
format: string
requiredProperties:
- string
uniquePropertySets:
- properties:
- string
validPropertiesForCreates:
- string
validPropertiesForUpdates:
- string
validPropertyValues:
string: string
metricNamespace: string
name: string
resourceCategory: string
sourceType: string
MonitoredResourceType 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 MonitoredResourceType resource accepts the following input properties:
- Compartment
Id string - The OCID of the tenancy containing the resource type.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A friendly description.
- Display
Name string - (Updatable) Monitored resource type display name.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- Metric
Namespace string - (Updatable) Metric namespace for resource type.
- Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- Source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- Compartment
Id string - The OCID of the tenancy containing the resource type.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A friendly description.
- Display
Name string - (Updatable) Monitored resource type display name.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Metadata
Monitored
Resource Type Metadata Args - (Updatable) The metadata details for resource type.
- Metric
Namespace string - (Updatable) Metric namespace for resource type.
- Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- Source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- compartment
Id String - The OCID of the tenancy containing the resource type.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A friendly description.
- display
Name String - (Updatable) Monitored resource type display name.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- metric
Namespace String - (Updatable) Metric namespace for resource type.
- name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type String (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- compartment
Id string - The OCID of the tenancy containing the resource type.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A friendly description.
- display
Name string - (Updatable) Monitored resource type display name.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- metric
Namespace string - (Updatable) Metric namespace for resource type.
- name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- compartment_
id str - The OCID of the tenancy containing the resource type.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A friendly description.
- display_
name str - (Updatable) Monitored resource type display name.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
stackmonitoring.
Monitored Resource Type Metadata Args - (Updatable) The metadata details for resource type.
- metric_
namespace str - (Updatable) Metric namespace for resource type.
- name str
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource_
category str - (Updatable) Resource Category to indicate the kind of resource type.
- source_
type str (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- compartment
Id String - The OCID of the tenancy containing the resource type.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A friendly description.
- display
Name String - (Updatable) Monitored resource type display name.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata Property Map
- (Updatable) The metadata details for resource type.
- metric
Namespace String - (Updatable) Metric namespace for resource type.
- name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type String (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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 MonitoredResourceType resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Lifecycle state of the monitored resource type.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Lifecycle state of the monitored resource type.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Lifecycle state of the monitored resource type.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- Lifecycle state of the monitored resource type.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- Lifecycle state of the monitored resource type.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Lifecycle state of the monitored resource type.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
Look up Existing MonitoredResourceType Resource
Get an existing MonitoredResourceType 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?: MonitoredResourceTypeState, opts?: CustomResourceOptions): MonitoredResourceType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
metadata: Optional[_stackmonitoring.MonitoredResourceTypeMetadataArgs] = None,
metric_namespace: Optional[str] = None,
name: Optional[str] = None,
resource_category: Optional[str] = None,
source_type: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> MonitoredResourceType
func GetMonitoredResourceType(ctx *Context, name string, id IDInput, state *MonitoredResourceTypeState, opts ...ResourceOption) (*MonitoredResourceType, error)
public static MonitoredResourceType Get(string name, Input<string> id, MonitoredResourceTypeState? state, CustomResourceOptions? opts = null)
public static MonitoredResourceType get(String name, Output<String> id, MonitoredResourceTypeState 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 - The OCID of the tenancy containing the resource type.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A friendly description.
- Display
Name string - (Updatable) Monitored resource type display name.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- Metric
Namespace string - (Updatable) Metric namespace for resource type.
- Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- Source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- State string
- Lifecycle state of the monitored resource type.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- Compartment
Id string - The OCID of the tenancy containing the resource type.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A friendly description.
- Display
Name string - (Updatable) Monitored resource type display name.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Metadata
Monitored
Resource Type Metadata Args - (Updatable) The metadata details for resource type.
- Metric
Namespace string - (Updatable) Metric namespace for resource type.
- Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- Source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- State string
- Lifecycle state of the monitored resource type.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the tenancy containing the resource type.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A friendly description.
- display
Name String - (Updatable) Monitored resource type display name.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- metric
Namespace String - (Updatable) Metric namespace for resource type.
- name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type String (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- state String
- Lifecycle state of the monitored resource type.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- compartment
Id string - The OCID of the tenancy containing the resource type.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A friendly description.
- display
Name string - (Updatable) Monitored resource type display name.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
Monitored
Resource Type Metadata - (Updatable) The metadata details for resource type.
- metric
Namespace string - (Updatable) Metric namespace for resource type.
- name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category string - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type string (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- state string
- Lifecycle state of the monitored resource type.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- compartment_
id str - The OCID of the tenancy containing the resource type.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A friendly description.
- display_
name str - (Updatable) Monitored resource type display name.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata
stackmonitoring.
Monitored Resource Type Metadata Args - (Updatable) The metadata details for resource type.
- metric_
namespace str - (Updatable) Metric namespace for resource type.
- name str
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource_
category str - (Updatable) Resource Category to indicate the kind of resource type.
- source_
type str (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- state str
- Lifecycle state of the monitored resource type.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the tenancy containing the resource type.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A friendly description.
- display
Name String - (Updatable) Monitored resource type display name.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- metadata Property Map
- (Updatable) The metadata details for resource type.
- metric
Namespace String - (Updatable) Metric namespace for resource type.
- name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - (Updatable) Resource Category to indicate the kind of resource type.
- source
Type String (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
** 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
- state String
- Lifecycle state of the monitored resource type.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
Supporting Types
MonitoredResourceTypeMetadata, MonitoredResourceTypeMetadataArgs
- Format string
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- Agent
Properties List<string> - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- Required
Properties List<string> - (Updatable) List of required properties for resource type.
- Unique
Property List<MonitoredSets Resource Type Metadata Unique Property Set> - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- Valid
Properties List<string>For Creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- Valid
Properties List<string>For Updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- Valid
Property Dictionary<string, string>Values - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
- Format string
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- Agent
Properties []string - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- Required
Properties []string - (Updatable) List of required properties for resource type.
- Unique
Property []MonitoredSets Resource Type Metadata Unique Property Set - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- Valid
Properties []stringFor Creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- Valid
Properties []stringFor Updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- Valid
Property map[string]stringValues - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
- format String
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- agent
Properties List<String> - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- required
Properties List<String> - (Updatable) List of required properties for resource type.
- unique
Property List<MonitoredSets Resource Type Metadata Unique Property Set> - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- valid
Properties List<String>For Creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- valid
Properties List<String>For Updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- valid
Property Map<String,String>Values - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
- format string
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- agent
Properties string[] - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- required
Properties string[] - (Updatable) List of required properties for resource type.
- unique
Property MonitoredSets Resource Type Metadata Unique Property Set[] - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- valid
Properties string[]For Creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- valid
Properties string[]For Updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- valid
Property {[key: string]: string}Values - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
- format str
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- agent_
properties Sequence[str] - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- required_
properties Sequence[str] - (Updatable) List of required properties for resource type.
- unique_
property_ Sequence[stackmonitoring.sets Monitored Resource Type Metadata Unique Property Set] - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- valid_
properties_ Sequence[str]for_ creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- valid_
properties_ Sequence[str]for_ updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- valid_
property_ Mapping[str, str]values - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
- format String
- (Updatable) ResourceType metadata format to be used. Currently supports only one format. Possible values - SYSTEM_FORMAT.
- SYSTEM_FORMAT - The resource type metadata is defined in machine friendly format.
- agent
Properties List<String> - (Updatable) List of properties needed by the agent for monitoring the resource. Valid only if resource type is Oracle Cloud Infrastructure management agent based. When specified, these properties are passed to the management agent during resource create or update.
- required
Properties List<String> - (Updatable) List of required properties for resource type.
- unique
Property List<Property Map>Sets - (Updatable) List of property sets used to uniquely identify the resources. This check is made during create or update of stack monitoring resource. The resource has to pass unique check for each set in the list. For example, database can have user, password and SID as one unique set. Another unique set would be user, password and service name.
- valid
Properties List<String>For Creates - (Updatable) List of valid properties for resource type while creating the monitored resource. If resources of this type specifies any other properties during create operation, the operation will fail.
- valid
Properties List<String>For Updates - (Updatable) List of valid properties for resource type while updating the monitored resource. If resources of this type specifies any other properties during update operation, the operation will fail.
- valid
Property Map<String>Values - (Updatable) List of valid values for the properties. This is useful when resource type wants to restrict only certain values for some properties. For instance for 'osType' property, supported values can be restricted to be either Linux or Windows. Example:
{ "osType": "Linux,Windows,Solaris"}
MonitoredResourceTypeMetadataUniquePropertySet, MonitoredResourceTypeMetadataUniquePropertySetArgs
- Properties List<string>
- (Updatable) List of properties.
- Properties []string
- (Updatable) List of properties.
- properties List<String>
- (Updatable) List of properties.
- properties string[]
- (Updatable) List of properties.
- properties Sequence[str]
- (Updatable) List of properties.
- properties List<String>
- (Updatable) List of properties.
Import
MonitoredResourceTypes can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/monitoredResourceType:MonitoredResourceType test_monitored_resource_type "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.