Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DatabaseManagement.getExternalAsmDiskGroups
Explore with Pulumi AI
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:
- External
Asm stringId - The OCID of the external ASM.
- Filters
List<Get
External Asm Disk Groups Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- External
Asm stringId - The OCID of the external ASM.
- Filters
[]Get
External Asm Disk Groups Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- external
Asm StringId - The OCID of the external ASM.
- filters
List<Get
External Asm Disk Groups Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- external
Asm stringId - The OCID of the external ASM.
- filters
Get
External Asm Disk Groups Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- external_
asm_ strid - The OCID of the external ASM.
- filters
Sequence[databasemanagement.
Get External Asm Disk Groups Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- external
Asm StringId - The OCID of the external ASM.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getExternalAsmDiskGroups Result
The following output properties are available:
- External
Asm List<GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection> - The list of external_asm_disk_group_collection.
- External
Asm stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
External Asm Disk Groups Filter> - Opc
Named stringCredential Id
- External
Asm []GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection - The list of external_asm_disk_group_collection.
- External
Asm stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
External Asm Disk Groups Filter - Opc
Named stringCredential Id
- external
Asm List<GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection> - The list of external_asm_disk_group_collection.
- external
Asm StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
External Asm Disk Groups Filter> - opc
Named StringCredential Id
- external
Asm GetDisk Group Collections External Asm Disk Groups External Asm Disk Group Collection[] - The list of external_asm_disk_group_collection.
- external
Asm stringId - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
External Asm Disk Groups Filter[] - opc
Named stringCredential Id
- external_
asm_ Sequence[databasemanagement.disk_ group_ collections Get External Asm Disk Groups External Asm Disk Group Collection] - The list of external_asm_disk_group_collection.
- external_
asm_ strid - id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[databasemanagement.
Get External Asm Disk Groups Filter] - opc_
named_ strcredential_ id
- external
Asm List<Property Map>Disk Group Collections - The list of external_asm_disk_group_collection.
- external
Asm StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- opc
Named StringCredential Id
Supporting Types
GetExternalAsmDiskGroupsExternalAsmDiskGroupCollection
- Items
List<Get
External Asm Disk Groups External Asm Disk Group Collection Item> - An array of external ASM disk groups.
- Items
[]Get
External Asm Disk Groups External Asm Disk Group Collection Item - An array of external ASM disk groups.
- items
List<Get
External Asm Disk Groups External Asm Disk Group Collection Item> - An array of external ASM disk groups.
- items
Get
External Asm Disk Groups External Asm Disk Group Collection Item[] - An array of external ASM disk groups.
- items
Sequence[databasemanagement.
Get External Asm Disk Groups External Asm Disk Group Collection Item] - An array of external ASM disk groups.
- 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.
- 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).
GetExternalAsmDiskGroupsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.