Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getExternalAsmUsers
Explore with Pulumi AI
This data source provides the list of External Asm Users in Oracle Cloud Infrastructure Database Management service.
Lists ASM users for the external ASM specified by externalAsmId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalAsmUsers = oci.DatabaseManagement.getExternalAsmUsers({
    externalAsmId: testExternalAsm.id,
    opcNamedCredentialId: externalAsmUserOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_external_asm_users = oci.DatabaseManagement.get_external_asm_users(external_asm_id=test_external_asm["id"],
    opc_named_credential_id=external_asm_user_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.GetExternalAsmUsers(ctx, &databasemanagement.GetExternalAsmUsersArgs{
			ExternalAsmId:        testExternalAsm.Id,
			OpcNamedCredentialId: pulumi.StringRef(externalAsmUserOpcNamedCredentialId),
		}, 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 testExternalAsmUsers = Oci.DatabaseManagement.GetExternalAsmUsers.Invoke(new()
    {
        ExternalAsmId = testExternalAsm.Id,
        OpcNamedCredentialId = externalAsmUserOpcNamedCredentialId,
    });
});
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.GetExternalAsmUsersArgs;
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 testExternalAsmUsers = DatabaseManagementFunctions.getExternalAsmUsers(GetExternalAsmUsersArgs.builder()
            .externalAsmId(testExternalAsm.id())
            .opcNamedCredentialId(externalAsmUserOpcNamedCredentialId)
            .build());
    }
}
variables:
  testExternalAsmUsers:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalAsmUsers
      arguments:
        externalAsmId: ${testExternalAsm.id}
        opcNamedCredentialId: ${externalAsmUserOpcNamedCredentialId}
Using getExternalAsmUsers
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 getExternalAsmUsers(args: GetExternalAsmUsersArgs, opts?: InvokeOptions): Promise<GetExternalAsmUsersResult>
function getExternalAsmUsersOutput(args: GetExternalAsmUsersOutputArgs, opts?: InvokeOptions): Output<GetExternalAsmUsersResult>def get_external_asm_users(external_asm_id: Optional[str] = None,
                           filters: Optional[Sequence[GetExternalAsmUsersFilter]] = None,
                           opc_named_credential_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetExternalAsmUsersResult
def get_external_asm_users_output(external_asm_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetExternalAsmUsersFilterArgs]]]] = None,
                           opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetExternalAsmUsersResult]func GetExternalAsmUsers(ctx *Context, args *GetExternalAsmUsersArgs, opts ...InvokeOption) (*GetExternalAsmUsersResult, error)
func GetExternalAsmUsersOutput(ctx *Context, args *GetExternalAsmUsersOutputArgs, opts ...InvokeOption) GetExternalAsmUsersResultOutput> Note: This function is named GetExternalAsmUsers in the Go SDK.
public static class GetExternalAsmUsers 
{
    public static Task<GetExternalAsmUsersResult> InvokeAsync(GetExternalAsmUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalAsmUsersResult> Invoke(GetExternalAsmUsersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExternalAsmUsersResult> getExternalAsmUsers(GetExternalAsmUsersArgs args, InvokeOptions options)
public static Output<GetExternalAsmUsersResult> getExternalAsmUsers(GetExternalAsmUsersArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getExternalAsmUsers:getExternalAsmUsers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ExternalAsm stringId 
- The OCID of the external ASM.
- Filters
List<GetExternal Asm Users Filter> 
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- ExternalAsm stringId 
- The OCID of the external ASM.
- Filters
[]GetExternal Asm Users Filter 
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- externalAsm StringId 
- The OCID of the external ASM.
- filters
List<GetExternal Asm Users Filter> 
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
- externalAsm stringId 
- The OCID of the external ASM.
- filters
GetExternal Asm Users Filter[] 
- opcNamed stringCredential Id 
- The OCID of the Named Credential.
- external_asm_ strid 
- The OCID of the external ASM.
- filters
Sequence[GetExternal Asm Users Filter] 
- opc_named_ strcredential_ id 
- The OCID of the Named Credential.
- externalAsm StringId 
- The OCID of the external ASM.
- filters List<Property Map>
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
getExternalAsmUsers Result
The following output properties are available:
- ExternalAsm stringId 
- ExternalAsm List<GetUser Collections External Asm Users External Asm User Collection> 
- The list of external_asm_user_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetExternal Asm Users Filter> 
- OpcNamed stringCredential Id 
- ExternalAsm stringId 
- ExternalAsm []GetUser Collections External Asm Users External Asm User Collection 
- The list of external_asm_user_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetExternal Asm Users Filter 
- OpcNamed stringCredential Id 
- externalAsm StringId 
- externalAsm List<GetUser Collections External Asm Users External Asm User Collection> 
- The list of external_asm_user_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetExternal Asm Users Filter> 
- opcNamed StringCredential Id 
- externalAsm stringId 
- externalAsm GetUser Collections External Asm Users External Asm User Collection[] 
- The list of external_asm_user_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetExternal Asm Users Filter[] 
- opcNamed stringCredential Id 
- external_asm_ strid 
- external_asm_ Sequence[Getuser_ collections External Asm Users External Asm User Collection] 
- The list of external_asm_user_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetExternal Asm Users Filter] 
- opc_named_ strcredential_ id 
- externalAsm StringId 
- externalAsm List<Property Map>User Collections 
- The list of external_asm_user_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- opcNamed StringCredential Id 
Supporting Types
GetExternalAsmUsersExternalAsmUserCollection       
- Items
List<GetExternal Asm Users External Asm User Collection Item> 
- An array of external ASM users.
- Items
[]GetExternal Asm Users External Asm User Collection Item 
- An array of external ASM users.
- items
List<GetExternal Asm Users External Asm User Collection Item> 
- An array of external ASM users.
- items
GetExternal Asm Users External Asm User Collection Item[] 
- An array of external ASM users.
- items
Sequence[GetExternal Asm Users External Asm User Collection Item] 
- An array of external ASM users.
- items List<Property Map>
- An array of external ASM users.
GetExternalAsmUsersExternalAsmUserCollectionItem        
- AsmId string
- The OCID of the external 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 external 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 external 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 external 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 external 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 external ASM.
- name String
- The name of the ASM user.
- privileges List<String>
- The list of privileges of the ASM user.
GetExternalAsmUsersFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.