Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DatabaseManagement.getManagedDatabasesAsmProperties
Explore with Pulumi AI
This data source provides the list of Managed Databases Asm Properties 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 testManagedDatabasesAsmProperties = oci.DatabaseManagement.getManagedDatabasesAsmProperties({
managedDatabaseId: testManagedDatabase.id,
name: managedDatabasesAsmPropertyName,
});
import pulumi
import pulumi_oci as oci
test_managed_databases_asm_properties = oci.DatabaseManagement.get_managed_databases_asm_properties(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.GetManagedDatabasesAsmProperties(ctx, &databasemanagement.GetManagedDatabasesAsmPropertiesArgs{
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 testManagedDatabasesAsmProperties = Oci.DatabaseManagement.GetManagedDatabasesAsmProperties.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.GetManagedDatabasesAsmPropertiesArgs;
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 testManagedDatabasesAsmProperties = DatabaseManagementFunctions.getManagedDatabasesAsmProperties(GetManagedDatabasesAsmPropertiesArgs.builder()
.managedDatabaseId(testManagedDatabase.id())
.name(managedDatabasesAsmPropertyName)
.build());
}
}
variables:
testManagedDatabasesAsmProperties:
fn::invoke:
Function: oci:DatabaseManagement:getManagedDatabasesAsmProperties
Arguments:
managedDatabaseId: ${testManagedDatabase.id}
name: ${managedDatabasesAsmPropertyName}
Using getManagedDatabasesAsmProperties
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 getManagedDatabasesAsmProperties(args: GetManagedDatabasesAsmPropertiesArgs, opts?: InvokeOptions): Promise<GetManagedDatabasesAsmPropertiesResult>
function getManagedDatabasesAsmPropertiesOutput(args: GetManagedDatabasesAsmPropertiesOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabasesAsmPropertiesResult>
def get_managed_databases_asm_properties(filters: Optional[Sequence[_databasemanagement.GetManagedDatabasesAsmPropertiesFilter]] = None,
managed_database_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedDatabasesAsmPropertiesResult
def get_managed_databases_asm_properties_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedDatabasesAsmPropertiesFilterArgs]]]] = None,
managed_database_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabasesAsmPropertiesResult]
func GetManagedDatabasesAsmProperties(ctx *Context, args *GetManagedDatabasesAsmPropertiesArgs, opts ...InvokeOption) (*GetManagedDatabasesAsmPropertiesResult, error)
func GetManagedDatabasesAsmPropertiesOutput(ctx *Context, args *GetManagedDatabasesAsmPropertiesOutputArgs, opts ...InvokeOption) GetManagedDatabasesAsmPropertiesResultOutput
> Note: This function is named GetManagedDatabasesAsmProperties
in the Go SDK.
public static class GetManagedDatabasesAsmProperties
{
public static Task<GetManagedDatabasesAsmPropertiesResult> InvokeAsync(GetManagedDatabasesAsmPropertiesArgs args, InvokeOptions? opts = null)
public static Output<GetManagedDatabasesAsmPropertiesResult> Invoke(GetManagedDatabasesAsmPropertiesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedDatabasesAsmPropertiesResult> getManagedDatabasesAsmProperties(GetManagedDatabasesAsmPropertiesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabasesAsmProperties:getManagedDatabasesAsmProperties
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Managed Databases Asm Properties Filter> - Name string
- A filter to return only resources that match the entire name.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Managed Databases Asm Properties Filter - Name string
- A filter to return only resources that match the entire name.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Managed Databases Asm Properties Filter> - name String
- A filter to return only resources that match the entire name.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Managed Databases Asm Properties Filter[] - name string
- A filter to return only resources that match the entire name.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[databasemanagement.
Get Managed Databases Asm Properties Filter] - name str
- A filter to return only resources that match the entire name.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- name String
- A filter to return only resources that match the entire name.
getManagedDatabasesAsmProperties Result
The following output properties are available:
- Asm
Property List<GetCollections Managed Databases Asm Properties Asm Property Collection> - The list of asm_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - Filters
List<Get
Managed Databases Asm Properties Filter> - Name string
- Asm
Property []GetCollections Managed Databases Asm Properties Asm Property Collection - The list of asm_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - Filters
[]Get
Managed Databases Asm Properties Filter - Name string
- asm
Property List<GetCollections Managed Databases Asm Properties Asm Property Collection> - The list of asm_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - filters
List<Get
Managed Databases Asm Properties Filter> - name String
- asm
Property GetCollections Managed Databases Asm Properties Asm Property Collection[] - The list of asm_property_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - filters
Get
Managed Databases Asm Properties Filter[] - name string
- asm_
property_ Sequence[databasemanagement.collections Get Managed Databases Asm Properties Asm Property Collection] - The list of asm_property_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - filters
Sequence[databasemanagement.
Get Managed Databases Asm Properties Filter] - name str
- asm
Property List<Property Map>Collections - The list of asm_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - filters List<Property Map>
- name String
Supporting Types
GetManagedDatabasesAsmPropertiesAsmPropertyCollection
- Items
List<Get
Managed Databases Asm Properties Asm Property Collection Item> - An array of AsmPropertySummary resources.
- Items
[]Get
Managed Databases Asm Properties Asm Property Collection Item - An array of AsmPropertySummary resources.
- items
List<Get
Managed Databases Asm Properties Asm Property Collection Item> - An array of AsmPropertySummary resources.
- items
Get
Managed Databases Asm Properties Asm Property Collection Item[] - An array of AsmPropertySummary resources.
- items
Sequence[databasemanagement.
Get Managed Databases Asm Properties Asm Property Collection Item] - An array of AsmPropertySummary resources.
- items List<Property Map>
- An array of AsmPropertySummary resources.
GetManagedDatabasesAsmPropertiesAsmPropertyCollectionItem
- Disk
Group string - The name of the disk group.
- Disk
Group string - The name of the disk group.
- disk
Group String - The name of the disk group.
- disk
Group string - The name of the disk group.
- disk_
group str - The name of the disk group.
- disk
Group String - The name of the disk group.
GetManagedDatabasesAsmPropertiesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.