1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. AwrHubSource
Oracle Cloud Infrastructure v2.20.0 published on Saturday, Dec 21, 2024 by Pulumi

oci.Opsi.AwrHubSource

Explore with Pulumi AI

This resource provides the Awr Hub Source resource in Oracle Cloud Infrastructure Opsi service.

Register Awr Hub source

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAwrHubSource = new oci.opsi.AwrHubSource("test_awr_hub_source", {
    awrHubId: testAwrHub.id,
    compartmentId: compartmentId,
    name: awrHubSourceName,
    type: awrHubSourceType,
    associatedOpsiId: testAssociatedOpsi.id,
    associatedResourceId: testResource.id,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    freeformTags: {
        "bar-key": "value",
    },
});
Copy
import pulumi
import pulumi_oci as oci

test_awr_hub_source = oci.opsi.AwrHubSource("test_awr_hub_source",
    awr_hub_id=test_awr_hub["id"],
    compartment_id=compartment_id,
    name=awr_hub_source_name,
    type=awr_hub_source_type,
    associated_opsi_id=test_associated_opsi["id"],
    associated_resource_id=test_resource["id"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    freeform_tags={
        "bar-key": "value",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Opsi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Opsi.NewAwrHubSource(ctx, "test_awr_hub_source", &Opsi.AwrHubSourceArgs{
			AwrHubId:             pulumi.Any(testAwrHub.Id),
			CompartmentId:        pulumi.Any(compartmentId),
			Name:                 pulumi.Any(awrHubSourceName),
			Type:                 pulumi.Any(awrHubSourceType),
			AssociatedOpsiId:     pulumi.Any(testAssociatedOpsi.Id),
			AssociatedResourceId: pulumi.Any(testResource.Id),
			DefinedTags: pulumi.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAwrHubSource = new Oci.Opsi.AwrHubSource("test_awr_hub_source", new()
    {
        AwrHubId = testAwrHub.Id,
        CompartmentId = compartmentId,
        Name = awrHubSourceName,
        Type = awrHubSourceType,
        AssociatedOpsiId = testAssociatedOpsi.Id,
        AssociatedResourceId = testResource.Id,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.AwrHubSource;
import com.pulumi.oci.Opsi.AwrHubSourceArgs;
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 testAwrHubSource = new AwrHubSource("testAwrHubSource", AwrHubSourceArgs.builder()
            .awrHubId(testAwrHub.id())
            .compartmentId(compartmentId)
            .name(awrHubSourceName)
            .type(awrHubSourceType)
            .associatedOpsiId(testAssociatedOpsi.id())
            .associatedResourceId(testResource.id())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .freeformTags(Map.of("bar-key", "value"))
            .build());

    }
}
Copy
resources:
  testAwrHubSource:
    type: oci:Opsi:AwrHubSource
    name: test_awr_hub_source
    properties:
      awrHubId: ${testAwrHub.id}
      compartmentId: ${compartmentId}
      name: ${awrHubSourceName}
      type: ${awrHubSourceType}
      associatedOpsiId: ${testAssociatedOpsi.id}
      associatedResourceId: ${testResource.id}
      definedTags:
        foo-namespace.bar-key: value
      freeformTags:
        bar-key: value
Copy

Create AwrHubSource Resource

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

Constructor syntax

new AwrHubSource(name: string, args: AwrHubSourceArgs, opts?: CustomResourceOptions);
@overload
def AwrHubSource(resource_name: str,
                 args: AwrHubSourceArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def AwrHubSource(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 awr_hub_id: Optional[str] = None,
                 compartment_id: Optional[str] = None,
                 type: Optional[str] = None,
                 associated_opsi_id: Optional[str] = None,
                 associated_resource_id: Optional[str] = None,
                 defined_tags: Optional[Mapping[str, str]] = None,
                 freeform_tags: Optional[Mapping[str, str]] = None,
                 name: Optional[str] = None)
func NewAwrHubSource(ctx *Context, name string, args AwrHubSourceArgs, opts ...ResourceOption) (*AwrHubSource, error)
public AwrHubSource(string name, AwrHubSourceArgs args, CustomResourceOptions? opts = null)
public AwrHubSource(String name, AwrHubSourceArgs args)
public AwrHubSource(String name, AwrHubSourceArgs args, CustomResourceOptions options)
type: oci:Opsi:AwrHubSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AwrHubSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AwrHubSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AwrHubSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AwrHubSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AwrHubSourceArgs
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 awrHubSourceResource = new Oci.Opsi.AwrHubSource("awrHubSourceResource", new()
{
    AwrHubId = "string",
    CompartmentId = "string",
    Type = "string",
    AssociatedOpsiId = "string",
    AssociatedResourceId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    Name = "string",
});
Copy
example, err := Opsi.NewAwrHubSource(ctx, "awrHubSourceResource", &Opsi.AwrHubSourceArgs{
	AwrHubId:             pulumi.String("string"),
	CompartmentId:        pulumi.String("string"),
	Type:                 pulumi.String("string"),
	AssociatedOpsiId:     pulumi.String("string"),
	AssociatedResourceId: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name: pulumi.String("string"),
})
Copy
var awrHubSourceResource = new AwrHubSource("awrHubSourceResource", AwrHubSourceArgs.builder()
    .awrHubId("string")
    .compartmentId("string")
    .type("string")
    .associatedOpsiId("string")
    .associatedResourceId("string")
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .name("string")
    .build());
Copy
awr_hub_source_resource = oci.opsi.AwrHubSource("awrHubSourceResource",
    awr_hub_id="string",
    compartment_id="string",
    type="string",
    associated_opsi_id="string",
    associated_resource_id="string",
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    },
    name="string")
Copy
const awrHubSourceResource = new oci.opsi.AwrHubSource("awrHubSourceResource", {
    awrHubId: "string",
    compartmentId: "string",
    type: "string",
    associatedOpsiId: "string",
    associatedResourceId: "string",
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
    name: "string",
});
Copy
type: oci:Opsi:AwrHubSource
properties:
    associatedOpsiId: string
    associatedResourceId: string
    awrHubId: string
    compartmentId: string
    definedTags:
        string: string
    freeformTags:
        string: string
    name: string
    type: string
Copy

AwrHubSource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AwrHubSource resource accepts the following input properties:

AwrHubId
This property is required.
Changes to this property will trigger replacement.
string
AWR Hub OCID
CompartmentId This property is required. string
(Updatable) The OCID of the compartment.
Type This property is required. string

(Updatable) source type of the database

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

AssociatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
AssociatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
AwrHubId
This property is required.
Changes to this property will trigger replacement.
string
AWR Hub OCID
CompartmentId This property is required. string
(Updatable) The OCID of the compartment.
Type This property is required. string

(Updatable) source type of the database

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

AssociatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
AssociatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
awrHubId
This property is required.
Changes to this property will trigger replacement.
String
AWR Hub OCID
compartmentId This property is required. String
(Updatable) The OCID of the compartment.
type This property is required. String

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. String
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. String
The OCID of the database id.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The name of the Awr Hub source database.
awrHubId
This property is required.
Changes to this property will trigger replacement.
string
AWR Hub OCID
compartmentId This property is required. string
(Updatable) The OCID of the compartment.
type This property is required. string

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
awr_hub_id
This property is required.
Changes to this property will trigger replacement.
str
AWR Hub OCID
compartment_id This property is required. str
(Updatable) The OCID of the compartment.
type This property is required. str

(Updatable) source type of the database

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

associated_opsi_id Changes to this property will trigger replacement. str
The OCID of the database id.
associated_resource_id Changes to this property will trigger replacement. str
The OCID of the database id.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. str
The name of the Awr Hub source database.
awrHubId
This property is required.
Changes to this property will trigger replacement.
String
AWR Hub OCID
compartmentId This property is required. String
(Updatable) The OCID of the compartment.
type This property is required. String

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. String
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. String
The OCID of the database id.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The name of the Awr Hub source database.

Outputs

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

AwrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
AwrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
HoursSinceLastImport double
Number of hours since last AWR snapshots import happened from the Source database.
Id string
The provider-assigned unique ID for this managed resource.
IsRegisteredWithAwrHub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
MaxSnapshotIdentifier double
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
MinSnapshotIdentifier double
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
SourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
State string
the current state of the source database
Status string
Indicates the status of a source database in Operations Insights
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
AwrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
AwrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
HoursSinceLastImport float64
Number of hours since last AWR snapshots import happened from the Source database.
Id string
The provider-assigned unique ID for this managed resource.
IsRegisteredWithAwrHub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
MaxSnapshotIdentifier float64
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
MinSnapshotIdentifier float64
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
SourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
State string
the current state of the source database
Status string
Indicates the status of a source database in Operations Insights
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
awrHubOpsiSourceId String
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId String
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
hoursSinceLastImport Double
Number of hours since last AWR snapshots import happened from the Source database.
id String
The provider-assigned unique ID for this managed resource.
isRegisteredWithAwrHub Boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier Double
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier Double
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
sourceMailBoxUrl String
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state String
the current state of the source database
status String
Indicates the status of a source database in Operations Insights
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated String
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated String
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated String
The time at which the resource was last updated. An RFC3339 formatted datetime string
awrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
hoursSinceLastImport number
Number of hours since last AWR snapshots import happened from the Source database.
id string
The provider-assigned unique ID for this managed resource.
isRegisteredWithAwrHub boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier number
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier number
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
sourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state string
the current state of the source database
status string
Indicates the status of a source database in Operations Insights
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
awr_hub_opsi_source_id str
The shorted string of the Awr Hub source database identifier.
awr_source_database_id str
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
hours_since_last_import float
Number of hours since last AWR snapshots import happened from the Source database.
id str
The provider-assigned unique ID for this managed resource.
is_registered_with_awr_hub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
max_snapshot_identifier float
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
min_snapshot_identifier float
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
source_mail_box_url str
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state str
the current state of the source database
status str
Indicates the status of a source database in Operations Insights
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time at which the resource was first created. An RFC3339 formatted datetime string
time_first_snapshot_generated str
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
time_last_snapshot_generated str
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
time_updated str
The time at which the resource was last updated. An RFC3339 formatted datetime string
awrHubOpsiSourceId String
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId String
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
hoursSinceLastImport Number
Number of hours since last AWR snapshots import happened from the Source database.
id String
The provider-assigned unique ID for this managed resource.
isRegisteredWithAwrHub Boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier Number
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier Number
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
sourceMailBoxUrl String
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state String
the current state of the source database
status String
Indicates the status of a source database in Operations Insights
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated String
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated String
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated String
The time at which the resource was last updated. An RFC3339 formatted datetime string

Look up Existing AwrHubSource Resource

Get an existing AwrHubSource 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?: AwrHubSourceState, opts?: CustomResourceOptions): AwrHubSource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        associated_opsi_id: Optional[str] = None,
        associated_resource_id: Optional[str] = None,
        awr_hub_id: Optional[str] = None,
        awr_hub_opsi_source_id: Optional[str] = None,
        awr_source_database_id: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        hours_since_last_import: Optional[float] = None,
        is_registered_with_awr_hub: Optional[bool] = None,
        max_snapshot_identifier: Optional[float] = None,
        min_snapshot_identifier: Optional[float] = None,
        name: Optional[str] = None,
        source_mail_box_url: Optional[str] = None,
        state: Optional[str] = None,
        status: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_first_snapshot_generated: Optional[str] = None,
        time_last_snapshot_generated: Optional[str] = None,
        time_updated: Optional[str] = None,
        type: Optional[str] = None) -> AwrHubSource
func GetAwrHubSource(ctx *Context, name string, id IDInput, state *AwrHubSourceState, opts ...ResourceOption) (*AwrHubSource, error)
public static AwrHubSource Get(string name, Input<string> id, AwrHubSourceState? state, CustomResourceOptions? opts = null)
public static AwrHubSource get(String name, Output<String> id, AwrHubSourceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AssociatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
AssociatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
AwrHubId Changes to this property will trigger replacement. string
AWR Hub OCID
AwrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
AwrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
CompartmentId string
(Updatable) The OCID of the compartment.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
HoursSinceLastImport double
Number of hours since last AWR snapshots import happened from the Source database.
IsRegisteredWithAwrHub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
MaxSnapshotIdentifier double
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
MinSnapshotIdentifier double
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
Name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
SourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
State string
the current state of the source database
Status string
Indicates the status of a source database in Operations Insights
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
Type string

(Updatable) source type of the database

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

AssociatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
AssociatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
AwrHubId Changes to this property will trigger replacement. string
AWR Hub OCID
AwrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
AwrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
CompartmentId string
(Updatable) The OCID of the compartment.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
HoursSinceLastImport float64
Number of hours since last AWR snapshots import happened from the Source database.
IsRegisteredWithAwrHub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
MaxSnapshotIdentifier float64
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
MinSnapshotIdentifier float64
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
Name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
SourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
State string
the current state of the source database
Status string
Indicates the status of a source database in Operations Insights
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
TimeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
Type string

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. String
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. String
The OCID of the database id.
awrHubId Changes to this property will trigger replacement. String
AWR Hub OCID
awrHubOpsiSourceId String
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId String
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
compartmentId String
(Updatable) The OCID of the compartment.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
hoursSinceLastImport Double
Number of hours since last AWR snapshots import happened from the Source database.
isRegisteredWithAwrHub Boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier Double
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier Double
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
name Changes to this property will trigger replacement. String
The name of the Awr Hub source database.
sourceMailBoxUrl String
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state String
the current state of the source database
status String
Indicates the status of a source database in Operations Insights
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated String
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated String
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated String
The time at which the resource was last updated. An RFC3339 formatted datetime string
type String

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. string
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. string
The OCID of the database id.
awrHubId Changes to this property will trigger replacement. string
AWR Hub OCID
awrHubOpsiSourceId string
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId string
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
compartmentId string
(Updatable) The OCID of the compartment.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
hoursSinceLastImport number
Number of hours since last AWR snapshots import happened from the Source database.
isRegisteredWithAwrHub boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier number
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier number
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
name Changes to this property will trigger replacement. string
The name of the Awr Hub source database.
sourceMailBoxUrl string
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state string
the current state of the source database
status string
Indicates the status of a source database in Operations Insights
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated string
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated string
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated string
The time at which the resource was last updated. An RFC3339 formatted datetime string
type string

(Updatable) source type of the database

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

associated_opsi_id Changes to this property will trigger replacement. str
The OCID of the database id.
associated_resource_id Changes to this property will trigger replacement. str
The OCID of the database id.
awr_hub_id Changes to this property will trigger replacement. str
AWR Hub OCID
awr_hub_opsi_source_id str
The shorted string of the Awr Hub source database identifier.
awr_source_database_id str
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
compartment_id str
(Updatable) The OCID of the compartment.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
hours_since_last_import float
Number of hours since last AWR snapshots import happened from the Source database.
is_registered_with_awr_hub bool
This is true if the source databse is registered with a Awr Hub, otherwise false
max_snapshot_identifier float
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
min_snapshot_identifier float
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
name Changes to this property will trigger replacement. str
The name of the Awr Hub source database.
source_mail_box_url str
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state str
the current state of the source database
status str
Indicates the status of a source database in Operations Insights
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time at which the resource was first created. An RFC3339 formatted datetime string
time_first_snapshot_generated str
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
time_last_snapshot_generated str
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
time_updated str
The time at which the resource was last updated. An RFC3339 formatted datetime string
type str

(Updatable) source type of the database

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

associatedOpsiId Changes to this property will trigger replacement. String
The OCID of the database id.
associatedResourceId Changes to this property will trigger replacement. String
The OCID of the database id.
awrHubId Changes to this property will trigger replacement. String
AWR Hub OCID
awrHubOpsiSourceId String
The shorted string of the Awr Hub source database identifier.
awrSourceDatabaseId String
DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
compartmentId String
(Updatable) The OCID of the compartment.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
hoursSinceLastImport Number
Number of hours since last AWR snapshots import happened from the Source database.
isRegisteredWithAwrHub Boolean
This is true if the source databse is registered with a Awr Hub, otherwise false
maxSnapshotIdentifier Number
The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
minSnapshotIdentifier Number
The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
name Changes to this property will trigger replacement. String
The name of the Awr Hub source database.
sourceMailBoxUrl String
Opsi Mailbox URL based on the Awr Hub and Awr Hub source.
state String
the current state of the source database
status String
Indicates the status of a source database in Operations Insights
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeFirstSnapshotGenerated String
The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeLastSnapshotGenerated String
The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string
timeUpdated String
The time at which the resource was last updated. An RFC3339 formatted datetime string
type String

(Updatable) source type of the database

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

Import

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

$ pulumi import oci:Opsi/awrHubSource:AwrHubSource test_awr_hub_source "id"
Copy

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.