1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getAwrHubSource
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Opsi.getAwrHubSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Awr Hub Source resource in Oracle Cloud Infrastructure Opsi service.

    Gets the Awr Hub source object.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAwrHubSource = oci.Opsi.getAwrHubSource({
        awrHubSourceId: testAwrHubSourceOciOpsiAwrHubSource.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_awr_hub_source = oci.Opsi.get_awr_hub_source(awr_hub_source_id=test_awr_hub_source_oci_opsi_awr_hub_source["id"])
    
    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.GetAwrHubSource(ctx, &opsi.GetAwrHubSourceArgs{
    			AwrHubSourceId: testAwrHubSourceOciOpsiAwrHubSource.Id,
    		}, nil)
    		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 = Oci.Opsi.GetAwrHubSource.Invoke(new()
        {
            AwrHubSourceId = testAwrHubSourceOciOpsiAwrHubSource.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Opsi.OpsiFunctions;
    import com.pulumi.oci.Opsi.inputs.GetAwrHubSourceArgs;
    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) {
            final var testAwrHubSource = OpsiFunctions.getAwrHubSource(GetAwrHubSourceArgs.builder()
                .awrHubSourceId(testAwrHubSourceOciOpsiAwrHubSource.id())
                .build());
    
        }
    }
    
    variables:
      testAwrHubSource:
        fn::invoke:
          Function: oci:Opsi:getAwrHubSource
          Arguments:
            awrHubSourceId: ${testAwrHubSourceOciOpsiAwrHubSource.id}
    

    Using getAwrHubSource

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAwrHubSource(args: GetAwrHubSourceArgs, opts?: InvokeOptions): Promise<GetAwrHubSourceResult>
    function getAwrHubSourceOutput(args: GetAwrHubSourceOutputArgs, opts?: InvokeOptions): Output<GetAwrHubSourceResult>
    def get_awr_hub_source(awr_hub_source_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAwrHubSourceResult
    def get_awr_hub_source_output(awr_hub_source_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAwrHubSourceResult]
    func GetAwrHubSource(ctx *Context, args *GetAwrHubSourceArgs, opts ...InvokeOption) (*GetAwrHubSourceResult, error)
    func GetAwrHubSourceOutput(ctx *Context, args *GetAwrHubSourceOutputArgs, opts ...InvokeOption) GetAwrHubSourceResultOutput

    > Note: This function is named GetAwrHubSource in the Go SDK.

    public static class GetAwrHubSource 
    {
        public static Task<GetAwrHubSourceResult> InvokeAsync(GetAwrHubSourceArgs args, InvokeOptions? opts = null)
        public static Output<GetAwrHubSourceResult> Invoke(GetAwrHubSourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAwrHubSourceResult> getAwrHubSource(GetAwrHubSourceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Opsi/getAwrHubSource:getAwrHubSource
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AwrHubSourceId string
    Unique Awr Hub Source identifier
    AwrHubSourceId string
    Unique Awr Hub Source identifier
    awrHubSourceId String
    Unique Awr Hub Source identifier
    awrHubSourceId string
    Unique Awr Hub Source identifier
    awr_hub_source_id str
    Unique Awr Hub Source identifier
    awrHubSourceId String
    Unique Awr Hub Source identifier

    getAwrHubSource Result

    The following output properties are available:

    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.
    AwrHubSourceId string
    AwrSourceDatabaseId string
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, string>
    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.
    Id string
    The OCID of the Awr Hub 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, 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
    source type of the database
    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.
    AwrHubSourceId string
    AwrSourceDatabaseId string
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]string
    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.
    Id string
    The OCID of the Awr Hub 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]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
    source type of the database
    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.
    awrHubSourceId String
    awrSourceDatabaseId String
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,String>
    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.
    id String
    The OCID of the Awr Hub 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,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
    source type of the database
    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.
    awrHubSourceId string
    awrSourceDatabaseId string
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: string}
    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.
    id string
    The OCID of the Awr Hub 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]: 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
    source type of the database
    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_hub_source_id str
    awr_source_database_id str
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, str]
    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]
    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.
    id str
    The OCID of the Awr Hub 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, 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
    source type of the database
    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.
    awrHubSourceId String
    awrSourceDatabaseId String
    DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String>
    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.
    id String
    The OCID of the Awr Hub 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<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
    source type of the database

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi