Close port for VM
Closes an exposed port for VM. Note that this operation must be double confirmed
especially for port 22, which if deleted will cause user to lose SSH connection to their VM (user
needs to be aware of that).
Example: if a user want to stop exposing 80 port in
their VM, they can do so by sending a DELETE request to /v2/vms/{vm_id}/public_ports with the following
payload:
Authorization
AuthorizationRequiredBearer <token>OAuth Authentication
OpenScaler API uses OAuth, a standard for secure authorization. To access the API, obtain a token via the OpenScaler Platform.
Use the access_token in the Authorization header for requests:
Always keep your token secure and do not share it with anyone.
In: header
Request Body
application/jsonOptionalportintegerThe internal port to be removed from public exposure
Path Parameters
vm_idRequiredstringA unique identifier for a VM instance.
vm_idRequiredstringA unique identifier for a VM instance.
if VM public port removed successfully, an empty success response is returned.