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

oci.DatabaseManagement.getCloudAsmDiskGroups

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 Disk Groups in Oracle Cloud Infrastructure Database Management service.

    Lists ASM disk groups for the cloud ASM specified by cloudAsmId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudAsmDiskGroups = oci.DatabaseManagement.getCloudAsmDiskGroups({
        cloudAsmId: testCloudAsm.id,
        opcNamedCredentialId: cloudAsmDiskGroupOpcNamedCredentialId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_asm_disk_groups = oci.DatabaseManagement.get_cloud_asm_disk_groups(cloud_asm_id=test_cloud_asm["id"],
        opc_named_credential_id=cloud_asm_disk_group_opc_named_credential_id)
    
    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.GetCloudAsmDiskGroups(ctx, &databasemanagement.GetCloudAsmDiskGroupsArgs{
    			CloudAsmId:           testCloudAsm.Id,
    			OpcNamedCredentialId: pulumi.StringRef(cloudAsmDiskGroupOpcNamedCredentialId),
    		}, 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 testCloudAsmDiskGroups = Oci.DatabaseManagement.GetCloudAsmDiskGroups.Invoke(new()
        {
            CloudAsmId = testCloudAsm.Id,
            OpcNamedCredentialId = cloudAsmDiskGroupOpcNamedCredentialId,
        });
    
    });
    
    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.GetCloudAsmDiskGroupsArgs;
    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 testCloudAsmDiskGroups = DatabaseManagementFunctions.getCloudAsmDiskGroups(GetCloudAsmDiskGroupsArgs.builder()
                .cloudAsmId(testCloudAsm.id())
                .opcNamedCredentialId(cloudAsmDiskGroupOpcNamedCredentialId)
                .build());
    
        }
    }
    
    variables:
      testCloudAsmDiskGroups:
        fn::invoke:
          function: oci:DatabaseManagement:getCloudAsmDiskGroups
          arguments:
            cloudAsmId: ${testCloudAsm.id}
            opcNamedCredentialId: ${cloudAsmDiskGroupOpcNamedCredentialId}
    

    Using getCloudAsmDiskGroups

    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 getCloudAsmDiskGroups(args: GetCloudAsmDiskGroupsArgs, opts?: InvokeOptions): Promise<GetCloudAsmDiskGroupsResult>
    function getCloudAsmDiskGroupsOutput(args: GetCloudAsmDiskGroupsOutputArgs, opts?: InvokeOptions): Output<GetCloudAsmDiskGroupsResult>
    def get_cloud_asm_disk_groups(cloud_asm_id: Optional[str] = None,
                                  filters: Optional[Sequence[GetCloudAsmDiskGroupsFilter]] = None,
                                  opc_named_credential_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudAsmDiskGroupsResult
    def get_cloud_asm_disk_groups_output(cloud_asm_id: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAsmDiskGroupsFilterArgs]]]] = None,
                                  opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudAsmDiskGroupsResult]
    func GetCloudAsmDiskGroups(ctx *Context, args *GetCloudAsmDiskGroupsArgs, opts ...InvokeOption) (*GetCloudAsmDiskGroupsResult, error)
    func GetCloudAsmDiskGroupsOutput(ctx *Context, args *GetCloudAsmDiskGroupsOutputArgs, opts ...InvokeOption) GetCloudAsmDiskGroupsResultOutput

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

    public static class GetCloudAsmDiskGroups 
    {
        public static Task<GetCloudAsmDiskGroupsResult> InvokeAsync(GetCloudAsmDiskGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAsmDiskGroupsResult> Invoke(GetCloudAsmDiskGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAsmDiskGroupsResult> getCloudAsmDiskGroups(GetCloudAsmDiskGroupsArgs args, InvokeOptions options)
    public static Output<GetCloudAsmDiskGroupsResult> getCloudAsmDiskGroups(GetCloudAsmDiskGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getCloudAsmDiskGroups:getCloudAsmDiskGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudAsmId string
    The OCID of the cloud ASM.
    Filters List<GetCloudAsmDiskGroupsFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    CloudAsmId string
    The OCID of the cloud ASM.
    Filters []GetCloudAsmDiskGroupsFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    filters List<GetCloudAsmDiskGroupsFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    cloudAsmId string
    The OCID of the cloud ASM.
    filters GetCloudAsmDiskGroupsFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    cloud_asm_id str
    The OCID of the cloud ASM.
    filters Sequence[GetCloudAsmDiskGroupsFilter]
    opc_named_credential_id str
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    filters List<Property Map>
    opcNamedCredentialId String
    The OCID of the Named Credential.

    getCloudAsmDiskGroups Result

    The following output properties are available:

    CloudAsmDiskGroupCollections List<GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection>
    The list of cloud_asm_disk_group_collection.
    CloudAsmId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetCloudAsmDiskGroupsFilter>
    OpcNamedCredentialId string
    CloudAsmDiskGroupCollections []GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection
    The list of cloud_asm_disk_group_collection.
    CloudAsmId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetCloudAsmDiskGroupsFilter
    OpcNamedCredentialId string
    cloudAsmDiskGroupCollections List<GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection>
    The list of cloud_asm_disk_group_collection.
    cloudAsmId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetCloudAsmDiskGroupsFilter>
    opcNamedCredentialId String
    cloudAsmDiskGroupCollections GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection[]
    The list of cloud_asm_disk_group_collection.
    cloudAsmId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetCloudAsmDiskGroupsFilter[]
    opcNamedCredentialId string
    cloud_asm_disk_group_collections Sequence[GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection]
    The list of cloud_asm_disk_group_collection.
    cloud_asm_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetCloudAsmDiskGroupsFilter]
    opc_named_credential_id str
    cloudAsmDiskGroupCollections List<Property Map>
    The list of cloud_asm_disk_group_collection.
    cloudAsmId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    opcNamedCredentialId String

    Supporting Types

    GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection

    items List<Property Map>
    An array of cloud ASM disk groups.

    GetCloudAsmDiskGroupsCloudAsmDiskGroupCollectionItem

    Databases List<string>
    The unique names of the databases using the disk group.
    DismountingInstanceCount int
    The number of ASM instances that have the disk group in dismounted state.
    IsSparse bool
    Indicates whether the disk group is a sparse disk group or not.
    MountingInstanceCount int
    The number of ASM instances that have the disk group in mounted state.
    Name string
    The name of the ASM disk group.
    RedundancyType string
    The redundancy type of the disk group.
    TotalSizeInMbs string
    The total capacity of the disk group (in megabytes).
    UsedPercent double
    The percentage of used space in the disk group.
    UsedSizeInMbs string
    The used capacity of the disk group (in megabytes).
    Databases []string
    The unique names of the databases using the disk group.
    DismountingInstanceCount int
    The number of ASM instances that have the disk group in dismounted state.
    IsSparse bool
    Indicates whether the disk group is a sparse disk group or not.
    MountingInstanceCount int
    The number of ASM instances that have the disk group in mounted state.
    Name string
    The name of the ASM disk group.
    RedundancyType string
    The redundancy type of the disk group.
    TotalSizeInMbs string
    The total capacity of the disk group (in megabytes).
    UsedPercent float64
    The percentage of used space in the disk group.
    UsedSizeInMbs string
    The used capacity of the disk group (in megabytes).
    databases List<String>
    The unique names of the databases using the disk group.
    dismountingInstanceCount Integer
    The number of ASM instances that have the disk group in dismounted state.
    isSparse Boolean
    Indicates whether the disk group is a sparse disk group or not.
    mountingInstanceCount Integer
    The number of ASM instances that have the disk group in mounted state.
    name String
    The name of the ASM disk group.
    redundancyType String
    The redundancy type of the disk group.
    totalSizeInMbs String
    The total capacity of the disk group (in megabytes).
    usedPercent Double
    The percentage of used space in the disk group.
    usedSizeInMbs String
    The used capacity of the disk group (in megabytes).
    databases string[]
    The unique names of the databases using the disk group.
    dismountingInstanceCount number
    The number of ASM instances that have the disk group in dismounted state.
    isSparse boolean
    Indicates whether the disk group is a sparse disk group or not.
    mountingInstanceCount number
    The number of ASM instances that have the disk group in mounted state.
    name string
    The name of the ASM disk group.
    redundancyType string
    The redundancy type of the disk group.
    totalSizeInMbs string
    The total capacity of the disk group (in megabytes).
    usedPercent number
    The percentage of used space in the disk group.
    usedSizeInMbs string
    The used capacity of the disk group (in megabytes).
    databases Sequence[str]
    The unique names of the databases using the disk group.
    dismounting_instance_count int
    The number of ASM instances that have the disk group in dismounted state.
    is_sparse bool
    Indicates whether the disk group is a sparse disk group or not.
    mounting_instance_count int
    The number of ASM instances that have the disk group in mounted state.
    name str
    The name of the ASM disk group.
    redundancy_type str
    The redundancy type of the disk group.
    total_size_in_mbs str
    The total capacity of the disk group (in megabytes).
    used_percent float
    The percentage of used space in the disk group.
    used_size_in_mbs str
    The used capacity of the disk group (in megabytes).
    databases List<String>
    The unique names of the databases using the disk group.
    dismountingInstanceCount Number
    The number of ASM instances that have the disk group in dismounted state.
    isSparse Boolean
    Indicates whether the disk group is a sparse disk group or not.
    mountingInstanceCount Number
    The number of ASM instances that have the disk group in mounted state.
    name String
    The name of the ASM disk group.
    redundancyType String
    The redundancy type of the disk group.
    totalSizeInMbs String
    The total capacity of the disk group (in megabytes).
    usedPercent Number
    The percentage of used space in the disk group.
    usedSizeInMbs String
    The used capacity of the disk group (in megabytes).

    GetCloudAsmDiskGroupsFilter

    Name string
    The name of the ASM disk group.
    Values List<string>
    Regex bool
    Name string
    The name of the ASM disk group.
    Values []string
    Regex bool
    name String
    The name of the ASM disk group.
    values List<String>
    regex Boolean
    name string
    The name of the ASM disk group.
    values string[]
    regex boolean
    name str
    The name of the ASM disk group.
    values Sequence[str]
    regex bool
    name String
    The name of the ASM disk group.
    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