oci.DatabaseManagement.getExternalAsmConfiguration
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testExternalAsmConfiguration = Oci.DatabaseManagement.GetExternalAsmConfiguration.Invoke(new()
{
ExternalAsmId = oci_database_management_external_asm.Test_external_asm.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: oci_database_management_external_asm.Test_external_asm.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_database_management_external_asm.test_external_asm().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_external_asm_configuration = oci.DatabaseManagement.get_external_asm_configuration(external_asm_id=oci_database_management_external_asm["test_external_asm"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalAsmConfiguration = oci.DatabaseManagement.getExternalAsmConfiguration({
externalAsmId: oci_database_management_external_asm.test_external_asm.id,
});
variables:
testExternalAsmConfiguration:
fn::invoke:
Function: oci:DatabaseManagement:getExternalAsmConfiguration
Arguments:
externalAsmId: ${oci_database_management_external_asm.test_external_asm.id}
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>
def get_external_asm_configuration(external_asm_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalAsmConfigurationResult
def get_external_asm_configuration_output(external_asm_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalAsmConfigurationResult]
func GetExternalAsmConfiguration(ctx *Context, args *GetExternalAsmConfigurationArgs, opts ...InvokeOption) (*GetExternalAsmConfigurationResult, error)
func GetExternalAsmConfigurationOutput(ctx *Context, args *GetExternalAsmConfigurationOutputArgs, opts ...InvokeOption) GetExternalAsmConfigurationResultOutput
> 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)
}
public static CompletableFuture<GetExternalAsmConfigurationResult> getExternalAsmConfiguration(GetExternalAsmConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getExternalAsmConfiguration:getExternalAsmConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- External
Asm stringId The OCID of the external ASM.
- External
Asm stringId The OCID of the external ASM.
- external
Asm StringId The OCID of the external ASM.
- external
Asm stringId The OCID of the external ASM.
- external_
asm_ strid The OCID of the external ASM.
- external
Asm StringId The OCID of the external ASM.
getExternalAsmConfiguration Result
The following output properties are available:
- External
Asm stringId - Id string
The provider-assigned unique ID for this managed resource.
- Init
Parameters List<GetExternal Asm Configuration Init Parameter> An array of initialization parameters for the external ASM instances.
- External
Asm stringId - Id string
The provider-assigned unique ID for this managed resource.
- Init
Parameters []GetExternal Asm Configuration Init Parameter An array of initialization parameters for the external ASM instances.
- external
Asm StringId - id String
The provider-assigned unique ID for this managed resource.
- init
Parameters List<GetExternal Asm Configuration Init Parameter> An array of initialization parameters for the external ASM instances.
- external
Asm stringId - id string
The provider-assigned unique ID for this managed resource.
- init
Parameters GetExternal Asm Configuration Init Parameter[] An array of initialization parameters for the external ASM instances.
- external_
asm_ strid - id str
The provider-assigned unique ID for this managed resource.
- init_
parameters GetExternal Asm Configuration Init Parameter] An array of initialization parameters for the external ASM instances.
- external
Asm StringId - id String
The provider-assigned unique ID for this managed resource.
- init
Parameters List<Property Map> An array of initialization parameters for the external ASM instances.
Supporting Types
GetExternalAsmConfigurationInitParameter
- Asm
Instance stringDisplay Name The user-friendly name for the ASM instance. The name does not have to be unique.
- Asm
Instance stringId The OCID of the external ASM instance.
- Auto
Mount List<string>Disk Groups 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 stringPath An operating system-dependent value used to limit the set of disks considered for discovery.
- Preferred
Read List<string>Failure Groups The list of failure groups that contain preferred read disks.
- Rebalance
Power int The maximum power on an ASM instance for disk rebalancing.
- Asm
Instance stringDisplay Name The user-friendly name for the ASM instance. The name does not have to be unique.
- Asm
Instance stringId The OCID of the external ASM instance.
- Auto
Mount []stringDisk Groups 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 stringPath An operating system-dependent value used to limit the set of disks considered for discovery.
- Preferred
Read []stringFailure Groups The list of failure groups that contain preferred read disks.
- Rebalance
Power int The maximum power on an ASM instance for disk rebalancing.
- asm
Instance StringDisplay Name The user-friendly name for the ASM instance. The name does not have to be unique.
- asm
Instance StringId The OCID of the external ASM instance.
- auto
Mount List<String>Disk Groups 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 StringPath An operating system-dependent value used to limit the set of disks considered for discovery.
- preferred
Read List<String>Failure Groups The list of failure groups that contain preferred read disks.
- rebalance
Power Integer The maximum power on an ASM instance for disk rebalancing.
- asm
Instance stringDisplay Name The user-friendly name for the ASM instance. The name does not have to be unique.
- asm
Instance stringId The OCID of the external ASM instance.
- auto
Mount string[]Disk Groups 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 stringPath An operating system-dependent value used to limit the set of disks considered for discovery.
- preferred
Read string[]Failure Groups The list of failure groups that contain preferred read disks.
- rebalance
Power number The maximum power on an ASM instance for disk rebalancing.
- asm_
instance_ strdisplay_ name The user-friendly name for the ASM instance. The name does not have to be unique.
- asm_
instance_ strid The OCID of the external ASM instance.
- auto_
mount_ Sequence[str]disk_ groups 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_ strpath An operating system-dependent value used to limit the set of disks considered for discovery.
- preferred_
read_ Sequence[str]failure_ groups The list of failure groups that contain preferred read disks.
- rebalance_
power int The maximum power on an ASM instance for disk rebalancing.
- asm
Instance StringDisplay Name The user-friendly name for the ASM instance. The name does not have to be unique.
- asm
Instance StringId The OCID of the external ASM instance.
- auto
Mount List<String>Disk Groups 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 StringPath An operating system-dependent value used to limit the set of disks considered for discovery.
- preferred
Read List<String>Failure Groups The list of failure groups that contain preferred read disks.
- rebalance
Power 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.