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

oci.StackMonitoring.MonitoredResource

Explore with Pulumi AI

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

    This resource provides the Monitored Resource resource in Oracle Cloud Infrastructure Stack Monitoring service.

    Creates a new monitored resource for the given resource type with the details and submits a work request for promoting the resource to agent. Once the resource is successfully added to agent, resource state will be marked active.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredResource = new oci.stackmonitoring.MonitoredResource("test_monitored_resource", {
        compartmentId: compartmentId,
        name: monitoredResourceName,
        type: monitoredResourceType,
        additionalAliases: [{
            credential: {
                name: monitoredResourceAdditionalAliasesCredentialName,
                service: monitoredResourceAdditionalAliasesCredentialService,
                source: monitoredResourceAdditionalAliasesCredentialSource,
            },
            name: monitoredResourceAdditionalAliasesName,
            source: monitoredResourceAdditionalAliasesSource,
        }],
        additionalCredentials: [{
            credentialType: monitoredResourceAdditionalCredentialsCredentialType,
            description: monitoredResourceAdditionalCredentialsDescription,
            keyId: testKey.id,
            name: monitoredResourceAdditionalCredentialsName,
            properties: [{
                name: monitoredResourceAdditionalCredentialsPropertiesName,
                value: monitoredResourceAdditionalCredentialsPropertiesValue,
            }],
            source: monitoredResourceAdditionalCredentialsSource,
            type: monitoredResourceAdditionalCredentialsType,
        }],
        aliases: {
            credential: {
                name: monitoredResourceAliasesCredentialName,
                service: monitoredResourceAliasesCredentialService,
                source: monitoredResourceAliasesCredentialSource,
            },
            name: monitoredResourceAliasesName,
            source: monitoredResourceAliasesSource,
        },
        credentials: {
            credentialType: monitoredResourceCredentialsCredentialType,
            description: monitoredResourceCredentialsDescription,
            keyId: monitoredResourceCredentialsKeyId,
            name: monitoredResourceCredentialsName,
            properties: [{
                name: monitoredResourceCredentialsPropertiesName,
                value: monitoredResourceCredentialsPropertiesValue,
            }],
            source: monitoredResourceCredentialsSource,
            type: monitoredResourceCredentialsType,
        },
        databaseConnectionDetails: {
            port: monitoredResourceDatabaseConnectionDetailsPort,
            protocol: monitoredResourceDatabaseConnectionDetailsProtocol,
            serviceName: monitoredResourceDatabaseServiceName,
            connectorId: monitoredResourceDatabaseConnectorId,
            dbId: monitoredResourceDatabaseId,
            dbUniqueName: monitoredResourceDatabaseConnectionDetailsDbUniqueName,
            sslSecretId: testSecret.id,
        },
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        displayName: monitoredResourceDisplayName,
        externalResourceId: monitoredResourceExternalResourceId,
        externalId: testExternal.id,
        freeformTags: {
            "bar-key": "value",
        },
        hostName: monitoredResourceHostName,
        license: monitoredResourceLicense,
        managementAgentId: testManagementAgent.id,
        properties: [{
            name: monitoredResourcePropertiesName,
            value: monitoredResourcePropertiesValue,
        }],
        resourceTimeZone: monitoredResourceResourceTimeZone,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_resource = oci.stack_monitoring.MonitoredResource("test_monitored_resource",
        compartment_id=compartment_id,
        name=monitored_resource_name,
        type=monitored_resource_type,
        additional_aliases=[{
            "credential": {
                "name": monitored_resource_additional_aliases_credential_name,
                "service": monitored_resource_additional_aliases_credential_service,
                "source": monitored_resource_additional_aliases_credential_source,
            },
            "name": monitored_resource_additional_aliases_name,
            "source": monitored_resource_additional_aliases_source,
        }],
        additional_credentials=[{
            "credential_type": monitored_resource_additional_credentials_credential_type,
            "description": monitored_resource_additional_credentials_description,
            "key_id": test_key["id"],
            "name": monitored_resource_additional_credentials_name,
            "properties": [{
                "name": monitored_resource_additional_credentials_properties_name,
                "value": monitored_resource_additional_credentials_properties_value,
            }],
            "source": monitored_resource_additional_credentials_source,
            "type": monitored_resource_additional_credentials_type,
        }],
        aliases={
            "credential": {
                "name": monitored_resource_aliases_credential_name,
                "service": monitored_resource_aliases_credential_service,
                "source": monitored_resource_aliases_credential_source,
            },
            "name": monitored_resource_aliases_name,
            "source": monitored_resource_aliases_source,
        },
        credentials={
            "credential_type": monitored_resource_credentials_credential_type,
            "description": monitored_resource_credentials_description,
            "key_id": monitored_resource_credentials_key_id,
            "name": monitored_resource_credentials_name,
            "properties": [{
                "name": monitored_resource_credentials_properties_name,
                "value": monitored_resource_credentials_properties_value,
            }],
            "source": monitored_resource_credentials_source,
            "type": monitored_resource_credentials_type,
        },
        database_connection_details={
            "port": monitored_resource_database_connection_details_port,
            "protocol": monitored_resource_database_connection_details_protocol,
            "service_name": monitored_resource_database_service_name,
            "connector_id": monitored_resource_database_connector_id,
            "db_id": monitored_resource_database_id,
            "db_unique_name": monitored_resource_database_connection_details_db_unique_name,
            "ssl_secret_id": test_secret["id"],
        },
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        display_name=monitored_resource_display_name,
        external_resource_id=monitored_resource_external_resource_id,
        external_id=test_external["id"],
        freeform_tags={
            "bar-key": "value",
        },
        host_name=monitored_resource_host_name,
        license=monitored_resource_license,
        management_agent_id=test_management_agent["id"],
        properties=[{
            "name": monitored_resource_properties_name,
            "value": monitored_resource_properties_value,
        }],
        resource_time_zone=monitored_resource_resource_time_zone)
    
    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.NewMonitoredResource(ctx, "test_monitored_resource", &StackMonitoring.MonitoredResourceArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Name:          pulumi.Any(monitoredResourceName),
    			Type:          pulumi.Any(monitoredResourceType),
    			AdditionalAliases: stackmonitoring.MonitoredResourceAdditionalAliasArray{
    				&stackmonitoring.MonitoredResourceAdditionalAliasArgs{
    					Credential: &stackmonitoring.MonitoredResourceAdditionalAliasCredentialArgs{
    						Name:    pulumi.Any(monitoredResourceAdditionalAliasesCredentialName),
    						Service: pulumi.Any(monitoredResourceAdditionalAliasesCredentialService),
    						Source:  pulumi.Any(monitoredResourceAdditionalAliasesCredentialSource),
    					},
    					Name:   pulumi.Any(monitoredResourceAdditionalAliasesName),
    					Source: pulumi.Any(monitoredResourceAdditionalAliasesSource),
    				},
    			},
    			AdditionalCredentials: stackmonitoring.MonitoredResourceAdditionalCredentialArray{
    				&stackmonitoring.MonitoredResourceAdditionalCredentialArgs{
    					CredentialType: pulumi.Any(monitoredResourceAdditionalCredentialsCredentialType),
    					Description:    pulumi.Any(monitoredResourceAdditionalCredentialsDescription),
    					KeyId:          pulumi.Any(testKey.Id),
    					Name:           pulumi.Any(monitoredResourceAdditionalCredentialsName),
    					Properties: stackmonitoring.MonitoredResourceAdditionalCredentialPropertyArray{
    						&stackmonitoring.MonitoredResourceAdditionalCredentialPropertyArgs{
    							Name:  pulumi.Any(monitoredResourceAdditionalCredentialsPropertiesName),
    							Value: pulumi.Any(monitoredResourceAdditionalCredentialsPropertiesValue),
    						},
    					},
    					Source: pulumi.Any(monitoredResourceAdditionalCredentialsSource),
    					Type:   pulumi.Any(monitoredResourceAdditionalCredentialsType),
    				},
    			},
    			Aliases: &stackmonitoring.MonitoredResourceAliasesArgs{
    				Credential: &stackmonitoring.MonitoredResourceAliasesCredentialArgs{
    					Name:    pulumi.Any(monitoredResourceAliasesCredentialName),
    					Service: pulumi.Any(monitoredResourceAliasesCredentialService),
    					Source:  pulumi.Any(monitoredResourceAliasesCredentialSource),
    				},
    				Name:   pulumi.Any(monitoredResourceAliasesName),
    				Source: pulumi.Any(monitoredResourceAliasesSource),
    			},
    			Credentials: &stackmonitoring.MonitoredResourceCredentialsArgs{
    				CredentialType: pulumi.Any(monitoredResourceCredentialsCredentialType),
    				Description:    pulumi.Any(monitoredResourceCredentialsDescription),
    				KeyId:          pulumi.Any(monitoredResourceCredentialsKeyId),
    				Name:           pulumi.Any(monitoredResourceCredentialsName),
    				Properties: stackmonitoring.MonitoredResourceCredentialsPropertyArray{
    					&stackmonitoring.MonitoredResourceCredentialsPropertyArgs{
    						Name:  pulumi.Any(monitoredResourceCredentialsPropertiesName),
    						Value: pulumi.Any(monitoredResourceCredentialsPropertiesValue),
    					},
    				},
    				Source: pulumi.Any(monitoredResourceCredentialsSource),
    				Type:   pulumi.Any(monitoredResourceCredentialsType),
    			},
    			DatabaseConnectionDetails: &stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs{
    				Port:         pulumi.Any(monitoredResourceDatabaseConnectionDetailsPort),
    				Protocol:     pulumi.Any(monitoredResourceDatabaseConnectionDetailsProtocol),
    				ServiceName:  pulumi.Any(monitoredResourceDatabaseServiceName),
    				ConnectorId:  pulumi.Any(monitoredResourceDatabaseConnectorId),
    				DbId:         pulumi.Any(monitoredResourceDatabaseId),
    				DbUniqueName: pulumi.Any(monitoredResourceDatabaseConnectionDetailsDbUniqueName),
    				SslSecretId:  pulumi.Any(testSecret.Id),
    			},
    			DefinedTags: pulumi.StringMap{
    				"foo-namespace.bar-key": pulumi.String("value"),
    			},
    			DisplayName:        pulumi.Any(monitoredResourceDisplayName),
    			ExternalResourceId: pulumi.Any(monitoredResourceExternalResourceId),
    			ExternalId:         pulumi.Any(testExternal.Id),
    			FreeformTags: pulumi.StringMap{
    				"bar-key": pulumi.String("value"),
    			},
    			HostName:          pulumi.Any(monitoredResourceHostName),
    			License:           pulumi.Any(monitoredResourceLicense),
    			ManagementAgentId: pulumi.Any(testManagementAgent.Id),
    			Properties: stackmonitoring.MonitoredResourcePropertyArray{
    				&stackmonitoring.MonitoredResourcePropertyArgs{
    					Name:  pulumi.Any(monitoredResourcePropertiesName),
    					Value: pulumi.Any(monitoredResourcePropertiesValue),
    				},
    			},
    			ResourceTimeZone: pulumi.Any(monitoredResourceResourceTimeZone),
    		})
    		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 testMonitoredResource = new Oci.StackMonitoring.MonitoredResource("test_monitored_resource", new()
        {
            CompartmentId = compartmentId,
            Name = monitoredResourceName,
            Type = monitoredResourceType,
            AdditionalAliases = new[]
            {
                new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalAliasArgs
                {
                    Credential = new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalAliasCredentialArgs
                    {
                        Name = monitoredResourceAdditionalAliasesCredentialName,
                        Service = monitoredResourceAdditionalAliasesCredentialService,
                        Source = monitoredResourceAdditionalAliasesCredentialSource,
                    },
                    Name = monitoredResourceAdditionalAliasesName,
                    Source = monitoredResourceAdditionalAliasesSource,
                },
            },
            AdditionalCredentials = new[]
            {
                new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalCredentialArgs
                {
                    CredentialType = monitoredResourceAdditionalCredentialsCredentialType,
                    Description = monitoredResourceAdditionalCredentialsDescription,
                    KeyId = testKey.Id,
                    Name = monitoredResourceAdditionalCredentialsName,
                    Properties = new[]
                    {
                        new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalCredentialPropertyArgs
                        {
                            Name = monitoredResourceAdditionalCredentialsPropertiesName,
                            Value = monitoredResourceAdditionalCredentialsPropertiesValue,
                        },
                    },
                    Source = monitoredResourceAdditionalCredentialsSource,
                    Type = monitoredResourceAdditionalCredentialsType,
                },
            },
            Aliases = new Oci.StackMonitoring.Inputs.MonitoredResourceAliasesArgs
            {
                Credential = new Oci.StackMonitoring.Inputs.MonitoredResourceAliasesCredentialArgs
                {
                    Name = monitoredResourceAliasesCredentialName,
                    Service = monitoredResourceAliasesCredentialService,
                    Source = monitoredResourceAliasesCredentialSource,
                },
                Name = monitoredResourceAliasesName,
                Source = monitoredResourceAliasesSource,
            },
            Credentials = new Oci.StackMonitoring.Inputs.MonitoredResourceCredentialsArgs
            {
                CredentialType = monitoredResourceCredentialsCredentialType,
                Description = monitoredResourceCredentialsDescription,
                KeyId = monitoredResourceCredentialsKeyId,
                Name = monitoredResourceCredentialsName,
                Properties = new[]
                {
                    new Oci.StackMonitoring.Inputs.MonitoredResourceCredentialsPropertyArgs
                    {
                        Name = monitoredResourceCredentialsPropertiesName,
                        Value = monitoredResourceCredentialsPropertiesValue,
                    },
                },
                Source = monitoredResourceCredentialsSource,
                Type = monitoredResourceCredentialsType,
            },
            DatabaseConnectionDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceDatabaseConnectionDetailsArgs
            {
                Port = monitoredResourceDatabaseConnectionDetailsPort,
                Protocol = monitoredResourceDatabaseConnectionDetailsProtocol,
                ServiceName = monitoredResourceDatabaseServiceName,
                ConnectorId = monitoredResourceDatabaseConnectorId,
                DbId = monitoredResourceDatabaseId,
                DbUniqueName = monitoredResourceDatabaseConnectionDetailsDbUniqueName,
                SslSecretId = testSecret.Id,
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            DisplayName = monitoredResourceDisplayName,
            ExternalResourceId = monitoredResourceExternalResourceId,
            ExternalId = testExternal.Id,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            HostName = monitoredResourceHostName,
            License = monitoredResourceLicense,
            ManagementAgentId = testManagementAgent.Id,
            Properties = new[]
            {
                new Oci.StackMonitoring.Inputs.MonitoredResourcePropertyArgs
                {
                    Name = monitoredResourcePropertiesName,
                    Value = monitoredResourcePropertiesValue,
                },
            },
            ResourceTimeZone = monitoredResourceResourceTimeZone,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.StackMonitoring.MonitoredResource;
    import com.pulumi.oci.StackMonitoring.MonitoredResourceArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceAdditionalAliasArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceAdditionalAliasCredentialArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceAdditionalCredentialArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceAliasesArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceAliasesCredentialArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceCredentialsArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceDatabaseConnectionDetailsArgs;
    import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourcePropertyArgs;
    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 testMonitoredResource = new MonitoredResource("testMonitoredResource", MonitoredResourceArgs.builder()
                .compartmentId(compartmentId)
                .name(monitoredResourceName)
                .type(monitoredResourceType)
                .additionalAliases(MonitoredResourceAdditionalAliasArgs.builder()
                    .credential(MonitoredResourceAdditionalAliasCredentialArgs.builder()
                        .name(monitoredResourceAdditionalAliasesCredentialName)
                        .service(monitoredResourceAdditionalAliasesCredentialService)
                        .source(monitoredResourceAdditionalAliasesCredentialSource)
                        .build())
                    .name(monitoredResourceAdditionalAliasesName)
                    .source(monitoredResourceAdditionalAliasesSource)
                    .build())
                .additionalCredentials(MonitoredResourceAdditionalCredentialArgs.builder()
                    .credentialType(monitoredResourceAdditionalCredentialsCredentialType)
                    .description(monitoredResourceAdditionalCredentialsDescription)
                    .keyId(testKey.id())
                    .name(monitoredResourceAdditionalCredentialsName)
                    .properties(MonitoredResourceAdditionalCredentialPropertyArgs.builder()
                        .name(monitoredResourceAdditionalCredentialsPropertiesName)
                        .value(monitoredResourceAdditionalCredentialsPropertiesValue)
                        .build())
                    .source(monitoredResourceAdditionalCredentialsSource)
                    .type(monitoredResourceAdditionalCredentialsType)
                    .build())
                .aliases(MonitoredResourceAliasesArgs.builder()
                    .credential(MonitoredResourceAliasesCredentialArgs.builder()
                        .name(monitoredResourceAliasesCredentialName)
                        .service(monitoredResourceAliasesCredentialService)
                        .source(monitoredResourceAliasesCredentialSource)
                        .build())
                    .name(monitoredResourceAliasesName)
                    .source(monitoredResourceAliasesSource)
                    .build())
                .credentials(MonitoredResourceCredentialsArgs.builder()
                    .credentialType(monitoredResourceCredentialsCredentialType)
                    .description(monitoredResourceCredentialsDescription)
                    .keyId(monitoredResourceCredentialsKeyId)
                    .name(monitoredResourceCredentialsName)
                    .properties(MonitoredResourceCredentialsPropertyArgs.builder()
                        .name(monitoredResourceCredentialsPropertiesName)
                        .value(monitoredResourceCredentialsPropertiesValue)
                        .build())
                    .source(monitoredResourceCredentialsSource)
                    .type(monitoredResourceCredentialsType)
                    .build())
                .databaseConnectionDetails(MonitoredResourceDatabaseConnectionDetailsArgs.builder()
                    .port(monitoredResourceDatabaseConnectionDetailsPort)
                    .protocol(monitoredResourceDatabaseConnectionDetailsProtocol)
                    .serviceName(monitoredResourceDatabaseServiceName)
                    .connectorId(monitoredResourceDatabaseConnectorId)
                    .dbId(monitoredResourceDatabaseId)
                    .dbUniqueName(monitoredResourceDatabaseConnectionDetailsDbUniqueName)
                    .sslSecretId(testSecret.id())
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .displayName(monitoredResourceDisplayName)
                .externalResourceId(monitoredResourceExternalResourceId)
                .externalId(testExternal.id())
                .freeformTags(Map.of("bar-key", "value"))
                .hostName(monitoredResourceHostName)
                .license(monitoredResourceLicense)
                .managementAgentId(testManagementAgent.id())
                .properties(MonitoredResourcePropertyArgs.builder()
                    .name(monitoredResourcePropertiesName)
                    .value(monitoredResourcePropertiesValue)
                    .build())
                .resourceTimeZone(monitoredResourceResourceTimeZone)
                .build());
    
        }
    }
    
    resources:
      testMonitoredResource:
        type: oci:StackMonitoring:MonitoredResource
        name: test_monitored_resource
        properties:
          compartmentId: ${compartmentId}
          name: ${monitoredResourceName}
          type: ${monitoredResourceType}
          additionalAliases:
            - credential:
                name: ${monitoredResourceAdditionalAliasesCredentialName}
                service: ${monitoredResourceAdditionalAliasesCredentialService}
                source: ${monitoredResourceAdditionalAliasesCredentialSource}
              name: ${monitoredResourceAdditionalAliasesName}
              source: ${monitoredResourceAdditionalAliasesSource}
          additionalCredentials:
            - credentialType: ${monitoredResourceAdditionalCredentialsCredentialType}
              description: ${monitoredResourceAdditionalCredentialsDescription}
              keyId: ${testKey.id}
              name: ${monitoredResourceAdditionalCredentialsName}
              properties:
                - name: ${monitoredResourceAdditionalCredentialsPropertiesName}
                  value: ${monitoredResourceAdditionalCredentialsPropertiesValue}
              source: ${monitoredResourceAdditionalCredentialsSource}
              type: ${monitoredResourceAdditionalCredentialsType}
          aliases:
            credential:
              name: ${monitoredResourceAliasesCredentialName}
              service: ${monitoredResourceAliasesCredentialService}
              source: ${monitoredResourceAliasesCredentialSource}
            name: ${monitoredResourceAliasesName}
            source: ${monitoredResourceAliasesSource}
          credentials:
            credentialType: ${monitoredResourceCredentialsCredentialType}
            description: ${monitoredResourceCredentialsDescription}
            keyId: ${monitoredResourceCredentialsKeyId}
            name: ${monitoredResourceCredentialsName}
            properties:
              - name: ${monitoredResourceCredentialsPropertiesName}
                value: ${monitoredResourceCredentialsPropertiesValue}
            source: ${monitoredResourceCredentialsSource}
            type: ${monitoredResourceCredentialsType}
          databaseConnectionDetails:
            port: ${monitoredResourceDatabaseConnectionDetailsPort}
            protocol: ${monitoredResourceDatabaseConnectionDetailsProtocol}
            serviceName: ${monitoredResourceDatabaseServiceName}
            connectorId: ${monitoredResourceDatabaseConnectorId}
            dbId: ${monitoredResourceDatabaseId}
            dbUniqueName: ${monitoredResourceDatabaseConnectionDetailsDbUniqueName}
            sslSecretId: ${testSecret.id}
          definedTags:
            foo-namespace.bar-key: value
          displayName: ${monitoredResourceDisplayName}
          externalResourceId: ${monitoredResourceExternalResourceId}
          externalId: ${testExternal.id}
          freeformTags:
            bar-key: value
          hostName: ${monitoredResourceHostName}
          license: ${monitoredResourceLicense}
          managementAgentId: ${testManagementAgent.id}
          properties:
            - name: ${monitoredResourcePropertiesName}
              value: ${monitoredResourcePropertiesValue}
          resourceTimeZone: ${monitoredResourceResourceTimeZone}
    

    Create MonitoredResource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitoredResource(name: string, args: MonitoredResourceArgs, opts?: CustomResourceOptions);
    @overload
    def MonitoredResource(resource_name: str,
                          args: MonitoredResourceArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitoredResource(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          compartment_id: Optional[str] = None,
                          type: Optional[str] = None,
                          external_id: Optional[str] = None,
                          external_resource_id: Optional[str] = None,
                          credentials: Optional[_stackmonitoring.MonitoredResourceCredentialsArgs] = None,
                          database_connection_details: Optional[_stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs] = None,
                          defined_tags: Optional[Mapping[str, str]] = None,
                          display_name: Optional[str] = None,
                          additional_aliases: Optional[Sequence[_stackmonitoring.MonitoredResourceAdditionalAliasArgs]] = None,
                          aliases: Optional[_stackmonitoring.MonitoredResourceAliasesArgs] = None,
                          freeform_tags: Optional[Mapping[str, str]] = None,
                          host_name: Optional[str] = None,
                          license: Optional[str] = None,
                          management_agent_id: Optional[str] = None,
                          name: Optional[str] = None,
                          properties: Optional[Sequence[_stackmonitoring.MonitoredResourcePropertyArgs]] = None,
                          resource_time_zone: Optional[str] = None,
                          additional_credentials: Optional[Sequence[_stackmonitoring.MonitoredResourceAdditionalCredentialArgs]] = None)
    func NewMonitoredResource(ctx *Context, name string, args MonitoredResourceArgs, opts ...ResourceOption) (*MonitoredResource, error)
    public MonitoredResource(string name, MonitoredResourceArgs args, CustomResourceOptions? opts = null)
    public MonitoredResource(String name, MonitoredResourceArgs args)
    public MonitoredResource(String name, MonitoredResourceArgs args, CustomResourceOptions options)
    
    type: oci:StackMonitoring:MonitoredResource
    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 MonitoredResourceArgs
    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 MonitoredResourceArgs
    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 MonitoredResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitoredResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitoredResourceArgs
    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 monitoredResourceResource = new Oci.StackMonitoring.MonitoredResource("monitoredResourceResource", new()
    {
        CompartmentId = "string",
        Type = "string",
        ExternalId = "string",
        ExternalResourceId = "string",
        Credentials = new Oci.StackMonitoring.Inputs.MonitoredResourceCredentialsArgs
        {
            CredentialType = "string",
            Description = "string",
            KeyId = "string",
            Name = "string",
            Properties = new[]
            {
                new Oci.StackMonitoring.Inputs.MonitoredResourceCredentialsPropertyArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            Source = "string",
            Type = "string",
        },
        DatabaseConnectionDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceDatabaseConnectionDetailsArgs
        {
            Port = 0,
            Protocol = "string",
            ServiceName = "string",
            ConnectorId = "string",
            DbId = "string",
            DbUniqueName = "string",
            SslSecretId = "string",
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        AdditionalAliases = new[]
        {
            new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalAliasArgs
            {
                Credential = new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalAliasCredentialArgs
                {
                    Name = "string",
                    Service = "string",
                    Source = "string",
                },
                Name = "string",
                Source = "string",
            },
        },
        Aliases = new Oci.StackMonitoring.Inputs.MonitoredResourceAliasesArgs
        {
            Credential = new Oci.StackMonitoring.Inputs.MonitoredResourceAliasesCredentialArgs
            {
                Name = "string",
                Service = "string",
                Source = "string",
            },
            Name = "string",
            Source = "string",
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        HostName = "string",
        License = "string",
        ManagementAgentId = "string",
        Name = "string",
        Properties = new[]
        {
            new Oci.StackMonitoring.Inputs.MonitoredResourcePropertyArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        ResourceTimeZone = "string",
        AdditionalCredentials = new[]
        {
            new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalCredentialArgs
            {
                CredentialType = "string",
                Description = "string",
                KeyId = "string",
                Name = "string",
                Properties = new[]
                {
                    new Oci.StackMonitoring.Inputs.MonitoredResourceAdditionalCredentialPropertyArgs
                    {
                        Name = "string",
                        Value = "string",
                    },
                },
                Source = "string",
                Type = "string",
            },
        },
    });
    
    example, err := StackMonitoring.NewMonitoredResource(ctx, "monitoredResourceResource", &StackMonitoring.MonitoredResourceArgs{
    	CompartmentId:      pulumi.String("string"),
    	Type:               pulumi.String("string"),
    	ExternalId:         pulumi.String("string"),
    	ExternalResourceId: pulumi.String("string"),
    	Credentials: &stackmonitoring.MonitoredResourceCredentialsArgs{
    		CredentialType: pulumi.String("string"),
    		Description:    pulumi.String("string"),
    		KeyId:          pulumi.String("string"),
    		Name:           pulumi.String("string"),
    		Properties: stackmonitoring.MonitoredResourceCredentialsPropertyArray{
    			&stackmonitoring.MonitoredResourceCredentialsPropertyArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		Source: pulumi.String("string"),
    		Type:   pulumi.String("string"),
    	},
    	DatabaseConnectionDetails: &stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs{
    		Port:         pulumi.Int(0),
    		Protocol:     pulumi.String("string"),
    		ServiceName:  pulumi.String("string"),
    		ConnectorId:  pulumi.String("string"),
    		DbId:         pulumi.String("string"),
    		DbUniqueName: pulumi.String("string"),
    		SslSecretId:  pulumi.String("string"),
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	AdditionalAliases: stackmonitoring.MonitoredResourceAdditionalAliasArray{
    		&stackmonitoring.MonitoredResourceAdditionalAliasArgs{
    			Credential: &stackmonitoring.MonitoredResourceAdditionalAliasCredentialArgs{
    				Name:    pulumi.String("string"),
    				Service: pulumi.String("string"),
    				Source:  pulumi.String("string"),
    			},
    			Name:   pulumi.String("string"),
    			Source: pulumi.String("string"),
    		},
    	},
    	Aliases: &stackmonitoring.MonitoredResourceAliasesArgs{
    		Credential: &stackmonitoring.MonitoredResourceAliasesCredentialArgs{
    			Name:    pulumi.String("string"),
    			Service: pulumi.String("string"),
    			Source:  pulumi.String("string"),
    		},
    		Name:   pulumi.String("string"),
    		Source: pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	HostName:          pulumi.String("string"),
    	License:           pulumi.String("string"),
    	ManagementAgentId: pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Properties: stackmonitoring.MonitoredResourcePropertyArray{
    		&stackmonitoring.MonitoredResourcePropertyArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	ResourceTimeZone: pulumi.String("string"),
    	AdditionalCredentials: stackmonitoring.MonitoredResourceAdditionalCredentialArray{
    		&stackmonitoring.MonitoredResourceAdditionalCredentialArgs{
    			CredentialType: pulumi.String("string"),
    			Description:    pulumi.String("string"),
    			KeyId:          pulumi.String("string"),
    			Name:           pulumi.String("string"),
    			Properties: stackmonitoring.MonitoredResourceAdditionalCredentialPropertyArray{
    				&stackmonitoring.MonitoredResourceAdditionalCredentialPropertyArgs{
    					Name:  pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    			Source: pulumi.String("string"),
    			Type:   pulumi.String("string"),
    		},
    	},
    })
    
    var monitoredResourceResource = new MonitoredResource("monitoredResourceResource", MonitoredResourceArgs.builder()
        .compartmentId("string")
        .type("string")
        .externalId("string")
        .externalResourceId("string")
        .credentials(MonitoredResourceCredentialsArgs.builder()
            .credentialType("string")
            .description("string")
            .keyId("string")
            .name("string")
            .properties(MonitoredResourceCredentialsPropertyArgs.builder()
                .name("string")
                .value("string")
                .build())
            .source("string")
            .type("string")
            .build())
        .databaseConnectionDetails(MonitoredResourceDatabaseConnectionDetailsArgs.builder()
            .port(0)
            .protocol("string")
            .serviceName("string")
            .connectorId("string")
            .dbId("string")
            .dbUniqueName("string")
            .sslSecretId("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .additionalAliases(MonitoredResourceAdditionalAliasArgs.builder()
            .credential(MonitoredResourceAdditionalAliasCredentialArgs.builder()
                .name("string")
                .service("string")
                .source("string")
                .build())
            .name("string")
            .source("string")
            .build())
        .aliases(MonitoredResourceAliasesArgs.builder()
            .credential(MonitoredResourceAliasesCredentialArgs.builder()
                .name("string")
                .service("string")
                .source("string")
                .build())
            .name("string")
            .source("string")
            .build())
        .freeformTags(Map.of("string", "string"))
        .hostName("string")
        .license("string")
        .managementAgentId("string")
        .name("string")
        .properties(MonitoredResourcePropertyArgs.builder()
            .name("string")
            .value("string")
            .build())
        .resourceTimeZone("string")
        .additionalCredentials(MonitoredResourceAdditionalCredentialArgs.builder()
            .credentialType("string")
            .description("string")
            .keyId("string")
            .name("string")
            .properties(MonitoredResourceAdditionalCredentialPropertyArgs.builder()
                .name("string")
                .value("string")
                .build())
            .source("string")
            .type("string")
            .build())
        .build());
    
    monitored_resource_resource = oci.stack_monitoring.MonitoredResource("monitoredResourceResource",
        compartment_id="string",
        type="string",
        external_id="string",
        external_resource_id="string",
        credentials=oci.stack_monitoring.MonitoredResourceCredentialsArgs(
            credential_type="string",
            description="string",
            key_id="string",
            name="string",
            properties=[oci.stack_monitoring.MonitoredResourceCredentialsPropertyArgs(
                name="string",
                value="string",
            )],
            source="string",
            type="string",
        ),
        database_connection_details=oci.stack_monitoring.MonitoredResourceDatabaseConnectionDetailsArgs(
            port=0,
            protocol="string",
            service_name="string",
            connector_id="string",
            db_id="string",
            db_unique_name="string",
            ssl_secret_id="string",
        ),
        defined_tags={
            "string": "string",
        },
        display_name="string",
        additional_aliases=[oci.stack_monitoring.MonitoredResourceAdditionalAliasArgs(
            credential=oci.stack_monitoring.MonitoredResourceAdditionalAliasCredentialArgs(
                name="string",
                service="string",
                source="string",
            ),
            name="string",
            source="string",
        )],
        aliases=oci.stack_monitoring.MonitoredResourceAliasesArgs(
            credential=oci.stack_monitoring.MonitoredResourceAliasesCredentialArgs(
                name="string",
                service="string",
                source="string",
            ),
            name="string",
            source="string",
        ),
        freeform_tags={
            "string": "string",
        },
        host_name="string",
        license="string",
        management_agent_id="string",
        name="string",
        properties=[oci.stack_monitoring.MonitoredResourcePropertyArgs(
            name="string",
            value="string",
        )],
        resource_time_zone="string",
        additional_credentials=[oci.stack_monitoring.MonitoredResourceAdditionalCredentialArgs(
            credential_type="string",
            description="string",
            key_id="string",
            name="string",
            properties=[oci.stack_monitoring.MonitoredResourceAdditionalCredentialPropertyArgs(
                name="string",
                value="string",
            )],
            source="string",
            type="string",
        )])
    
    const monitoredResourceResource = new oci.stackmonitoring.MonitoredResource("monitoredResourceResource", {
        compartmentId: "string",
        type: "string",
        externalId: "string",
        externalResourceId: "string",
        credentials: {
            credentialType: "string",
            description: "string",
            keyId: "string",
            name: "string",
            properties: [{
                name: "string",
                value: "string",
            }],
            source: "string",
            type: "string",
        },
        databaseConnectionDetails: {
            port: 0,
            protocol: "string",
            serviceName: "string",
            connectorId: "string",
            dbId: "string",
            dbUniqueName: "string",
            sslSecretId: "string",
        },
        definedTags: {
            string: "string",
        },
        displayName: "string",
        additionalAliases: [{
            credential: {
                name: "string",
                service: "string",
                source: "string",
            },
            name: "string",
            source: "string",
        }],
        aliases: {
            credential: {
                name: "string",
                service: "string",
                source: "string",
            },
            name: "string",
            source: "string",
        },
        freeformTags: {
            string: "string",
        },
        hostName: "string",
        license: "string",
        managementAgentId: "string",
        name: "string",
        properties: [{
            name: "string",
            value: "string",
        }],
        resourceTimeZone: "string",
        additionalCredentials: [{
            credentialType: "string",
            description: "string",
            keyId: "string",
            name: "string",
            properties: [{
                name: "string",
                value: "string",
            }],
            source: "string",
            type: "string",
        }],
    });
    
    type: oci:StackMonitoring:MonitoredResource
    properties:
        additionalAliases:
            - credential:
                name: string
                service: string
                source: string
              name: string
              source: string
        additionalCredentials:
            - credentialType: string
              description: string
              keyId: string
              name: string
              properties:
                - name: string
                  value: string
              source: string
              type: string
        aliases:
            credential:
                name: string
                service: string
                source: string
            name: string
            source: string
        compartmentId: string
        credentials:
            credentialType: string
            description: string
            keyId: string
            name: string
            properties:
                - name: string
                  value: string
            source: string
            type: string
        databaseConnectionDetails:
            connectorId: string
            dbId: string
            dbUniqueName: string
            port: 0
            protocol: string
            serviceName: string
            sslSecretId: string
        definedTags:
            string: string
        displayName: string
        externalId: string
        externalResourceId: string
        freeformTags:
            string: string
        hostName: string
        license: string
        managementAgentId: string
        name: string
        properties:
            - name: string
              value: string
        resourceTimeZone: string
        type: string
    

    MonitoredResource 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 MonitoredResource resource accepts the following input properties:

    CompartmentId string
    (Updatable) Compartment Identifier OCID.
    Type string

    Monitored Resource Type.

    ** 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

    AdditionalAliases List<MonitoredResourceAdditionalAlias>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    AdditionalCredentials List<MonitoredResourceAdditionalCredential>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    Aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    Credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    DatabaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Monitored resource display name.
    ExternalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    ExternalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    FreeformTags 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"}
    HostName string
    (Updatable) Host name of the monitored resource.
    License string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    ManagementAgentId string
    Management Agent Identifier OCID.
    Name string
    Monitored Resource Name.
    Properties List<MonitoredResourceProperty>
    (Updatable) List of monitored resource properties.
    ResourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    CompartmentId string
    (Updatable) Compartment Identifier OCID.
    Type string

    Monitored Resource Type.

    ** 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

    AdditionalAliases []MonitoredResourceAdditionalAliasArgs
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    AdditionalCredentials []MonitoredResourceAdditionalCredentialArgs
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    Aliases MonitoredResourceAliasesArgs
    (Updatable) Monitored Resource Alias Credential Details
    Credentials MonitoredResourceCredentialsArgs
    (Updatable) Monitored Resource Credential Details.
    DatabaseConnectionDetails MonitoredResourceDatabaseConnectionDetailsArgs
    (Updatable) Connection details for the database.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Monitored resource display name.
    ExternalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    ExternalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    FreeformTags 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"}
    HostName string
    (Updatable) Host name of the monitored resource.
    License string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    ManagementAgentId string
    Management Agent Identifier OCID.
    Name string
    Monitored Resource Name.
    Properties []MonitoredResourcePropertyArgs
    (Updatable) List of monitored resource properties.
    ResourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    compartmentId String
    (Updatable) Compartment Identifier OCID.
    type String

    Monitored Resource Type.

    ** 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

    additionalAliases List<MonitoredResourceAdditionalAlias>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials List<MonitoredResourceAdditionalCredential>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Monitored resource display name.
    externalId String
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId String
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags 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"}
    hostName String
    (Updatable) Host name of the monitored resource.
    license String
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId String
    Management Agent Identifier OCID.
    name String
    Monitored Resource Name.
    properties List<MonitoredResourceProperty>
    (Updatable) List of monitored resource properties.
    resourceTimeZone String
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    compartmentId string
    (Updatable) Compartment Identifier OCID.
    type string

    Monitored Resource Type.

    ** 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

    additionalAliases MonitoredResourceAdditionalAlias[]
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials MonitoredResourceAdditionalCredential[]
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) Monitored resource display name.
    externalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags {[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"}
    hostName string
    (Updatable) Host name of the monitored resource.
    license string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId string
    Management Agent Identifier OCID.
    name string
    Monitored Resource Name.
    properties MonitoredResourceProperty[]
    (Updatable) List of monitored resource properties.
    resourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    compartment_id str
    (Updatable) Compartment Identifier OCID.
    type str

    Monitored Resource Type.

    ** 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

    additional_aliases Sequence[stackmonitoring.MonitoredResourceAdditionalAliasArgs]
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additional_credentials Sequence[stackmonitoring.MonitoredResourceAdditionalCredentialArgs]
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases stackmonitoring.MonitoredResourceAliasesArgs
    (Updatable) Monitored Resource Alias Credential Details
    credentials stackmonitoring.MonitoredResourceCredentialsArgs
    (Updatable) Monitored Resource Credential Details.
    database_connection_details stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs
    (Updatable) Connection details for the database.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    (Updatable) Monitored resource display name.
    external_id str
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    external_resource_id str
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeform_tags 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"}
    host_name str
    (Updatable) Host name of the monitored resource.
    license str
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    management_agent_id str
    Management Agent Identifier OCID.
    name str
    Monitored Resource Name.
    properties Sequence[stackmonitoring.MonitoredResourcePropertyArgs]
    (Updatable) List of monitored resource properties.
    resource_time_zone str
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    compartmentId String
    (Updatable) Compartment Identifier OCID.
    type String

    Monitored Resource Type.

    ** 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

    additionalAliases List<Property Map>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials List<Property Map>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases Property Map
    (Updatable) Monitored Resource Alias Credential Details
    credentials Property Map
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails Property Map
    (Updatable) Connection details for the database.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Monitored resource display name.
    externalId String
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId String
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags 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"}
    hostName String
    (Updatable) Host name of the monitored resource.
    license String
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId String
    Management Agent Identifier OCID.
    name String
    Monitored Resource Name.
    properties List<Property Map>
    (Updatable) List of monitored resource properties.
    resourceTimeZone String
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitoredResource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId string
    Tenancy Identifier OCID.
    timeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenant_id str
    Tenancy Identifier OCID.
    time_created str
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    time_updated str
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.

    Look up Existing MonitoredResource Resource

    Get an existing MonitoredResource 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?: MonitoredResourceState, opts?: CustomResourceOptions): MonitoredResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            additional_aliases: Optional[Sequence[_stackmonitoring.MonitoredResourceAdditionalAliasArgs]] = None,
            additional_credentials: Optional[Sequence[_stackmonitoring.MonitoredResourceAdditionalCredentialArgs]] = None,
            aliases: Optional[_stackmonitoring.MonitoredResourceAliasesArgs] = None,
            compartment_id: Optional[str] = None,
            credentials: Optional[_stackmonitoring.MonitoredResourceCredentialsArgs] = None,
            database_connection_details: Optional[_stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            external_id: Optional[str] = None,
            external_resource_id: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            host_name: Optional[str] = None,
            license: Optional[str] = None,
            management_agent_id: Optional[str] = None,
            name: Optional[str] = None,
            properties: Optional[Sequence[_stackmonitoring.MonitoredResourcePropertyArgs]] = None,
            resource_category: Optional[str] = None,
            resource_time_zone: Optional[str] = None,
            source_type: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            type: Optional[str] = None) -> MonitoredResource
    func GetMonitoredResource(ctx *Context, name string, id IDInput, state *MonitoredResourceState, opts ...ResourceOption) (*MonitoredResource, error)
    public static MonitoredResource Get(string name, Input<string> id, MonitoredResourceState? state, CustomResourceOptions? opts = null)
    public static MonitoredResource get(String name, Output<String> id, MonitoredResourceState 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.
    The following state arguments are supported:
    AdditionalAliases List<MonitoredResourceAdditionalAlias>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    AdditionalCredentials List<MonitoredResourceAdditionalCredential>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    Aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    CompartmentId string
    (Updatable) Compartment Identifier OCID.
    Credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    DatabaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Monitored resource display name.
    ExternalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    ExternalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    FreeformTags 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"}
    HostName string
    (Updatable) Host name of the monitored resource.
    License string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    ManagementAgentId string
    Management Agent Identifier OCID.
    Name string
    Monitored Resource Name.
    Properties List<MonitoredResourceProperty>
    (Updatable) List of monitored resource properties.
    ResourceCategory string
    Resource Category to indicate the kind of resource type.
    ResourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    Type string

    Monitored Resource Type.

    ** 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

    AdditionalAliases []MonitoredResourceAdditionalAliasArgs
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    AdditionalCredentials []MonitoredResourceAdditionalCredentialArgs
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    Aliases MonitoredResourceAliasesArgs
    (Updatable) Monitored Resource Alias Credential Details
    CompartmentId string
    (Updatable) Compartment Identifier OCID.
    Credentials MonitoredResourceCredentialsArgs
    (Updatable) Monitored Resource Credential Details.
    DatabaseConnectionDetails MonitoredResourceDatabaseConnectionDetailsArgs
    (Updatable) Connection details for the database.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Monitored resource display name.
    ExternalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    ExternalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    FreeformTags 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"}
    HostName string
    (Updatable) Host name of the monitored resource.
    License string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    ManagementAgentId string
    Management Agent Identifier OCID.
    Name string
    Monitored Resource Name.
    Properties []MonitoredResourcePropertyArgs
    (Updatable) List of monitored resource properties.
    ResourceCategory string
    Resource Category to indicate the kind of resource type.
    ResourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    Type string

    Monitored Resource Type.

    ** 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

    additionalAliases List<MonitoredResourceAdditionalAlias>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials List<MonitoredResourceAdditionalCredential>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    compartmentId String
    (Updatable) Compartment Identifier OCID.
    credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Monitored resource display name.
    externalId String
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId String
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags 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"}
    hostName String
    (Updatable) Host name of the monitored resource.
    license String
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId String
    Management Agent Identifier OCID.
    name String
    Monitored Resource Name.
    properties List<MonitoredResourceProperty>
    (Updatable) List of monitored resource properties.
    resourceCategory String
    Resource Category to indicate the kind of resource type.
    resourceTimeZone String
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    type String

    Monitored Resource Type.

    ** 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

    additionalAliases MonitoredResourceAdditionalAlias[]
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials MonitoredResourceAdditionalCredential[]
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases MonitoredResourceAliases
    (Updatable) Monitored Resource Alias Credential Details
    compartmentId string
    (Updatable) Compartment Identifier OCID.
    credentials MonitoredResourceCredentials
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails MonitoredResourceDatabaseConnectionDetails
    (Updatable) Connection details for the database.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) Monitored resource display name.
    externalId string
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId string
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags {[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"}
    hostName string
    (Updatable) Host name of the monitored resource.
    license string
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId string
    Management Agent Identifier OCID.
    name string
    Monitored Resource Name.
    properties MonitoredResourceProperty[]
    (Updatable) List of monitored resource properties.
    resourceCategory string
    Resource Category to indicate the kind of resource type.
    resourceTimeZone string
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId string
    Tenancy Identifier OCID.
    timeCreated string
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated string
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    type string

    Monitored Resource Type.

    ** 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

    additional_aliases Sequence[stackmonitoring.MonitoredResourceAdditionalAliasArgs]
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additional_credentials Sequence[stackmonitoring.MonitoredResourceAdditionalCredentialArgs]
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases stackmonitoring.MonitoredResourceAliasesArgs
    (Updatable) Monitored Resource Alias Credential Details
    compartment_id str
    (Updatable) Compartment Identifier OCID.
    credentials stackmonitoring.MonitoredResourceCredentialsArgs
    (Updatable) Monitored Resource Credential Details.
    database_connection_details stackmonitoring.MonitoredResourceDatabaseConnectionDetailsArgs
    (Updatable) Connection details for the database.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    (Updatable) Monitored resource display name.
    external_id str
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    external_resource_id str
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeform_tags 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"}
    host_name str
    (Updatable) Host name of the monitored resource.
    license str
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    management_agent_id str
    Management Agent Identifier OCID.
    name str
    Monitored Resource Name.
    properties Sequence[stackmonitoring.MonitoredResourcePropertyArgs]
    (Updatable) List of monitored resource properties.
    resource_category str
    Resource Category to indicate the kind of resource type.
    resource_time_zone str
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenant_id str
    Tenancy Identifier OCID.
    time_created str
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    time_updated str
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    type str

    Monitored Resource Type.

    ** 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

    additionalAliases List<Property Map>
    (Updatable) List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.
    additionalCredentials List<Property Map>
    (Updatable) List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.
    aliases Property Map
    (Updatable) Monitored Resource Alias Credential Details
    compartmentId String
    (Updatable) Compartment Identifier OCID.
    credentials Property Map
    (Updatable) Monitored Resource Credential Details.
    databaseConnectionDetails Property Map
    (Updatable) Connection details for the database.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Monitored resource display name.
    externalId String
    External resource is any Oracle Cloud Infrastructure resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only Oracle Cloud Infrastructure compute instance.
    externalResourceId String
    Generally used by DBaaS to send the Database OCID stored on the DBaaS. The same will be passed to resource service to enable Stack Monitoring Service on DBM. This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource. If this header is not set as part of the request, then an id will be generated and stored for the resource.
    freeformTags 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"}
    hostName String
    (Updatable) Host name of the monitored resource.
    license String
    (Updatable) License edition of the monitored resource. If not provided the default license type for the compartment will be used.
    managementAgentId String
    Management Agent Identifier OCID.
    name String
    Monitored Resource Name.
    properties List<Property Map>
    (Updatable) List of monitored resource properties.
    resourceCategory String
    Resource Category to indicate the kind of resource type.
    resourceTimeZone String
    (Updatable) Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
    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.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
    type String

    Monitored Resource Type.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    MonitoredResourceAdditionalAlias, MonitoredResourceAdditionalAliasArgs

    Credential MonitoredResourceAdditionalAliasCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    Name string
    (Updatable) The name of the alias, within the context of the source.
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    Credential MonitoredResourceAdditionalAliasCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    Name string
    (Updatable) The name of the alias, within the context of the source.
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential MonitoredResourceAdditionalAliasCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name String
    (Updatable) The name of the alias, within the context of the source.
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential MonitoredResourceAdditionalAliasCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name string
    (Updatable) The name of the alias, within the context of the source.
    source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential stackmonitoring.MonitoredResourceAdditionalAliasCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name str
    (Updatable) The name of the alias, within the context of the source.
    source str
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential Property Map
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name String
    (Updatable) The name of the alias, within the context of the source.
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.

    MonitoredResourceAdditionalAliasCredential, MonitoredResourceAdditionalAliasCredentialArgs

    Name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    Service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    Name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    Service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name String
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service String
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name str
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service str
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source str
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name String
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service String
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.

    MonitoredResourceAdditionalCredential, MonitoredResourceAdditionalCredentialArgs

    CredentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    Description string
    (Updatable) The user-specified textual description of the credential.
    KeyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    Name string
    (Updatable) The name of the credential, within the context of the source.
    Properties List<MonitoredResourceAdditionalCredentialProperty>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    Source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    Type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    CredentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    Description string
    (Updatable) The user-specified textual description of the credential.
    KeyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    Name string
    (Updatable) The name of the credential, within the context of the source.
    Properties []MonitoredResourceAdditionalCredentialProperty
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    Source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    Type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType String
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description String
    (Updatable) The user-specified textual description of the credential.
    keyId String
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name String
    (Updatable) The name of the credential, within the context of the source.
    properties List<MonitoredResourceAdditionalCredentialProperty>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source String
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type String
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description string
    (Updatable) The user-specified textual description of the credential.
    keyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name string
    (Updatable) The name of the credential, within the context of the source.
    properties MonitoredResourceAdditionalCredentialProperty[]
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credential_type str
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description str
    (Updatable) The user-specified textual description of the credential.
    key_id str
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name str
    (Updatable) The name of the credential, within the context of the source.
    properties Sequence[stackmonitoring.MonitoredResourceAdditionalCredentialProperty]
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source str
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type str
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType String
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description String
    (Updatable) The user-specified textual description of the credential.
    keyId String
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name String
    (Updatable) The name of the credential, within the context of the source.
    properties List<Property Map>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source String
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type String
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).

    MonitoredResourceAdditionalCredentialProperty, MonitoredResourceAdditionalCredentialPropertyArgs

    Name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    Value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    Name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    Value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name String
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value String
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name str
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value str
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name String
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value String
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.

    MonitoredResourceAliases, MonitoredResourceAliasesArgs

    Credential MonitoredResourceAliasesCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    Name string
    (Updatable) The name of the alias, within the context of the source.
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    Credential MonitoredResourceAliasesCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    Name string
    (Updatable) The name of the alias, within the context of the source.
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential MonitoredResourceAliasesCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name String
    (Updatable) The name of the alias, within the context of the source.
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential MonitoredResourceAliasesCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name string
    (Updatable) The name of the alias, within the context of the source.
    source string
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential stackmonitoring.MonitoredResourceAliasesCredential
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name str
    (Updatable) The name of the alias, within the context of the source.
    source str
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.
    credential Property Map
    (Updatable) Monitored Resource Alias Reference Source Credential.
    name String
    (Updatable) The name of the alias, within the context of the source.
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. Example: {source type}.{source name} and source type max char limit is 63.

    MonitoredResourceAliasesCredential, MonitoredResourceAliasesCredentialArgs

    Name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    Service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    Name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    Service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    Source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name String
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service String
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name string
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service string
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source string
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name str
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service str
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source str
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.
    name String
    (Updatable) The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute which is bound to credential name.
    service String
    (Updatable) The name of the service owning the credential. Example: stack-monitoring or dbmgmt
    source String
    (Updatable) The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63.

    MonitoredResourceCredentials, MonitoredResourceCredentialsArgs

    CredentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    Description string
    (Updatable) The user-specified textual description of the credential.
    KeyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    Name string
    (Updatable) The name of the credential, within the context of the source.
    Properties List<MonitoredResourceCredentialsProperty>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    Source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    Type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    CredentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    Description string
    (Updatable) The user-specified textual description of the credential.
    KeyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    Name string
    (Updatable) The name of the credential, within the context of the source.
    Properties []MonitoredResourceCredentialsProperty
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    Source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    Type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType String
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description String
    (Updatable) The user-specified textual description of the credential.
    keyId String
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name String
    (Updatable) The name of the credential, within the context of the source.
    properties List<MonitoredResourceCredentialsProperty>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source String
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type String
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType string
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description string
    (Updatable) The user-specified textual description of the credential.
    keyId string
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name string
    (Updatable) The name of the credential, within the context of the source.
    properties MonitoredResourceCredentialsProperty[]
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source string
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type string
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credential_type str
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description str
    (Updatable) The user-specified textual description of the credential.
    key_id str
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name str
    (Updatable) The name of the credential, within the context of the source.
    properties Sequence[stackmonitoring.MonitoredResourceCredentialsProperty]
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source str
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type str
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).
    credentialType String
    (Updatable) Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED.

    • EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential.
    • PLAINTEXT - The credential properties will have credentials in plain text format.
    • ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
    description String
    (Updatable) The user-specified textual description of the credential.
    keyId String
    (Updatable) The master key should be created in Oracle Cloud Infrastructure Vault owned by the client of this API. The user should have permission to access the vault key.
    name String
    (Updatable) The name of the credential, within the context of the source.
    properties List<Property Map>
    (Updatable) The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
    source String
    (Updatable) The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
    type String
    (Updatable) The type of the credential ( ex. JMXCreds,DBCreds).

    MonitoredResourceCredentialsProperty, MonitoredResourceCredentialsPropertyArgs

    Name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    Value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    Name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    Value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name String
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value String
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name string
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value string
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name str
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value str
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.
    name String
    (Updatable) The name of the credential property, should confirm with names of properties of this credential's type. Example: For JMXCreds type, credential property name for weblogic user is 'Username'.
    value String
    (Updatable) The value of the credential property name. Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'.

    MonitoredResourceDatabaseConnectionDetails, MonitoredResourceDatabaseConnectionDetailsArgs

    Port int
    (Updatable) Listener Port number used for connection requests.
    Protocol string
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    ServiceName string
    (Updatable) Service name used for connection requests.
    ConnectorId string
    (Updatable) Database connector Identifier OCID.
    DbId string
    (Updatable) dbId of the database.
    DbUniqueName string
    (Updatable) UniqueName used for database connection requests.
    SslSecretId string
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
    Port int
    (Updatable) Listener Port number used for connection requests.
    Protocol string
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    ServiceName string
    (Updatable) Service name used for connection requests.
    ConnectorId string
    (Updatable) Database connector Identifier OCID.
    DbId string
    (Updatable) dbId of the database.
    DbUniqueName string
    (Updatable) UniqueName used for database connection requests.
    SslSecretId string
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
    port Integer
    (Updatable) Listener Port number used for connection requests.
    protocol String
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    serviceName String
    (Updatable) Service name used for connection requests.
    connectorId String
    (Updatable) Database connector Identifier OCID.
    dbId String
    (Updatable) dbId of the database.
    dbUniqueName String
    (Updatable) UniqueName used for database connection requests.
    sslSecretId String
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
    port number
    (Updatable) Listener Port number used for connection requests.
    protocol string
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    serviceName string
    (Updatable) Service name used for connection requests.
    connectorId string
    (Updatable) Database connector Identifier OCID.
    dbId string
    (Updatable) dbId of the database.
    dbUniqueName string
    (Updatable) UniqueName used for database connection requests.
    sslSecretId string
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
    port int
    (Updatable) Listener Port number used for connection requests.
    protocol str
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    service_name str
    (Updatable) Service name used for connection requests.
    connector_id str
    (Updatable) Database connector Identifier OCID.
    db_id str
    (Updatable) dbId of the database.
    db_unique_name str
    (Updatable) UniqueName used for database connection requests.
    ssl_secret_id str
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
    port Number
    (Updatable) Listener Port number used for connection requests.
    protocol String
    (Updatable) Protocol used in DB connection string when connecting to external database service.
    serviceName String
    (Updatable) Service name used for connection requests.
    connectorId String
    (Updatable) Database connector Identifier OCID.
    dbId String
    (Updatable) dbId of the database.
    dbUniqueName String
    (Updatable) UniqueName used for database connection requests.
    sslSecretId String
    (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.

    MonitoredResourceProperty, MonitoredResourcePropertyArgs

    Name string
    (Updatable) Property Name.
    Value string
    (Updatable) Property Value.
    Name string
    (Updatable) Property Name.
    Value string
    (Updatable) Property Value.
    name String
    (Updatable) Property Name.
    value String
    (Updatable) Property Value.
    name string
    (Updatable) Property Name.
    value string
    (Updatable) Property Value.
    name str
    (Updatable) Property Name.
    value str
    (Updatable) Property Value.
    name String
    (Updatable) Property Name.
    value String
    (Updatable) Property Value.

    Import

    MonitoredResources can be imported using the id, e.g.

    $ pulumi import oci:StackMonitoring/monitoredResource:MonitoredResource test_monitored_resource "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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi