Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Opsi.getAwrHubAwrSourcesSummary
Explore with Pulumi AI
This data source provides details about a specific Awr Hub Awr Sources Summary resource in Oracle Cloud Infrastructure Opsi service.
Gets a list of summary of AWR Sources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAwrHubAwrSourcesSummary = oci.Opsi.getAwrHubAwrSourcesSummary({
    awrHubId: testAwrHub.id,
    compartmentId: compartmentId,
    name: awrHubAwrSourcesSummaryName,
});
import pulumi
import pulumi_oci as oci
test_awr_hub_awr_sources_summary = oci.Opsi.get_awr_hub_awr_sources_summary(awr_hub_id=test_awr_hub["id"],
    compartment_id=compartment_id,
    name=awr_hub_awr_sources_summary_name)
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.GetAwrHubAwrSourcesSummary(ctx, &opsi.GetAwrHubAwrSourcesSummaryArgs{
			AwrHubId:      testAwrHub.Id,
			CompartmentId: pulumi.StringRef(compartmentId),
			Name:          pulumi.StringRef(awrHubAwrSourcesSummaryName),
		}, 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 testAwrHubAwrSourcesSummary = Oci.Opsi.GetAwrHubAwrSourcesSummary.Invoke(new()
    {
        AwrHubId = testAwrHub.Id,
        CompartmentId = compartmentId,
        Name = awrHubAwrSourcesSummaryName,
    });
});
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.GetAwrHubAwrSourcesSummaryArgs;
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 testAwrHubAwrSourcesSummary = OpsiFunctions.getAwrHubAwrSourcesSummary(GetAwrHubAwrSourcesSummaryArgs.builder()
            .awrHubId(testAwrHub.id())
            .compartmentId(compartmentId)
            .name(awrHubAwrSourcesSummaryName)
            .build());
    }
}
variables:
  testAwrHubAwrSourcesSummary:
    fn::invoke:
      function: oci:Opsi:getAwrHubAwrSourcesSummary
      arguments:
        awrHubId: ${testAwrHub.id}
        compartmentId: ${compartmentId}
        name: ${awrHubAwrSourcesSummaryName}
Using getAwrHubAwrSourcesSummary
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 getAwrHubAwrSourcesSummary(args: GetAwrHubAwrSourcesSummaryArgs, opts?: InvokeOptions): Promise<GetAwrHubAwrSourcesSummaryResult>
function getAwrHubAwrSourcesSummaryOutput(args: GetAwrHubAwrSourcesSummaryOutputArgs, opts?: InvokeOptions): Output<GetAwrHubAwrSourcesSummaryResult>def get_awr_hub_awr_sources_summary(awr_hub_id: Optional[str] = None,
                                    compartment_id: Optional[str] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAwrHubAwrSourcesSummaryResult
def get_awr_hub_awr_sources_summary_output(awr_hub_id: Optional[pulumi.Input[str]] = None,
                                    compartment_id: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAwrHubAwrSourcesSummaryResult]func GetAwrHubAwrSourcesSummary(ctx *Context, args *GetAwrHubAwrSourcesSummaryArgs, opts ...InvokeOption) (*GetAwrHubAwrSourcesSummaryResult, error)
func GetAwrHubAwrSourcesSummaryOutput(ctx *Context, args *GetAwrHubAwrSourcesSummaryOutputArgs, opts ...InvokeOption) GetAwrHubAwrSourcesSummaryResultOutput> Note: This function is named GetAwrHubAwrSourcesSummary in the Go SDK.
public static class GetAwrHubAwrSourcesSummary 
{
    public static Task<GetAwrHubAwrSourcesSummaryResult> InvokeAsync(GetAwrHubAwrSourcesSummaryArgs args, InvokeOptions? opts = null)
    public static Output<GetAwrHubAwrSourcesSummaryResult> Invoke(GetAwrHubAwrSourcesSummaryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAwrHubAwrSourcesSummaryResult> getAwrHubAwrSourcesSummary(GetAwrHubAwrSourcesSummaryArgs args, InvokeOptions options)
public static Output<GetAwrHubAwrSourcesSummaryResult> getAwrHubAwrSourcesSummary(GetAwrHubAwrSourcesSummaryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getAwrHubAwrSourcesSummary:getAwrHubAwrSourcesSummary
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AwrHub stringId 
- Unique Awr Hub identifier
- CompartmentId string
- The OCID of the compartment.
- Name string
- Name for an Awr source database
- AwrHub stringId 
- Unique Awr Hub identifier
- CompartmentId string
- The OCID of the compartment.
- Name string
- Name for an Awr source database
- awrHub StringId 
- Unique Awr Hub identifier
- compartmentId String
- The OCID of the compartment.
- name String
- Name for an Awr source database
- awrHub stringId 
- Unique Awr Hub identifier
- compartmentId string
- The OCID of the compartment.
- name string
- Name for an Awr source database
- awr_hub_ strid 
- Unique Awr Hub identifier
- compartment_id str
- The OCID of the compartment.
- name str
- Name for an Awr source database
- awrHub StringId 
- Unique Awr Hub identifier
- compartmentId String
- The OCID of the compartment.
- name String
- Name for an Awr source database
getAwrHubAwrSourcesSummary Result
The following output properties are available:
- AwrHub stringId 
- AWR Hub OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetAwr Hub Awr Sources Summary Item> 
- Array of AwrSource summary objects.
- CompartmentId string
- Name string
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- AwrHub stringId 
- AWR Hub OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetAwr Hub Awr Sources Summary Item 
- Array of AwrSource summary objects.
- CompartmentId string
- Name string
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awrHub StringId 
- AWR Hub OCID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetAwr Hub Awr Sources Summary Item> 
- Array of AwrSource summary objects.
- compartmentId String
- name String
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awrHub stringId 
- AWR Hub OCID
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetAwr Hub Awr Sources Summary Item[] 
- Array of AwrSource summary objects.
- compartmentId string
- name string
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awr_hub_ strid 
- AWR Hub OCID
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetAwr Hub Awr Sources Summary Item] 
- Array of AwrSource summary objects.
- compartment_id str
- name str
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awrHub StringId 
- AWR Hub OCID
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of AwrSource summary objects.
- compartmentId String
- name String
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
Supporting Types
GetAwrHubAwrSourcesSummaryItem      
- AwrHub stringId 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- SnapshotsUploaded double
- Number of AWR snapshots uploaded from the Source database.
- 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
- AwrHub stringId 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- SnapshotsUploaded float64
- Number of AWR snapshots uploaded from the Source database.
- 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
- awrHub StringId 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- snapshotsUploaded Double
- Number of AWR snapshots uploaded from the Source database.
- 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
- awrHub stringId 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- snapshotsUploaded number
- Number of AWR snapshots uploaded from the Source database.
- 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
- awr_hub_ strid 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- snapshots_uploaded float
- Number of AWR snapshots uploaded from the Source database.
- 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
- awrHub StringId 
- Unique Awr Hub 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.
- 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
- Name for an Awr source database
- snapshotsUploaded Number
- Number of AWR snapshots uploaded from the Source database.
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.