Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getManagedDatabasesAsmProperty
Explore with Pulumi AI
This data source provides details about a specific Managed Databases Asm Property resource in Oracle Cloud Infrastructure Database Management service.
Gets the list of ASM properties for the specified managedDatabaseId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabasesAsmProperty = oci.DatabaseManagement.getManagedDatabasesAsmProperty({
    managedDatabaseId: testManagedDatabase.id,
    name: managedDatabasesAsmPropertyName,
});
import pulumi
import pulumi_oci as oci
test_managed_databases_asm_property = oci.DatabaseManagement.get_managed_databases_asm_property(managed_database_id=test_managed_database["id"],
    name=managed_databases_asm_property_name)
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.GetManagedDatabasesAsmProperty(ctx, &databasemanagement.GetManagedDatabasesAsmPropertyArgs{
			ManagedDatabaseId: testManagedDatabase.Id,
			Name:              pulumi.StringRef(managedDatabasesAsmPropertyName),
		}, 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 testManagedDatabasesAsmProperty = Oci.DatabaseManagement.GetManagedDatabasesAsmProperty.Invoke(new()
    {
        ManagedDatabaseId = testManagedDatabase.Id,
        Name = managedDatabasesAsmPropertyName,
    });
});
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.GetManagedDatabasesAsmPropertyArgs;
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 testManagedDatabasesAsmProperty = DatabaseManagementFunctions.getManagedDatabasesAsmProperty(GetManagedDatabasesAsmPropertyArgs.builder()
            .managedDatabaseId(testManagedDatabase.id())
            .name(managedDatabasesAsmPropertyName)
            .build());
    }
}
variables:
  testManagedDatabasesAsmProperty:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedDatabasesAsmProperty
      arguments:
        managedDatabaseId: ${testManagedDatabase.id}
        name: ${managedDatabasesAsmPropertyName}
Using getManagedDatabasesAsmProperty
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 getManagedDatabasesAsmProperty(args: GetManagedDatabasesAsmPropertyArgs, opts?: InvokeOptions): Promise<GetManagedDatabasesAsmPropertyResult>
function getManagedDatabasesAsmPropertyOutput(args: GetManagedDatabasesAsmPropertyOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabasesAsmPropertyResult>def get_managed_databases_asm_property(managed_database_id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetManagedDatabasesAsmPropertyResult
def get_managed_databases_asm_property_output(managed_database_id: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabasesAsmPropertyResult]func GetManagedDatabasesAsmProperty(ctx *Context, args *GetManagedDatabasesAsmPropertyArgs, opts ...InvokeOption) (*GetManagedDatabasesAsmPropertyResult, error)
func GetManagedDatabasesAsmPropertyOutput(ctx *Context, args *GetManagedDatabasesAsmPropertyOutputArgs, opts ...InvokeOption) GetManagedDatabasesAsmPropertyResultOutput> Note: This function is named GetManagedDatabasesAsmProperty in the Go SDK.
public static class GetManagedDatabasesAsmProperty 
{
    public static Task<GetManagedDatabasesAsmPropertyResult> InvokeAsync(GetManagedDatabasesAsmPropertyArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabasesAsmPropertyResult> Invoke(GetManagedDatabasesAsmPropertyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabasesAsmPropertyResult> getManagedDatabasesAsmProperty(GetManagedDatabasesAsmPropertyArgs args, InvokeOptions options)
public static Output<GetManagedDatabasesAsmPropertyResult> getManagedDatabasesAsmProperty(GetManagedDatabasesAsmPropertyArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabasesAsmProperty:getManagedDatabasesAsmProperty
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Name string
- A filter to return only resources that match the entire name.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Name string
- A filter to return only resources that match the entire name.
- managedDatabase StringId 
- The OCID of the Managed Database.
- name String
- A filter to return only resources that match the entire name.
- managedDatabase stringId 
- The OCID of the Managed Database.
- name string
- A filter to return only resources that match the entire name.
- managed_database_ strid 
- The OCID of the Managed Database.
- name str
- A filter to return only resources that match the entire name.
- managedDatabase StringId 
- The OCID of the Managed Database.
- name String
- A filter to return only resources that match the entire name.
getManagedDatabasesAsmProperty Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetManaged Databases Asm Property Item> 
- An array of AsmPropertySummary resources.
- ManagedDatabase stringId 
- Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetManaged Databases Asm Property Item 
- An array of AsmPropertySummary resources.
- ManagedDatabase stringId 
- Name string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetManaged Databases Asm Property Item> 
- An array of AsmPropertySummary resources.
- managedDatabase StringId 
- name String
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetManaged Databases Asm Property Item[] 
- An array of AsmPropertySummary resources.
- managedDatabase stringId 
- name string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetManaged Databases Asm Property Item] 
- An array of AsmPropertySummary resources.
- managed_database_ strid 
- name str
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- An array of AsmPropertySummary resources.
- managedDatabase StringId 
- name String
Supporting Types
GetManagedDatabasesAsmPropertyItem     
- DiskGroup string
- The name of the disk group.
- DiskGroup string
- The name of the disk group.
- diskGroup String
- The name of the disk group.
- diskGroup string
- The name of the disk group.
- disk_group str
- The name of the disk group.
- diskGroup String
- The name of the disk group.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.