Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DatabaseManagement.getCloudAsmDiskGroups
Explore with Pulumi AI
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:
- Cloud
Asm stringId - The OCID of the cloud ASM.
- Filters
List<Get
Cloud Asm Disk Groups Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- Cloud
Asm stringId - The OCID of the cloud ASM.
- Filters
[]Get
Cloud Asm Disk Groups Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud
Asm StringId - The OCID of the cloud ASM.
- filters
List<Get
Cloud Asm Disk Groups Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- cloud
Asm stringId - The OCID of the cloud ASM.
- filters
Get
Cloud Asm Disk Groups Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud_
asm_ strid - The OCID of the cloud ASM.
- filters
Sequence[Get
Cloud Asm Disk Groups Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- cloud
Asm StringId - The OCID of the cloud ASM.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getCloudAsmDiskGroups Result
The following output properties are available:
- Cloud
Asm List<GetDisk Group Collections Cloud Asm Disk Groups Cloud Asm Disk Group Collection> - The list of cloud_asm_disk_group_collection.
- Cloud
Asm stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Cloud Asm Disk Groups Filter> - Opc
Named stringCredential Id
- Cloud
Asm []GetDisk Group Collections Cloud Asm Disk Groups Cloud Asm Disk Group Collection - The list of cloud_asm_disk_group_collection.
- Cloud
Asm stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Cloud Asm Disk Groups Filter - Opc
Named stringCredential Id
- cloud
Asm List<GetDisk Group Collections Cloud Asm Disk Groups Cloud Asm Disk Group Collection> - The list of cloud_asm_disk_group_collection.
- cloud
Asm StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Cloud Asm Disk Groups Filter> - opc
Named StringCredential Id
- cloud
Asm GetDisk Group Collections Cloud Asm Disk Groups Cloud Asm Disk Group Collection[] - The list of cloud_asm_disk_group_collection.
- cloud
Asm stringId - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Cloud Asm Disk Groups Filter[] - opc
Named stringCredential Id
- cloud_
asm_ Sequence[Getdisk_ group_ collections Cloud Asm Disk Groups Cloud Asm Disk Group Collection] - The list of cloud_asm_disk_group_collection.
- cloud_
asm_ strid - id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Cloud Asm Disk Groups Filter] - opc_
named_ strcredential_ id
- cloud
Asm List<Property Map>Disk Group Collections - The list of cloud_asm_disk_group_collection.
- cloud
Asm StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- opc
Named StringCredential Id
Supporting Types
GetCloudAsmDiskGroupsCloudAsmDiskGroupCollection
- Items
List<Get
Cloud Asm Disk Groups Cloud Asm Disk Group Collection Item> - An array of cloud ASM disk groups.
- Items
[]Get
Cloud Asm Disk Groups Cloud Asm Disk Group Collection Item - An array of cloud ASM disk groups.
- items
List<Get
Cloud Asm Disk Groups Cloud Asm Disk Group Collection Item> - An array of cloud ASM disk groups.
- items
Get
Cloud Asm Disk Groups Cloud Asm Disk Group Collection Item[] - An array of cloud ASM disk groups.
- items
Sequence[Get
Cloud Asm Disk Groups Cloud Asm Disk Group Collection Item] - An array of cloud ASM disk groups.
- 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.
- 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 string
- The name of the ASM disk group.
- Redundancy
Type string - The redundancy type of the disk group.
- Total
Size stringIn Mbs - The total capacity of the disk group (in megabytes).
- Used
Percent double - The percentage of used space in the disk group.
- Used
Size stringIn Mbs - The used capacity of the disk group (in megabytes).
- Databases []string
- 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 string
- The name of the ASM disk group.
- Redundancy
Type string - The redundancy type of the disk group.
- Total
Size stringIn Mbs - The total capacity of the disk group (in megabytes).
- Used
Percent float64 - The percentage of used space in the disk group.
- Used
Size stringIn Mbs - The used capacity of the disk group (in megabytes).
- databases List<String>
- The unique names of the databases using the disk group.
- dismounting
Instance IntegerCount - The number of ASM instances that have the disk group in dismounted state.
- is
Sparse Boolean - Indicates whether the disk group is a sparse disk group or not.
- mounting
Instance IntegerCount - The number of ASM instances that have the disk group in mounted state.
- name String
- The name of the ASM disk group.
- redundancy
Type String - The redundancy type of the disk group.
- total
Size StringIn Mbs - The total capacity of the disk group (in megabytes).
- used
Percent Double - The percentage of used space in the disk group.
- used
Size StringIn Mbs - The used capacity of the disk group (in megabytes).
- databases string[]
- The unique names of the databases using the disk group.
- dismounting
Instance numberCount - The number of ASM instances that have the disk group in dismounted state.
- is
Sparse boolean - Indicates whether the disk group is a sparse disk group or not.
- mounting
Instance numberCount - The number of ASM instances that have the disk group in mounted state.
- name string
- The name of the ASM disk group.
- redundancy
Type string - The redundancy type of the disk group.
- total
Size stringIn Mbs - The total capacity of the disk group (in megabytes).
- used
Percent number - The percentage of used space in the disk group.
- used
Size 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.
- dismounting
Instance NumberCount - The number of ASM instances that have the disk group in dismounted state.
- is
Sparse Boolean - Indicates whether the disk group is a sparse disk group or not.
- mounting
Instance NumberCount - The number of ASM instances that have the disk group in mounted state.
- name String
- The name of the ASM disk group.
- redundancy
Type String - The redundancy type of the disk group.
- total
Size StringIn Mbs - The total capacity of the disk group (in megabytes).
- used
Percent Number - The percentage of used space in the disk group.
- used
Size StringIn Mbs - The used capacity of the disk group (in megabytes).
GetCloudAsmDiskGroupsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.