Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Opsi.getAwrHubSource
Explore with Pulumi AI
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 LookupAwrHubSource(ctx *Context, args *LookupAwrHubSourceArgs, opts ...InvokeOption) (*LookupAwrHubSourceResult, error)
func LookupAwrHubSourceOutput(ctx *Context, args *LookupAwrHubSourceOutputArgs, opts ...InvokeOption) LookupAwrHubSourceResultOutput> Note: This function is named LookupAwrHubSource 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)
public static Output<GetAwrHubSourceResult> getAwrHubSource(GetAwrHubSourceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getAwrHubSource:getAwrHubSource
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AwrHub stringSource Id 
- Unique Awr Hub Source identifier
- AwrHub stringSource Id 
- Unique Awr Hub Source identifier
- awrHub StringSource Id 
- Unique Awr Hub Source identifier
- awrHub stringSource Id 
- Unique Awr Hub Source identifier
- awr_hub_ strsource_ id 
- Unique Awr Hub Source identifier
- awrHub StringSource Id 
- Unique Awr Hub Source identifier
getAwrHubSource Result
The following output properties are available:
- 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.
- AwrHub stringSource Id 
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- HoursSince doubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- Id string
- The OCID of the Awr Hub 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
- source type of the database
- 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.
- AwrHub stringSource Id 
- AwrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- HoursSince float64Last Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- Id string
- The OCID of the Awr Hub 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
- source type of the database
- 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.
- awrHub StringSource Id 
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- hoursSince DoubleLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id String
- The OCID of the Awr Hub 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
- source type of the database
- 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.
- awrHub stringSource Id 
- awrSource stringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- {[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"}
- hoursSince numberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id string
- The OCID of the Awr Hub 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
- source type of the database
- 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_hub_ strsource_ id 
- awr_source_ strdatabase_ id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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_ floatlast_ import 
- 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_ 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
- source type of the database
- 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.
- awrHub StringSource Id 
- awrSource StringDatabase Id 
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- 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"}
- hoursSince NumberLast Import 
- Number of hours since last AWR snapshots import happened from the Source database.
- id String
- The OCID of the Awr Hub 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
- source type of the database
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.