1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getMonitoredResourceType
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.StackMonitoring.getMonitoredResourceType

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Monitored Resource Type resource in Oracle Cloud Infrastructure Stack Monitoring service.

    Gets a monitored resource type by identifier OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredResourceType = oci.StackMonitoring.getMonitoredResourceType({
        monitoredResourceTypeId: testMonitoredResourceTypeOciStackMonitoringMonitoredResourceType.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_resource_type = oci.StackMonitoring.get_monitored_resource_type(monitored_resource_type_id=test_monitored_resource_type_oci_stack_monitoring_monitored_resource_type["id"])
    
    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.GetMonitoredResourceType(ctx, &stackmonitoring.GetMonitoredResourceTypeArgs{
    			MonitoredResourceTypeId: testMonitoredResourceTypeOciStackMonitoringMonitoredResourceType.Id,
    		}, nil)
    		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 = Oci.StackMonitoring.GetMonitoredResourceType.Invoke(new()
        {
            MonitoredResourceTypeId = testMonitoredResourceTypeOciStackMonitoringMonitoredResourceType.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
    import com.pulumi.oci.StackMonitoring.inputs.GetMonitoredResourceTypeArgs;
    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) {
            final var testMonitoredResourceType = StackMonitoringFunctions.getMonitoredResourceType(GetMonitoredResourceTypeArgs.builder()
                .monitoredResourceTypeId(testMonitoredResourceTypeOciStackMonitoringMonitoredResourceType.id())
                .build());
    
        }
    }
    
    variables:
      testMonitoredResourceType:
        fn::invoke:
          Function: oci:StackMonitoring:getMonitoredResourceType
          Arguments:
            monitoredResourceTypeId: ${testMonitoredResourceTypeOciStackMonitoringMonitoredResourceType.id}
    

    Using getMonitoredResourceType

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMonitoredResourceType(args: GetMonitoredResourceTypeArgs, opts?: InvokeOptions): Promise<GetMonitoredResourceTypeResult>
    function getMonitoredResourceTypeOutput(args: GetMonitoredResourceTypeOutputArgs, opts?: InvokeOptions): Output<GetMonitoredResourceTypeResult>
    def get_monitored_resource_type(monitored_resource_type_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetMonitoredResourceTypeResult
    def get_monitored_resource_type_output(monitored_resource_type_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetMonitoredResourceTypeResult]
    func GetMonitoredResourceType(ctx *Context, args *GetMonitoredResourceTypeArgs, opts ...InvokeOption) (*GetMonitoredResourceTypeResult, error)
    func GetMonitoredResourceTypeOutput(ctx *Context, args *GetMonitoredResourceTypeOutputArgs, opts ...InvokeOption) GetMonitoredResourceTypeResultOutput

    > Note: This function is named GetMonitoredResourceType in the Go SDK.

    public static class GetMonitoredResourceType 
    {
        public static Task<GetMonitoredResourceTypeResult> InvokeAsync(GetMonitoredResourceTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitoredResourceTypeResult> Invoke(GetMonitoredResourceTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitoredResourceTypeResult> getMonitoredResourceType(GetMonitoredResourceTypeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:StackMonitoring/getMonitoredResourceType:getMonitoredResourceType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MonitoredResourceTypeId string
    The OCID of monitored resource type.
    MonitoredResourceTypeId string
    The OCID of monitored resource type.
    monitoredResourceTypeId String
    The OCID of monitored resource type.
    monitoredResourceTypeId string
    The OCID of monitored resource type.
    monitored_resource_type_id str
    The OCID of monitored resource type.
    monitoredResourceTypeId String
    The OCID of monitored resource type.

    getMonitoredResourceType Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy containing the resource type.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A friendly description.
    DisplayName string
    Monitored resource type display name.
    FreeformTags 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"}
    Id string
    Monitored resource type identifier OCID.
    Metadatas List<GetMonitoredResourceTypeMetadata>
    The metadata details for resource type.
    MetricNamespace string
    Metric namespace for resource type.
    MonitoredResourceTypeId string
    Name string
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    ResourceCategory string
    Resource Category to indicate the kind of resource type.
    SourceType string
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    State string
    Lifecycle state of the monitored resource type.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
    CompartmentId string
    The OCID of the tenancy containing the resource type.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A friendly description.
    DisplayName string
    Monitored resource type display name.
    FreeformTags 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"}
    Id string
    Monitored resource type identifier OCID.
    Metadatas []GetMonitoredResourceTypeMetadata
    The metadata details for resource type.
    MetricNamespace string
    Metric namespace for resource type.
    MonitoredResourceTypeId string
    Name string
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    ResourceCategory string
    Resource Category to indicate the kind of resource type.
    SourceType string
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    State string
    Lifecycle state of the monitored resource type.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
    compartmentId String
    The OCID of the tenancy containing the resource type.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A friendly description.
    displayName String
    Monitored resource type display name.
    freeformTags 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"}
    id String
    Monitored resource type identifier OCID.
    metadatas List<GetMonitoredResourceTypeMetadata>
    The metadata details for resource type.
    metricNamespace String
    Metric namespace for resource type.
    monitoredResourceTypeId String
    name String
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    resourceCategory String
    Resource Category to indicate the kind of resource type.
    sourceType String
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    state String
    Lifecycle state of the monitored resource type.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
    compartmentId string
    The OCID of the tenancy containing the resource type.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    A friendly description.
    displayName string
    Monitored resource type display name.
    freeformTags {[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"}
    id string
    Monitored resource type identifier OCID.
    metadatas GetMonitoredResourceTypeMetadata[]
    The metadata details for resource type.
    metricNamespace string
    Metric namespace for resource type.
    monitoredResourceTypeId string
    name string
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    resourceCategory string
    Resource Category to indicate the kind of resource type.
    sourceType string
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    state string
    Lifecycle state of the monitored resource type.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    A friendly description.
    display_name str
    Monitored resource type display name.
    freeform_tags 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"}
    id str
    Monitored resource type identifier OCID.
    metadatas Sequence[stackmonitoring.GetMonitoredResourceTypeMetadata]
    The metadata details for resource type.
    metric_namespace str
    Metric namespace for resource type.
    monitored_resource_type_id str
    name str
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    resource_category str
    Resource Category to indicate the kind of resource type.
    source_type str
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    state str
    Lifecycle state of the monitored resource type.
    system_tags 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.
    compartmentId String
    The OCID of the tenancy containing the resource type.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A friendly description.
    displayName String
    Monitored resource type display name.
    freeformTags 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"}
    id String
    Monitored resource type identifier OCID.
    metadatas List<Property Map>
    The metadata details for resource type.
    metricNamespace String
    Metric namespace for resource type.
    monitoredResourceTypeId String
    name String
    A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
    resourceCategory String
    Resource Category to indicate the kind of resource type.
    sourceType String
    Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
    state String
    Lifecycle state of the monitored resource type.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.

    Supporting Types

    GetMonitoredResourceTypeMetadata

    AgentProperties List<string>
    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.
    Format string
    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.
    RequiredProperties List<string>
    List of required properties for resource type.
    UniquePropertySets List<GetMonitoredResourceTypeMetadataUniquePropertySet>
    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.
    ValidPropertiesForCreates List<string>
    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.
    ValidPropertiesForUpdates List<string>
    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.
    ValidPropertyValues Dictionary<string, string>
    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", "osVersion": "v6.0,v7.0"}
    AgentProperties []string
    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.
    Format string
    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.
    RequiredProperties []string
    List of required properties for resource type.
    UniquePropertySets []GetMonitoredResourceTypeMetadataUniquePropertySet
    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.
    ValidPropertiesForCreates []string
    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.
    ValidPropertiesForUpdates []string
    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.
    ValidPropertyValues map[string]string
    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", "osVersion": "v6.0,v7.0"}
    agentProperties List<String>
    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.
    format String
    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.
    requiredProperties List<String>
    List of required properties for resource type.
    uniquePropertySets List<GetMonitoredResourceTypeMetadataUniquePropertySet>
    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.
    validPropertiesForCreates List<String>
    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.
    validPropertiesForUpdates List<String>
    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.
    validPropertyValues Map<String,String>
    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", "osVersion": "v6.0,v7.0"}
    agentProperties string[]
    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.
    format string
    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.
    requiredProperties string[]
    List of required properties for resource type.
    uniquePropertySets GetMonitoredResourceTypeMetadataUniquePropertySet[]
    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.
    validPropertiesForCreates string[]
    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.
    validPropertiesForUpdates string[]
    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.
    validPropertyValues {[key: string]: string}
    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", "osVersion": "v6.0,v7.0"}
    agent_properties Sequence[str]
    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.
    format str
    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.
    required_properties Sequence[str]
    List of required properties for resource type.
    unique_property_sets Sequence[stackmonitoring.GetMonitoredResourceTypeMetadataUniquePropertySet]
    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_for_creates Sequence[str]
    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_for_updates Sequence[str]
    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_values Mapping[str, str]
    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", "osVersion": "v6.0,v7.0"}
    agentProperties List<String>
    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.
    format String
    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.
    requiredProperties List<String>
    List of required properties for resource type.
    uniquePropertySets List<Property Map>
    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.
    validPropertiesForCreates List<String>
    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.
    validPropertiesForUpdates List<String>
    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.
    validPropertyValues Map<String>
    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", "osVersion": "v6.0,v7.0"}

    GetMonitoredResourceTypeMetadataUniquePropertySet

    Properties List<string>
    List of properties.
    Properties []string
    List of properties.
    properties List<String>
    List of properties.
    properties string[]
    List of properties.
    properties Sequence[str]
    List of properties.
    properties List<String>
    List of properties.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi