Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getAwrHub

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAwrHub = Oci.Opsi.GetAwrHub.Invoke(new()
    {
        AwrHubId = oci_opsi_awr_hub.Test_awr_hub.Id,
    });

});
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.GetAwrHub(ctx, &opsi.GetAwrHubArgs{
			AwrHubId: oci_opsi_awr_hub.Test_awr_hub.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_opsi_awr_hub.test_awr_hub().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_awr_hub = oci.Opsi.get_awr_hub(awr_hub_id=oci_opsi_awr_hub["test_awr_hub"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAwrHub = oci.Opsi.getAwrHub({
    awrHubId: oci_opsi_awr_hub.test_awr_hub.id,
});
variables:
  testAwrHub:
    Fn::Invoke:
      Function: oci:Opsi:getAwrHub
      Arguments:
        awrHubId: ${oci_opsi_awr_hub.test_awr_hub.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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Opsi/getAwrHub:getAwrHub
  arguments:
    # arguments dictionary

The following arguments are supported:

AwrHubId string

Unique Awr Hub identifier

AwrHubId string

Unique Awr Hub identifier

awrHubId String

Unique Awr Hub identifier

awrHubId string

Unique Awr Hub identifier

awr_hub_id str

Unique Awr Hub identifier

awrHubId String

Unique Awr Hub identifier

getAwrHub Result

The following output properties are available:

AwrHubId string
AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

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.

FreeformTags 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"}

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.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

State string

Possible lifecycle states

SystemTags Dictionary<string, object>

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

AwrHubId string
AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

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.

FreeformTags 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"}

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.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

State string

Possible lifecycle states

SystemTags map[string]interface{}

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

awrHubId String
awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

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.

freeformTags 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"}

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.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

state String

Possible lifecycle states

systemTags Map<String,Object>

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

awrHubId string
awrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

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.

freeformTags {[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"}

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.

objectStorageBucketName string

Object Storage Bucket Name

operationsInsightsWarehouseId string

OPSI Warehouse OCID

state string

Possible lifecycle states

systemTags {[key: string]: any}

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_id str
awr_mailbox_url str

Mailbox URL required for AWR hub and AWR source setup.

compartment_id str

The OCID of the compartment.

defined_tags 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

User-friedly name of AWR Hub that does not have to be unique.

freeform_tags 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"}

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_bucket_name str

Object Storage Bucket Name

operations_insights_warehouse_id str

OPSI Warehouse OCID

state str

Possible lifecycle states

system_tags 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

awrHubId String
awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

compartmentId String

The OCID of the compartment.

definedTags Map<Any>

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.

freeformTags 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"}

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.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

state String

Possible lifecycle states

systemTags Map<Any>

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.