1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getCloudAsmUsers
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DatabaseManagement.getCloudAsmUsers

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Cloud Asm Users in Oracle Cloud Infrastructure Database Management service.

    Lists ASM users for the cloud ASM specified by cloudAsmId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudAsmUsers = oci.DatabaseManagement.getCloudAsmUsers({
        cloudAsmId: testCloudAsm.id,
        opcNamedCredentialId: cloudAsmUserOpcNamedCredentialId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_asm_users = oci.DatabaseManagement.get_cloud_asm_users(cloud_asm_id=test_cloud_asm["id"],
        opc_named_credential_id=cloud_asm_user_opc_named_credential_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasemanagement.GetCloudAsmUsers(ctx, &databasemanagement.GetCloudAsmUsersArgs{
    			CloudAsmId:           testCloudAsm.Id,
    			OpcNamedCredentialId: pulumi.StringRef(cloudAsmUserOpcNamedCredentialId),
    		}, 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 testCloudAsmUsers = Oci.DatabaseManagement.GetCloudAsmUsers.Invoke(new()
        {
            CloudAsmId = testCloudAsm.Id,
            OpcNamedCredentialId = cloudAsmUserOpcNamedCredentialId,
        });
    
    });
    
    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.GetCloudAsmUsersArgs;
    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 testCloudAsmUsers = DatabaseManagementFunctions.getCloudAsmUsers(GetCloudAsmUsersArgs.builder()
                .cloudAsmId(testCloudAsm.id())
                .opcNamedCredentialId(cloudAsmUserOpcNamedCredentialId)
                .build());
    
        }
    }
    
    variables:
      testCloudAsmUsers:
        fn::invoke:
          function: oci:DatabaseManagement:getCloudAsmUsers
          arguments:
            cloudAsmId: ${testCloudAsm.id}
            opcNamedCredentialId: ${cloudAsmUserOpcNamedCredentialId}
    

    Using getCloudAsmUsers

    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 getCloudAsmUsers(args: GetCloudAsmUsersArgs, opts?: InvokeOptions): Promise<GetCloudAsmUsersResult>
    function getCloudAsmUsersOutput(args: GetCloudAsmUsersOutputArgs, opts?: InvokeOptions): Output<GetCloudAsmUsersResult>
    def get_cloud_asm_users(cloud_asm_id: Optional[str] = None,
                            filters: Optional[Sequence[GetCloudAsmUsersFilter]] = None,
                            opc_named_credential_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCloudAsmUsersResult
    def get_cloud_asm_users_output(cloud_asm_id: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAsmUsersFilterArgs]]]] = None,
                            opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCloudAsmUsersResult]
    func GetCloudAsmUsers(ctx *Context, args *GetCloudAsmUsersArgs, opts ...InvokeOption) (*GetCloudAsmUsersResult, error)
    func GetCloudAsmUsersOutput(ctx *Context, args *GetCloudAsmUsersOutputArgs, opts ...InvokeOption) GetCloudAsmUsersResultOutput

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

    public static class GetCloudAsmUsers 
    {
        public static Task<GetCloudAsmUsersResult> InvokeAsync(GetCloudAsmUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAsmUsersResult> Invoke(GetCloudAsmUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAsmUsersResult> getCloudAsmUsers(GetCloudAsmUsersArgs args, InvokeOptions options)
    public static Output<GetCloudAsmUsersResult> getCloudAsmUsers(GetCloudAsmUsersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getCloudAsmUsers:getCloudAsmUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudAsmId string
    The OCID of the cloud ASM.
    Filters List<GetCloudAsmUsersFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    CloudAsmId string
    The OCID of the cloud ASM.
    Filters []GetCloudAsmUsersFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    filters List<GetCloudAsmUsersFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    cloudAsmId string
    The OCID of the cloud ASM.
    filters GetCloudAsmUsersFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    cloud_asm_id str
    The OCID of the cloud ASM.
    filters Sequence[GetCloudAsmUsersFilter]
    opc_named_credential_id str
    The OCID of the Named Credential.
    cloudAsmId String
    The OCID of the cloud ASM.
    filters List<Property Map>
    opcNamedCredentialId String
    The OCID of the Named Credential.

    getCloudAsmUsers Result

    The following output properties are available:

    CloudAsmId string
    CloudAsmUserCollections List<GetCloudAsmUsersCloudAsmUserCollection>
    The list of cloud_asm_user_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetCloudAsmUsersFilter>
    OpcNamedCredentialId string
    CloudAsmId string
    CloudAsmUserCollections []GetCloudAsmUsersCloudAsmUserCollection
    The list of cloud_asm_user_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetCloudAsmUsersFilter
    OpcNamedCredentialId string
    cloudAsmId String
    cloudAsmUserCollections List<GetCloudAsmUsersCloudAsmUserCollection>
    The list of cloud_asm_user_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetCloudAsmUsersFilter>
    opcNamedCredentialId String
    cloudAsmId string
    cloudAsmUserCollections GetCloudAsmUsersCloudAsmUserCollection[]
    The list of cloud_asm_user_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetCloudAsmUsersFilter[]
    opcNamedCredentialId string
    cloud_asm_id str
    cloud_asm_user_collections Sequence[GetCloudAsmUsersCloudAsmUserCollection]
    The list of cloud_asm_user_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetCloudAsmUsersFilter]
    opc_named_credential_id str
    cloudAsmId String
    cloudAsmUserCollections List<Property Map>
    The list of cloud_asm_user_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    opcNamedCredentialId String

    Supporting Types

    GetCloudAsmUsersCloudAsmUserCollection

    items List<Property Map>
    An array of cloud ASM users.

    GetCloudAsmUsersCloudAsmUserCollectionItem

    AsmId string
    The OCID of the cloud ASM.
    Name string
    The name of the ASM user.
    Privileges List<string>
    The list of privileges of the ASM user.
    AsmId string
    The OCID of the cloud ASM.
    Name string
    The name of the ASM user.
    Privileges []string
    The list of privileges of the ASM user.
    asmId String
    The OCID of the cloud ASM.
    name String
    The name of the ASM user.
    privileges List<String>
    The list of privileges of the ASM user.
    asmId string
    The OCID of the cloud ASM.
    name string
    The name of the ASM user.
    privileges string[]
    The list of privileges of the ASM user.
    asm_id str
    The OCID of the cloud ASM.
    name str
    The name of the ASM user.
    privileges Sequence[str]
    The list of privileges of the ASM user.
    asmId String
    The OCID of the cloud ASM.
    name String
    The name of the ASM user.
    privileges List<String>
    The list of privileges of the ASM user.

    GetCloudAsmUsersFilter

    Name string
    The name of the ASM user.
    Values List<string>
    Regex bool
    Name string
    The name of the ASM user.
    Values []string
    Regex bool
    name String
    The name of the ASM user.
    values List<String>
    regex Boolean
    name string
    The name of the ASM user.
    values string[]
    regex boolean
    name str
    The name of the ASM user.
    values Sequence[str]
    regex bool
    name String
    The name of the ASM user.
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi