1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalAsmConfiguration
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DatabaseManagement.getExternalAsmConfiguration

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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

Gets configuration details including disk groups for the external ASM specified by externalAsmId.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testExternalAsmConfiguration = oci.DatabaseManagement.getExternalAsmConfiguration({
    externalAsmId: testExternalAsm.id,
    opcNamedCredentialId: externalAsmConfigurationOpcNamedCredentialId,
});
Copy
import pulumi
import pulumi_oci as oci

test_external_asm_configuration = oci.DatabaseManagement.get_external_asm_configuration(external_asm_id=test_external_asm["id"],
    opc_named_credential_id=external_asm_configuration_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.GetExternalAsmConfiguration(ctx, &databasemanagement.GetExternalAsmConfigurationArgs{
			ExternalAsmId:        testExternalAsm.Id,
			OpcNamedCredentialId: pulumi.StringRef(externalAsmConfigurationOpcNamedCredentialId),
		}, 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 testExternalAsmConfiguration = Oci.DatabaseManagement.GetExternalAsmConfiguration.Invoke(new()
    {
        ExternalAsmId = testExternalAsm.Id,
        OpcNamedCredentialId = externalAsmConfigurationOpcNamedCredentialId,
    });

});
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.GetExternalAsmConfigurationArgs;
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 testExternalAsmConfiguration = DatabaseManagementFunctions.getExternalAsmConfiguration(GetExternalAsmConfigurationArgs.builder()
            .externalAsmId(testExternalAsm.id())
            .opcNamedCredentialId(externalAsmConfigurationOpcNamedCredentialId)
            .build());

    }
}
Copy
variables:
  testExternalAsmConfiguration:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalAsmConfiguration
      arguments:
        externalAsmId: ${testExternalAsm.id}
        opcNamedCredentialId: ${externalAsmConfigurationOpcNamedCredentialId}
Copy

