oci.StackMonitoring.MonitoredResource
Explore with Pulumi AI
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:
- Compartment
Id 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
- Additional
Aliases List<MonitoredResource Additional Alias> - (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 List<MonitoredResource Additional Credential> - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- Credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- Database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) Monitored resource display name.
- External
Id 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.
- External
Resource stringId - 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.
- 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"}
- Host
Name 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.
- Management
Agent stringId - Management Agent Identifier OCID.
- Name string
- Monitored Resource Name.
- Properties
List<Monitored
Resource Property> - (Updatable) List of monitored resource properties.
- Resource
Time stringZone - (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 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
- Additional
Aliases []MonitoredResource Additional Alias Args - (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 []MonitoredResource Additional Credential Args - (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
Monitored
Resource Aliases Args - (Updatable) Monitored Resource Alias Credential Details
- Credentials
Monitored
Resource Credentials Args - (Updatable) Monitored Resource Credential Details.
- Database
Connection MonitoredDetails Resource Database Connection Details Args - (Updatable) Connection details for the database.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) Monitored resource display name.
- External
Id 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.
- External
Resource stringId - 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.
- 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"}
- Host
Name 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.
- Management
Agent stringId - Management Agent Identifier OCID.
- Name string
- Monitored Resource Name.
- Properties
[]Monitored
Resource Property Args - (Updatable) List of monitored resource properties.
- Resource
Time stringZone - (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 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
- additional
Aliases List<MonitoredResource Additional Alias> - (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 List<MonitoredResource Additional Credential> - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource StringId - 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.
- 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"}
- host
Name 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.
- management
Agent StringId - Management Agent Identifier OCID.
- name String
- Monitored Resource Name.
- properties
List<Monitored
Resource Property> - (Updatable) List of monitored resource properties.
- resource
Time StringZone - (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 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
- additional
Aliases MonitoredResource Additional Alias[] - (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 MonitoredResource Additional Credential[] - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource stringId - 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.
- {[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"}
- host
Name 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.
- management
Agent stringId - Management Agent Identifier OCID.
- name string
- Monitored Resource Name.
- properties
Monitored
Resource Property[] - (Updatable) List of monitored resource properties.
- resource
Time stringZone - (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.Monitored Resource Additional Alias Args] - (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.Monitored Resource Additional Credential Args] - (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.
Monitored Resource Aliases Args - (Updatable) Monitored Resource Alias Credential Details
- credentials
stackmonitoring.
Monitored Resource Credentials Args - (Updatable) Monitored Resource Credential Details.
- database_
connection_ stackmonitoring.details Monitored Resource Database Connection Details Args - (Updatable) Connection details for the database.
- 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_ strid - 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.
- 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_ strid - Management Agent Identifier OCID.
- name str
- Monitored Resource Name.
- properties
Sequence[stackmonitoring.
Monitored Resource Property Args] - (Updatable) List of monitored resource properties.
- resource_
time_ strzone - (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 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
- additional
Aliases 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.
- additional
Credentials 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.
- database
Connection Property MapDetails - (Updatable) Connection details for the database.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource StringId - 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.
- 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"}
- host
Name 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.
- management
Agent StringId - Management Agent Identifier OCID.
- name String
- Monitored Resource Name.
- properties List<Property Map>
- (Updatable) List of monitored resource properties.
- resource
Time StringZone - (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.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Source
Type string - Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- State string
- Lifecycle state of the monitored resource.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - Tenancy Identifier OCID.
- Time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- Time
Updated 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.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Source
Type string - Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- State string
- Lifecycle state of the monitored resource.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - Tenancy Identifier OCID.
- Time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- Time
Updated 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.
- resource
Category String - Resource Category to indicate the kind of resource type.
- source
Type String - Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state String
- Lifecycle state of the monitored resource.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - Tenancy Identifier OCID.
- time
Created String - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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.
- resource
Category string - Resource Category to indicate the kind of resource type.
- source
Type string - Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state string
- Lifecycle state of the monitored resource.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id string - Tenancy Identifier OCID.
- time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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.
- 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.
- resource
Category String - Resource Category to indicate the kind of resource type.
- source
Type String - Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc.
- state String
- Lifecycle state of the monitored resource.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - Tenancy Identifier OCID.
- time
Created String - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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.
- Additional
Aliases List<MonitoredResource Additional Alias> - (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 List<MonitoredResource Additional Credential> - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- Compartment
Id string - (Updatable) Compartment Identifier OCID.
- Credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- Database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) Monitored resource display name.
- External
Id 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.
- External
Resource stringId - 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.
- 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"}
- Host
Name 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.
- Management
Agent stringId - Management Agent Identifier OCID.
- Name string
- Monitored Resource Name.
- Properties
List<Monitored
Resource Property> - (Updatable) List of monitored resource properties.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Resource
Time stringZone - (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 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.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - Tenancy Identifier OCID.
- Time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- Time
Updated 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 []MonitoredResource Additional Alias Args - (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 []MonitoredResource Additional Credential Args - (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
Monitored
Resource Aliases Args - (Updatable) Monitored Resource Alias Credential Details
- Compartment
Id string - (Updatable) Compartment Identifier OCID.
- Credentials
Monitored
Resource Credentials Args - (Updatable) Monitored Resource Credential Details.
- Database
Connection MonitoredDetails Resource Database Connection Details Args - (Updatable) Connection details for the database.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) Monitored resource display name.
- External
Id 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.
- External
Resource stringId - 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.
- 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"}
- Host
Name 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.
- Management
Agent stringId - Management Agent Identifier OCID.
- Name string
- Monitored Resource Name.
- Properties
[]Monitored
Resource Property Args - (Updatable) List of monitored resource properties.
- Resource
Category string - Resource Category to indicate the kind of resource type.
- Resource
Time stringZone - (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 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.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - Tenancy Identifier OCID.
- Time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- Time
Updated 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 List<MonitoredResource Additional Alias> - (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 List<MonitoredResource Additional Credential> - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- compartment
Id String - (Updatable) Compartment Identifier OCID.
- credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource StringId - 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.
- 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"}
- host
Name 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.
- management
Agent StringId - Management Agent Identifier OCID.
- name String
- Monitored Resource Name.
- properties
List<Monitored
Resource Property> - (Updatable) List of monitored resource properties.
- resource
Category String - Resource Category to indicate the kind of resource type.
- resource
Time StringZone - (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 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.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - Tenancy Identifier OCID.
- time
Created String - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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 MonitoredResource Additional Alias[] - (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 MonitoredResource Additional Credential[] - (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
Monitored
Resource Aliases - (Updatable) Monitored Resource Alias Credential Details
- compartment
Id string - (Updatable) Compartment Identifier OCID.
- credentials
Monitored
Resource Credentials - (Updatable) Monitored Resource Credential Details.
- database
Connection MonitoredDetails Resource Database Connection Details - (Updatable) Connection details for the database.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource stringId - 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.
- {[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"}
- host
Name 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.
- management
Agent stringId - Management Agent Identifier OCID.
- name string
- Monitored Resource Name.
- properties
Monitored
Resource Property[] - (Updatable) List of monitored resource properties.
- resource
Category string - Resource Category to indicate the kind of resource type.
- resource
Time stringZone - (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 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.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id string - Tenancy Identifier OCID.
- time
Created string - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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.Monitored Resource Additional Alias Args] - (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.Monitored Resource Additional Credential Args] - (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.
Monitored Resource Aliases Args - (Updatable) Monitored Resource Alias Credential Details
- compartment_
id str - (Updatable) Compartment Identifier OCID.
- credentials
stackmonitoring.
Monitored Resource Credentials Args - (Updatable) Monitored Resource Credential Details.
- database_
connection_ stackmonitoring.details Monitored Resource Database Connection Details Args - (Updatable) Connection details for the database.
- 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_ strid - 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.
- 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_ strid - Management Agent Identifier OCID.
- name str
- Monitored Resource Name.
- properties
Sequence[stackmonitoring.
Monitored Resource Property Args] - (Updatable) List of monitored resource properties.
- resource_
category str - Resource Category to indicate the kind of resource type.
- resource_
time_ strzone - (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.
- 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
- additional
Aliases 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.
- additional
Credentials 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
- compartment
Id String - (Updatable) Compartment Identifier OCID.
- credentials Property Map
- (Updatable) Monitored Resource Credential Details.
- database
Connection Property MapDetails - (Updatable) Connection details for the database.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) Monitored resource display name.
- external
Id 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.
- external
Resource StringId - 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.
- 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"}
- host
Name 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.
- management
Agent StringId - Management Agent Identifier OCID.
- name String
- Monitored Resource Name.
- properties List<Property Map>
- (Updatable) List of monitored resource properties.
- resource
Category String - Resource Category to indicate the kind of resource type.
- resource
Time StringZone - (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 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.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - Tenancy Identifier OCID.
- time
Created String - The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
- time
Updated 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
Monitored
Resource Additional Alias Credential - (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
Monitored
Resource Additional Alias Credential - (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
Monitored
Resource Additional Alias Credential - (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
Monitored
Resource Additional Alias Credential - (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.
Monitored Resource Additional Alias Credential - (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
- Credential
Type 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.
- Key
Id 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<Monitored
Resource Additional Credential Property> - (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 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.
- Key
Id 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
[]Monitored
Resource Additional Credential Property - (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 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.
- key
Id 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<Monitored
Resource Additional Credential Property> - (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 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.
- key
Id 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
Monitored
Resource Additional Credential Property[] - (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.
Monitored Resource Additional Credential Property] - (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).
- credential
Type 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.
- key
Id 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
Monitored
Resource Aliases Credential - (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
Monitored
Resource Aliases Credential - (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
Monitored
Resource Aliases Credential - (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
Monitored
Resource Aliases Credential - (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.
Monitored Resource Aliases Credential - (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
- Credential
Type 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.
- Key
Id 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<Monitored
Resource Credentials Property> - (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 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.
- Key
Id 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
[]Monitored
Resource Credentials Property - (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 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.
- key
Id 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<Monitored
Resource Credentials Property> - (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 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.
- key
Id 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
Monitored
Resource Credentials Property[] - (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.
Monitored Resource Credentials Property] - (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).
- credential
Type 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.
- key
Id 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.
- Service
Name string - (Updatable) Service name used for connection requests.
- Connector
Id string - (Updatable) Database connector Identifier OCID.
- Db
Id string - (Updatable) dbId of the database.
- Db
Unique stringName - (Updatable) UniqueName used for database connection requests.
- Ssl
Secret stringId - (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.
- Service
Name string - (Updatable) Service name used for connection requests.
- Connector
Id string - (Updatable) Database connector Identifier OCID.
- Db
Id string - (Updatable) dbId of the database.
- Db
Unique stringName - (Updatable) UniqueName used for database connection requests.
- Ssl
Secret stringId - (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.
- service
Name String - (Updatable) Service name used for connection requests.
- connector
Id String - (Updatable) Database connector Identifier OCID.
- db
Id String - (Updatable) dbId of the database.
- db
Unique StringName - (Updatable) UniqueName used for database connection requests.
- ssl
Secret StringId - (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.
- service
Name string - (Updatable) Service name used for connection requests.
- connector
Id string - (Updatable) Database connector Identifier OCID.
- db
Id string - (Updatable) dbId of the database.
- db
Unique stringName - (Updatable) UniqueName used for database connection requests.
- ssl
Secret stringId - (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_ strname - (Updatable) UniqueName used for database connection requests.
- ssl_
secret_ strid - (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.
- service
Name String - (Updatable) Service name used for connection requests.
- connector
Id String - (Updatable) Database connector Identifier OCID.
- db
Id String - (Updatable) dbId of the database.
- db
Unique StringName - (Updatable) UniqueName used for database connection requests.
- ssl
Secret StringId - (Updatable) SSL Secret Identifier for TCPS connector in Oracle Cloud Infrastructure VaultOCID.
MonitoredResourceProperty, MonitoredResourcePropertyArgs
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.