NSX-T Data Center REST API

ContainerServicePort (type)

{
  "description": "Specifices details of port exposed by service.", 
  "id": "ContainerServicePort", 
  "module_id": "InventoryContainerObj", 
  "properties": {
    "name": {
      "description": "Specifies name of port within the service.", 
      "readonly": false, 
      "required": false, 
      "title": "Name of port", 
      "type": "string"
    }, 
    "node_port": {
      "description": "In case of Kubernetes container cluster, it is port on each node on which the service is exposed, when type of service is NodePort or LoadBalancer.", 
      "maximum": 65535, 
      "minimum": 0, 
      "readonly": false, 
      "required": false, 
      "title": "Node port of container application", 
      "type": "integer"
    }, 
    "port": {
      "description": "Specifies port exposed by the service", 
      "maximum": 65535, 
      "minimum": 0, 
      "readonly": false, 
      "required": false, 
      "title": "Port of service", 
      "type": "integer"
    }, 
    "protocol": {
      "description": "Specifies IP protocol of the port. e.g. TCP, UDP, SCTP.", 
      "enum": [
        "TCP", 
        "UDP", 
        "SCTP"
      ], 
      "readonly": false, 
      "required": false, 
      "title": "IP protocol of port", 
      "type": "string"
    }, 
    "target_port": {
      "description": "Specifies the number or name of port to access on container application instance by the container application. e.g. It is number or name of port to access of pod by service.", 
      "maxLength": 15, 
      "readony": false, 
      "required": false, 
      "title": "Target port of service", 
      "type": "string"
    }
  }, 
  "title": "Details of service port", 
  "type": "object"
}