alicloud.cddc.DedicatedHostAccount
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 in 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.
Create DedicatedHostAccount Resource
new DedicatedHostAccount(name: string, args: DedicatedHostAccountArgs, opts?: CustomResourceOptions);
@overload
def DedicatedHostAccount(resource_name: 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)
@overload
def DedicatedHostAccount(resource_name: str,
args: DedicatedHostAccountArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.