oci.Database.AutonomousDatabaseSaasAdminUser
Explore with Pulumi AI
This resource provides the Autonomous Database Saas Admin User resource in Oracle Cloud Infrastructure Database service.
This operation updates SaaS administrative user configuration of the Autonomous Database.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
testAutonomousDatabaseSaasAdminUser:
type: oci:Database:AutonomousDatabaseSaasAdminUser
name: test_autonomous_database_saas_admin_user
properties:
autonomousDatabaseId: ${testAutonomousDatabase.id}
accessType: ${autonomousDatabaseSaasAdminUserAccessType}
duration: ${autonomousDatabaseSaasAdminUserDuration}
isEnabled: ${autonomousDatabaseSaasAdminUserIsEnabled}
password: ${autonomousDatabaseSaasAdminUserPassword}
secretId: ${testSecret.id}
secretVersionNumber: ${autonomousDatabaseSaasAdminUserSecretVersionNumber}
timeSaasAdminUserEnabled: ${autonomousDatabaseSaasAdminUserTimeSaasAdminUserEnabled}
Create AutonomousDatabaseSaasAdminUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutonomousDatabaseSaasAdminUser(name: string, args: AutonomousDatabaseSaasAdminUserArgs, opts?: CustomResourceOptions);
@overload
def AutonomousDatabaseSaasAdminUser(resource_name: str,
args: AutonomousDatabaseSaasAdminUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AutonomousDatabaseSaasAdminUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
autonomous_database_id: Optional[str] = None,
access_type: Optional[str] = None,
duration: Optional[int] = None,
password: Optional[str] = None,
secret_id: Optional[str] = None,
secret_version_number: Optional[int] = None,
time_saas_admin_user_enabled: Optional[str] = None)
func NewAutonomousDatabaseSaasAdminUser(ctx *Context, name string, args AutonomousDatabaseSaasAdminUserArgs, opts ...ResourceOption) (*AutonomousDatabaseSaasAdminUser, error)
public AutonomousDatabaseSaasAdminUser(string name, AutonomousDatabaseSaasAdminUserArgs args, CustomResourceOptions? opts = null)
public AutonomousDatabaseSaasAdminUser(String name, AutonomousDatabaseSaasAdminUserArgs args)
public AutonomousDatabaseSaasAdminUser(String name, AutonomousDatabaseSaasAdminUserArgs args, CustomResourceOptions options)
type: oci:Database:AutonomousDatabaseSaasAdminUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AutonomousDatabaseSaasAdminUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AutonomousDatabaseSaasAdminUserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AutonomousDatabaseSaasAdminUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutonomousDatabaseSaasAdminUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutonomousDatabaseSaasAdminUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var autonomousDatabaseSaasAdminUserResource = new Oci.Database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", new()
{
AutonomousDatabaseId = "string",
AccessType = "string",
Duration = 0,
Password = "string",
SecretId = "string",
SecretVersionNumber = 0,
TimeSaasAdminUserEnabled = "string",
});
example, err := database.NewAutonomousDatabaseSaasAdminUser(ctx, "autonomousDatabaseSaasAdminUserResource", &database.AutonomousDatabaseSaasAdminUserArgs{
AutonomousDatabaseId: pulumi.String("string"),
AccessType: pulumi.String("string"),
Duration: pulumi.Int(0),
Password: pulumi.String("string"),
SecretId: pulumi.String("string"),
SecretVersionNumber: pulumi.Int(0),
TimeSaasAdminUserEnabled: pulumi.String("string"),
})
var autonomousDatabaseSaasAdminUserResource = new AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", AutonomousDatabaseSaasAdminUserArgs.builder()
.autonomousDatabaseId("string")
.accessType("string")
.duration(0)
.password("string")
.secretId("string")
.secretVersionNumber(0)
.timeSaasAdminUserEnabled("string")
.build());
autonomous_database_saas_admin_user_resource = oci.database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource",
autonomous_database_id="string",
access_type="string",
duration=0,
password="string",
secret_id="string",
secret_version_number=0,
time_saas_admin_user_enabled="string")
const autonomousDatabaseSaasAdminUserResource = new oci.database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", {
autonomousDatabaseId: "string",
accessType: "string",
duration: 0,
password: "string",
secretId: "string",
secretVersionNumber: 0,
timeSaasAdminUserEnabled: "string",
});
type: oci:Database:AutonomousDatabaseSaasAdminUser
properties:
accessType: string
autonomousDatabaseId: string
duration: 0
password: string
secretId: string
secretVersionNumber: 0
timeSaasAdminUserEnabled: string
AutonomousDatabaseSaasAdminUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AutonomousDatabaseSaasAdminUser resource accepts the following input properties:
- Autonomous
Database stringId - The database OCID.
- Access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- Duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- Password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Secret
Version intNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- Time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Autonomous
Database stringId - The database OCID.
- Access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- Duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- Password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Secret
Version intNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- Time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Database StringId - The database OCID.
- access
Type String - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- duration Integer
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password String
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version IntegerNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas StringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Database stringId - The database OCID.
- access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- duration number
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version numberNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous_
database_ strid - The database OCID.
- access_
type str - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password str
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret_
id str - The OCID of the Oracle Cloud Infrastructure secret.
- secret_
version_ intnumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time_
saas_ stradmin_ user_ enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Database StringId - The database OCID.
- access
Type String - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- duration Number
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password String
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version NumberNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas StringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the AutonomousDatabaseSaasAdminUser resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AutonomousDatabaseSaasAdminUser Resource
Get an existing AutonomousDatabaseSaasAdminUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AutonomousDatabaseSaasAdminUserState, opts?: CustomResourceOptions): AutonomousDatabaseSaasAdminUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_type: Optional[str] = None,
autonomous_database_id: Optional[str] = None,
duration: Optional[int] = None,
password: Optional[str] = None,
secret_id: Optional[str] = None,
secret_version_number: Optional[int] = None,
time_saas_admin_user_enabled: Optional[str] = None) -> AutonomousDatabaseSaasAdminUser
func GetAutonomousDatabaseSaasAdminUser(ctx *Context, name string, id IDInput, state *AutonomousDatabaseSaasAdminUserState, opts ...ResourceOption) (*AutonomousDatabaseSaasAdminUser, error)
public static AutonomousDatabaseSaasAdminUser Get(string name, Input<string> id, AutonomousDatabaseSaasAdminUserState? state, CustomResourceOptions? opts = null)
public static AutonomousDatabaseSaasAdminUser get(String name, Output<String> id, AutonomousDatabaseSaasAdminUserState state, CustomResourceOptions options)
resources: _: type: oci:Database:AutonomousDatabaseSaasAdminUser get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- Autonomous
Database stringId - The database OCID.
- Duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- Password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Secret
Version intNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- Time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- Autonomous
Database stringId - The database OCID.
- Duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- Password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Secret
Version intNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- Time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- access
Type String - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- autonomous
Database StringId - The database OCID.
- duration Integer
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password String
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version IntegerNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas StringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- access
Type string - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- autonomous
Database stringId - The database OCID.
- duration number
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password string
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version numberNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas stringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- access_
type str - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- autonomous_
database_ strid - The database OCID.
- duration int
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password str
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret_
id str - The OCID of the Oracle Cloud Infrastructure secret.
- secret_
version_ intnumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time_
saas_ stradmin_ user_ enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- access
Type String - The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
- autonomous
Database StringId - The database OCID.
- duration Number
- How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
- password String
- A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash).
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- secret
Version NumberNumber - The version of the vault secret. If no version is specified, the latest version will be used.
- time
Saas StringAdmin User Enabled The date and time the SaaS administrative user was enabled at, for the Autonomous Database.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
Import is not supported for this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.