1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getDbManagementPrivateEndpoints
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DatabaseManagement.getDbManagementPrivateEndpoints

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Db Management Private Endpoints in Oracle Cloud Infrastructure Database Management service.

    Gets a list of Database Management private endpoints.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbManagementPrivateEndpoints = oci.DatabaseManagement.getDbManagementPrivateEndpoints({
        compartmentId: compartmentId,
        isCluster: dbManagementPrivateEndpointIsCluster,
        name: dbManagementPrivateEndpointName,
        state: dbManagementPrivateEndpointState,
        vcnId: testVcn.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_management_private_endpoints = oci.DatabaseManagement.get_db_management_private_endpoints(compartment_id=compartment_id,
        is_cluster=db_management_private_endpoint_is_cluster,
        name=db_management_private_endpoint_name,
        state=db_management_private_endpoint_state,
        vcn_id=test_vcn["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DatabaseManagement.GetDbManagementPrivateEndpoints(ctx, &databasemanagement.GetDbManagementPrivateEndpointsArgs{
    			CompartmentId: compartmentId,
    			IsCluster:     pulumi.BoolRef(dbManagementPrivateEndpointIsCluster),
    			Name:          pulumi.StringRef(dbManagementPrivateEndpointName),
    			State:         pulumi.StringRef(dbManagementPrivateEndpointState),
    			VcnId:         pulumi.StringRef(testVcn.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 testDbManagementPrivateEndpoints = Oci.DatabaseManagement.GetDbManagementPrivateEndpoints.Invoke(new()
        {
            CompartmentId = compartmentId,
            IsCluster = dbManagementPrivateEndpointIsCluster,
            Name = dbManagementPrivateEndpointName,
            State = dbManagementPrivateEndpointState,
            VcnId = testVcn.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
    import com.pulumi.oci.DatabaseManagement.inputs.GetDbManagementPrivateEndpointsArgs;
    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 testDbManagementPrivateEndpoints = DatabaseManagementFunctions.getDbManagementPrivateEndpoints(GetDbManagementPrivateEndpointsArgs.builder()
                .compartmentId(compartmentId)
                .isCluster(dbManagementPrivateEndpointIsCluster)
                .name(dbManagementPrivateEndpointName)
                .state(dbManagementPrivateEndpointState)
                .vcnId(testVcn.id())
                .build());
    
        }
    }
    
    variables:
      testDbManagementPrivateEndpoints:
        fn::invoke:
          Function: oci:DatabaseManagement:getDbManagementPrivateEndpoints
          Arguments:
            compartmentId: ${compartmentId}
            isCluster: ${dbManagementPrivateEndpointIsCluster}
            name: ${dbManagementPrivateEndpointName}
            state: ${dbManagementPrivateEndpointState}
            vcnId: ${testVcn.id}
    

    Using getDbManagementPrivateEndpoints

    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 getDbManagementPrivateEndpoints(args: GetDbManagementPrivateEndpointsArgs, opts?: InvokeOptions): Promise<GetDbManagementPrivateEndpointsResult>
    function getDbManagementPrivateEndpointsOutput(args: GetDbManagementPrivateEndpointsOutputArgs, opts?: InvokeOptions): Output<GetDbManagementPrivateEndpointsResult>
    def get_db_management_private_endpoints(compartment_id: Optional[str] = None,
                                            filters: Optional[Sequence[_databasemanagement.GetDbManagementPrivateEndpointsFilter]] = None,
                                            is_cluster: Optional[bool] = None,
                                            name: Optional[str] = None,
                                            state: Optional[str] = None,
                                            vcn_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetDbManagementPrivateEndpointsResult
    def get_db_management_private_endpoints_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetDbManagementPrivateEndpointsFilterArgs]]]] = None,
                                            is_cluster: Optional[pulumi.Input[bool]] = None,
                                            name: Optional[pulumi.Input[str]] = None,
                                            state: Optional[pulumi.Input[str]] = None,
                                            vcn_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetDbManagementPrivateEndpointsResult]
    func GetDbManagementPrivateEndpoints(ctx *Context, args *GetDbManagementPrivateEndpointsArgs, opts ...InvokeOption) (*GetDbManagementPrivateEndpointsResult, error)
    func GetDbManagementPrivateEndpointsOutput(ctx *Context, args *GetDbManagementPrivateEndpointsOutputArgs, opts ...InvokeOption) GetDbManagementPrivateEndpointsResultOutput

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

    public static class GetDbManagementPrivateEndpoints 
    {
        public static Task<GetDbManagementPrivateEndpointsResult> InvokeAsync(GetDbManagementPrivateEndpointsArgs args, InvokeOptions? opts = null)
        public static Output<GetDbManagementPrivateEndpointsResult> Invoke(GetDbManagementPrivateEndpointsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbManagementPrivateEndpointsResult> getDbManagementPrivateEndpoints(GetDbManagementPrivateEndpointsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseManagement/getDbManagementPrivateEndpoints:getDbManagementPrivateEndpoints
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    Filters List<GetDbManagementPrivateEndpointsFilter>
    IsCluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    Name string
    A filter to return only resources that match the entire name.
    State string
    The lifecycle state of a resource.
    VcnId string
    The OCID of the VCN.
    CompartmentId string
    The OCID of the compartment.
    Filters []GetDbManagementPrivateEndpointsFilter
    IsCluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    Name string
    A filter to return only resources that match the entire name.
    State string
    The lifecycle state of a resource.
    VcnId string
    The OCID of the VCN.
    compartmentId String
    The OCID of the compartment.
    filters List<GetDbManagementPrivateEndpointsFilter>
    isCluster Boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name String
    A filter to return only resources that match the entire name.
    state String
    The lifecycle state of a resource.
    vcnId String
    The OCID of the VCN.
    compartmentId string
    The OCID of the compartment.
    filters GetDbManagementPrivateEndpointsFilter[]
    isCluster boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name string
    A filter to return only resources that match the entire name.
    state string
    The lifecycle state of a resource.
    vcnId string
    The OCID of the VCN.
    compartment_id str
    The OCID of the compartment.
    filters Sequence[databasemanagement.GetDbManagementPrivateEndpointsFilter]
    is_cluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name str
    A filter to return only resources that match the entire name.
    state str
    The lifecycle state of a resource.
    vcn_id str
    The OCID of the VCN.
    compartmentId String
    The OCID of the compartment.
    filters List<Property Map>
    isCluster Boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name String
    A filter to return only resources that match the entire name.
    state String
    The lifecycle state of a resource.
    vcnId String
    The OCID of the VCN.

    getDbManagementPrivateEndpoints Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    DbManagementPrivateEndpointCollections List<GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection>
    The list of db_management_private_endpoint_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetDbManagementPrivateEndpointsFilter>
    IsCluster bool
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    Name string
    The display name of the Database Management private endpoint.
    State string
    The current lifecycle state of the Database Management private endpoint.
    VcnId string
    The OCID of the VCN.
    CompartmentId string
    The OCID of the compartment.
    DbManagementPrivateEndpointCollections []GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection
    The list of db_management_private_endpoint_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDbManagementPrivateEndpointsFilter
    IsCluster bool
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    Name string
    The display name of the Database Management private endpoint.
    State string
    The current lifecycle state of the Database Management private endpoint.
    VcnId string
    The OCID of the VCN.
    compartmentId String
    The OCID of the compartment.
    dbManagementPrivateEndpointCollections List<GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection>
    The list of db_management_private_endpoint_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDbManagementPrivateEndpointsFilter>
    isCluster Boolean
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    name String
    The display name of the Database Management private endpoint.
    state String
    The current lifecycle state of the Database Management private endpoint.
    vcnId String
    The OCID of the VCN.
    compartmentId string
    The OCID of the compartment.
    dbManagementPrivateEndpointCollections GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection[]
    The list of db_management_private_endpoint_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDbManagementPrivateEndpointsFilter[]
    isCluster boolean
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    name string
    The display name of the Database Management private endpoint.
    state string
    The current lifecycle state of the Database Management private endpoint.
    vcnId string
    The OCID of the VCN.
    compartment_id str
    The OCID of the compartment.
    db_management_private_endpoint_collections Sequence[databasemanagement.GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection]
    The list of db_management_private_endpoint_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[databasemanagement.GetDbManagementPrivateEndpointsFilter]
    is_cluster bool
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    name str
    The display name of the Database Management private endpoint.
    state str
    The current lifecycle state of the Database Management private endpoint.
    vcn_id str
    The OCID of the VCN.
    compartmentId String
    The OCID of the compartment.
    dbManagementPrivateEndpointCollections List<Property Map>
    The list of db_management_private_endpoint_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    isCluster Boolean
    Specifies whether the Database Management private endpoint can be used for Oracle Databases in a cluster.
    name String
    The display name of the Database Management private endpoint.
    state String
    The current lifecycle state of the Database Management private endpoint.
    vcnId String
    The OCID of the VCN.

    Supporting Types

    GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollection

    GetDbManagementPrivateEndpointsDbManagementPrivateEndpointCollectionItem

    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. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The description of the Database Management private endpoint.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Database Management private endpoint.
    IsCluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    Name string
    A filter to return only resources that match the entire name.
    NsgIds List<string>
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    PrivateIp string
    The IP addresses assigned to the Database Management private endpoint.
    State string
    The lifecycle state of a resource.
    SubnetId string
    The OCID of the subnet.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    VcnId string
    The OCID of the VCN.
    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. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The description of the Database Management private endpoint.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Database Management private endpoint.
    IsCluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    Name string
    A filter to return only resources that match the entire name.
    NsgIds []string
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    PrivateIp string
    The IP addresses assigned to the Database Management private endpoint.
    State string
    The lifecycle state of a resource.
    SubnetId string
    The OCID of the subnet.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    VcnId string
    The OCID of the VCN.
    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. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The description of the Database Management private endpoint.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Database Management private endpoint.
    isCluster Boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name String
    A filter to return only resources that match the entire name.
    nsgIds List<String>
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    privateIp String
    The IP addresses assigned to the Database Management private endpoint.
    state String
    The lifecycle state of a resource.
    subnetId String
    The OCID of the subnet.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    vcnId String
    The OCID of the VCN.
    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. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    The description of the Database Management private endpoint.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the Database Management private endpoint.
    isCluster boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name string
    A filter to return only resources that match the entire name.
    nsgIds string[]
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    privateIp string
    The IP addresses assigned to the Database Management private endpoint.
    state string
    The lifecycle state of a resource.
    subnetId string
    The OCID of the subnet.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    vcnId string
    The OCID of the VCN.
    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. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    The description of the Database Management private endpoint.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the Database Management private endpoint.
    is_cluster bool
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name str
    A filter to return only resources that match the entire name.
    nsg_ids Sequence[str]
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    private_ip str
    The IP addresses assigned to the Database Management private endpoint.
    state str
    The lifecycle state of a resource.
    subnet_id str
    The OCID of the subnet.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    vcn_id str
    The OCID of the VCN.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The description of the Database Management private endpoint.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Database Management private endpoint.
    isCluster Boolean
    The option to filter Database Management private endpoints that can used for Oracle Databases in a cluster. This should be used along with the vcnId query parameter.
    name String
    A filter to return only resources that match the entire name.
    nsgIds List<String>
    The OCIDs of the Network Security Groups to which the Database Management private endpoint belongs.
    privateIp String
    The IP addresses assigned to the Database Management private endpoint.
    state String
    The lifecycle state of a resource.
    subnetId String
    The OCID of the subnet.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Database Managament private endpoint was created, in the format defined by RFC3339.
    vcnId String
    The OCID of the VCN.

    GetDbManagementPrivateEndpointsFilter

    Name string
    A filter to return only resources that match the entire name.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the entire name.
    Values []string
    Regex bool
    name String
    A filter to return only resources that match the entire name.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the entire name.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the entire name.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the entire name.
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi