oci.Opsi.AwrHub
Explore with Pulumi AI
This resource provides the Awr Hub resource in Oracle Cloud Infrastructure Opsi service.
Create a AWR hub resource for the tenant in Operations Insights. This resource will be created in root compartment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAwrHub = new Oci.Opsi.AwrHub("testAwrHub", new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Awr_hub_display_name,
ObjectStorageBucketName = oci_objectstorage_bucket.Test_bucket.Name,
OperationsInsightsWarehouseId = oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
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.NewAwrHub(ctx, "testAwrHub", &Opsi.AwrHubArgs{
CompartmentId: pulumi.Any(_var.Compartment_id),
DisplayName: pulumi.Any(_var.Awr_hub_display_name),
ObjectStorageBucketName: pulumi.Any(oci_objectstorage_bucket.Test_bucket.Name),
OperationsInsightsWarehouseId: pulumi.Any(oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id),
DefinedTags: pulumi.AnyMap{
"foo-namespace.bar-key": pulumi.Any("value"),
},
FreeformTags: pulumi.AnyMap{
"bar-key": pulumi.Any("value"),
},
})
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.AwrHub;
import com.pulumi.oci.Opsi.AwrHubArgs;
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) {
var testAwrHub = new AwrHub("testAwrHub", AwrHubArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.awr_hub_display_name())
.objectStorageBucketName(oci_objectstorage_bucket.test_bucket().name())
.operationsInsightsWarehouseId(oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse().id())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
import pulumi
import pulumi_oci as oci
test_awr_hub = oci.opsi.AwrHub("testAwrHub",
compartment_id=var["compartment_id"],
display_name=var["awr_hub_display_name"],
object_storage_bucket_name=oci_objectstorage_bucket["test_bucket"]["name"],
operations_insights_warehouse_id=oci_opsi_operations_insights_warehouse["test_operations_insights_warehouse"]["id"],
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
})
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAwrHub = new oci.opsi.AwrHub("testAwrHub", {
compartmentId: _var.compartment_id,
displayName: _var.awr_hub_display_name,
objectStorageBucketName: oci_objectstorage_bucket.test_bucket.name,
operationsInsightsWarehouseId: oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
});
resources:
testAwrHub:
type: oci:Opsi:AwrHub
properties:
#Required
compartmentId: ${var.compartment_id}
displayName: ${var.awr_hub_display_name}
objectStorageBucketName: ${oci_objectstorage_bucket.test_bucket.name}
operationsInsightsWarehouseId: ${oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id}
#Optional
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
Create AwrHub Resource
new AwrHub(name: string, args: AwrHubArgs, opts?: CustomResourceOptions);
@overload
def AwrHub(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
object_storage_bucket_name: Optional[str] = None,
operations_insights_warehouse_id: Optional[str] = None)
@overload
def AwrHub(resource_name: str,
args: AwrHubArgs,
opts: Optional[ResourceOptions] = None)
func NewAwrHub(ctx *Context, name string, args AwrHubArgs, opts ...ResourceOption) (*AwrHub, error)
public AwrHub(string name, AwrHubArgs args, CustomResourceOptions? opts = null)
public AwrHub(String name, AwrHubArgs args)
public AwrHub(String name, AwrHubArgs args, CustomResourceOptions options)
type: oci:Opsi:AwrHub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwrHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AwrHubArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AwrHubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwrHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwrHubArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AwrHub Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AwrHub resource accepts the following input properties:
- Compartment
Id string The OCID of the compartment.
- Display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Object
Storage stringBucket Name Object Storage Bucket Name
- Operations
Insights stringWarehouse Id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Compartment
Id string The OCID of the compartment.
- Display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Object
Storage stringBucket Name Object Storage Bucket Name
- Operations
Insights stringWarehouse Id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- compartment
Id String The OCID of the compartment.
- display
Name String (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- object
Storage StringBucket Name Object Storage Bucket Name
- operations
Insights StringWarehouse Id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- compartment
Id string The OCID of the compartment.
- display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- object
Storage stringBucket Name Object Storage Bucket Name
- operations
Insights stringWarehouse Id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- compartment_
id str The OCID of the compartment.
- display_
name str (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- object_
storage_ strbucket_ name Object Storage Bucket Name
- operations_
insights_ strwarehouse_ id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- compartment
Id String The OCID of the compartment.
- display
Name String (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- object
Storage StringBucket Name Object Storage Bucket Name
- operations
Insights StringWarehouse Id OPSI Warehouse OCID
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
Outputs
All input properties are implicitly available as output properties. Additionally, the AwrHub resource produces the following output properties:
- Awr
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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
Mailbox StringUrl Mailbox URL required for AWR hub and AWR source setup.
- id String
The provider-assigned unique ID for this managed resource.
- 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.
- 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
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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_
mailbox_ strurl Mailbox URL required for AWR hub and AWR source setup.
- id str
The provider-assigned unique ID for this managed resource.
- 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.
- 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
Mailbox StringUrl Mailbox URL required for AWR hub and AWR source setup.
- id String
The provider-assigned unique ID for this managed resource.
- 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.
- 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
Look up Existing AwrHub Resource
Get an existing AwrHub resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AwrHubState, opts?: CustomResourceOptions): AwrHub
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
awr_mailbox_url: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
object_storage_bucket_name: Optional[str] = None,
operations_insights_warehouse_id: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> AwrHub
func GetAwrHub(ctx *Context, name string, id IDInput, state *AwrHubState, opts ...ResourceOption) (*AwrHub, error)
public static AwrHub Get(string name, Input<string> id, AwrHubState? state, CustomResourceOptions? opts = null)
public static AwrHub get(String name, Output<String> id, AwrHubState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Awr
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- Compartment
Id string The OCID of the compartment.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- Compartment
Id string The OCID of the compartment.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Mailbox StringUrl Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id String The OCID of the compartment.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Mailbox stringUrl Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id string The OCID of the compartment.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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_
mailbox_ strurl Mailbox URL required for AWR hub and AWR source setup.
- compartment_
id str The OCID of the compartment.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Mailbox StringUrl Mailbox URL required for AWR hub and AWR source setup.
- compartment
Id String The OCID of the compartment.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String (Updatable) User-friedly name of AWR Hub that does not have to be unique.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- 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
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Import
AwrHubs can be imported using the id
, e.g.
$ pulumi import oci:Opsi/awrHub:AwrHub test_awr_hub "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.