Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Opsi.getAwrHubs
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Awr Hubs in Oracle Cloud Infrastructure Opsi service.
Gets a list of AWR hubs. Either compartmentId or id must be specified. All these resources are expected to be in root compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAwrHubs = oci.Opsi.getAwrHubs({
operationsInsightsWarehouseId: testOperationsInsightsWarehouse.id,
compartmentId: compartmentId,
displayName: awrHubDisplayName,
id: awrHubId,
states: awrHubState,
});
import pulumi
import pulumi_oci as oci
test_awr_hubs = oci.Opsi.get_awr_hubs(operations_insights_warehouse_id=test_operations_insights_warehouse["id"],
compartment_id=compartment_id,
display_name=awr_hub_display_name,
id=awr_hub_id,
states=awr_hub_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opsi.GetAwrHubs(ctx, &opsi.GetAwrHubsArgs{
OperationsInsightsWarehouseId: testOperationsInsightsWarehouse.Id,
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(awrHubDisplayName),
Id: pulumi.StringRef(awrHubId),
States: awrHubState,
}, 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 testAwrHubs = Oci.Opsi.GetAwrHubs.Invoke(new()
{
OperationsInsightsWarehouseId = testOperationsInsightsWarehouse.Id,
CompartmentId = compartmentId,
DisplayName = awrHubDisplayName,
Id = awrHubId,
States = awrHubState,
});
});
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.GetAwrHubsArgs;
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 testAwrHubs = OpsiFunctions.getAwrHubs(GetAwrHubsArgs.builder()
.operationsInsightsWarehouseId(testOperationsInsightsWarehouse.id())
.compartmentId(compartmentId)
.displayName(awrHubDisplayName)
.id(awrHubId)
.states(awrHubState)
.build());
}
}
variables:
testAwrHubs:
fn::invoke:
Function: oci:Opsi:getAwrHubs
Arguments:
operationsInsightsWarehouseId: ${testOperationsInsightsWarehouse.id}
compartmentId: ${compartmentId}
displayName: ${awrHubDisplayName}
id: ${awrHubId}
states: ${awrHubState}
Using getAwrHubs
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 getAwrHubs(args: GetAwrHubsArgs, opts?: InvokeOptions): Promise<GetAwrHubsResult>
function getAwrHubsOutput(args: GetAwrHubsOutputArgs, opts?: InvokeOptions): Output<GetAwrHubsResult>
def get_awr_hubs(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_opsi.GetAwrHubsFilter]] = None,
id: Optional[str] = None,
operations_insights_warehouse_id: Optional[str] = None,
states: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetAwrHubsResult
def get_awr_hubs_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_opsi.GetAwrHubsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
operations_insights_warehouse_id: Optional[pulumi.Input[str]] = None,
states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAwrHubsResult]
func GetAwrHubs(ctx *Context, args *GetAwrHubsArgs, opts ...InvokeOption) (*GetAwrHubsResult, error)
func GetAwrHubsOutput(ctx *Context, args *GetAwrHubsOutputArgs, opts ...InvokeOption) GetAwrHubsResultOutput
> Note: This function is named GetAwrHubs
in the Go SDK.
public static class GetAwrHubs
{
public static Task<GetAwrHubsResult> InvokeAsync(GetAwrHubsArgs args, InvokeOptions? opts = null)
public static Output<GetAwrHubsResult> Invoke(GetAwrHubsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwrHubsResult> getAwrHubs(GetAwrHubsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Opsi/getAwrHubs:getAwrHubs
arguments:
# arguments dictionary
The following arguments are supported:
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the entire display name.
- Filters
List<Get
Awr Hubs Filter> - Id string
- Unique Awr Hub identifier
- States List<string>
- Lifecycle states
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the entire display name.
- Filters
[]Get
Awr Hubs Filter - Id string
- Unique Awr Hub identifier
- States []string
- Lifecycle states
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the entire display name.
- filters
List<Get
Awr Hubs Filter> - id String
- Unique Awr Hub identifier
- states List<String>
- Lifecycle states
- operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- compartment
Id string - The OCID of the compartment.
- display
Name string - A filter to return only resources that match the entire display name.
- filters
Get
Awr Hubs Filter[] - id string
- Unique Awr Hub identifier
- states string[]
- Lifecycle states
- operations_
insights_ strwarehouse_ id - Unique Operations Insights Warehouse identifier
- compartment_
id str - The OCID of the compartment.
- display_
name str - A filter to return only resources that match the entire display name.
- filters
Sequence[opsi.
Get Awr Hubs Filter] - id str
- Unique Awr Hub identifier
- states Sequence[str]
- Lifecycle states
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the entire display name.
- filters List<Property Map>
- id String
- Unique Awr Hub identifier
- states List<String>
- Lifecycle states
getAwrHubs Result
The following output properties are available:
- Awr
Hub List<GetSummary Collections Awr Hubs Awr Hub Summary Collection> - The list of awr_hub_summary_collection.
- Operations
Insights stringWarehouse Id - OPSI Warehouse OCID
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - User-friedly name of AWR Hub that does not have to be unique.
- Filters
List<Get
Awr Hubs Filter> - Id string
- AWR Hub OCID
- States List<string>
- Possible lifecycle states
- Awr
Hub []GetSummary Collections Awr Hubs Awr Hub Summary Collection - The list of awr_hub_summary_collection.
- Operations
Insights stringWarehouse Id - OPSI Warehouse OCID
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - User-friedly name of AWR Hub that does not have to be unique.
- Filters
[]Get
Awr Hubs Filter - Id string
- AWR Hub OCID
- States []string
- Possible lifecycle states
- awr
Hub List<GetSummary Collections Awr Hubs Awr Hub Summary Collection> - The list of awr_hub_summary_collection.
- operations
Insights StringWarehouse Id - OPSI Warehouse OCID
- compartment
Id String - The OCID of the compartment.
- display
Name String - User-friedly name of AWR Hub that does not have to be unique.
- filters
List<Get
Awr Hubs Filter> - id String
- AWR Hub OCID
- states List<String>
- Possible lifecycle states
- awr
Hub GetSummary Collections Awr Hubs Awr Hub Summary Collection[] - The list of awr_hub_summary_collection.
- operations
Insights stringWarehouse Id - OPSI Warehouse OCID
- compartment
Id string - The OCID of the compartment.
- display
Name string - User-friedly name of AWR Hub that does not have to be unique.
- filters
Get
Awr Hubs Filter[] - id string
- AWR Hub OCID
- states string[]
- Possible lifecycle states
- awr_
hub_ Sequence[opsi.summary_ collections Get Awr Hubs Awr Hub Summary Collection] - The list of awr_hub_summary_collection.
- operations_
insights_ strwarehouse_ id - OPSI Warehouse OCID
- compartment_
id str - The OCID of the compartment.
- display_
name str - User-friedly name of AWR Hub that does not have to be unique.
- filters
Sequence[opsi.
Get Awr Hubs Filter] - id str
- AWR Hub OCID
- states Sequence[str]
- Possible lifecycle states
- awr
Hub List<Property Map>Summary Collections - The list of awr_hub_summary_collection.
- operations
Insights StringWarehouse Id - OPSI Warehouse OCID
- compartment
Id String - The OCID of the compartment.
- display
Name String - User-friedly name of AWR Hub that does not have to be unique.
- filters List<Property Map>
- id String
- AWR Hub OCID
- states List<String>
- Possible lifecycle states
Supporting Types
GetAwrHubsAwrHubSummaryCollection
GetAwrHubsAwrHubSummaryCollectionItem
- Awr
Mailbox stringUrl - Mailbox URL required for AWR hub and AWR source setup.
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Hub
Dst stringTimezone Version - Dst Time Zone Version of the AWR Hub
- Id string
- Unique Awr Hub identifier
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Object
Storage stringBucket Name - Object Storage Bucket Name
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- State string
- Lifecycle states
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time at which the resource was first created. An RFC3339 formatted datetime string
- Time
Updated string - The time at which the resource was last updated. An RFC3339 formatted datetime string
- Awr
Mailbox stringUrl - Mailbox URL required for AWR hub and AWR source setup.
- Compartment
Id string - The OCID of the compartment.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Hub
Dst stringTimezone Version - Dst Time Zone Version of the AWR Hub
- Id string
- Unique Awr Hub identifier
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Object
Storage stringBucket Name - Object Storage Bucket Name
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- State string
- Lifecycle states
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time at which the resource was first created. An RFC3339 formatted datetime string
- Time
Updated string - The time at which the resource was last updated. An RFC3339 formatted datetime string
- awr
Mailbox StringUrl - Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id String - The OCID of the compartment.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- hub
Dst StringTimezone Version - Dst Time Zone Version of the AWR Hub
- id String
- Unique Awr Hub identifier
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- object
Storage StringBucket Name - Object Storage Bucket Name
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
- state String
- Lifecycle states
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time at which the resource was first created. An RFC3339 formatted datetime string
- time
Updated String - The time at which the resource was last updated. An RFC3339 formatted datetime string
- awr
Mailbox stringUrl - Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - A filter to return only resources that match the entire display name.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- hub
Dst stringTimezone Version - Dst Time Zone Version of the AWR Hub
- id string
- Unique Awr Hub identifier
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- object
Storage stringBucket Name - Object Storage Bucket Name
- operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- state string
- Lifecycle states
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time at which the resource was first created. An RFC3339 formatted datetime string
- time
Updated string - The time at which the resource was last updated. An RFC3339 formatted datetime string
- awr_
mailbox_ strurl - Mailbox URL required for AWR hub and AWR source setup.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - A filter to return only resources that match the entire display name.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- hub_
dst_ strtimezone_ version - Dst Time Zone Version of the AWR Hub
- id str
- Unique Awr Hub identifier
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- object_
storage_ strbucket_ name - Object Storage Bucket Name
- operations_
insights_ strwarehouse_ id - Unique Operations Insights Warehouse identifier
- state str
- Lifecycle states
- Mapping[str, Any]
- 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_
updated str - The time at which the resource was last updated. An RFC3339 formatted datetime string
- awr
Mailbox StringUrl - Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id String - The OCID of the compartment.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- hub
Dst StringTimezone Version - Dst Time Zone Version of the AWR Hub
- id String
- Unique Awr Hub identifier
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- object
Storage StringBucket Name - Object Storage Bucket Name
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
- state String
- Lifecycle states
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time at which the resource was first created. An RFC3339 formatted datetime string
- time
Updated String - The time at which the resource was last updated. An RFC3339 formatted datetime string
GetAwrHubsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi