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
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 = 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:
- Awr
Hub stringId Unique Awr Hub identifier
- Awr
Hub stringId Unique Awr Hub identifier
- awr
Hub StringId Unique Awr Hub identifier
- awr
Hub stringId Unique Awr Hub identifier
- awr_
hub_ strid Unique Awr Hub identifier
- awr
Hub StringId Unique Awr Hub identifier
getAwrHub Result
The following output properties are available:
- Awr
Hub stringId - 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 User-friedly name of AWR Hub that does not have to be unique.
- 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
- 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 OPSI Warehouse OCID
- State string
Possible 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
Hub stringId - 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 User-friedly name of AWR Hub that does not have to be unique.
- 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
- 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 OPSI Warehouse OCID
- State string
Possible 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
Hub StringId - 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 User-friedly name of AWR Hub that does not have to be unique.
- 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
- 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 OPSI Warehouse OCID
- state String
Possible 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
Hub stringId - 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 User-friedly name of AWR Hub that does not have to be unique.
- {[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
- 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 OPSI Warehouse OCID
- state string
Possible 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_
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, 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.
- 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_ strbucket_ name Object Storage Bucket Name
- operations_
insights_ strwarehouse_ id OPSI Warehouse OCID
- state str
Possible 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
Hub StringId - 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 User-friedly name of AWR Hub that does not have to be unique.
- 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
- 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 OPSI Warehouse OCID
- state String
Possible 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.