1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getCloudAsmInstances
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DatabaseManagement.getCloudAsmInstances

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Cloud Asm Instances in Oracle Cloud Infrastructure Database Management service.

    Lists the ASM instances in the specified cloud ASM.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudAsmInstances = oci.DatabaseManagement.getCloudAsmInstances({
        cloudAsmId: testCloudAsm.id,
        compartmentId: compartmentId,
        displayName: cloudAsmInstanceDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_asm_instances = oci.DatabaseManagement.get_cloud_asm_instances(cloud_asm_id=test_cloud_asm["id"],
        compartment_id=compartment_id,
        display_name=cloud_asm_instance_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasemanagement.GetCloudAsmInstances(ctx, &databasemanagement.GetCloudAsmInstancesArgs{
    			CloudAsmId:    pulumi.StringRef(testCloudAsm.Id),
    			CompartmentId: pulumi.StringRef(compartmentId),
    			DisplayName:   pulumi.StringRef(cloudAsmInstanceDisplayName),
    		}, 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 testCloudAsmInstances = Oci.DatabaseManagement.GetCloudAsmInstances.Invoke(new()
        {
            CloudAsmId = testCloudAsm.Id,
            CompartmentId = compartmentId,
            DisplayName = cloudAsmInstanceDisplayName,
        });
    
    });
    
    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.GetCloudAsmInstancesArgs;
    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 testCloudAsmInstances = DatabaseManagementFunctions.getCloudAsmInstances(GetCloudAsmInstancesArgs.builder()
                .cloudAsmId(testCloudAsm.id())
                .compartmentId(compartmentId)
                .displayName(cloudAsmInstanceDisplayName)
                .build());
    
        }
    }
    
    variables:
      testCloudAsmInstances:
        fn::invoke:
          function: oci:DatabaseManagement:getCloudAsmInstances
          arguments:
            cloudAsmId: ${testCloudAsm.id}
            compartmentId: ${compartmentId}
            displayName: ${cloudAsmInstanceDisplayName}
    

    Using getCloudAsmInstances

    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 getCloudAsmInstances(args: GetCloudAsmInstancesArgs, opts?: InvokeOptions): Promise<GetCloudAsmInstancesResult>
    function getCloudAsmInstancesOutput(args: GetCloudAsmInstancesOutputArgs, opts?: InvokeOptions): Output<GetCloudAsmInstancesResult>
    def get_cloud_asm_instances(cloud_asm_id: Optional[str] = None,
                                compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                filters: Optional[Sequence[GetCloudAsmInstancesFilter]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCloudAsmInstancesResult
    def get_cloud_asm_instances_output(cloud_asm_id: Optional[pulumi.Input[str]] = None,
                                compartment_id: Optional[pulumi.Input[str]] = None,
                                display_name: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAsmInstancesFilterArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCloudAsmInstancesResult]
    func GetCloudAsmInstances(ctx *Context, args *GetCloudAsmInstancesArgs, opts ...InvokeOption) (*GetCloudAsmInstancesResult, error)
    func GetCloudAsmInstancesOutput(ctx *Context, args *GetCloudAsmInstancesOutputArgs, opts ...InvokeOption) GetCloudAsmInstancesResultOutput

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

    public static class GetCloudAsmInstances 
    {
        public static Task<GetCloudAsmInstancesResult> InvokeAsync(GetCloudAsmInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAsmInstancesResult> Invoke(GetCloudAsmInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAsmInstancesResult> getCloudAsmInstances(GetCloudAsmInstancesArgs args, InvokeOptions options)
    public static Output<GetCloudAsmInstancesResult> getCloudAsmInstances(GetCloudAsmInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getCloudAsmInstances:getCloudAsmInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudAsmId string
    The OCID of the cloud ASM.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A filter to only return the resources that match the entire display name.
    Filters List<GetCloudAsmInstancesFilter>
    CloudAsmId string
    The OCID of the cloud ASM.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A filter to only return the resources that match the entire display name.
    Filters []GetCloudAsmInstancesFilter
    cloudAsmId String
    The OCID of the cloud ASM.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A filter to only return the resources that match the entire display name.
    filters List<GetCloudAsmInstancesFilter>
    cloudAsmId string
    The OCID of the cloud ASM.
    compartmentId string
    The OCID of the compartment.
    displayName string
    A filter to only return the resources that match the entire display name.
    filters GetCloudAsmInstancesFilter[]
    cloud_asm_id str
    The OCID of the cloud ASM.
    compartment_id str
    The OCID of the compartment.
    display_name str
    A filter to only return the resources that match the entire display name.
    filters Sequence[GetCloudAsmInstancesFilter]
    cloudAsmId String
    The OCID of the cloud ASM.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A filter to only return the resources that match the entire display name.
    filters List<Property Map>

    getCloudAsmInstances Result

    The following output properties are available:

    CloudAsmInstanceCollections List<GetCloudAsmInstancesCloudAsmInstanceCollection>
    The list of cloud_asm_instance_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CloudAsmId string
    The OCID of the cloud ASM that the ASM instance belongs to.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    Filters List<GetCloudAsmInstancesFilter>
    CloudAsmInstanceCollections []GetCloudAsmInstancesCloudAsmInstanceCollection
    The list of cloud_asm_instance_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CloudAsmId string
    The OCID of the cloud ASM that the ASM instance belongs to.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    Filters []GetCloudAsmInstancesFilter
    cloudAsmInstanceCollections List<GetCloudAsmInstancesCloudAsmInstanceCollection>
    The list of cloud_asm_instance_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    cloudAsmId String
    The OCID of the cloud ASM that the ASM instance belongs to.
    compartmentId String
    The OCID of the compartment.
    displayName String
    The user-friendly name for the ASM instance. The name does not have to be unique.
    filters List<GetCloudAsmInstancesFilter>
    cloudAsmInstanceCollections GetCloudAsmInstancesCloudAsmInstanceCollection[]
    The list of cloud_asm_instance_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    cloudAsmId string
    The OCID of the cloud ASM that the ASM instance belongs to.
    compartmentId string
    The OCID of the compartment.
    displayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    filters GetCloudAsmInstancesFilter[]
    cloud_asm_instance_collections Sequence[GetCloudAsmInstancesCloudAsmInstanceCollection]
    The list of cloud_asm_instance_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    cloud_asm_id str
    The OCID of the cloud ASM that the ASM instance belongs to.
    compartment_id str
    The OCID of the compartment.
    display_name str
    The user-friendly name for the ASM instance. The name does not have to be unique.
    filters Sequence[GetCloudAsmInstancesFilter]
    cloudAsmInstanceCollections List<Property Map>
    The list of cloud_asm_instance_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    cloudAsmId String
    The OCID of the cloud ASM that the ASM instance belongs to.
    compartmentId String
    The OCID of the compartment.
    displayName String
    The user-friendly name for the ASM instance. The name does not have to be unique.
    filters List<Property Map>

    Supporting Types

    GetCloudAsmInstancesCloudAsmInstanceCollection

    GetCloudAsmInstancesCloudAsmInstanceCollectionItem

    AdrHomeDirectory string
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    CloudAsmId string
    The OCID of the cloud ASM.
    CloudAsmInstanceId string
    CloudDbNodeId string
    The OCID of the cloud DB node on which the ASM instance is running.
    CloudDbSystemId string
    The OCID of the cloud DB system that the ASM instance is a part of.
    CompartmentId string
    The OCID of the compartment.
    ComponentName string
    The name of the cloud ASM instance.
    DbaasId string
    The OCID in DBaas service.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to only return the resources that match the entire display name.
    FreeformTags Dictionary<string, string>
    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"}
    HostName string
    The name of the host on which the ASM instance is running.
    Id string
    The OCID of the cloud ASM instance.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    State string
    The current lifecycle state of the cloud ASM instance.
    SystemTags Dictionary<string, string>
    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 cloud ASM instance was created.
    TimeUpdated string
    The date and time the cloud ASM instance was last updated.
    AdrHomeDirectory string
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    CloudAsmId string
    The OCID of the cloud ASM.
    CloudAsmInstanceId string
    CloudDbNodeId string
    The OCID of the cloud DB node on which the ASM instance is running.
    CloudDbSystemId string
    The OCID of the cloud DB system that the ASM instance is a part of.
    CompartmentId string
    The OCID of the compartment.
    ComponentName string
    The name of the cloud ASM instance.
    DbaasId string
    The OCID in DBaas service.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to only return the resources that match the entire display name.
    FreeformTags map[string]string
    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"}
    HostName string
    The name of the host on which the ASM instance is running.
    Id string
    The OCID of the cloud ASM instance.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    State string
    The current lifecycle state of the cloud ASM instance.
    SystemTags map[string]string
    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 cloud ASM instance was created.
    TimeUpdated string
    The date and time the cloud ASM instance was last updated.
    adrHomeDirectory String
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    cloudAsmId String
    The OCID of the cloud ASM.
    cloudAsmInstanceId String
    cloudDbNodeId String
    The OCID of the cloud DB node on which the ASM instance is running.
    cloudDbSystemId String
    The OCID of the cloud DB system that the ASM instance is a part of.
    compartmentId String
    The OCID of the compartment.
    componentName String
    The name of the cloud ASM instance.
    dbaasId String
    The OCID in DBaas service.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to only return the resources that match the entire display name.
    freeformTags Map<String,String>
    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"}
    hostName String
    The name of the host on which the ASM instance is running.
    id String
    The OCID of the cloud ASM instance.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    state String
    The current lifecycle state of the cloud ASM instance.
    systemTags Map<String,String>
    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 cloud ASM instance was created.
    timeUpdated String
    The date and time the cloud ASM instance was last updated.
    adrHomeDirectory string
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    cloudAsmId string
    The OCID of the cloud ASM.
    cloudAsmInstanceId string
    cloudDbNodeId string
    The OCID of the cloud DB node on which the ASM instance is running.
    cloudDbSystemId string
    The OCID of the cloud DB system that the ASM instance is a part of.
    compartmentId string
    The OCID of the compartment.
    componentName string
    The name of the cloud ASM instance.
    dbaasId string
    The OCID in DBaas service.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A filter to only return the resources that match the entire display name.
    freeformTags {[key: string]: string}
    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"}
    hostName string
    The name of the host on which the ASM instance is running.
    id string
    The OCID of the cloud ASM instance.
    lifecycleDetails string
    Additional information about the current lifecycle state.
    state string
    The current lifecycle state of the cloud ASM instance.
    systemTags {[key: string]: string}
    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 cloud ASM instance was created.
    timeUpdated string
    The date and time the cloud ASM instance was last updated.
    adr_home_directory str
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    cloud_asm_id str
    The OCID of the cloud ASM.
    cloud_asm_instance_id str
    cloud_db_node_id str
    The OCID of the cloud DB node on which the ASM instance is running.
    cloud_db_system_id str
    The OCID of the cloud DB system that the ASM instance is a part of.
    compartment_id str
    The OCID of the compartment.
    component_name str
    The name of the cloud ASM instance.
    dbaas_id str
    The OCID in DBaas service.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A filter to only return the resources that match the entire display name.
    freeform_tags Mapping[str, str]
    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"}
    host_name str
    The name of the host on which the ASM instance is running.
    id str
    The OCID of the cloud ASM instance.
    lifecycle_details str
    Additional information about the current lifecycle state.
    state str
    The current lifecycle state of the cloud ASM instance.
    system_tags Mapping[str, str]
    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 cloud ASM instance was created.
    time_updated str
    The date and time the cloud ASM instance was last updated.
    adrHomeDirectory String
    The Automatic Diagnostic Repository (ADR) home directory for the ASM instance.
    cloudAsmId String
    The OCID of the cloud ASM.
    cloudAsmInstanceId String
    cloudDbNodeId String
    The OCID of the cloud DB node on which the ASM instance is running.
    cloudDbSystemId String
    The OCID of the cloud DB system that the ASM instance is a part of.
    compartmentId String
    The OCID of the compartment.
    componentName String
    The name of the cloud ASM instance.
    dbaasId String
    The OCID in DBaas service.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to only return the resources that match the entire display name.
    freeformTags Map<String>
    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"}
    hostName String
    The name of the host on which the ASM instance is running.
    id String
    The OCID of the cloud ASM instance.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    state String
    The current lifecycle state of the cloud ASM instance.
    systemTags Map<String>
    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 cloud ASM instance was created.
    timeUpdated String
    The date and time the cloud ASM instance was last updated.

    GetCloudAsmInstancesFilter

    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi