Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getExternalAsmDiskGroups
Explore with Pulumi AI
This data source provides the list of External Asm Disk Groups in Oracle Cloud Infrastructure Database Management service.
Lists ASM disk groups for the external ASM specified by externalAsmId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalAsmDiskGroups = oci.DatabaseManagement.getExternalAsmDiskGroups({
    externalAsmId: testExternalAsm.id,
    opcNamedCredentialId: externalAsmDiskGroupOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_external_asm_disk_groups = oci.DatabaseManagement.get_external_asm_disk_groups(external_asm_id=test_external_asm["id"],
    opc_named_credential_id=external_asm_disk_group_opc_named_credential_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetExternalAsmDiskGroups(ctx, &databasemanagement.GetExternalAsmDiskGroupsArgs{
			ExternalAsmId:        testExternalAsm.Id,
			OpcNamedCredentialId: pulumi.StringRef(externalAsmDiskGroupOpcNamedCredentialId),
		}, 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 testExternalAsmDiskGroups = Oci.DatabaseManagement.GetExternalAsmDiskGroups.Invoke(new()
    {
        ExternalAsmId = testExternalAsm.Id,
        OpcNamedCredentialId = externalAsmDiskGroupOpcNamedCredentialId,
    });
});
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.GetExternalAsmDiskGroupsArgs;
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 testExternalAsmDiskGroups = DatabaseManagementFunctions.getExternalAsmDiskGroups(GetExternalAsmDiskGroupsArgs.builder()
            .externalAsmId(testExternalAsm.id())
            .opcNamedCredentialId(externalAsmDiskGroupOpcNamedCredentialId)
            .build());
    }
}
variables:
  testExternalAsmDiskGroups:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalAsmDiskGroups
      arguments:
        externalAsmId: ${testExternalAsm.id}
        opcNamedCredentialId: ${externalAsmDiskGroupOpcNamedCredentialId}
Using getExternalAsmDiskGroups
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 getExternalAsmDiskGroups(args: GetExternalAsmDiskGroupsArgs, opts?: InvokeOptions): Promise<GetExternalAsmDiskGroupsResult>
function getExternalAsmDiskGroupsOutput(args: GetExternalAsmDiskGroupsOutputArgs, opts?: InvokeOptions): Output<GetExternalAsmDiskGroupsResult>def get_external_asm_disk_groups(external_asm_id: Optional[str] = None,
                                 filters: Optional[Sequence[GetExternalAsmDiskGroupsFilter]] = None,
                                 opc_named_credential_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetExternalAsmDiskGroupsResult
def get_external_asm_disk_groups_output(external_asm_id: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetExternalAsmDiskGroupsFilterArgs]]]] = None,
                                 opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetExternalAsmDiskGroupsResult]func GetExternalAsmDiskGroups(ctx *Context, args *GetExternalAsmDiskGroupsArgs, opts ...InvokeOption) (*GetExternalAsmDiskGroupsResult, error)