Using getExternalAsmConfiguration

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 getExternalAsmConfiguration(args: GetExternalAsmConfigurationArgs, opts?: InvokeOptions): Promise<GetExternalAsmConfigurationResult>
function getExternalAsmConfigurationOutput(args: GetExternalAsmConfigurationOutputArgs, opts?: InvokeOptions): Output<GetExternalAsmConfigurationResult>
Copy
def get_external_asm_configuration(external_asm_id: Optional[str] = None,
                                   opc_named_credential_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetExternalAsmConfigurationResult
def get_external_asm_configuration_output(external_asm_id: Optional[pulumi.Input[str]] = None,
                                   opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetExternalAsmConfigurationResult]
Copy
func GetExternalAsmConfiguration(ctx *Context, args *GetExternalAsmConfigurationArgs, opts ...InvokeOption) (*GetExternalAsmConfigurationResult, error)
func GetExternalAsmConfigurationOutput(ctx *Context, args *GetExternalAsmConfigurationOutputArgs, opts ...InvokeOption) GetExternalAsmConfigurationResultOutput
Copy

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

public static class GetExternalAsmConfiguration 
{
    public static Task<GetExternalAsmConfigurationResult> InvokeAsync(GetExternalAsmConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalAsmConfigurationResult> Invoke(GetExternalAsmConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetExternalAsmConfigurationResult> getExternalAsmConfiguration(GetExternalAsmConfigurationArgs args, InvokeOptions options)
public static Output<GetExternalAsmConfigurationResult> getExternalAsmConfiguration(GetExternalAsmConfigurationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DatabaseManagement/getExternalAsmConfiguration:getExternalAsmConfiguration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExternalAsmId This property is required. string
The OCID of the external ASM.
OpcNamedCredentialId string
The OCID of the Named Credential.
ExternalAsmId This property is required. string
The OCID of the external ASM.
OpcNamedCredentialId string
The OCID of the Named Credential.
externalAsmId This property is required. String
The OCID of the external ASM.
opcNamedCredentialId String
The OCID of the Named Credential.
externalAsmId This property is required. string
The OCID of the external ASM.
opcNamedCredentialId string
The OCID of the Named Credential.
external_asm_id This property is required. str
The OCID of the external ASM.
opc_named_credential_id str
The OCID of the Named Credential.
externalAsmId This property is required. String
The OCID of the external ASM.
opcNamedCredentialId String
The OCID of the Named Credential.

getExternalAsmConfiguration Result

The following output properties are available:

ExternalAsmId string
Id string
The provider-assigned unique ID for this managed resource.
InitParameters List<GetExternalAsmConfigurationInitParameter>
An array of initialization parameters for the external ASM instances.
OpcNamedCredentialId string
ExternalAsmId string
Id string
The provider-assigned unique ID for this managed resource.
InitParameters []GetExternalAsmConfigurationInitParameter
An array of initialization parameters for the external ASM instances.
OpcNamedCredentialId string
externalAsmId String
id String
The provider-assigned unique ID for this managed resource.
initParameters List<GetExternalAsmConfigurationInitParameter>
An array of initialization parameters for the external ASM instances.
opcNamedCredentialId String
externalAsmId string
id string
The provider-assigned unique ID for this managed resource.
initParameters GetExternalAsmConfigurationInitParameter[]
An array of initialization parameters for the external ASM instances.
opcNamedCredentialId string
external_asm_id str
id str
The provider-assigned unique ID for this managed resource.
init_parameters Sequence[databasemanagement.GetExternalAsmConfigurationInitParameter]
An array of initialization parameters for the external ASM instances.
opc_named_credential_id str
externalAsmId String
id String
The provider-assigned unique ID for this managed resource.
initParameters List<Property Map>
An array of initialization parameters for the external ASM instances.
opcNamedCredentialId String

Supporting Types

GetExternalAsmConfigurationInitParameter

AsmInstanceDisplayName This property is required. string
The user-friendly name for the ASM instance. The name does not have to be unique.
AsmInstanceId This property is required. string
The OCID of the external ASM instance.
AutoMountDiskGroups This property is required. 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 This property is required. string
An operating system-dependent value used to limit the set of disks considered for discovery.
PreferredReadFailureGroups This property is required. List<string>
The list of failure groups that contain preferred read disks.
RebalancePower This property is required. int
The maximum power on an ASM instance for disk rebalancing.
AsmInstanceDisplayName This property is required. string
The user-friendly name for the ASM instance. The name does not have to be unique.
AsmInstanceId This property is required. string
The OCID of the external ASM instance.
AutoMountDiskGroups This property is required. []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 This property is required. string
An operating system-dependent value used to limit the set of disks considered for discovery.
PreferredReadFailureGroups This property is required. []string
The list of failure groups that contain preferred read disks.
RebalancePower This property is required. int
The maximum power on an ASM instance for disk rebalancing.
asmInstanceDisplayName This property is required. String
The user-friendly name for the ASM instance. The name does not have to be unique.
asmInstanceId This property is required. String
The OCID of the external ASM instance.
autoMountDiskGroups This property is required. 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 This property is required. String
An operating system-dependent value used to limit the set of disks considered for discovery.
preferredReadFailureGroups This property is required. List<String>
The list of failure groups that contain preferred read disks.
rebalancePower This property is required. Integer
The maximum power on an ASM instance for disk rebalancing.
asmInstanceDisplayName This property is required. string
The user-friendly name for the ASM instance. The name does not have to be unique.
asmInstanceId This property is required. string
The OCID of the external ASM instance.
autoMountDiskGroups This property is required. 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 This property is required. string
An operating system-dependent value used to limit the set of disks considered for discovery.
preferredReadFailureGroups This property is required. string[]
The list of failure groups that contain preferred read disks.
rebalancePower This property is required. number
The maximum power on an ASM instance for disk rebalancing.
asm_instance_display_name This property is required. str
The user-friendly name for the ASM instance. The name does not have to be unique.
asm_instance_id This property is required. str
The OCID of the external ASM instance.
auto_mount_disk_groups This property is required. 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 This property is required. str
An operating system-dependent value used to limit the set of disks considered for discovery.
preferred_read_failure_groups This property is required. Sequence[str]
The list of failure groups that contain preferred read disks.
rebalance_power This property is required. int
The maximum power on an ASM instance for disk rebalancing.
asmInstanceDisplayName This property is required. String
The user-friendly name for the ASM instance. The name does not have to be unique.
asmInstanceId This property is required. String
The OCID of the external ASM instance.
autoMountDiskGroups This property is required. 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 This property is required. String
An operating system-dependent value used to limit the set of disks considered for discovery.
preferredReadFailureGroups This property is required. List<String>
The list of failure groups that contain preferred read disks.
rebalancePower This property is required. 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.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi