alicloud.cddc.DedicatedHostAccount
Explore with Pulumi AI
Provides a ApsaraDB for MyBase Dedicated Host Account resource.
For information about ApsaraDB for MyBase Dedicated Host Account and how to use it, see What is Dedicated Host Account.
NOTE: Available since v1.148.0.
NOTE: Each Dedicated host can have only one account. Before you create an account for a host, make sure that the existing account is deleted.
DEPRECATED: This resource has been deprecated from version
1.225.1
.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const default = alicloud.cddc.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.4.0.0/24",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.ids?.[0]),
});
const defaultDedicatedHostGroup = new alicloud.cddc.DedicatedHostGroup("default", {
engine: "MySQL",
vpcId: defaultNetwork.id,
cpuAllocationRatio: 101,
memAllocationRatio: 50,
diskAllocationRatio: 200,
allocationPolicy: "Evenly",
hostReplacePolicy: "Manual",
dedicatedHostGroupDesc: name,
openPermission: true,
});
const defaultGetHostEcsLevelInfos = _default.then(_default => alicloud.cddc.getHostEcsLevelInfos({
dbType: "mysql",
zoneId: _default.ids?.[0],
storageType: "cloud_essd",
}));
const defaultDedicatedHost = new alicloud.cddc.DedicatedHost("default", {
hostName: name,
dedicatedHostGroupId: defaultDedicatedHostGroup.id,
hostClass: defaultGetHostEcsLevelInfos.then(defaultGetHostEcsLevelInfos => defaultGetHostEcsLevelInfos.infos?.[0]?.resClassCode),
zoneId: _default.then(_default => _default.ids?.[0]),
vswitchId: defaultSwitch.id,
paymentType: "Subscription",
tags: {
Created: "TF",
For: "CDDC_DEDICATED",
},
});
const defaultDedicatedHostAccount = new alicloud.cddc.DedicatedHostAccount("default", {
accountName: name,
accountPassword: "Password1234",
dedicatedHostId: defaultDedicatedHost.dedicatedHostId,
accountType: "Normal",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.cddc.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.4.0.0/24",
vpc_id=default_network.id,
zone_id=default.ids[0])
default_dedicated_host_group = alicloud.cddc.DedicatedHostGroup("default",
engine="MySQL",
vpc_id=default_network.id,
cpu_allocation_ratio=101,
mem_allocation_ratio=50,
disk_allocation_ratio=200,
allocation_policy="Evenly",
host_replace_policy="Manual",
dedicated_host_group_desc=name,
open_permission=True)
default_get_host_ecs_level_infos = alicloud.cddc.get_host_ecs_level_infos(db_type="mysql",
zone_id=default.ids[0],
storage_type="cloud_essd")
default_dedicated_host = alicloud.cddc.DedicatedHost("default",
host_name=name,
dedicated_host_group_id=default_dedicated_host_group.id,
host_class=default_get_host_ecs_level_infos.infos[0].res_class_code,
zone_id=default.ids[0],
vswitch_id=default_switch.id,
payment_type="Subscription",
tags={
"Created": "TF",
"For": "CDDC_DEDICATED",
})
default_dedicated_host_account = alicloud.cddc.DedicatedHostAccount("default",
account_name=name,
account_password="Password1234",
dedicated_host_id=default_dedicated_host.dedicated_host_id,
account_type="Normal")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cddc"
"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, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := cddc.GetZones(ctx, nil, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Ids[0]),
})
if err != nil {
return err
}
defaultDedicatedHostGroup, err := cddc.NewDedicatedHostGroup(ctx, "default", &cddc.DedicatedHostGroupArgs{
Engine: pulumi.String("MySQL"),
VpcId: defaultNetwork.ID(),
CpuAllocationRatio: pulumi.Int(101),
MemAllocationRatio: pulumi.Int(50),
DiskAllocationRatio: pulumi.Int(200),
AllocationPolicy: pulumi.String("Evenly"),
HostReplacePolicy: pulumi.String("Manual"),
DedicatedHostGroupDesc: pulumi.String(name),
OpenPermission: pulumi.Bool(true),
})
if err != nil {
return err
}
defaultGetHostEcsLevelInfos, err := cddc.GetHostEcsLevelInfos(ctx, &cddc.GetHostEcsLevelInfosArgs{
DbType: "mysql",
ZoneId: _default.Ids[0],
StorageType: "cloud_essd",
}, nil)
if err != nil {
return err
}
defaultDedicatedHost, err := cddc.NewDedicatedHost(ctx, "default", &cddc.DedicatedHostArgs{
HostName: pulumi.String(name),
DedicatedHostGroupId: defaultDedicatedHostGroup.ID(),
HostClass: pulumi.String(defaultGetHostEcsLevelInfos.Infos[0].ResClassCode),
ZoneId: pulumi.String(_default.Ids[0]),
VswitchId: defaultSwitch.ID(),
PaymentType: pulumi.String("Subscription"),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("CDDC_DEDICATED"),
},
})
if err != nil {
return err
}
_, err = cddc.NewDedicatedHostAccount(ctx, "default", &cddc.DedicatedHostAccountArgs{
AccountName: pulumi.String(name),
AccountPassword: pulumi.String("Password1234"),
DedicatedHostId: defaultDedicatedHost.DedicatedHostId,
AccountType: pulumi.String("Normal"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = AliCloud.Cddc.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/24",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
});
var defaultDedicatedHostGroup = new AliCloud.Cddc.DedicatedHostGroup("default", new()
{
Engine = "MySQL",
VpcId = defaultNetwork.Id,
CpuAllocationRatio = 101,
MemAllocationRatio = 50,
DiskAllocationRatio = 200,
AllocationPolicy = "Evenly",
HostReplacePolicy = "Manual",
DedicatedHostGroupDesc = name,
OpenPermission = true,
});
var defaultGetHostEcsLevelInfos = AliCloud.Cddc.GetHostEcsLevelInfos.Invoke(new()
{
DbType = "mysql",
ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]),
StorageType = "cloud_essd",
});
var defaultDedicatedHost = new AliCloud.Cddc.DedicatedHost("default", new()
{
HostName = name,
DedicatedHostGroupId = defaultDedicatedHostGroup.Id,
HostClass = defaultGetHostEcsLevelInfos.Apply(getHostEcsLevelInfosResult => getHostEcsLevelInfosResult.Infos[0]?.ResClassCode),
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
VswitchId = defaultSwitch.Id,
PaymentType = "Subscription",
Tags =
{
{ "Created", "TF" },
{ "For", "CDDC_DEDICATED" },
},
});
var defaultDedicatedHostAccount = new AliCloud.Cddc.DedicatedHostAccount("default", new()
{
AccountName = name,
AccountPassword = "Password1234",
DedicatedHostId = defaultDedicatedHost.DedicatedHostId,
AccountType = "Normal",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cddc.CddcFunctions;
import com.pulumi.alicloud.cddc.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.cddc.DedicatedHostGroup;
import com.pulumi.alicloud.cddc.DedicatedHostGroupArgs;
import com.pulumi.alicloud.cddc.inputs.GetHostEcsLevelInfosArgs;
import com.pulumi.alicloud.cddc.DedicatedHost;
import com.pulumi.alicloud.cddc.DedicatedHostArgs;
import com.pulumi.alicloud.cddc.DedicatedHostAccount;
import com.pulumi.alicloud.cddc.DedicatedHostAccountArgs;
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 name = config.get("name").orElse("tf_example");
final var default = CddcFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.ids()[0])
.build());
var defaultDedicatedHostGroup = new DedicatedHostGroup("defaultDedicatedHostGroup", DedicatedHostGroupArgs.builder()
.engine("MySQL")
.vpcId(defaultNetwork.id())
.cpuAllocationRatio(101)
.memAllocationRatio(50)
.diskAllocationRatio(200)
.allocationPolicy("Evenly")
.hostReplacePolicy("Manual")
.dedicatedHostGroupDesc(name)
.openPermission(true)
.build());
final var defaultGetHostEcsLevelInfos = CddcFunctions.getHostEcsLevelInfos(GetHostEcsLevelInfosArgs.builder()
.dbType("mysql")
.zoneId(default_.ids()[0])
.storageType("cloud_essd")
.build());
var defaultDedicatedHost = new DedicatedHost("defaultDedicatedHost", DedicatedHostArgs.builder()
.hostName(name)
.dedicatedHostGroupId(defaultDedicatedHostGroup.id())
.hostClass(defaultGetHostEcsLevelInfos.applyValue(getHostEcsLevelInfosResult -> getHostEcsLevelInfosResult.infos()[0].resClassCode()))
.zoneId(default_.ids()[0])
.vswitchId(defaultSwitch.id())
.paymentType("Subscription")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "CDDC_DEDICATED")
))
.build());
var defaultDedicatedHostAccount = new DedicatedHostAccount("defaultDedicatedHostAccount", DedicatedHostAccountArgs.builder()
.accountName(name)
.accountPassword("Password1234")
.dedicatedHostId(defaultDedicatedHost.dedicatedHostId())
.accountType("Normal")
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 10.4.0.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${default.ids[0]}
defaultDedicatedHostGroup:
type: alicloud:cddc:DedicatedHostGroup
name: default
properties:
engine: MySQL
vpcId: ${defaultNetwork.id}
cpuAllocationRatio: 101
memAllocationRatio: 50
diskAllocationRatio: 200
allocationPolicy: Evenly
hostReplacePolicy: Manual
dedicatedHostGroupDesc: ${name}
openPermission: true
defaultDedicatedHost:
type: alicloud:cddc:DedicatedHost
name: default
properties:
hostName: ${name}
dedicatedHostGroupId: ${defaultDedicatedHostGroup.id}
hostClass: ${defaultGetHostEcsLevelInfos.infos[0].resClassCode}
zoneId: ${default.ids[0]}
vswitchId: ${defaultSwitch.id}
paymentType: Subscription
tags:
Created: TF
For: CDDC_DEDICATED
defaultDedicatedHostAccount:
type: alicloud:cddc:DedicatedHostAccount
name: default
properties:
accountName: ${name}
accountPassword: Password1234
dedicatedHostId: ${defaultDedicatedHost.dedicatedHostId}
accountType: Normal
variables:
default:
fn::invoke:
Function: alicloud:cddc:getZones
Arguments: {}
defaultGetHostEcsLevelInfos:
fn::invoke:
Function: alicloud:cddc:getHostEcsLevelInfos
Arguments:
dbType: mysql
zoneId: ${default.ids[0]}
storageType: cloud_essd
Create DedicatedHostAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DedicatedHostAccount(name: string, args: DedicatedHostAccountArgs, opts?: CustomResourceOptions);
@overload
def DedicatedHostAccount(resource_name: str,
args: DedicatedHostAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DedicatedHostAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
dedicated_host_id: Optional[str] = None,
account_type: Optional[str] = None)
func NewDedicatedHostAccount(ctx *Context, name string, args DedicatedHostAccountArgs, opts ...ResourceOption) (*DedicatedHostAccount, error)
public DedicatedHostAccount(string name, DedicatedHostAccountArgs args, CustomResourceOptions? opts = null)
public DedicatedHostAccount(String name, DedicatedHostAccountArgs args)
public DedicatedHostAccount(String name, DedicatedHostAccountArgs args, CustomResourceOptions options)
type: alicloud:cddc:DedicatedHostAccount
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 DedicatedHostAccountArgs
- 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 DedicatedHostAccountArgs
- 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 DedicatedHostAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedHostAccountArgs
- 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 dedicatedHostAccountResource = new AliCloud.Cddc.DedicatedHostAccount("dedicatedHostAccountResource", new()
{
AccountName = "string",
AccountPassword = "string",
DedicatedHostId = "string",
AccountType = "string",
});
example, err := cddc.NewDedicatedHostAccount(ctx, "dedicatedHostAccountResource", &cddc.DedicatedHostAccountArgs{
AccountName: pulumi.String("string"),
AccountPassword: pulumi.String("string"),
DedicatedHostId: pulumi.String("string"),
AccountType: pulumi.String("string"),
})
var dedicatedHostAccountResource = new DedicatedHostAccount("dedicatedHostAccountResource", DedicatedHostAccountArgs.builder()
.accountName("string")
.accountPassword("string")
.dedicatedHostId("string")
.accountType("string")
.build());
dedicated_host_account_resource = alicloud.cddc.DedicatedHostAccount("dedicatedHostAccountResource",
account_name="string",
account_password="string",
dedicated_host_id="string",
account_type="string")
const dedicatedHostAccountResource = new alicloud.cddc.DedicatedHostAccount("dedicatedHostAccountResource", {
accountName: "string",
accountPassword: "string",
dedicatedHostId: "string",
accountType: "string",
});
type: alicloud:cddc:DedicatedHostAccount
properties:
accountName: string
accountPassword: string
accountType: string
dedicatedHostId: string
DedicatedHostAccount 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 DedicatedHostAccount resource accepts the following input properties:
- Account
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- Account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - Dedicated
Host stringId - The ID of Dedicated the host.
- Account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
- Account
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- Account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - Dedicated
Host stringId - The ID of Dedicated the host.
- Account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
- account
Name String - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password String - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - dedicated
Host StringId - The ID of Dedicated the host.
- account
Type String - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
- account
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - dedicated
Host stringId - The ID of Dedicated the host.
- account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
- account_
name str - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account_
password str - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - dedicated_
host_ strid - The ID of Dedicated the host.
- account_
type str - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
- account
Name String - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password String - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - dedicated
Host StringId - The ID of Dedicated the host.
- account
Type String - The type of the Dedicated host account. Valid values:
Admin
,Normal
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHostAccount 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 DedicatedHostAccount Resource
Get an existing DedicatedHostAccount 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?: DedicatedHostAccountState, opts?: CustomResourceOptions): DedicatedHostAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
account_type: Optional[str] = None,
dedicated_host_id: Optional[str] = None) -> DedicatedHostAccount
func GetDedicatedHostAccount(ctx *Context, name string, id IDInput, state *DedicatedHostAccountState, opts ...ResourceOption) (*DedicatedHostAccount, error)
public static DedicatedHostAccount Get(string name, Input<string> id, DedicatedHostAccountState? state, CustomResourceOptions? opts = null)
public static DedicatedHostAccount get(String name, Output<String> id, DedicatedHostAccountState 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
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- Account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - Account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - Dedicated
Host stringId - The ID of Dedicated the host.
- Account
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- Account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - Account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - Dedicated
Host stringId - The ID of Dedicated the host.
- account
Name String - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password String - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - account
Type String - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - dedicated
Host StringId - The ID of Dedicated the host.
- account
Name string - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password string - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - account
Type string - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - dedicated
Host stringId - The ID of Dedicated the host.
- account_
name str - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account_
password str - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - account_
type str - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - dedicated_
host_ strid - The ID of Dedicated the host.
- account
Name String - The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
- account
Password String - The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters
!@#$%^&*()_+-=
. - account
Type String - The type of the Dedicated host account. Valid values:
Admin
,Normal
. - dedicated
Host StringId - The ID of Dedicated the host.
Import
ApsaraDB for MyBase Dedicated Host Account can be imported using the id, e.g.
$ pulumi import alicloud:cddc/dedicatedHostAccount:DedicatedHostAccount example <dedicated_host_id>:<account_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.