Skip to content

HostProps

Properties for defining a Host.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkbastionhost"
&alicloudroscdkbastionhost.HostProps {
    ActiveAddressType: interface{},
    HostName: interface{},
    InstanceId: interface{},
    OsType: interface{},
    Source: interface{},
    Comment: interface{},
    HostPrivateAddress: interface{},
    HostPublicAddress: interface{},
    InstanceRegionId: interface{},
    SourceInstanceId: interface{},
}

Properties

Name Type Description
ActiveAddressType interface{} Property activeAddressType: The endpoint type of the host that you want to create.
HostName interface{} Property hostName: The name of the host that you want to create.
InstanceId interface{} Property instanceId: The ID of the Bastionhost instance where you want to create the host.
OsType interface{} Property osType: The operating system of the host that you want to create.
Source interface{} Property source: The source of the host that you want to create.
Comment interface{} Property comment: The description of the host that you want to create.
HostPrivateAddress interface{} Property hostPrivateAddress: The internal endpoint of the host that you want to create.
HostPublicAddress interface{} Property hostPublicAddress: The public endpoint of the host that you want to create.
InstanceRegionId interface{} Property instanceRegionId: The ID of the region where the ECS instance or dedicated cluster host that you want to create resides.
SourceInstanceId interface{} Property sourceInstanceId: The ID of the ECS instance or dedicated cluster host that you want to create.

ActiveAddressTypeRequired

ActiveAddressType interface{}
  • Type: interface{}

Property activeAddressType: The endpoint type of the host that you want to create.

Valid values: Public: a public endpoint Private: an internal endpoint


HostNameRequired

HostName interface{}
  • Type: interface{}

Property hostName: The name of the host that you want to create.

The name can be up to 128 characters in length.


InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the Bastionhost instance where you want to create the host.

Note: You can call the DescribeInstances operation to query the ID of the Bastionhost instance.


OsTypeRequired

OsType interface{}
  • Type: interface{}

Property osType: The operating system of the host that you want to create.

Valid values:

  • Linux
  • Windows

SourceRequired

Source interface{}
  • Type: interface{}

Property source: The source of the host that you want to create.

Valid values:

  • Local: an on-premises host
  • Ecs: an Elastic Compute Service (ECS) instance
  • Rds: a host in a dedicated cluster

CommentOptional

Comment interface{}
  • Type: interface{}

Property comment: The description of the host that you want to create.

The value can be up to 500 characters.


HostPrivateAddressOptional

HostPrivateAddress interface{}
  • Type: interface{}

Property hostPrivateAddress: The internal endpoint of the host that you want to create.

You can set this parameter to a domain name or an IP address. Note: This parameter is required if the ActiveAddressType parameter is set to Private.


HostPublicAddressOptional

HostPublicAddress interface{}
  • Type: interface{}

Property hostPublicAddress: The public endpoint of the host that you want to create.

You can set this parameter to a domain name or an IP address. Note: This parameter is required if the ActiveAddressType parameter is set to Public.


InstanceRegionIdOptional

InstanceRegionId interface{}
  • Type: interface{}

Property instanceRegionId: The ID of the region where the ECS instance or dedicated cluster host that you want to create resides.

Note: This parameter is required if the Source parameter is set to Ecs or Rds.


SourceInstanceIdOptional

SourceInstanceId interface{}
  • Type: interface{}

Property sourceInstanceId: The ID of the ECS instance or dedicated cluster host that you want to create.

Note This parameter is required if the Source parameter is set to Ecs or Rds.