Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- External
Asm stringId - The OCID of the external ASM.
- Filters
List<Get
External Asm Users Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- External
Asm stringId - The OCID of the external ASM.
- Filters
[]Get
External Asm Users Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- external
Asm StringId - The OCID of the external ASM.
- filters
List<Get
External Asm Users Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- external
Asm stringId - The OCID of the external ASM.
- filters
Get
External Asm Users Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- external_
asm_ strid - The OCID of the external ASM.
- filters
Sequence[databasemanagement.
Get External Asm Users Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- external
Asm StringId - The OCID of the external ASM.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getExternalAsmUsers Result
The following output properties are available:
- External
Asm stringId - External
Asm 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<Get
External Asm Users Filter> - Opc
Named stringCredential Id
- External
Asm stringId - External
Asm []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
[]Get
External Asm Users Filter - Opc
Named stringCredential Id
- external
Asm StringId - external
Asm 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<Get
External Asm Users Filter> - opc
Named StringCredential Id
- external
Asm stringId - external
Asm 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
Get
External Asm Users Filter[] - opc
Named stringCredential Id
- external_
asm_ strid - external_
asm_ Sequence[databasemanagement.user_ collections Get 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[databasemanagement.
Get External Asm Users Filter] - opc_
named_ strcredential_ id
- external
Asm StringId - external
Asm 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>
- opc
Named StringCredential Id
Supporting Types
GetExternalAsmUsersExternalAsmUserCollection
- Items
List<Get
External Asm Users External Asm User Collection Item> - An array of external ASM users.
- Items
[]Get
External Asm Users External Asm User Collection Item - An array of external ASM users.
- items
List<Get
External Asm Users External Asm User Collection Item> - An array of external ASM users.
- items
Get
External Asm Users External Asm User Collection Item[] - An array of external ASM users.
- items
Sequence[databasemanagement.
Get External Asm Users External Asm User Collection Item] - An array of external ASM users.
- items List<Property Map>
- An array of external ASM users.
GetExternalAsmUsersExternalAsmUserCollectionItem
- Asm
Id 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.
- Asm
Id 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 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.
- asm
Id 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.
- asm
Id 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
oci
Terraform Provider.