Server

List all servers

get

Returns all bare metal servers in the specified project and region.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the server belongs

Query parameters
pageinteger · int32 · min: 1Optional

The page number for pagination.

pageSizeinteger · int32 · min: 1Optional

The number of items per page.

Responses
chevron-right
200

List Server

application/json
get
/api/v2/vmware/vpc/{vpc_id}/hpc/server/list

Get server details

get
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

server_idstringRequired

The unique identifier of server

Responses
chevron-right
200

Detail about server that have server id

application/json
get
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}/detail

Get server console URL

get

Get the URL of the bare metal server to access the server via KVM console. Refers to https://fptcloud.com/en/documents/metal-cloud/?doc=access-server

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

Example: a224d558-7b63-4706-ab9d-b2ed68477fa6
server_idstringRequired

The unique identifier of the server to manage in the FPT Cloud console.

Responses
chevron-right
200

Get console url for that server id

application/json
get
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}/console

Create server (V2)

post

You can create one or multiple servers using the following configuration options:

Parameter
Type
Required
Description

server_pack

string

The flavor of the server pack to use. Selection depends on your region and quota.

names

array[string]

A list of unique server names within a VPC. The number of names determines how many servers will be created. Each name must match the regex pattern defined in SERVER_NAME_REGEX.

os

string

The OS image type. Must be either: - custom: For your own custom images - ubuntu: For FPT public images

distro

object

The selected OS image in JSON format. Example: json<br/>{ "name": "ubuntu", "title": "Ubuntu 20.04" }<br/>

network_id

string

The subnet ID to associate with the server.

sshkey

object

SSH key details in JSON format. Example: json<br/>{ "name": "key_name", "public_key": "ssh-rsa..." }<br/> Default username: clouduser

console_password

string

The password to log in and access the server via SSH. Must match the regex defined in PASSWORD_CONSOLE_REGEX. Default username: clouduser

user_data

string

User data scripts executed automatically on first boot using the cloud-init process.

floating_ip

boolean

Attach a public IP to the server. Defaults to false.

raid_type

string

RAID disk configuration. Supported values: - raid-0 - raid-1 - raid-5 - raid-6

mount_point

string

Mount point path for attaching high-performance (file) storage to the server.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired
Body
server_packstring · uuidRequired

UUID of the server flavor.

namesstring[] · min: 1 · max: 63Required

List server names. Each name must match the regex defined in SERVER_NAME_REGEX.

osstringRequired

The OS image type. Must be either:custom for your own custom images ubuntu for FPT public images

distrostring · min: 1Required

The selected OS image in JSON format. e.g., {"name": "ubuntu", "title": "Ubuntu 20.04"} The name is required.

network_idstring · uuidRequired

UUID of a subnet to which the server will be associated.

sshkeystring · nullableOptional

SSH key details in JSON format (e.g., {"name": "key_name", "public_key": "ssh-rsa..."}). Default username is clouduser

console_passwordstring · nullableOptional

Password to access the server via SSH. Must match the regex defined in PASSWORD_CONSOLE_REGEX. Default username is: clouduser

user_datastring · nullableOptional

User data for cloud-init configuration.

floating_ipbooleanOptional

Whether a floating IP will be assigned to the server. Defaults to false.

raid_typestring · nullableOptional

RAID configuration for the server. Supported values are raid-0, raid-1, raid-5, and raid-6.

mount_pointstring · nullableOptional

Mount point for the server's storage.

Responses
post
/api/v2/vmware/vpc/{vpc_id}/hpc/server
Deprecated

Create server (V1)

post

You can create one or multiple servers using the following configuration options:

Parameter
Type
Required
Description

serverPack

string

The flavor of the server pack to use. Selection depends on your region and quota.

names

array[string]

A list of unique server names within a VPC. The number of names determines how many servers will be created. Each name must match the regex pattern defined in SERVER_NAME_REGEX.

os

string

The OS image type. Must be either: - custom: For your own custom images - ubuntu: For FPT public images

distro

object

The selected OS image in JSON format. Example: json<br/>{ "name": "ubuntu", "title": "Ubuntu 20.04" }<br/>

networkId

string

The subnet ID to associate with the server.

sshKey

object

SSH key details in JSON format. Example: json<br/>{ "name": "key_name", "public_key": "ssh-rsa..." }<br/> Default username: clouduser

consolePassword

string

The password to log in and access the server via SSH. Must match the regex defined in PASSWORD_CONSOLE_REGEX. Default username: clouduser

userData

string

User data scripts executed automatically on first boot using the cloud-init process.

floatingIp

boolean

Attach a public IP to the server. Defaults to false.

raidType

string

RAID disk configuration. Supported values: - raid-0 - raid-1 - raid-5 - raid-6

mountPoint

string

Mount point path for attaching high-performance (file) storage to the server.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired
Body
namesstring[] · min: 1 · max: 63Required

List of server names. Each name must match the regex defined in SERVER_NAME_REGEX.

raidTypestring · nullableOptional

RAID configuration for the server. Supported values are raid-0, raid-1, raid-5, and raid-6.

serverPackstring · uuidRequired

UUID of the server type.

osstringRequired

OS image type for the server. Must be either custom or ubuntu.

distrostring · min: 1Required

Image name (distribution details) in JSON format (e.g., {"name": "ubuntu", "title": "Ubuntu 20.04"}).

networkIdstring · uuidRequired

UUID of the network to which the server will be connected.

sshKeystring · nullableOptional

SSH key details in JSON format (e.g., {"name": "key_name", "public_key": "ssh-rsa..."}). Default username is: clouduser

consolePasswordstring · nullableOptional

Console password for the server. Must match the regex defined in PASSWORD_CONSOLE_REGEX. Default username is: clouduser

userDatastring · nullableOptional

User data for cloud-init configuration.

floatingIpbooleanOptional

Whether a floating IP will be assigned to the server. Defaults to false.

mountPointstring · nullableOptional

Mount point for the server's storage.

Responses
post
/api/v2/vmware/vpc/{vpc_id}/hpc/server/create

Rename a server (Portal name)

post

Change the display name of a specified server in the FPT Cloud console. Name limits up to 63 characters, and only letters, numbers, and dashes are allowed

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
server_idstringRequired

The unique identifier of the server to manage in the FPT Cloud console.

Example: a224d558-7b63-4706-ab9d-b2ed68477fa6
vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

Body
namestringOptional

The new server name.

Responses
chevron-right
200

Update a server successfully

application/json
post
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}/rename

Power on a server

post

Start a powered-off server.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
server_idstringRequired

The unique identifier of the server to manage in the FPT Cloud console.

vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

Example: a224d558-7b63-4706-ab9d-b2ed68477fa6
Responses
post
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}/powered-on

Power off a server

post

Shut down the running server.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
server_idstringRequired

The unique identifier of the server to manage in the FPT Cloud console.

vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

Example: a224d558-7b63-4706-ab9d-b2ed68477fa6
Responses
post
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}/powered-off

Delete a server

delete

Deleting a server permanently erases all data on its disks and cannot be undone. Ensure you are deleting the correct server.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the server belongs.

Example: a224d558-7b63-4706-ab9d-b2ed68477fa6
server_idstringRequired

The unique identifier of the server to manage in the FPT Cloud console.

Body
isReleaseFloatingIpbooleanOptional

True: Allows deleting the server along with its associated public IP. False: Deletes the server but retains the public IP.

Responses
delete
/api/v2/vmware/vpc/{vpc_id}/hpc/server/{server_id}

Last updated

Was this helpful?