Skip to content

HostAccountProps

Properties for defining a HostAccount.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-bastionhost-hostaccount

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkbastionhost"
&alicloudroscdkbastionhost.HostAccountProps {
    HostAccountName: interface{},
    HostId: interface{},
    InstanceId: interface{},
    ProtocolName: interface{},
    HostShareKeyId: interface{},
    PassPhrase: interface{},
    Password: interface{},
    PrivateKey: interface{},
    PrivilegeType: interface{},
    RotationMode: interface{},
}

Properties

Name Type Description
HostAccountName interface{} Property hostAccountName: The name of the new host account.
HostId interface{} Property hostId: The ID of the host.
InstanceId interface{} Property instanceId: The ID of the bastion host instance.
ProtocolName interface{} Property protocolName: The protocol name of the host account.
HostShareKeyId interface{} Property hostShareKeyId: The ID of the host share key.
PassPhrase interface{} Property passPhrase: The passphrase of the host account.
Password interface{} Property password: The password of the host account.
PrivateKey interface{} Property privateKey: The private key of the new host account.
PrivilegeType interface{} Property privilegeType: The permission type of the account.
RotationMode interface{} Property rotationMode: The password change mode for the account.

HostAccountNameRequired

HostAccountName interface{}
  • Type: interface{}

Property hostAccountName: The name of the new host account.

The name can be up to 128 characters long.


HostIdRequired

HostId interface{}
  • Type: interface{}

Property hostId: The ID of the host.


InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the bastion host instance.


ProtocolNameRequired

ProtocolName interface{}
  • Type: interface{}

Property protocolName: The protocol name of the host account.

Valid values: SSH, RDP.


HostShareKeyIdOptional

HostShareKeyId interface{}
  • Type: interface{}

Property hostShareKeyId: The ID of the host share key.

This parameter is required when the protocol is SSH.


PassPhraseOptional

PassPhrase interface{}
  • Type: interface{}

Property passPhrase: The passphrase of the host account.

This parameter is required when the protocol is SSH and the private key is encrypted.


PasswordOptional

Password interface{}
  • Type: interface{}

Property password: The password of the host account.

This parameter is required when the protocol is SSH or RDP.


PrivateKeyOptional

PrivateKey interface{}
  • Type: interface{}

Property privateKey: The private key of the new host account.

The value is a Base64-encoded string.

This parameter is used only when ProtocolName is set to SSH. You do not need to set this parameter if ProtocolName is set to RDP. You can set both a password and a private key for the host account. When connecting to the asset, Bastionhost prioritizes the private key for the connection.


PrivilegeTypeOptional

PrivilegeType interface{}
  • Type: interface{}

Property privilegeType: The permission type of the account.

If you do not set this parameter, the default value is Normal.

  • Privileged: privileged account
  • Normal: normal account

This parameter is supported only in Bastionhost V3.2.47 and later.


RotationModeOptional

RotationMode interface{}
  • Type: interface{}

Property rotationMode: The password change mode for the account.

If you do not set this parameter, the default value is Self.

  • Privileged: Use a privileged account to change the password.
  • Self: Do not use a privileged account to change the password.

This parameter is supported only in Bastionhost V3.2.47 and later.