Skip navigation links
com.tencentcloudapi.cvm.v20170312.models

Class ModifyInstancesAttributeRequest

Returns:
HostName Modified hostname of an instance.
  • Period (.) and hyphen (-) should not be used as the first or last character of the hostname, and should not be used consecutively.
  • Windows instances: The hostname should contain 2 to 15 characters, including letters (case insensitive), digits, and hyphens (-), does not support periods (.), and should not be all digits.
  • Instances of other types (such as Linux instances): The hostname should contain 2 to 60 characters, including multiple periods (.), with each segment between periods considered as one section. Each section can contain letters (case insensitive), digits, and hyphens (-).
  • Note: After the hostname is modified, the instance will restart immediately, and the new hostname will take effect after the restart.
    Parameters:
    HostName - Modified hostname of an instance.
  • Period (.) and hyphen (-) should not be used as the first or last character of the hostname, and should not be used consecutively.
  • Windows instances: The hostname should contain 2 to 15 characters, including letters (case insensitive), digits, and hyphens (-), does not support periods (.), and should not be all digits.
  • Instances of other types (such as Linux instances): The hostname should contain 2 to 60 characters, including multiple periods (.), with each segment between periods considered as one section. Each section can contain letters (case insensitive), digits, and hyphens (-).
  • Note: After the hostname is modified, the instance will restart immediately, and the new hostname will take effect after the restart.
    Skip navigation links

    Copyright © 2025. All rights reserved.