Oracle Cloud Infrastructure

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

getEnterpriseManagerBridges

This data source provides the list of Enterprise Manager Bridges in Oracle Cloud Infrastructure Opsi service.

Gets a list of Operations Insights Enterprise Manager bridges. Either compartmentId or id must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of bridges in that compartment and in all sub-compartments will be returned.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testEnterpriseManagerBridges = Oci.Opsi.GetEnterpriseManagerBridges.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        CompartmentIdInSubtree = @var.Enterprise_manager_bridge_compartment_id_in_subtree,
        DisplayName = @var.Enterprise_manager_bridge_display_name,
        Id = @var.Enterprise_manager_bridge_id,
        States = @var.Enterprise_manager_bridge_state,
    });

});
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.GetEnterpriseManagerBridges(ctx, &opsi.GetEnterpriseManagerBridgesArgs{
			CompartmentId:          pulumi.StringRef(_var.Compartment_id),
			CompartmentIdInSubtree: pulumi.BoolRef(_var.Enterprise_manager_bridge_compartment_id_in_subtree),
			DisplayName:            pulumi.StringRef(_var.Enterprise_manager_bridge_display_name),
			Id:                     pulumi.StringRef(_var.Enterprise_manager_bridge_id),
			States:                 _var.Enterprise_manager_bridge_state,
		}, 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.GetEnterpriseManagerBridgesArgs;
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 testEnterpriseManagerBridges = OpsiFunctions.getEnterpriseManagerBridges(GetEnterpriseManagerBridgesArgs.builder()
            .compartmentId(var_.compartment_id())
            .compartmentIdInSubtree(var_.enterprise_manager_bridge_compartment_id_in_subtree())
            .displayName(var_.enterprise_manager_bridge_display_name())
            .id(var_.enterprise_manager_bridge_id())
            .states(var_.enterprise_manager_bridge_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_enterprise_manager_bridges = oci.Opsi.get_enterprise_manager_bridges(compartment_id=var["compartment_id"],
    compartment_id_in_subtree=var["enterprise_manager_bridge_compartment_id_in_subtree"],
    display_name=var["enterprise_manager_bridge_display_name"],
    id=var["enterprise_manager_bridge_id"],
    states=var["enterprise_manager_bridge_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testEnterpriseManagerBridges = oci.Opsi.getEnterpriseManagerBridges({
    compartmentId: _var.compartment_id,
    compartmentIdInSubtree: _var.enterprise_manager_bridge_compartment_id_in_subtree,
    displayName: _var.enterprise_manager_bridge_display_name,
    id: _var.enterprise_manager_bridge_id,
    states: _var.enterprise_manager_bridge_state,
});
variables:
  testEnterpriseManagerBridges:
    Fn::Invoke:
      Function: oci:Opsi:getEnterpriseManagerBridges
      Arguments:
        compartmentId: ${var.compartment_id}
        compartmentIdInSubtree: ${var.enterprise_manager_bridge_compartment_id_in_subtree}
        displayName: ${var.enterprise_manager_bridge_display_name}
        id: ${var.enterprise_manager_bridge_id}
        states: ${var.enterprise_manager_bridge_state}

Using getEnterpriseManagerBridges

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 getEnterpriseManagerBridges(args: GetEnterpriseManagerBridgesArgs, opts?: InvokeOptions): Promise<GetEnterpriseManagerBridgesResult>
function getEnterpriseManagerBridgesOutput(args: GetEnterpriseManagerBridgesOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseManagerBridgesResult>
def get_enterprise_manager_bridges(compartment_id: Optional[str] = None,
                                   compartment_id_in_subtree: Optional[bool] = None,
                                   display_name: Optional[str] = None,
                                   filters: Optional[Sequence[_opsi.GetEnterpriseManagerBridgesFilter]] = None,
                                   id: Optional[str] = None,
                                   states: Optional[Sequence[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetEnterpriseManagerBridgesResult
def get_enterprise_manager_bridges_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                   compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                   display_name: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_opsi.GetEnterpriseManagerBridgesFilterArgs]]]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseManagerBridgesResult]
func GetEnterpriseManagerBridges(ctx *Context, args *GetEnterpriseManagerBridgesArgs, opts ...InvokeOption) (*GetEnterpriseManagerBridgesResult, error)
func GetEnterpriseManagerBridgesOutput(ctx *Context, args *GetEnterpriseManagerBridgesOutputArgs, opts ...InvokeOption) GetEnterpriseManagerBridgesResultOutput

> Note: This function is named GetEnterpriseManagerBridges in the Go SDK.

public static class GetEnterpriseManagerBridges 
{
    public static Task<GetEnterpriseManagerBridgesResult> InvokeAsync(GetEnterpriseManagerBridgesArgs args, InvokeOptions? opts = null)
    public static Output<GetEnterpriseManagerBridgesResult> Invoke(GetEnterpriseManagerBridgesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnterpriseManagerBridgesResult> getEnterpriseManagerBridges(GetEnterpriseManagerBridgesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Opsi/getEnterpriseManagerBridges:getEnterpriseManagerBridges
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

CompartmentIdInSubtree bool

A flag to search all resources within a given compartment and all sub-compartments.

DisplayName string

A filter to return only resources that match the entire display name.

Filters List<GetEnterpriseManagerBridgesFilter>
Id string

Unique Enterprise Manager bridge identifier

States List<string>

Lifecycle states

CompartmentId string

The OCID of the compartment.

CompartmentIdInSubtree bool

A flag to search all resources within a given compartment and all sub-compartments.

DisplayName string

A filter to return only resources that match the entire display name.

Filters []GetEnterpriseManagerBridgesFilter
Id string

Unique Enterprise Manager bridge identifier

States []string

Lifecycle states

compartmentId String

The OCID of the compartment.

compartmentIdInSubtree Boolean

A flag to search all resources within a given compartment and all sub-compartments.

displayName String

A filter to return only resources that match the entire display name.

filters List<GetEnterpriseManagerBridgesFilter>
id String

Unique Enterprise Manager bridge identifier

states List<String>

Lifecycle states

compartmentId string

The OCID of the compartment.

compartmentIdInSubtree boolean

A flag to search all resources within a given compartment and all sub-compartments.

displayName string

A filter to return only resources that match the entire display name.

filters GetEnterpriseManagerBridgesFilter[]
id string

Unique Enterprise Manager bridge identifier

states string[]

Lifecycle states

compartment_id str

The OCID of the compartment.

compartment_id_in_subtree bool

A flag to search all resources within a given compartment and all sub-compartments.

display_name str

A filter to return only resources that match the entire display name.

filters GetEnterpriseManagerBridgesFilter]
id str

Unique Enterprise Manager bridge identifier

states Sequence[str]

Lifecycle states

compartmentId String

The OCID of the compartment.

compartmentIdInSubtree Boolean

A flag to search all resources within a given compartment and all sub-compartments.

displayName String

A filter to return only resources that match the entire display name.

filters List<Property Map>
id String

Unique Enterprise Manager bridge identifier

states List<String>

Lifecycle states

getEnterpriseManagerBridges Result

The following output properties are available:

EnterpriseManagerBridgeCollections List<GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection>

The list of enterprise_manager_bridge_collection.

CompartmentId string

Compartment identifier of the Enterprise Manager bridge

CompartmentIdInSubtree bool
DisplayName string

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

Filters List<GetEnterpriseManagerBridgesFilter>
Id string

Enterprise Manager bridge identifier

States List<string>

The current state of the Enterprise Manager bridge.

EnterpriseManagerBridgeCollections []GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection

The list of enterprise_manager_bridge_collection.

CompartmentId string

Compartment identifier of the Enterprise Manager bridge

CompartmentIdInSubtree bool
DisplayName string

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

Filters []GetEnterpriseManagerBridgesFilter
Id string

Enterprise Manager bridge identifier

States []string

The current state of the Enterprise Manager bridge.

enterpriseManagerBridgeCollections List<GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection>

The list of enterprise_manager_bridge_collection.

compartmentId String

Compartment identifier of the Enterprise Manager bridge

compartmentIdInSubtree Boolean
displayName String

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

filters List<GetEnterpriseManagerBridgesFilter>
id String

Enterprise Manager bridge identifier

states List<String>

The current state of the Enterprise Manager bridge.

enterpriseManagerBridgeCollections GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection[]

The list of enterprise_manager_bridge_collection.

compartmentId string

Compartment identifier of the Enterprise Manager bridge

compartmentIdInSubtree boolean
displayName string

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

filters GetEnterpriseManagerBridgesFilter[]
id string

Enterprise Manager bridge identifier

states string[]

The current state of the Enterprise Manager bridge.

enterprise_manager_bridge_collections GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection]

The list of enterprise_manager_bridge_collection.

compartment_id str

Compartment identifier of the Enterprise Manager bridge

compartment_id_in_subtree bool
display_name str

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

filters GetEnterpriseManagerBridgesFilter]
id str

Enterprise Manager bridge identifier

states Sequence[str]

The current state of the Enterprise Manager bridge.

enterpriseManagerBridgeCollections List<Property Map>

The list of enterprise_manager_bridge_collection.

compartmentId String

Compartment identifier of the Enterprise Manager bridge

compartmentIdInSubtree Boolean
displayName String

User-friedly name of Enterprise Manager Bridge that does not have to be unique.

filters List<Property Map>
id String

Enterprise Manager bridge identifier

states List<String>

The current state of the Enterprise Manager bridge.

Supporting Types

GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollection

GetEnterpriseManagerBridgesEnterpriseManagerBridgeCollectionItem

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

Description string

Description of Enterprise Manager Bridge

DisplayName string

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

ObjectStorageBucketStatusDetails string

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

ObjectStorageNamespaceName string

Object Storage Namespace Name

State string

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

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

Description string

Description of Enterprise Manager Bridge

DisplayName string

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

ObjectStorageBucketStatusDetails string

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

ObjectStorageNamespaceName string

Object Storage Namespace Name

State string

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

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

description String

Description of Enterprise Manager Bridge

displayName String

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

objectStorageBucketStatusDetails String

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

objectStorageNamespaceName String

Object Storage Namespace Name

state String

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

timeUpdated String

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

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

description string

Description of Enterprise Manager Bridge

displayName string

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

objectStorageBucketStatusDetails string

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

objectStorageNamespaceName string

Object Storage Namespace Name

state string

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

timeUpdated string

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

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

description str

Description of Enterprise Manager Bridge

display_name str

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

object_storage_bucket_status_details str

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

object_storage_namespace_name str

Object Storage Namespace Name

state str

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

time_updated str

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

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

description String

Description of Enterprise Manager Bridge

displayName String

A filter to return only resources that match the entire display name.

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

Unique Enterprise Manager bridge identifier

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

objectStorageBucketStatusDetails String

A message describing status of the object storage bucket of this resource. For example, it can be used to provide actionable information about the permission and content validity of the bucket.

objectStorageNamespaceName String

Object Storage Namespace Name

state String

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 the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string

timeUpdated String

The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string

GetEnterpriseManagerBridgesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.