1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. AwrHubSource
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Opsi.AwrHubSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("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, Any]] = None,
                     freeform_tags: Optional[Mapping[str, Any]] = 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", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        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.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	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", "any"))
        .freeformTags(Map.of("string", "any"))
        .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": "any",
        },
        freeform_tags={
            "string": "any",
        },
        name="string")
    
    const awrHubSourceResource = new oci.opsi.AwrHubSource("awrHubSourceResource", {
        awrHubId: "string",
        compartmentId: "string",
        type: "string",
        associatedOpsiId: "string",
        associatedResourceId: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
        name: "string",
    });
    
    type: oci:Opsi:AwrHubSource
    properties:
        associatedOpsiId: string
        associatedResourceId: string
        awrHubId: string
        compartmentId: string
        definedTags:
            string: any
        freeformTags:
            string: any
        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

    The AwrHubSource resource accepts the following input properties:

    AwrHubId string
    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

    AssociatedOpsiId string
    The OCID of the database id.
    AssociatedResourceId string
    The OCID of the database id.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, object>
    (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.
    AwrHubId string
    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

    AssociatedOpsiId string
    The OCID of the database id.
    AssociatedResourceId string
    The OCID of the database id.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]interface{}
    (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.
    awrHubId String
    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

    associatedOpsiId String
    The OCID of the database id.
    associatedResourceId String
    The OCID of the database id.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,Object>
    (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.
    awrHubId string
    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

    associatedOpsiId string
    The OCID of the database id.
    associatedResourceId string
    The OCID of the database id.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: any}
    (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_id str
    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_id str
    The OCID of the database id.
    associated_resource_id str
    The OCID of the database id.
    defined_tags Mapping[str, Any]
    (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, Any]
    (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.
    awrHubId String
    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

    associatedOpsiId String
    The OCID of the database id.
    associatedResourceId String
    The OCID of the database id.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<Any>
    (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:

    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, object>
    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]interface{}
    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,Object>
    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]: any}
    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, Any]
    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<Any>
    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, Any]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = 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, Any]] = 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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AssociatedOpsiId string
    The OCID of the database id.
    AssociatedResourceId string
    The OCID of the database id.
    AwrHubId 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, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, object>
    (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 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, object>
    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 string
    The OCID of the database id.
    AssociatedResourceId string
    The OCID of the database id.
    AwrHubId 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]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]interface{}
    (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 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]interface{}
    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 String
    The OCID of the database id.
    associatedResourceId String
    The OCID of the database id.
    awrHubId 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,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,Object>
    (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 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,Object>
    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 string
    The OCID of the database id.
    associatedResourceId string
    The OCID of the database id.
    awrHubId 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]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: any}
    (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 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]: any}
    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 str
    The OCID of the database id.
    associated_resource_id str
    The OCID of the database id.
    awr_hub_id 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, Any]
    (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, Any]
    (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 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, Any]
    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 String
    The OCID of the database id.
    associatedResourceId String
    The OCID of the database id.
    awrHubId 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<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<Any>
    (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 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<Any>
    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"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi