alicloud.rds.Account
Explore with Pulumi AI
Provides an RDS account resource and used to manage databases.
DEPRECATED: This resource has been deprecated from version
1.120.0
. Please use new resource alicloud_rds_account.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var creation = config.Get("creation") ?? "Rds";
var name = config.Get("name") ?? "dbaccountmysql";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = creation,
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var instance = new AliCloud.Rds.Instance("instance", new()
{
Engine = "MySQL",
EngineVersion = "5.6",
InstanceType = "rds.mysql.s1.small",
InstanceStorage = 10,
VswitchId = defaultSwitch.Id,
InstanceName = name,
});
var account = new AliCloud.Rds.Account("account", new()
{
InstanceId = instance.Id,
Password = "Test12345",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
creation := "Rds"
if param := cfg.Get("creation"); param != "" {
creation = param
}
name := "dbaccountmysql"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef(creation),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
instance, err := rds.NewInstance(ctx, "instance", &rds.InstanceArgs{
Engine: pulumi.String("MySQL"),
EngineVersion: pulumi.String("5.6"),
InstanceType: pulumi.String("rds.mysql.s1.small"),
InstanceStorage: pulumi.Int(10),
VswitchId: defaultSwitch.ID(),
InstanceName: pulumi.String(name),
})
if err != nil {
return err
}
_, err = rds.NewAccount(ctx, "account", &rds.AccountArgs{
InstanceId: instance.ID(),
Password: pulumi.String("Test12345"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.rds.Instance;
import com.pulumi.alicloud.rds.InstanceArgs;
import com.pulumi.alicloud.rds.Account;
import com.pulumi.alicloud.rds.AccountArgs;
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 config = ctx.config();
final var creation = config.get("creation").orElse("Rds");
final var name = config.get("name").orElse("dbaccountmysql");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation(creation)
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var instance = new Instance("instance", InstanceArgs.builder()
.engine("MySQL")
.engineVersion("5.6")
.instanceType("rds.mysql.s1.small")
.instanceStorage("10")
.vswitchId(defaultSwitch.id())
.instanceName(name)
.build());
var account = new Account("account", AccountArgs.builder()
.instanceId(instance.id())
.password("Test12345")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
creation = config.get("creation")
if creation is None:
creation = "Rds"
name = config.get("name")
if name is None:
name = "dbaccountmysql"
default_zones = alicloud.get_zones(available_resource_creation=creation)
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
instance = alicloud.rds.Instance("instance",
engine="MySQL",
engine_version="5.6",
instance_type="rds.mysql.s1.small",
instance_storage=10,
vswitch_id=default_switch.id,
instance_name=name)
account = alicloud.rds.Account("account",
instance_id=instance.id,
password="Test12345")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const creation = config.get("creation") || "Rds";
const name = config.get("name") || "dbaccountmysql";
const defaultZones = alicloud.getZones({
availableResourceCreation: creation,
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: name,
});
const instance = new alicloud.rds.Instance("instance", {
engine: "MySQL",
engineVersion: "5.6",
instanceType: "rds.mysql.s1.small",
instanceStorage: 10,
vswitchId: defaultSwitch.id,
instanceName: name,
});
const account = new alicloud.rds.Account("account", {
instanceId: instance.id,
password: "Test12345",
});
configuration:
creation:
type: string
default: Rds
name:
type: string
default: dbaccountmysql
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${defaultZones.zones[0].id}
vswitchName: ${name}
instance:
type: alicloud:rds:Instance
properties:
engine: MySQL
engineVersion: '5.6'
instanceType: rds.mysql.s1.small
instanceStorage: '10'
vswitchId: ${defaultSwitch.id}
instanceName: ${name}
account:
type: alicloud:rds:Account
properties:
instanceId: ${instance.id}
password: Test12345
variables:
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: ${creation}
Create Account Resource
new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_description: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
account_type: Optional[str] = None,
db_instance_id: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
reset_permission_flag: Optional[bool] = None,
type: Optional[str] = None)
@overload
def Account(resource_name: str,
args: Optional[AccountArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: alicloud:rds:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Account 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 Account resource accepts the following input properties:
- Account
Description string - Account
Name string - Account
Password string - Account
Type string - Db
Instance stringId - Description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- Instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- Name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- Password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- Reset
Permission boolFlag - Type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- Account
Description string - Account
Name string - Account
Password string - Account
Type string - Db
Instance stringId - Description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- Instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- Name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- Password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- Reset
Permission boolFlag - Type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description String - account
Name String - account
Password String - account
Type String - db
Instance StringId - description String
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id String The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption Map<String,Object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name String
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password String
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission BooleanFlag - type String
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description string - account
Name string - account
Password string - account
Type string - db
Instance stringId - description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission booleanFlag - type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account_
description str - account_
name str - account_
password str - account_
type str - db_
instance_ strid - description str
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance_
id str The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms_
encryption_ Mapping[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name str
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password str
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset_
permission_ boolflag - type str
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description String - account
Name String - account
Password String - account
Type String - db
Instance StringId - description String
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id String The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption Map<Any>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name String
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password String
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission BooleanFlag - type String
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
Look up Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_description: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
account_type: Optional[str] = None,
db_instance_id: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
reset_permission_flag: Optional[bool] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState 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.
- Account
Description string - Account
Name string - Account
Password string - Account
Type string - Db
Instance stringId - Description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- Instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- Name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- Password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- Reset
Permission boolFlag - Status string
- Type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- Account
Description string - Account
Name string - Account
Password string - Account
Type string - Db
Instance stringId - Description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- Instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- Name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- Password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- Reset
Permission boolFlag - Status string
- Type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description String - account
Name String - account
Password String - account
Type String - db
Instance StringId - description String
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id String The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption Map<String,Object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name String
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password String
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission BooleanFlag - status String
- type String
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description string - account
Name string - account
Password string - account
Type string - db
Instance stringId - description string
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id string The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name string
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password string
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission booleanFlag - status string
- type string
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account_
description str - account_
name str - account_
password str - account_
type str - db_
instance_ strid - description str
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance_
id str The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms_
encryption_ Mapping[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name str
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password str
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset_
permission_ boolflag - status str
- type str
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
- account
Description String - account
Name String - account
Password String - account
Type String - db
Instance StringId - description String
Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
Field 'description' has been deprecated from provider version 1.120.0. New field 'account_description' instead.
- instance
Id String The Id of instance in which account belongs.
Field 'instance_id' has been deprecated from provider version 1.120.0. New field 'db_instance_id' instead.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored.- kms
Encryption Map<Any>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.- name String
Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
Field 'name' has been deprecated from provider version 1.120.0. New field 'account_name' instead.
- password String
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
password
andkms_encrypted_password
fields.Field 'password' has been deprecated from provider version 1.120.0. New field 'account_password' instead.
- reset
Permission BooleanFlag - status String
- type String
Privilege type of account. The SQLServer engine does not support create high privilege accounts.
- Normal: Common privilege.
- Super: High privilege.
Default to Normal.
Field 'type' has been deprecated from provider version 1.120.0. New field 'account_type' instead.
Import
RDS account can be imported using the id, e.g.
$ pulumi import alicloud:rds/account:Account example "rm-12345:tf_account"
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.