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

oci.DatabaseManagement.getCloudAsmConfiguration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides details about a specific Cloud Asm Configuration resource in Oracle Cloud Infrastructure Database Management service.

    Gets configuration details including disk groups for the cloud ASM specified by cloudAsmId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudAsmConfiguration = oci.DatabaseManagement.getCloudAsmConfiguration({
        cloudAsmId: testCloudAsm.id,
        opcNamedCredentialId: cloudAsmConfigurationOpcNamedCredentialId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_asm_configuration = oci.DatabaseManagement.get_cloud_asm_configuration(cloud_asm_id=test_cloud_asm["id"],
        opc_named_credential_id=cloud_asm_configuration_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.GetCloudAsmConfiguration(ctx, &databasemanagement.GetCloudAsmConfigurationArgs{
    			CloudAsmId:           testCloudAsm.Id,
    			OpcNamedCredentialId: pulumi.StringRef(cloudAsmConfigurationOpcNamedCredentialId),
    		}, 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 testCloudAsmConfiguration = Oci.DatabaseManagement.GetCloudAsmConfiguration.Invoke(new()
        {
            CloudAsmId = testCloudAsm.Id,
            OpcNamedCredentialId = cloudAsmConfigurationOpcNamedCredentialId,
        });
    
    });
    
    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.GetCloudAsmConfigurationArgs;
    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 testCloudAsmConfiguration = DatabaseManagementFunctions.getCloudAsmConfiguration(GetCloudAsmConfigurationArgs.builder()
                .cloudAsmId(testCloudAsm.id())
                .opcNamedCredentialId(cloudAsmConfigurationOpcNamedCredentialId)
                .build());
    
        }
    }
    
    variables:
      testCloudAsmConfiguration:
        fn::invoke:
          function: oci:DatabaseManagement:getCloudAsmConfiguration
          arguments:
            cloudAsmId: ${testCloudAsm.id}
            opcNamedCredentialId: ${cloudAsmConfigurationOpcNamedCredentialId}
    

    Using getCloudAsmConfiguration

    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 getCloudAsmConfiguration(args: GetCloudAsmConfigurationArgs, opts?: InvokeOptions): Promise<GetCloudAsmConfigurationResult>
    function getCloudAsmConfigurationOutput(args: GetCloudAsmConfigurationOutputArgs, opts?: InvokeOptions): Output<GetCloudAsmConfigurationResult>
    def get_cloud_asm_configuration(cloud_asm_id: Optional[str] = None,
                                    opc_named_credential_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetCloudAsmConfigurationResult
    def get_cloud_asm_configuration_output(cloud_asm_id: Optional[pulumi.Input[str]] = None,
                                    opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetCloudAsmConfigurationResult]
    func GetCloudAsmConfiguration(ctx *Context, args *GetCloudAsmConfigurationArgs, opts ...InvokeOption) (*GetCloudAsmConfigurationResult, error)
    func GetCloudAsmConfigurationOutput(ctx *Context, args *GetCloudAsmConfigurationOutputArgs, opts ...InvokeOption) GetCloudAsmConfigurationResultOutput

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

    public static class GetCloudAsmConfiguration 
    {
        public static Task<GetCloudAsmConfigurationResult> InvokeAsync(GetCloudAsmConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAsmConfigurationResult> Invoke(GetCloudAsmConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAsmConfigurationResult> getCloudAsmConfiguration(GetCloudAsmConfigurationArgs args, InvokeOptions options)
    public static Output<GetCloudAsmConfigurationResult> getCloudAsmConfiguration(GetCloudAsmConfigurationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getCloudAsmConfiguration:getCloudAsmConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudAsmId string
    The OCID of the cloud ASM.
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    CloudAsmId string
    The OCID of the cloud ASM.
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    opcNamedCredentialId String
    The OCID of the Named Credential.
    cloudAsmId string
    The OCID of the cloud ASM.
    opcNamedCredentialId string
    The OCID of the Named Credential.
    cloud_asm_id str
    The OCID of the cloud ASM.
    opc_named_credential_id str
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    opcNamedCredentialId String
    The OCID of the Named Credential.

    getCloudAsmConfiguration Result

    The following output properties are available:

    CloudAsmId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InitParameters List<GetCloudAsmConfigurationInitParameter>
    An array of initialization parameters for the cloud ASM instances.
    OpcNamedCredentialId string
    CloudAsmId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InitParameters []GetCloudAsmConfigurationInitParameter
    An array of initialization parameters for the cloud ASM instances.
    OpcNamedCredentialId string
    cloudAsmId String
    id String
    The provider-assigned unique ID for this managed resource.
    initParameters List<GetCloudAsmConfigurationInitParameter>
    An array of initialization parameters for the cloud ASM instances.
    opcNamedCredentialId String
    cloudAsmId string
    id string
    The provider-assigned unique ID for this managed resource.
    initParameters GetCloudAsmConfigurationInitParameter[]
    An array of initialization parameters for the cloud ASM instances.
    opcNamedCredentialId string
    cloud_asm_id str
    id str
    The provider-assigned unique ID for this managed resource.
    init_parameters Sequence[GetCloudAsmConfigurationInitParameter]
    An array of initialization parameters for the cloud ASM instances.
    opc_named_credential_id str
    cloudAsmId String
    id String
    The provider-assigned unique ID for this managed resource.
    initParameters List<Property Map>
    An array of initialization parameters for the cloud ASM instances.
    opcNamedCredentialId String

    Supporting Types

    GetCloudAsmConfigurationInitParameter

    AsmInstanceDisplayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    AsmInstanceId string
    The OCID of the cloud ASM instance.
    AutoMountDiskGroups List<string>
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    DiskDiscoveryPath string
    An operating system-dependent value used to limit the set of disks considered for discovery.
    PreferredReadFailureGroups List<string>
    The list of failure groups that contain preferred read disks.
    RebalancePower int
    The maximum power on an ASM instance for disk rebalancing.
    AsmInstanceDisplayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    AsmInstanceId string
    The OCID of the cloud ASM instance.
    AutoMountDiskGroups []string
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    DiskDiscoveryPath string
    An operating system-dependent value used to limit the set of disks considered for discovery.
    PreferredReadFailureGroups []string
    The list of failure groups that contain preferred read disks.
    RebalancePower int
    The maximum power on an ASM instance for disk rebalancing.
    asmInstanceDisplayName String
    The user-friendly name for the ASM instance. The name does not have to be unique.
    asmInstanceId String
    The OCID of the cloud ASM instance.
    autoMountDiskGroups List<String>
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    diskDiscoveryPath String
    An operating system-dependent value used to limit the set of disks considered for discovery.
    preferredReadFailureGroups List<String>
    The list of failure groups that contain preferred read disks.
    rebalancePower Integer
    The maximum power on an ASM instance for disk rebalancing.
    asmInstanceDisplayName string
    The user-friendly name for the ASM instance. The name does not have to be unique.
    asmInstanceId string
    The OCID of the cloud ASM instance.
    autoMountDiskGroups string[]
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    diskDiscoveryPath string
    An operating system-dependent value used to limit the set of disks considered for discovery.
    preferredReadFailureGroups string[]
    The list of failure groups that contain preferred read disks.
    rebalancePower number
    The maximum power on an ASM instance for disk rebalancing.
    asm_instance_display_name str
    The user-friendly name for the ASM instance. The name does not have to be unique.
    asm_instance_id str
    The OCID of the cloud ASM instance.
    auto_mount_disk_groups Sequence[str]
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    disk_discovery_path str
    An operating system-dependent value used to limit the set of disks considered for discovery.
    preferred_read_failure_groups Sequence[str]
    The list of failure groups that contain preferred read disks.
    rebalance_power int
    The maximum power on an ASM instance for disk rebalancing.
    asmInstanceDisplayName String
    The user-friendly name for the ASM instance. The name does not have to be unique.
    asmInstanceId String
    The OCID of the cloud ASM instance.
    autoMountDiskGroups List<String>
    The list of disk group names that an ASM instance mounts at startup or when the ALTER DISKGROUP ALL MOUNT statement is issued.
    diskDiscoveryPath String
    An operating system-dependent value used to limit the set of disks considered for discovery.
    preferredReadFailureGroups List<String>
    The list of failure groups that contain preferred read disks.
    rebalancePower Number
    The maximum power on an ASM instance for disk rebalancing.

    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