1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalAsmDiskGroups
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.DatabaseManagement.getExternalAsmDiskGroups

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testExternalAsmDiskGroups:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalAsmDiskGroups
      arguments:
        externalAsmId: ${testExternalAsm.id}
        opcNamedCredentialId: ${externalAsmDiskGroupOpcNamedCredentialId}
Copy

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>
Copy
def get_external_asm_disk_groups(external_asm_id: Optional[str] = None,
                                 filters: Optional[Sequence[_databasemanagement.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[_databasemanagement.GetExternalAsmDiskGroupsFilterArgs]]]] = None,
                                 opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetExternalAsmDiskGroupsResult]
Copy
func GetExternalAsmDiskGroups(ctx *Context, args *GetExternalAsmDiskGroupsArgs, opts ...InvokeOption) (*GetExternalAsmDiskGroupsResult, error)
func GetExternalAsmDiskGroupsOutput(ctx *Context, args *GetExternalAsmDiskGroupsOutputArgs, opts ...InvokeOption) GetExternalAsmDiskGroupsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetExternalAsmDiskGroupsResult> getExternalAsmDiskGroups(GetExternalAsmDiskGroupsArgs args, InvokeOptions options)
public static Output<GetExternalAsmDiskGroupsResult> getExternalAsmDiskGroups(GetExternalAsmDiskGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DatabaseManagement/getExternalAsmDiskGroups:getExternalAsmDiskGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExternalAsmId This property is required. string
The OCID of the external ASM.
Filters Changes to this property will trigger replacement. List<GetExternalAsmDiskGroupsFilter>
OpcNamedCredentialId string
The OCID of the Named Credential.
ExternalAsmId This property is required. string
The OCID of the external ASM.
Filters Changes to this property will trigger replacement. []GetExternalAsmDiskGroupsFilter
OpcNamedCredentialId string
The OCID of the Named Credential.
externalAsmId This property is required. String
The OCID of the external ASM.
filters Changes to this property will trigger replacement. List<GetExternalAsmDiskGroupsFilter>
opcNamedCredentialId String
The OCID of the Named Credential.
externalAsmId This property is required. string
The OCID of the external ASM.
filters Changes to this property will trigger replacement. GetExternalAsmDiskGroupsFilter[]
opcNamedCredentialId string
The OCID of the Named Credential.
external_asm_id This property is required. str
The OCID of the external ASM.
filters Changes to this property will trigger replacement. Sequence[databasemanagement.GetExternalAsmDiskGroupsFilter]
opc_named_credential_id str
The OCID of the Named Credential.
externalAsmId This property is required. String
The OCID of the external ASM.
filters Changes to this property will trigger replacement. List<Property Map>
opcNamedCredentialId String
The OCID of the Named Credential.

getExternalAsmDiskGroups Result

The following output properties are available:

ExternalAsmDiskGroupCollections List<GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection>
The list of external_asm_disk_group_collection.
ExternalAsmId string
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetExternalAsmDiskGroupsFilter>
OpcNamedCredentialId string
ExternalAsmDiskGroupCollections []GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection
The list of external_asm_disk_group_collection.
ExternalAsmId string
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetExternalAsmDiskGroupsFilter
OpcNamedCredentialId string
externalAsmDiskGroupCollections List<GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection>
The list of external_asm_disk_group_collection.
externalAsmId String
id String
The provider-assigned unique ID for this managed resource.
filters List<GetExternalAsmDiskGroupsFilter>
opcNamedCredentialId String
externalAsmDiskGroupCollections GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection[]
The list of external_asm_disk_group_collection.
externalAsmId string
id string
The provider-assigned unique ID for this managed resource.
filters GetExternalAsmDiskGroupsFilter[]
opcNamedCredentialId string
externalAsmDiskGroupCollections List<Property Map>
The list of external_asm_disk_group_collection.
externalAsmId String
id String
The provider-assigned unique ID for this managed resource.
filters List<Property Map>
opcNamedCredentialId String

Supporting Types

GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection

Items This property is required. List<GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem>
An array of external ASM disk groups.
Items This property is required. []GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem
An array of external ASM disk groups.
items This property is required. List<GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem>
An array of external ASM disk groups.
items This property is required. GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem[]
An array of external ASM disk groups.
items This property is required. Sequence[databasemanagement.GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem]
An array of external ASM disk groups.
items This property is required. List<Property Map>
An array of external ASM disk groups.

GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem

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

GetExternalAsmDiskGroupsFilter

Name This property is required. string
The name of the ASM disk group.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the ASM disk group.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the ASM disk group.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the ASM disk group.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the ASM disk group.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the ASM disk group.
values This property is required. 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.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi