Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi
oci.DatabaseManagement.getManagedDatabaseUsers
Explore with Pulumi AI
This data source provides the list of Managed Database Users in Oracle Cloud Infrastructure Database Management service.
Gets the list of users for the specified managedDatabaseId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseUsers = oci.DatabaseManagement.getManagedDatabaseUsers({
managedDatabaseId: testManagedDatabase.id,
name: managedDatabaseUserName,
opcNamedCredentialId: managedDatabaseUserOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_managed_database_users = oci.DatabaseManagement.get_managed_database_users(managed_database_id=test_managed_database["id"],
name=managed_database_user_name,
opc_named_credential_id=managed_database_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.GetManagedDatabaseUsers(ctx, &databasemanagement.GetManagedDatabaseUsersArgs{
ManagedDatabaseId: testManagedDatabase.Id,
Name: pulumi.StringRef(managedDatabaseUserName),
OpcNamedCredentialId: pulumi.StringRef(managedDatabaseUserOpcNamedCredentialId),
}, 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 testManagedDatabaseUsers = Oci.DatabaseManagement.GetManagedDatabaseUsers.Invoke(new()
{
ManagedDatabaseId = testManagedDatabase.Id,
Name = managedDatabaseUserName,
OpcNamedCredentialId = managedDatabaseUserOpcNamedCredentialId,
});
});
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.GetManagedDatabaseUsersArgs;
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 testManagedDatabaseUsers = DatabaseManagementFunctions.getManagedDatabaseUsers(GetManagedDatabaseUsersArgs.builder()
.managedDatabaseId(testManagedDatabase.id())
.name(managedDatabaseUserName)
.opcNamedCredentialId(managedDatabaseUserOpcNamedCredentialId)
.build());
}
}
variables:
testManagedDatabaseUsers:
fn::invoke:
function: oci:DatabaseManagement:getManagedDatabaseUsers
arguments:
managedDatabaseId: ${testManagedDatabase.id}
name: ${managedDatabaseUserName}
opcNamedCredentialId: ${managedDatabaseUserOpcNamedCredentialId}
Using getManagedDatabaseUsers
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 getManagedDatabaseUsers(args: GetManagedDatabaseUsersArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseUsersResult>
function getManagedDatabaseUsersOutput(args: GetManagedDatabaseUsersOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseUsersResult>
def get_managed_database_users(filters: Optional[Sequence[_databasemanagement.GetManagedDatabaseUsersFilter]] = None,
managed_database_id: Optional[str] = None,
name: Optional[str] = None,
opc_named_credential_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseUsersResult
def get_managed_database_users_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedDatabaseUsersFilterArgs]]]] = None,
managed_database_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opc_named_credential_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseUsersResult]
func GetManagedDatabaseUsers(ctx *Context, args *GetManagedDatabaseUsersArgs, opts ...InvokeOption) (*GetManagedDatabaseUsersResult, error)
func GetManagedDatabaseUsersOutput(ctx *Context, args *GetManagedDatabaseUsersOutputArgs, opts ...InvokeOption) GetManagedDatabaseUsersResultOutput
> Note: This function is named GetManagedDatabaseUsers
in the Go SDK.
public static class GetManagedDatabaseUsers
{
public static Task<GetManagedDatabaseUsersResult> InvokeAsync(GetManagedDatabaseUsersArgs args, InvokeOptions? opts = null)
public static Output<GetManagedDatabaseUsersResult> Invoke(GetManagedDatabaseUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedDatabaseUsersResult> getManagedDatabaseUsers(GetManagedDatabaseUsersArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseUsersResult> getManagedDatabaseUsers(GetManagedDatabaseUsersArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabaseUsers:getManagedDatabaseUsers
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database Id This property is required. string - The OCID of the Managed Database.
- Filters
Changes to this property will trigger replacement.
Managed Database Users Filter> - Name string
- A filter to return only resources that match the entire name.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- Managed
Database Id This property is required. string - The OCID of the Managed Database.
- Filters
Changes to this property will trigger replacement.
Managed Database Users Filter - Name string
- A filter to return only resources that match the entire name.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- managed
Database Id This property is required. String - The OCID of the Managed Database.
- filters
Changes to this property will trigger replacement.
Managed Database Users Filter> - name String
- A filter to return only resources that match the entire name.
- opc
Named StringCredential Id - The OCID of the Named Credential.
- managed
Database Id This property is required. string - The OCID of the Managed Database.
- filters
Changes to this property will trigger replacement.
Managed Database Users Filter[] - name string
- A filter to return only resources that match the entire name.
- opc
Named stringCredential Id - The OCID of the Named Credential.
- managed_
database_ id This property is required. str - The OCID of the Managed Database.
- filters
Changes to this property will trigger replacement.
Get Managed Database Users Filter] - name str
- A filter to return only resources that match the entire name.
- opc_
named_ strcredential_ id - The OCID of the Named Credential.
- managed
Database Id This property is required. String - The OCID of the Managed Database.
- filters
Changes to this property will trigger replacement.
- name String
- A filter to return only resources that match the entire name.
- opc
Named StringCredential Id - The OCID of the Named Credential.
getManagedDatabaseUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - User
Collections List<GetManaged Database Users User Collection> - The list of user_collection.
- Filters
List<Get
Managed Database Users Filter> - Name string
- The name of the User.
- Opc
Named stringCredential Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - User
Collections []GetManaged Database Users User Collection - The list of user_collection.
- Filters
[]Get
Managed Database Users Filter - Name string
- The name of the User.
- Opc
Named stringCredential Id
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - user
Collections List<GetManaged Database Users User Collection> - The list of user_collection.
- filters
List<Get
Managed Database Users Filter> - name String
- The name of the User.
- opc
Named StringCredential Id
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - user
Collections GetManaged Database Users User Collection[] - The list of user_collection.
- filters
Get
Managed Database Users Filter[] - name string
- The name of the User.
- opc
Named stringCredential Id
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - user_
collections Sequence[databasemanagement.Get Managed Database Users User Collection] - The list of user_collection.
- filters
Sequence[databasemanagement.
Get Managed Database Users Filter] - name str
- The name of the User.
- opc_
named_ strcredential_ id
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - user
Collections List<Property Map> - The list of user_collection.
- filters List<Property Map>
- name String
- The name of the User.
- opc
Named StringCredential Id
Supporting Types
GetManagedDatabaseUsersFilter
GetManagedDatabaseUsersUserCollection
- Items
This property is required. List<GetManaged Database Users User Collection Item>
- Items
This property is required. []GetManaged Database Users User Collection Item
- items
This property is required. List<GetManaged Database Users User Collection Item>
- items
This property is required. GetManaged Database Users User Collection Item[]
- items
This property is required. Sequence[databasemanagement.Get Managed Database Users User Collection Item]
- items
This property is required. List<Property Map>
GetManagedDatabaseUsersUserCollectionItem
This property is required. string- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- Authentication
This property is required. string - The authentication mechanism for the user.
- Common
This property is required. string - Indicates whether a given user is common(Y) or local(N).
- Consumer
Group This property is required. string - The initial resource consumer group for the User.
- Default
Collation This property is required. string - The default collation for the user schema.
- Default
Tablespace This property is required. string - The default tablespace for data.
- Editions
Enabled This property is required. string - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- External
Name This property is required. string - The external name of the user.
This property is required. string- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- Implicit
This property is required. string - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- Inherited
This property is required. string - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- Local
Temp Tablespace This property is required. string - The default local temporary tablespace for the user.
- Name
This property is required. string - A filter to return only resources that match the entire name.
- Oracle
Maintained This property is required. string - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- Password
Versions This property is required. string - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- Profile
This property is required. string - The profile name of the user.
- Proxy
Connect This property is required. string - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- Status
This property is required. string - The status of the user account.
- Temp
Tablespace This property is required. string - The name of the default tablespace for temporary tables or the name of a tablespace group.
- Time
Created This property is required. string - The date and time the user was created.
- Time
Expiring This property is required. string - The date and time of the expiration of the user account.
- Time
Last Login This property is required. string - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- Time
Locked This property is required. string - The date the account was locked, if the status of the account is LOCKED.
- Time
Password Changed This property is required. string - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
This property is required. string- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- Authentication
This property is required. string - The authentication mechanism for the user.
- Common
This property is required. string - Indicates whether a given user is common(Y) or local(N).
- Consumer
Group This property is required. string - The initial resource consumer group for the User.
- Default
Collation This property is required. string - The default collation for the user schema.
- Default
Tablespace This property is required. string - The default tablespace for data.
- Editions
Enabled This property is required. string - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- External
Name This property is required. string - The external name of the user.
This property is required. string- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- Implicit
This property is required. string - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- Inherited
This property is required. string - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- Local
Temp Tablespace This property is required. string - The default local temporary tablespace for the user.
- Name
This property is required. string - A filter to return only resources that match the entire name.
- Oracle
Maintained This property is required. string - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- Password
Versions This property is required. string - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- Profile
This property is required. string - The profile name of the user.
- Proxy
Connect This property is required. string - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- Status
This property is required. string - The status of the user account.
- Temp
Tablespace This property is required. string - The name of the default tablespace for temporary tables or the name of a tablespace group.
- Time
Created This property is required. string - The date and time the user was created.
- Time
Expiring This property is required. string - The date and time of the expiration of the user account.
- Time
Last Login This property is required. string - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- Time
Locked This property is required. string - The date the account was locked, if the status of the account is LOCKED.
- Time
Password Changed This property is required. string - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
This property is required. String- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- authentication
This property is required. String - The authentication mechanism for the user.
- common
This property is required. String - Indicates whether a given user is common(Y) or local(N).
- consumer
Group This property is required. String - The initial resource consumer group for the User.
- default
Collation This property is required. String - The default collation for the user schema.
- default
Tablespace This property is required. String - The default tablespace for data.
- editions
Enabled This property is required. String - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- external
Name This property is required. String - The external name of the user.
This property is required. String- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- implicit
This property is required. String - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- inherited
This property is required. String - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- local
Temp Tablespace This property is required. String - The default local temporary tablespace for the user.
- name
This property is required. String - A filter to return only resources that match the entire name.
- oracle
Maintained This property is required. String - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- password
Versions This property is required. String - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- profile
This property is required. String - The profile name of the user.
- proxy
Connect This property is required. String - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- status
This property is required. String - The status of the user account.
- temp
Tablespace This property is required. String - The name of the default tablespace for temporary tables or the name of a tablespace group.
- time
Created This property is required. String - The date and time the user was created.
- time
Expiring This property is required. String - The date and time of the expiration of the user account.
- time
Last Login This property is required. String - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- time
Locked This property is required. String - The date the account was locked, if the status of the account is LOCKED.
- time
Password Changed This property is required. String - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
This property is required. string- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- authentication
This property is required. string - The authentication mechanism for the user.
- common
This property is required. string - Indicates whether a given user is common(Y) or local(N).
- consumer
Group This property is required. string - The initial resource consumer group for the User.
- default
Collation This property is required. string - The default collation for the user schema.
- default
Tablespace This property is required. string - The default tablespace for data.
- editions
Enabled This property is required. string - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- external
Name This property is required. string - The external name of the user.
This property is required. string- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- implicit
This property is required. string - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- inherited
This property is required. string - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- local
Temp Tablespace This property is required. string - The default local temporary tablespace for the user.
- name
This property is required. string - A filter to return only resources that match the entire name.
- oracle
Maintained This property is required. string - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- password
Versions This property is required. string - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- profile
This property is required. string - The profile name of the user.
- proxy
Connect This property is required. string - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- status
This property is required. string - The status of the user account.
- temp
Tablespace This property is required. string - The name of the default tablespace for temporary tables or the name of a tablespace group.
- time
Created This property is required. string - The date and time the user was created.
- time
Expiring This property is required. string - The date and time of the expiration of the user account.
- time
Last Login This property is required. string - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- time
Locked This property is required. string - The date the account was locked, if the status of the account is LOCKED.
- time
Password Changed This property is required. string - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
This property is required. str- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- authentication
This property is required. str - The authentication mechanism for the user.
- common
This property is required. str - Indicates whether a given user is common(Y) or local(N).
- consumer_
group This property is required. str - The initial resource consumer group for the User.
- default_
collation This property is required. str - The default collation for the user schema.
- default_
tablespace This property is required. str - The default tablespace for data.
- editions_
enabled This property is required. str - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- external_
name This property is required. str - The external name of the user.
This property is required. str- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- implicit
This property is required. str - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- inherited
This property is required. str - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- local_
temp_ tablespace This property is required. str - The default local temporary tablespace for the user.
- name
This property is required. str - A filter to return only resources that match the entire name.
- oracle_
maintained This property is required. str - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- password_
versions This property is required. str - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- profile
This property is required. str - The profile name of the user.
- proxy_
connect This property is required. str - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- status
This property is required. str - The status of the user account.
- temp_
tablespace This property is required. str - The name of the default tablespace for temporary tables or the name of a tablespace group.
- time_
created This property is required. str - The date and time the user was created.
- time_
expiring This property is required. str - The date and time of the expiration of the user account.
- time_
last_ login This property is required. str - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- time_
locked This property is required. str - The date the account was locked, if the status of the account is LOCKED.
- time_
password_ changed This property is required. str - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
This property is required. String- In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
- authentication
This property is required. String - The authentication mechanism for the user.
- common
This property is required. String - Indicates whether a given user is common(Y) or local(N).
- consumer
Group This property is required. String - The initial resource consumer group for the User.
- default
Collation This property is required. String - The default collation for the user schema.
- default
Tablespace This property is required. String - The default tablespace for data.
- editions
Enabled This property is required. String - Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
- external
Name This property is required. String - The external name of the user.
This property is required. String- In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
- implicit
This property is required. String - Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
- inherited
This property is required. String - Indicates whether the user definition is inherited from another container (YES) or not (NO).
- local
Temp Tablespace This property is required. String - The default local temporary tablespace for the user.
- name
This property is required. String - A filter to return only resources that match the entire name.
- oracle
Maintained This property is required. String - Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
- password
Versions This property is required. String - The list of existing versions of the password hashes (also known as "verifiers") for the account.
- profile
This property is required. String - The profile name of the user.
- proxy
Connect This property is required. String - Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).
- status
This property is required. String - The status of the user account.
- temp
Tablespace This property is required. String - The name of the default tablespace for temporary tables or the name of a tablespace group.
- time
Created This property is required. String - The date and time the user was created.
- time
Expiring This property is required. String - The date and time of the expiration of the user account.
- time
Last Login This property is required. String - The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- time
Locked This property is required. String - The date the account was locked, if the status of the account is LOCKED.
- time
Password Changed This property is required. String - The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.