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",
    },
});
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",
    })
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
	})
}
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" },
        },
    });
});
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());
    }
}
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
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 string
- The unique name of the resource.
- args AwrHubSourceArgs
- 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 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 string
- The unique name of the resource.
- args AwrHubSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwrHubSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
type: oci:Opsi:AwrHubSource
properties:
    associatedOpsiId: string
    associatedResourceId: string
    awrHubId: string
    compartmentId: string
    definedTags:
        string: string
    freeformTags:
        string: string
    name: string
    type: string
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:
- AwrHub stringId 
- AWR Hub OCID
- CompartmentId string
- (Updatable) The OCID of the compartment.
- 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 
- AssociatedOpsi stringId 
- The OCID of the database id.
- AssociatedResource stringId 
- The OCID of the database id.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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 string
- The name of the Awr Hub source database.
- AwrHub stringId 
- AWR Hub OCID
- CompartmentId string
- (Updatable) The OCID of the compartment.
- 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 
- AssociatedOpsi stringId 
- The OCID of the database id.
- AssociatedResource stringId 
- The OCID of the database id.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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 string
- The name of the Awr Hub source database.
- awrHub StringId 
- AWR Hub OCID
- compartmentId String
- (Updatable) The OCID of the compartment.
- 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 
- associatedOpsi StringId 
- The OCID of the database id.
- associatedResource StringId 
- The OCID of the database id.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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 String
- The name of the Awr Hub source database.
- awrHub stringId 
- AWR Hub OCID
- compartmentId string
- (Updatable) The OCID of the compartment.
- 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 
- associatedOpsi stringId 
- The OCID of the database id.
- associatedResource stringId 
- The OCID of the database id.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- {[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 string
- The name of the Awr Hub source database.
- awr_hub_ strid 
- AWR Hub OCID
- compartment_id str
- (Updatable) The OCID of the compartment.
- 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 
- associated_opsi_ strid 
- The OCID of the database id.
- associated_resource_ strid 
- The OCID of the database id.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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 str
- The name of the Awr Hub source database.
- awrHub StringId 
- AWR Hub OCID
- compartmentId String
- (Updatable) The OCID of the compartment.
- 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 
- associatedOpsi StringId 
- The OCID of the database id.
- associatedResource StringId 
- The OCID of the database id.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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 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:
- AwrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- HoursSince doubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsRegistered boolWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- MaxSnapshot doubleIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- MinSnapshot doubleIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- SourceMail stringBox Url 
- 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
- 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
- TimeFirst stringSnapshot Generated 
- 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
- TimeLast stringSnapshot Generated 
- 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
- AwrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- HoursSince float64Last Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsRegistered boolWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- MaxSnapshot float64Identifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- MinSnapshot float64Identifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- SourceMail stringBox Url 
- 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
- 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
- TimeFirst stringSnapshot Generated 
- 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
- TimeLast stringSnapshot Generated 
- 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
- awrHub StringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hoursSince DoubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id String
- The provider-assigned unique ID for this managed resource.
- isRegistered BooleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot DoubleIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot DoubleIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- sourceMail StringBox Url 
- 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
- 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
- timeFirst StringSnapshot Generated 
- 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
- timeLast StringSnapshot Generated 
- 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
- awrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hoursSince numberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id string
- The provider-assigned unique ID for this managed resource.
- isRegistered booleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot numberIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot numberIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- sourceMail stringBox Url 
- 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
- {[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
- timeFirst stringSnapshot Generated 
- 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
- timeLast stringSnapshot Generated 
- 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_ stropsi_ source_ id 
- The shorted string of the Awr Hub source database identifier.
- awr_source_ strdatabase_ id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hours_since_ floatlast_ import 
- 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_ boolwith_ awr_ hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- max_snapshot_ floatidentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- min_snapshot_ floatidentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- source_mail_ strbox_ url 
- 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
- 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_ strsnapshot_ generated 
- 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_ strsnapshot_ generated 
- 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
- awrHub StringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hoursSince NumberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id String
- The provider-assigned unique ID for this managed resource.
- isRegistered BooleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot NumberIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot NumberIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- sourceMail StringBox Url 
- 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
- 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
- timeFirst StringSnapshot Generated 
- 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
- timeLast StringSnapshot Generated 
- 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) -> AwrHubSourcefunc 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)resources:  _:    type: oci:Opsi:AwrHubSource    get:      id: ${id}- 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.
- AssociatedOpsi stringId 
- The OCID of the database id.
- AssociatedResource stringId 
- The OCID of the database id.
- AwrHub stringId 
- AWR Hub OCID
- AwrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- CompartmentId string
- (Updatable) The OCID of the compartment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- HoursSince doubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- IsRegistered boolWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- MaxSnapshot doubleIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- MinSnapshot doubleIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- Name string
- The name of the Awr Hub source database.
- SourceMail stringBox Url 
- 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
- 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
- TimeFirst stringSnapshot Generated 
- 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
- TimeLast stringSnapshot Generated 
- 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 
- AssociatedOpsi stringId 
- The OCID of the database id.
- AssociatedResource stringId 
- The OCID of the database id.
- AwrHub stringId 
- AWR Hub OCID
- AwrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- CompartmentId string
- (Updatable) The OCID of the compartment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- HoursSince float64Last Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- IsRegistered boolWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- MaxSnapshot float64Identifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- MinSnapshot float64Identifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- Name string
- The name of the Awr Hub source database.
- SourceMail stringBox Url 
- 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
- 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
- TimeFirst stringSnapshot Generated 
- 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
- TimeLast stringSnapshot Generated 
- 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 
- associatedOpsi StringId 
- The OCID of the database id.
- associatedResource StringId 
- The OCID of the database id.
- awrHub StringId 
- AWR Hub OCID
- awrHub StringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId String
- (Updatable) The OCID of the compartment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- hoursSince DoubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- isRegistered BooleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot DoubleIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot DoubleIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- name String
- The name of the Awr Hub source database.
- sourceMail StringBox Url 
- 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
- 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
- timeFirst StringSnapshot Generated 
- 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
- timeLast StringSnapshot Generated 
- 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 
- associatedOpsi stringId 
- The OCID of the database id.
- associatedResource stringId 
- The OCID of the database id.
- awrHub stringId 
- AWR Hub OCID
- awrHub stringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId string
- (Updatable) The OCID of the compartment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- {[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"}
- hoursSince numberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- isRegistered booleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot numberIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot numberIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- name string
- The name of the Awr Hub source database.
- sourceMail stringBox Url 
- 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
- {[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
- timeFirst stringSnapshot Generated 
- 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
- timeLast stringSnapshot Generated 
- 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_ strid 
- The OCID of the database id.
- associated_resource_ strid 
- The OCID of the database id.
- awr_hub_ strid 
- AWR Hub OCID
- awr_hub_ stropsi_ source_ id 
- The shorted string of the Awr Hub source database identifier.
- awr_source_ strdatabase_ id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartment_id str
- (Updatable) The OCID of the compartment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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_ floatlast_ import 
- Number of hours since last AWR snapshots import happened from the Source database.
- is_registered_ boolwith_ awr_ hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- max_snapshot_ floatidentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- min_snapshot_ floatidentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- name str
- The name of the Awr Hub source database.
- source_mail_ strbox_ url 
- 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
- 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_ strsnapshot_ generated 
- 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_ strsnapshot_ generated 
- 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 
- associatedOpsi StringId 
- The OCID of the database id.
- associatedResource StringId 
- The OCID of the database id.
- awrHub StringId 
- AWR Hub OCID
- awrHub StringOpsi Source Id 
- The shorted string of the Awr Hub source database identifier.
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId String
- (Updatable) The OCID of the compartment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- hoursSince NumberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- isRegistered BooleanWith Awr Hub 
- This is trueif the source databse is registered with a Awr Hub, otherwisefalse
- maxSnapshot NumberIdentifier 
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- minSnapshot NumberIdentifier 
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- name String
- The name of the Awr Hub source database.
- sourceMail StringBox Url 
- 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
- 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
- timeFirst StringSnapshot Generated 
- 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
- timeLast StringSnapshot Generated 
- 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"
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 ociTerraform Provider.