oci.Database.AutonomousDatabaseSaasAdminUser
Explore with Pulumi AI
This resource creates and enables the Autonomous Database administrative user account in Oracle Cloud Infrastructure Database service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseSaasAdminUser = new oci.database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user", {
autonomousDatabaseId: testAutonomousDatabase.id,
password: autonomousDatabaseSaasAdminUserPassword,
accessType: autonomousDatabaseSaasAdminUserAccessType,
duration: autonomousDatabaseSaasAdminUserDuration,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_saas_admin_user = oci.database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user",
autonomous_database_id=test_autonomous_database["id"],
password=autonomous_database_saas_admin_user_password,
access_type=autonomous_database_saas_admin_user_access_type,
duration=autonomous_database_saas_admin_user_duration)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Database.NewAutonomousDatabaseSaasAdminUser(ctx, "test_autonomous_database_saas_admin_user", &Database.AutonomousDatabaseSaasAdminUserArgs{
AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
Password: pulumi.Any(autonomousDatabaseSaasAdminUserPassword),
AccessType: pulumi.Any(autonomousDatabaseSaasAdminUserAccessType),
Duration: pulumi.Any(autonomousDatabaseSaasAdminUserDuration),
})
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 testAutonomousDatabaseSaasAdminUser = new Oci.Database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user", new()
{
AutonomousDatabaseId = testAutonomousDatabase.Id,
Password = autonomousDatabaseSaasAdminUserPassword,
AccessType = autonomousDatabaseSaasAdminUserAccessType,
Duration = autonomousDatabaseSaasAdminUserDuration,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.AutonomousDatabaseSaasAdminUser;
import com.pulumi.oci.Database.AutonomousDatabaseSaasAdminUserArgs;
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) {
var testAutonomousDatabaseSaasAdminUser = new AutonomousDatabaseSaasAdminUser("testAutonomousDatabaseSaasAdminUser", AutonomousDatabaseSaasAdminUserArgs.builder()
.autonomousDatabaseId(testAutonomousDatabase.id())
.password(autonomousDatabaseSaasAdminUserPassword)
.accessType(autonomousDatabaseSaasAdminUserAccessType)
.duration(autonomousDatabaseSaasAdminUserDuration)
.build());
}
}
resources:
testAutonomousDatabaseSaasAdminUser:
type: oci:Database:AutonomousDatabaseSaasAdminUser
name: test_autonomous_database_saas_admin_user
properties:
autonomousDatabaseId: ${testAutonomousDatabase.id}
password: ${autonomousDatabaseSaasAdminUserPassword}
accessType: ${autonomousDatabaseSaasAdminUserAccessType}
duration: ${autonomousDatabaseSaasAdminUserDuration}
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
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). The password is mandatory if "secret_id" is not present.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- Secret
Version intNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- Time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- Secret
Version intNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- Time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version IntegerNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas StringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version numberNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret_
id str - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret_
version_ intnumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time_
saas_ stradmin_ user_ enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version NumberNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas StringAdmin User Enabled
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)
Resource lookup is not supported in YAML
- 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). The password is mandatory if "secret_id" is not present.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- Secret
Version intNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- Time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- Secret
Version intNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- Time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version IntegerNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas StringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id string - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version numberNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas stringAdmin User Enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret_
id str - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret_
version_ intnumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time_
saas_ stradmin_ user_ enabled
- 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). The password is mandatory if "secret_id" is not present.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
- secret
Version NumberNumber The version of the vault secret. If no version is specified, the latest version will be used.
** 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
- time
Saas StringAdmin User Enabled
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.