Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// 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, string>
- 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, string>
- 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
- 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, string>
- 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]string
- 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]string
- 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
- 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]string
- 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,String>
- 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,String>
- 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
- 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,String>
- 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]: string}
- 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]: string}
- 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
- 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]: string}
- 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, 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
- 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>
- 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>
- 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
- 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>
- 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.