Documentation home pagelight logodark logo
  • Changelog
  • Blaxel Console
  • Blaxel Console
network
Get open ports for a process
Documentation
Templates & Cookbooks
API Reference
Sandbox API Reference 🆕
SDK Reference
CLI Reference
  • Changelog
  • filesystem
    • GET
      Get file or directory information
    • PUT
      Create or update file or directory
    • DEL
      Delete file or directory
    • GET
      Stream file modification events in a directory
    • GET
      Stream file modification events in a directory via WebSocket
    network
    • POST
      Start monitoring ports for a process
    • DEL
      Stop monitoring ports for a process
    • GET
      Get open ports for a process
    process
    • GET
      List all processes
    • POST
      Execute a command
    • GET
      Get process by identifier
    • DEL
      Stop a process
    • DEL
      Kill a process
    • GET
      Get process logs
    • GET
      Stream process logs in real time
    • GET
      Stream process logs in real time via WebSocket
    network

    Get open ports for a process

    Get a list of all open ports for a process

    GET
    /
    network
    /
    process
    /
    {pid}
    /
    ports
    {}

    Path Parameters

    ​
    pid
    integer
    required

    Process ID

    Response

    200
    application/json
    Object containing PID and array of network.PortInfo

    The response is of type object.

    Was this page helpful?

    Stop monitoring ports for a processList all processes
    Powered by Mintlify
    {}