1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalAsmDiskGroups
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DatabaseManagement.getExternalAsmDiskGroups

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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,
    });
    
    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseManagement/getExternalAsmDiskGroups:getExternalAsmDiskGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExternalAsmId string
    The OCID of the external ASM.
    Filters List<GetExternalAsmDiskGroupsFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    ExternalAsmId string
    The OCID of the external ASM.
    Filters []GetExternalAsmDiskGroupsFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    externalAsmId String
    The OCID of the external ASM.
    filters List<GetExternalAsmDiskGroupsFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    externalAsmId string
    The OCID of the external ASM.
    filters GetExternalAsmDiskGroupsFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    externalAsmId String
    The OCID of the external ASM.
    filters 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 List<Property Map>
    An array of external ASM disk groups.

    GetExternalAsmDiskGroupsExternalAsmDiskGroupCollectionItem

    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).

    GetExternalAsmDiskGroupsFilter

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi