docs
api
Global Dynamic Acceleration(PathX)
ModifyGlobalSSHPort

Modify GlobalSSH Port - ModifyGlobalSSHPort

Overview

Modify GlobalSSH Port

ℹ️ The free version of globalssh does not support port modification; the basic and enterprise versions support port modification; the beta free version retains the port modification feature.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ModifyGlobalSSHPort.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID, such as org-xxxx. Please refer to GetProjectList interfaceYes
InstanceIdstringInstance ID, unique identifier for the resource. Currently, only the paid version of GlobalSSH instances can modify the port.Yes
PortintThe SSH port number that the origin server listens to. The port range for the paid version is [1,65535] and cannot be 80, 443, 65123 ports. The free version does not support port modification.Yes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.surfercloud.com/?Action=ModifyGlobalSSHPort
&InstanceId=uga-xxxx
&Port=22
&ProjectId=org-xxx

Response Example

{
  "Action": "ModifyGlobalSSHPortResponse",
  "Message": "bhTSuqGO",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved