1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalAsmUsers
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DatabaseManagement.getExternalAsmUsers

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_databasemanagement.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[_databasemanagement.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseManagement/getExternalAsmUsers:getExternalAsmUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExternalAsmId string
    The OCID of the external ASM.
    Filters List<GetExternalAsmUsersFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    ExternalAsmId string
    The OCID of the external ASM.
    Filters []GetExternalAsmUsersFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    externalAsmId String
    The OCID of the external ASM.
    filters List<GetExternalAsmUsersFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    externalAsmId string
    The OCID of the external ASM.
    filters GetExternalAsmUsersFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    externalAsmId String
    The OCID of the external ASM.
    filters List<Property Map>
    opcNamedCredentialId String
    The OCID of the Named Credential.

    getExternalAsmUsers Result

    The following output properties are available:

    ExternalAsmId string
    ExternalAsmUserCollections List<GetExternalAsmUsersExternalAsmUserCollection>
    The list of external_asm_user_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetExternalAsmUsersFilter>
    OpcNamedCredentialId string
    ExternalAsmId string
    ExternalAsmUserCollections []GetExternalAsmUsersExternalAsmUserCollection
    The list of external_asm_user_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetExternalAsmUsersFilter
    OpcNamedCredentialId string
    externalAsmId String
    externalAsmUserCollections List<GetExternalAsmUsersExternalAsmUserCollection>
    The list of external_asm_user_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetExternalAsmUsersFilter>
    opcNamedCredentialId String
    externalAsmId string
    externalAsmUserCollections GetExternalAsmUsersExternalAsmUserCollection[]
    The list of external_asm_user_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetExternalAsmUsersFilter[]
    opcNamedCredentialId string
    externalAsmId String
    externalAsmUserCollections List<Property Map>
    The list of external_asm_user_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    opcNamedCredentialId String

    Supporting Types

    GetExternalAsmUsersExternalAsmUserCollection

    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

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi