Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Opsi/getAwrHubAwrSourcesSummary:getAwrHubAwrSourcesSummary
arguments:
# arguments dictionary
The following arguments are supported:
- Awr
Hub stringId - Unique Awr Hub identifier
- Compartment
Id string - The OCID of the compartment.
- Name string
- Name for an Awr source database
- Awr
Hub stringId - Unique Awr Hub identifier
- Compartment
Id string - The OCID of the compartment.
- Name string
- Name for an Awr source database
- awr
Hub StringId - Unique Awr Hub identifier
- compartment
Id String - The OCID of the compartment.
- name String
- Name for an Awr source database
- awr
Hub stringId - Unique Awr Hub identifier
- compartment
Id 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
- awr
Hub StringId - Unique Awr Hub identifier
- compartment
Id String - The OCID of the compartment.
- name String
- Name for an Awr source database
getAwrHubAwrSourcesSummary Result
The following output properties are available:
- Awr
Hub stringId - AWR Hub OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Awr Hub Awr Sources Summary Item> - Array of AwrSource summary objects.
- Compartment
Id string - Name string
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- Awr
Hub stringId - AWR Hub OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Awr Hub Awr Sources Summary Item - Array of AwrSource summary objects.
- Compartment
Id string - Name string
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awr
Hub StringId - AWR Hub OCID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Awr Hub Awr Sources Summary Item> - Array of AwrSource summary objects.
- compartment
Id String - name String
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
- awr
Hub stringId - AWR Hub OCID
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Awr Hub Awr Sources Summary Item[] - Array of AwrSource summary objects.
- compartment
Id 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[opsi.
Get Awr 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.
- awr
Hub StringId - AWR Hub OCID
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of AwrSource summary objects.
- compartment
Id String - name String
- Database name of the Source database for which AWR Data will be uploaded to AWR Hub.
Supporting Types
GetAwrHubAwrSourcesSummaryItem
- Awr
Hub stringId - Unique Awr Hub identifier
- Awr
Source stringDatabase Id - DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- Hours
Since doubleLast Import - Number of hours since last AWR snapshots import happened from the Source database.
- Max
Snapshot doubleIdentifier - The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- Min
Snapshot 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
- Snapshots
Uploaded double - Number of AWR snapshots uploaded from the Source database.
- Time
First 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
- Time
Last 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 stringId - Unique Awr Hub identifier
- Awr
Source stringDatabase Id - DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- Hours
Since float64Last Import - Number of hours since last AWR snapshots import happened from the Source database.
- Max
Snapshot float64Identifier - The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- Min
Snapshot 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
- Snapshots
Uploaded float64 - Number of AWR snapshots uploaded from the Source database.
- Time
First 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
- Time
Last 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 StringId - Unique Awr Hub identifier
- awr
Source StringDatabase Id - DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hours
Since DoubleLast Import - Number of hours since last AWR snapshots import happened from the Source database.
- max
Snapshot DoubleIdentifier - The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- min
Snapshot 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
- snapshots
Uploaded Double - Number of AWR snapshots uploaded from the Source database.
- time
First 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
- time
Last 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 stringId - Unique Awr Hub identifier
- awr
Source stringDatabase Id - DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hours
Since numberLast Import - Number of hours since last AWR snapshots import happened from the Source database.
- max
Snapshot numberIdentifier - The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- min
Snapshot 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
- snapshots
Uploaded number - Number of AWR snapshots uploaded from the Source database.
- time
First 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
- time
Last 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
- awr
Hub StringId - Unique Awr Hub identifier
- awr
Source StringDatabase Id - DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.
- hours
Since NumberLast Import - Number of hours since last AWR snapshots import happened from the Source database.
- max
Snapshot NumberIdentifier - The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.
- min
Snapshot 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
- snapshots
Uploaded Number - Number of AWR snapshots uploaded from the Source database.
- time
First 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
- time
Last 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
oci
Terraform Provider.