Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DatabaseManagement.getCloudAsmUsers
Explore with Pulumi AI
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:
- Cloud
Asm stringId - The OCID of the cloud ASM.
- Filters
List<Get
Cloud Asm Users Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- Cloud
Asm stringId - The OCID of the cloud ASM.
- Filters
[]Get
Cloud Asm Users Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud
Asm StringId - The OCID of the cloud ASM.
- filters
List<Get
Cloud Asm Users Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- cloud
Asm stringId - The OCID of the cloud ASM.
- filters
Get
Cloud Asm Users Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud_
asm_ strid - The OCID of the cloud ASM.
- filters
Sequence[Get
Cloud Asm Users Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- cloud
Asm StringId - The OCID of the cloud ASM.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getCloudAsmUsers Result
The following output properties are available:
- Cloud
Asm stringId - Cloud
Asm List<GetUser Collections Cloud Asm Users Cloud Asm User Collection> - The list of cloud_asm_user_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Cloud Asm Users Filter> - Opc
Named stringCredential Id
- Cloud
Asm stringId - Cloud
Asm []GetUser Collections Cloud Asm Users Cloud Asm User Collection - The list of cloud_asm_user_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Cloud Asm Users Filter - Opc
Named stringCredential Id
- cloud
Asm StringId - cloud
Asm List<GetUser Collections Cloud Asm Users Cloud Asm User Collection> - The list of cloud_asm_user_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Cloud Asm Users Filter> - opc
Named StringCredential Id
- cloud
Asm stringId - cloud
Asm GetUser Collections Cloud Asm Users Cloud Asm User Collection[] - The list of cloud_asm_user_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Cloud Asm Users Filter[] - opc
Named stringCredential Id
- cloud_
asm_ strid - cloud_
asm_ Sequence[Getuser_ collections Cloud Asm Users Cloud Asm User Collection] - The list of cloud_asm_user_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Cloud Asm Users Filter] - opc_
named_ strcredential_ id
- cloud
Asm StringId - cloud
Asm List<Property Map>User Collections - The list of cloud_asm_user_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- opc
Named StringCredential Id
Supporting Types
GetCloudAsmUsersCloudAsmUserCollection
- Items
List<Get
Cloud Asm Users Cloud Asm User Collection Item> - An array of cloud ASM users.
- Items
[]Get
Cloud Asm Users Cloud Asm User Collection Item - An array of cloud ASM users.
- items
List<Get
Cloud Asm Users Cloud Asm User Collection Item> - An array of cloud ASM users.
- items
Get
Cloud Asm Users Cloud Asm User Collection Item[] - An array of cloud ASM users.
- items
Sequence[Get
Cloud Asm Users Cloud Asm User Collection Item] - An array of cloud ASM users.
- items List<Property Map>
- An array of cloud ASM users.
GetCloudAsmUsersCloudAsmUserCollectionItem
- Asm
Id 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.
- Asm
Id 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 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.
- asm
Id 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.
- asm
Id 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.