Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Opsi.getAwrHub
Explore with Pulumi AI
This data source provides details about a specific Awr Hub resource in Oracle Cloud Infrastructure Opsi service.
Gets details of an AWR hub.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAwrHub = oci.Opsi.getAwrHub({
    awrHubId: testAwrHubOciOpsiAwrHub.id,
});
import pulumi
import pulumi_oci as oci
test_awr_hub = oci.Opsi.get_awr_hub(awr_hub_id=test_awr_hub_oci_opsi_awr_hub["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.GetAwrHub(ctx, &opsi.GetAwrHubArgs{
			AwrHubId: testAwrHubOciOpsiAwrHub.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 testAwrHub = Oci.Opsi.GetAwrHub.Invoke(new()
    {
        AwrHubId = testAwrHubOciOpsiAwrHub.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.GetAwrHubArgs;
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 testAwrHub = OpsiFunctions.getAwrHub(GetAwrHubArgs.builder()
            .awrHubId(testAwrHubOciOpsiAwrHub.id())
            .build());
    }
}
variables:
  testAwrHub:
    fn::invoke:
      function: oci:Opsi:getAwrHub
      arguments:
        awrHubId: ${testAwrHubOciOpsiAwrHub.id}
Using getAwrHub
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 getAwrHub(args: GetAwrHubArgs, opts?: InvokeOptions): Promise<GetAwrHubResult>
function getAwrHubOutput(args: GetAwrHubOutputArgs, opts?: InvokeOptions): Output<GetAwrHubResult>def get_awr_hub(awr_hub_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetAwrHubResult
def get_awr_hub_output(awr_hub_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAwrHubResult]func GetAwrHub(ctx *Context, args *GetAwrHubArgs, opts ...InvokeOption) (*GetAwrHubResult, error)
func GetAwrHubOutput(ctx *Context, args *GetAwrHubOutputArgs, opts ...InvokeOption) GetAwrHubResultOutput> Note: This function is named GetAwrHub in the Go SDK.
public static class GetAwrHub 
{
    public static Task<GetAwrHubResult> InvokeAsync(GetAwrHubArgs args, InvokeOptions? opts = null)
    public static Output<GetAwrHubResult> Invoke(GetAwrHubInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAwrHubResult> getAwrHub(GetAwrHubArgs args, InvokeOptions options)
public static Output<GetAwrHubResult> getAwrHub(GetAwrHubArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getAwrHub:getAwrHub
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AwrHub stringId 
- Unique Awr Hub identifier
- AwrHub stringId 
- Unique Awr Hub identifier
- awrHub StringId 
- Unique Awr Hub identifier
- awrHub stringId 
- Unique Awr Hub identifier
- awr_hub_ strid 
- Unique Awr Hub identifier
- awrHub StringId 
- Unique Awr Hub identifier
getAwrHub Result
The following output properties are available:
- AwrHub stringId 
- AwrMailbox stringUrl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- DisplayName string
- User-friedly name of AWR Hub that does not have to be unique.
- 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"}
- HubDst stringTimezone Version 
- Dst Time Zone Version of the AWR Hub
- Id string
- AWR Hub OCID
- LifecycleDetails 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.
- ObjectStorage stringBucket Name 
- Object Storage Bucket Name
- OperationsInsights stringWarehouse Id 
- OPSI Warehouse OCID
- State string
- Possible lifecycle states
- 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
- TimeUpdated string
- The time at which the resource was last updated. An RFC3339 formatted datetime string
- AwrHub stringId 
- AwrMailbox stringUrl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- DisplayName string
- User-friedly name of AWR Hub that does not have to be unique.
- 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"}
- HubDst stringTimezone Version 
- Dst Time Zone Version of the AWR Hub
- Id string
- AWR Hub OCID
- LifecycleDetails 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.
- ObjectStorage stringBucket Name 
- Object Storage Bucket Name
- OperationsInsights stringWarehouse Id 
- OPSI Warehouse OCID
- State string
- Possible lifecycle states
- 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
- TimeUpdated string
- The time at which the resource was last updated. An RFC3339 formatted datetime string
- awrHub StringId 
- awrMailbox StringUrl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- displayName String
- User-friedly name of AWR Hub that does not have to be unique.
- 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"}
- hubDst StringTimezone Version 
- Dst Time Zone Version of the AWR Hub
- id String
- AWR Hub OCID
- lifecycleDetails 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.
- objectStorage StringBucket Name 
- Object Storage Bucket Name
- operationsInsights StringWarehouse Id 
- OPSI Warehouse OCID
- state String
- Possible lifecycle states
- 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
- timeUpdated String
- The time at which the resource was last updated. An RFC3339 formatted datetime string
- awrHub stringId 
- awrMailbox stringUrl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- displayName string
- User-friedly name of AWR Hub that does not have to be unique.
- {[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"}
- hubDst stringTimezone Version 
- Dst Time Zone Version of the AWR Hub
- id string
- AWR Hub OCID
- lifecycleDetails 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.
- objectStorage stringBucket Name 
- Object Storage Bucket Name
- operationsInsights stringWarehouse Id 
- OPSI Warehouse OCID
- state string
- Possible lifecycle states
- {[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
- timeUpdated string
- The time at which the resource was last updated. An RFC3339 formatted datetime string
- awr_hub_ strid 
- awr_mailbox_ strurl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- display_name str
- User-friedly name of AWR Hub that does not have to be unique.
- 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"}
- hub_dst_ strtimezone_ version 
- Dst Time Zone Version of the AWR Hub
- id str
- AWR Hub OCID
- 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 
- OPSI Warehouse OCID
- state str
- Possible lifecycle states
- 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_updated str
- The time at which the resource was last updated. An RFC3339 formatted datetime string
- awrHub StringId 
- awrMailbox StringUrl 
- Mailbox URL required for AWR hub and AWR source setup.
- 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"}
- displayName String
- User-friedly name of AWR Hub that does not have to be unique.
- 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"}
- hubDst StringTimezone Version 
- Dst Time Zone Version of the AWR Hub
- id String
- AWR Hub OCID
- lifecycleDetails 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.
- objectStorage StringBucket Name 
- Object Storage Bucket Name
- operationsInsights StringWarehouse Id 
- OPSI Warehouse OCID
- state String
- Possible lifecycle states
- 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
- timeUpdated String
- The time at which the resource was last updated. 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.