Expose port for VM
Exposes internal port in VM to public traffic. For example if a user want to publish 80 port in
their VM, they can do so by sending a POST 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/jsonOptionalportintegerinternal port to be exposed (example: 80 for HTTP or 443 for HTTPS)
descstringdescription of what this port is used for, example "SSH" or "Server 123"
Default:
""Maximum length: 255Path Parameters
vm_idRequiredstringA unique identifier for a VM instance.
VM public port added successfully