Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.StackMonitoring.getMonitoredResourceType
Explore with Pulumi AI
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:
- Monitored
Resource stringType Id - The OCID of monitored resource type.
- Monitored
Resource stringType Id - The OCID of monitored resource type.
- monitored
Resource StringType Id - The OCID of monitored resource type.
- monitored
Resource stringType Id - The OCID of monitored resource type.
- monitored_
resource_ strtype_ id - The OCID of monitored resource type.
- monitored
Resource StringType Id - The OCID of monitored resource type.
getMonitoredResourceType Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy containing the resource type.
- 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.
- Display
Name string - Monitored resource type display name.
- 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<Get
Monitored Resource Type Metadata> - The metadata details for resource type.
- Metric
Namespace string - Metric namespace for resource type.
- Monitored
Resource stringType Id - Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Source
Type 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.
- 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
- 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.
- Display
Name string - Monitored resource type display name.
- 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
[]Get
Monitored Resource Type Metadata - The metadata details for resource type.
- Metric
Namespace string - Metric namespace for resource type.
- Monitored
Resource stringType Id - Name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Source
Type 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.
- 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>
- 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.
- display
Name String - Monitored resource type display name.
- 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<Get
Monitored Resource Type Metadata> - The metadata details for resource type.
- metric
Namespace String - Metric namespace for resource type.
- monitored
Resource StringType Id - name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - Resource Category to indicate the kind of resource type.
- source
Type 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.
- 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}
- 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.
- display
Name string - Monitored resource type display name.
- {[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
Get
Monitored Resource Type Metadata[] - The metadata details for resource type.
- metric
Namespace string - Metric namespace for resource type.
- monitored
Resource stringType Id - name string
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category string - Resource Category to indicate the kind of resource type.
- source
Type 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.
- {[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]
- 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.
- 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.
Get Monitored Resource Type Metadata] - The metadata details for resource type.
- metric_
namespace str - Metric namespace for resource type.
- monitored_
resource_ strtype_ id - 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.
- 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>
- 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.
- display
Name String - Monitored resource type display name.
- 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.
- metric
Namespace String - Metric namespace for resource type.
- monitored
Resource StringType Id - name String
- A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
- resource
Category String - Resource Category to indicate the kind of resource type.
- source
Type 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.
- 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
GetMonitoredResourceTypeMetadata
- Agent
Properties 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.
- Required
Properties List<string> - List of required properties for resource type.
- Unique
Property List<GetSets Monitored Resource Type Metadata Unique Property Set> - 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 - 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 - 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 - 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 []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.
- Required
Properties []string - List of required properties for resource type.
- Unique
Property []GetSets Monitored Resource Type Metadata Unique Property Set - 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 - 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 - 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 - 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 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.
- required
Properties List<String> - List of required properties for resource type.
- unique
Property List<GetSets Monitored Resource Type Metadata Unique Property Set> - 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 - 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 - 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 - 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 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.
- required
Properties string[] - List of required properties for resource type.
- unique
Property GetSets Monitored Resource Type Metadata Unique Property Set[] - 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 - 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 - 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 - 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_ Sequence[stackmonitoring.sets Get Monitored Resource Type Metadata Unique Property Set] - 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 - 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 - 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 - 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 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.
- required
Properties List<String> - List of required properties for resource type.
- unique
Property List<Property Map>Sets - 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 - 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 - 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 - 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.