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

oci.Opsi.getAwrHubAwrSourcesSummary

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 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Opsi/getAwrHubAwrSourcesSummary:getAwrHubAwrSourcesSummary
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AwrHubId string
    Unique Awr Hub identifier
    CompartmentId string
    The OCID of the compartment.
    Name string
    Name for an Awr source database
    AwrHubId string
    Unique Awr Hub identifier
    CompartmentId string
    The OCID of the compartment.
    Name string
    Name for an Awr source database
    awrHubId String
    Unique Awr Hub identifier
    compartmentId String
    The OCID of the compartment.
    name String
    Name for an Awr source database
    awrHubId string
    Unique Awr Hub identifier
    compartmentId string
    The OCID of the compartment.
    name string
    Name for an Awr source database
    awr_hub_id str
    Unique Awr Hub identifier
    compartment_id str
    The OCID of the compartment.
    name str
    Name for an Awr source database
    awrHubId String
    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:

    AwrHubId string
    AWR Hub OCID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetAwrHubAwrSourcesSummaryItem>
    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.
    AwrHubId string
    AWR Hub OCID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetAwrHubAwrSourcesSummaryItem
    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.
    awrHubId String
    AWR Hub OCID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetAwrHubAwrSourcesSummaryItem>
    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.
    awrHubId string
    AWR Hub OCID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetAwrHubAwrSourcesSummaryItem[]
    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_id str
    AWR Hub OCID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[opsi.GetAwrHubAwrSourcesSummaryItem]
    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.
    awrHubId String
    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

    AwrHubId string
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    SnapshotsUploaded double
    Number of AWR snapshots uploaded from the Source database.
    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
    AwrHubId string
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    SnapshotsUploaded float64
    Number of AWR snapshots uploaded from the Source database.
    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
    awrHubId String
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    snapshotsUploaded Double
    Number of AWR snapshots uploaded from the Source database.
    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
    awrHubId string
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    snapshotsUploaded number
    Number of AWR snapshots uploaded from the Source database.
    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
    awr_hub_id str
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    snapshots_uploaded float
    Number of AWR snapshots uploaded from the Source database.
    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
    awrHubId String
    Unique Awr Hub 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.
    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
    Name for an Awr source database
    snapshotsUploaded Number
    Number of AWR snapshots uploaded from the Source database.
    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

    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