func GetExternalAsmDiskGroupsOutput(ctx *Context, args *GetExternalAsmDiskGroupsOutputArgs, opts ...InvokeOption) GetExternalAsmDiskGroupsResultOutput> Note: This function is named GetExternalAsmDiskGroups in the Go SDK.
public static class GetExternalAsmDiskGroups 
{
    public static Task<GetExternalAsmDiskGroupsResult> InvokeAsync(GetExternalAsmDiskGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalAsmDiskGroupsResult> Invoke(GetExternalAsmDiskGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExternalAsmDiskGroupsResult> getExternalAsmDiskGroups(GetExternalAsmDiskGroupsArgs args, InvokeOptions options)
public static Output<GetExternalAsmDiskGroupsResult> getExternalAsmDiskGroups(GetExternalAsmDiskGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getExternalAsmDiskGroups:getExternalAsmDiskGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ExternalAsm stringId 
- The OCID of the external ASM.
- Filters
List<GetExternal Asm Disk Groups Filter> 
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- ExternalAsm stringId 
- The OCID of the external ASM.
- Filters
[]GetExternal Asm Disk Groups Filter 
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- externalAsm StringId 
- The OCID of the external ASM.
- filters
List<GetExternal Asm Disk Groups Filter> 
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
- externalAsm stringId 
- The OCID of the external ASM.
- filters
GetExternal Asm Disk Groups Filter[] 
- opcNamed stringCredential Id 
- The OCID of the Named Credential.
- external_asm_ strid 
- The OCID of the external ASM.
- filters
Sequence[GetExternal Asm Disk Groups Filter] 
- opc_named_ strcredential_ id 
- The OCID of the Named Credential.
- externalAsm StringId 
- The OCID of the external ASM.
- filters List<Property Map>
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
getExternalAsmDiskGroups Result
The following output properties are available:
- ExternalAsm List<GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection> 
- The list of external_asm_disk_group_collection.
- ExternalAsm stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetExternal Asm Disk Groups Filter> 
- OpcNamed stringCredential Id 
- ExternalAsm []GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection 
- The list of external_asm_disk_group_collection.
- ExternalAsm stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetExternal Asm Disk Groups Filter 
- OpcNamed stringCredential Id 
- externalAsm List<GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection> 
- The list of external_asm_disk_group_collection.
- externalAsm StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetExternal Asm Disk Groups Filter> 
- opcNamed StringCredential Id 
- externalAsm GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection[] 
- The list of external_asm_disk_group_collection.
- externalAsm stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetExternal Asm Disk Groups Filter[] 
- opcNamed stringCredential Id 
- external_asm_ Sequence[Getdisk_ group_ collections External Asm Disk Groups External Asm Disk Group Collection] 
- The list of external_asm_disk_group_collection.
- external_asm_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetExternal Asm Disk Groups Filter] 
- opc_named_ strcredential_ id 
- externalAsm List<Property Map>Disk Group Collections 
- The list of external_asm_disk_group_collection.
- externalAsm StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- opcNamed StringCredential Id 
Supporting Types
GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection         
- Items
List<GetExternal Asm Disk Groups External Asm Disk Group Collection Item> 
- An array of external ASM disk groups.
- Items
[]GetExternal Asm Disk Groups External Asm Disk Group Collection Item 
- An array of external ASM disk groups.
- items
List<GetExternal Asm Disk Groups External Asm Disk Group Collection Item> 
- An array of external ASM disk groups.
- items
GetExternal Asm Disk Groups External Asm Disk Group Collection Item[] 
- An array of external ASM disk groups.
- items
Sequence[GetExternal Asm Disk Groups External Asm Disk Group Collection Item] 
- An array of external ASM disk groups.
- items List<Property Map>
- An array of external ASM disk groups.
GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem          
- Databases List<string>
- The unique names of the databases using the disk group.
- DismountingInstance intCount 
- 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.
- MountingInstance intCount 
- 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.
- TotalSize stringIn Mbs 
- The total capacity of the disk group (in megabytes).
- UsedPercent double
- The percentage of used space in the disk group.
- UsedSize stringIn Mbs 
- The used capacity of the disk group (in megabytes).
- Databases []string
- The unique names of the databases using the disk group.
- DismountingInstance intCount 
- 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.
- MountingInstance intCount 
- 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.
- TotalSize stringIn Mbs 
- The total capacity of the disk group (in megabytes).
- UsedPercent float64
- The percentage of used space in the disk group.
- UsedSize stringIn Mbs 
- The used capacity of the disk group (in megabytes).
- databases List<String>
- The unique names of the databases using the disk group.
- dismountingInstance IntegerCount 
- 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.
- mountingInstance IntegerCount 
- 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.
- totalSize StringIn Mbs 
- The total capacity of the disk group (in megabytes).
- usedPercent Double
- The percentage of used space in the disk group.
- usedSize StringIn Mbs 
- The used capacity of the disk group (in megabytes).
- databases string[]
- The unique names of the databases using the disk group.
- dismountingInstance numberCount 
- 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.
- mountingInstance numberCount 
- 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.
- totalSize stringIn Mbs 
- The total capacity of the disk group (in megabytes).
- usedPercent number
- The percentage of used space in the disk group.
- usedSize stringIn Mbs 
- The used capacity of the disk group (in megabytes).
- databases Sequence[str]
- The unique names of the databases using the disk group.
- dismounting_instance_ intcount 
- 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_ intcount 
- 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_ strin_ mbs 
- The total capacity of the disk group (in megabytes).
- used_percent float
- The percentage of used space in the disk group.
- used_size_ strin_ mbs 
- The used capacity of the disk group (in megabytes).
- databases List<String>
- The unique names of the databases using the disk group.
- dismountingInstance NumberCount 
- 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.
- mountingInstance NumberCount 
- 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.
- totalSize StringIn Mbs 
- The total capacity of the disk group (in megabytes).
- usedPercent Number
- The percentage of used space in the disk group.
- usedSize StringIn Mbs 
- The used capacity of the disk group (in megabytes).
GetExternalAsmDiskGroupsFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.