Host Network System Get Network Info

Host Network System Get Network Info
The network configuration and runtime information.

The network configuration and runtime information.

Request
URI
GET
https://{vcenter-host}/sdk/vim25/{release}/HostNetworkSystem/{moId}/networkInfo
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the property attaches; the serialized managed object reference for a request has the form moType/moId, in this case HostNetworkSystem/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

{
    "_typeName": "string",
    "vswitch": [
        {
            "_typeName": "string",
            "name": "string",
            "key": "string",
            "numPorts": 0,
            "numPortsAvailable": 0,
            "mtu": 0,
            "portgroup": [
                "string"
            ],
            "pnic": [
                "string"
            ],
            "spec": {
                "_typeName": "string",
                "numPorts": 0,
                "bridge": {
                    "_typeName": "string"
                },
                "policy": {
                    "_typeName": "string",
                    "security": {
                        "_typeName": "string",
                        "allowPromiscuous": false,
                        "macChanges": false,
                        "forgedTransmits": false
                    },
                    "nicTeaming": {
                        "_typeName": "string",
                        "policy": "string",
                        "reversePolicy": false,
                        "notifySwitches": false,
                        "rollingOrder": false,
                        "failureCriteria": {
                            "_typeName": "string",
                            "checkSpeed": "string",
                            "speed": 0,
                            "checkDuplex": false,
                            "fullDuplex": false,
                            "checkErrorPercent": false,
                            "percentage": 0,
                            "checkBeacon": false
                        },
                        "nicOrder": {
                            "_typeName": "string",
                            "activeNic": [
                                "string"
                            ],
                            "standbyNic": [
                                "string"
                            ]
                        }
                    },
                    "offloadPolicy": {
                        "_typeName": "string",
                        "csumOffload": false,
                        "tcpSegmentation": false,
                        "zeroCopyXmit": false
                    },
                    "shapingPolicy": {
                        "_typeName": "string",
                        "enabled": false,
                        "averageBandwidth": 0,
                        "peakBandwidth": 0,
                        "burstSize": 0
                    }
                },
                "mtu": 0
            }
        }
    ],
    "proxySwitch": [
        {
            "_typeName": "string",
            "dvsUuid": "string",
            "dvsName": "string",
            "key": "string",
            "numPorts": 0,
            "configNumPorts": 0,
            "numPortsAvailable": 0,
            "uplinkPort": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ],
            "mtu": 0,
            "pnic": [
                "string"
            ],
            "spec": {
                "_typeName": "string",
                "backing": {
                    "_typeName": "string"
                }
            },
            "hostLag": [
                {
                    "_typeName": "string",
                    "lagKey": "string",
                    "lagName": "string",
                    "uplinkPort": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "value": "string"
                        }
                    ]
                }
            ],
            "networkReservationSupported": false,
            "nsxtEnabled": false,
            "ensEnabled": false,
            "ensInterruptEnabled": false,
            "transportZones": [
                {
                    "_typeName": "string",
                    "uuid": "string",
                    "type": "string"
                }
            ],
            "nsxUsedUplinkPort": [
                "string"
            ],
            "nsxtStatus": "string",
            "nsxtStatusDetail": "string",
            "ensInfo": {
                "_typeName": "string",
                "opsVersion": 0,
                "numPSOps": 0,
                "numLcoreOps": 0,
                "errorStatus": 0,
                "lcoreStatus": 0
            },
            "networkOffloadingEnabled": false,
            "hostUplinkState": [
                {
                    "_typeName": "string",
                    "uplinkName": "string",
                    "state": "string"
                }
            ],
            "autoDeployOwned": false,
            "hostPerfNicOffloadState": {
                "_typeName": "string",
                "enabled": false,
                "runtimeStatus": "string",
                "statusDescription": "string"
            },
            "teplessMode": false
        }
    ],
    "portgroup": [
        {
            "_typeName": "string",
            "key": "string",
            "port": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "mac": [
                        "string"
                    ],
                    "type": "string"
                }
            ],
            "vswitch": "string",
            "computedPolicy": {
                "_typeName": "string",
                "security": {
                    "_typeName": "string",
                    "allowPromiscuous": false,
                    "macChanges": false,
                    "forgedTransmits": false
                },
                "nicTeaming": {
                    "_typeName": "string",
                    "policy": "string",
                    "reversePolicy": false,
                    "notifySwitches": false,
                    "rollingOrder": false,
                    "failureCriteria": {
                        "_typeName": "string",
                        "checkSpeed": "string",
                        "speed": 0,
                        "checkDuplex": false,
                        "fullDuplex": false,
                        "checkErrorPercent": false,
                        "percentage": 0,
                        "checkBeacon": false
                    },
                    "nicOrder": {
                        "_typeName": "string",
                        "activeNic": [
                            "string"
                        ],
                        "standbyNic": [
                            "string"
                        ]
                    }
                },
                "offloadPolicy": {
                    "_typeName": "string",
                    "csumOffload": false,
                    "tcpSegmentation": false,
                    "zeroCopyXmit": false
                },
                "shapingPolicy": {
                    "_typeName": "string",
                    "enabled": false,
                    "averageBandwidth": 0,
                    "peakBandwidth": 0,
                    "burstSize": 0
                }
            },
            "spec": {
                "_typeName": "string",
                "name": "string",
                "vlanId": 0,
                "vswitchName": "string",
                "policy": {
                    "_typeName": "string",
                    "security": {
                        "_typeName": "string",
                        "allowPromiscuous": false,
                        "macChanges": false,
                        "forgedTransmits": false
                    },
                    "nicTeaming": {
                        "_typeName": "string",
                        "policy": "string",
                        "reversePolicy": false,
                        "notifySwitches": false,
                        "rollingOrder": false,
                        "failureCriteria": {
                            "_typeName": "string",
                            "checkSpeed": "string",
                            "speed": 0,
                            "checkDuplex": false,
                            "fullDuplex": false,
                            "checkErrorPercent": false,
                            "percentage": 0,
                            "checkBeacon": false
                        },
                        "nicOrder": {
                            "_typeName": "string",
                            "activeNic": [
                                "string"
                            ],
                            "standbyNic": [
                                "string"
                            ]
                        }
                    },
                    "offloadPolicy": {
                        "_typeName": "string",
                        "csumOffload": false,
                        "tcpSegmentation": false,
                        "zeroCopyXmit": false
                    },
                    "shapingPolicy": {
                        "_typeName": "string",
                        "enabled": false,
                        "averageBandwidth": 0,
                        "peakBandwidth": 0,
                        "burstSize": 0
                    }
                }
            }
        }
    ],
    "pnic": [
        {
            "_typeName": "string",
            "key": "string",
            "device": "string",
            "pci": "string",
            "driver": "string",
            "driverVersion": "string",
            "firmwareVersion": "string",
            "linkSpeed": {
                "_typeName": "string",
                "speedMb": 0,
                "duplex": false
            },
            "validLinkSpecification": [
                {
                    "_typeName": "string",
                    "speedMb": 0,
                    "duplex": false
                }
            ],
            "spec": {
                "_typeName": "string",
                "ip": {
                    "_typeName": "string",
                    "dhcp": false,
                    "ipAddress": "string",
                    "subnetMask": "string",
                    "ipV6Config": {
                        "_typeName": "string",
                        "ipV6Address": [
                            {
                                "_typeName": "string",
                                "ipAddress": "string",
                                "prefixLength": 0,
                                "origin": "string",
                                "dadState": "string",
                                "lifetime": "string",
                                "operation": "string"
                            }
                        ],
                        "autoConfigurationEnabled": false,
                        "dhcpV6Enabled": false
                    }
                },
                "linkSpeed": {
                    "_typeName": "string",
                    "speedMb": 0,
                    "duplex": false
                },
                "enableEnhancedNetworkingStack": false,
                "ensInterruptEnabled": false
            },
            "wakeOnLanSupported": false,
            "mac": "string",
            "fcoeConfiguration": {
                "_typeName": "string",
                "priorityClass": 0,
                "sourceMac": "string",
                "vlanRange": [
                    {
                        "_typeName": "string",
                        "vlanLow": 0,
                        "vlanHigh": 0
                    }
                ],
                "capabilities": {
                    "_typeName": "string",
                    "priorityClass": false,
                    "sourceMacAddress": false,
                    "vlanRange": false
                },
                "fcoeActive": false
            },
            "vmDirectPathGen2Supported": false,
            "vmDirectPathGen2SupportedMode": "string",
            "resourcePoolSchedulerAllowed": false,
            "resourcePoolSchedulerDisallowedReason": [
                "string"
            ],
            "autoNegotiateSupported": false,
            "enhancedNetworkingStackSupported": false,
            "ensInterruptSupported": false,
            "rdmaDevice": "string",
            "dpuId": "string",
            "perfNicOffloadSupported": false
        }
    ],
    "rdmaDevice": [
        {
            "_typeName": "string",
            "key": "string",
            "device": "string",
            "driver": "string",
            "description": "string",
            "backing": {
                "_typeName": "string"
            },
            "connectionInfo": {
                "_typeName": "string",
                "state": "string",
                "mtu": 0,
                "speedInMbps": 0
            },
            "capability": {
                "_typeName": "string",
                "roceV1Capable": false,
                "roceV2Capable": false,
                "iWarpCapable": false
            }
        }
    ],
    "vnic": [
        {
            "_typeName": "string",
            "device": "string",
            "key": "string",
            "portgroup": "string",
            "spec": {
                "_typeName": "string",
                "dynamicProperty": [
                    {
                        "_typeName": "string",
                        "name": "string",
                        "val": {
                            "_typeName": "string"
                        }
                    }
                ],
                "ip": {
                    "_typeName": "string",
                    "dhcp": false,
                    "ipAddress": "string",
                    "subnetMask": "string",
                    "ipV6Config": {
                        "_typeName": "string",
                        "ipV6Address": [
                            {
                                "_typeName": "string",
                                "ipAddress": "string",
                                "prefixLength": 0,
                                "origin": "string",
                                "dadState": "string",
                                "lifetime": "string",
                                "operation": "string"
                            }
                        ],
                        "autoConfigurationEnabled": false,
                        "dhcpV6Enabled": false
                    }
                },
                "mac": "string",
                "distributedVirtualPort": {
                    "_typeName": "string",
                    "switchUuid": "string",
                    "portgroupKey": "string",
                    "portKey": "string",
                    "connectionCookie": 0
                },
                "portgroup": "string",
                "mtu": 0,
                "tsoEnabled": false,
                "netStackInstanceKey": "string",
                "opaqueNetwork": {
                    "_typeName": "string",
                    "opaqueNetworkId": "string",
                    "opaqueNetworkType": "string"
                },
                "externalId": "string",
                "pinnedPnic": "string",
                "ipRouteSpec": {
                    "_typeName": "string",
                    "ipRouteConfig": {
                        "_typeName": "string",
                        "defaultGateway": "string",
                        "gatewayDevice": "string",
                        "ipV6DefaultGateway": "string",
                        "ipV6GatewayDevice": "string"
                    }
                },
                "systemOwned": false,
                "dpuId": "string"
            },
            "port": "string",
            "owner": "string"
        }
    ],
    "consoleVnic": [
        {
            "_typeName": "string",
            "device": "string",
            "key": "string",
            "portgroup": "string",
            "spec": {
                "_typeName": "string",
                "dynamicProperty": [
                    {
                        "_typeName": "string",
                        "name": "string",
                        "val": {
                            "_typeName": "string"
                        }
                    }
                ],
                "ip": {
                    "_typeName": "string",
                    "dhcp": false,
                    "ipAddress": "string",
                    "subnetMask": "string",
                    "ipV6Config": {
                        "_typeName": "string",
                        "ipV6Address": [
                            {
                                "_typeName": "string",
                                "ipAddress": "string",
                                "prefixLength": 0,
                                "origin": "string",
                                "dadState": "string",
                                "lifetime": "string",
                                "operation": "string"
                            }
                        ],
                        "autoConfigurationEnabled": false,
                        "dhcpV6Enabled": false
                    }
                },
                "mac": "string",
                "distributedVirtualPort": {
                    "_typeName": "string",
                    "switchUuid": "string",
                    "portgroupKey": "string",
                    "portKey": "string",
                    "connectionCookie": 0
                },
                "portgroup": "string",
                "mtu": 0,
                "tsoEnabled": false,
                "netStackInstanceKey": "string",
                "opaqueNetwork": {
                    "_typeName": "string",
                    "opaqueNetworkId": "string",
                    "opaqueNetworkType": "string"
                },
                "externalId": "string",
                "pinnedPnic": "string",
                "ipRouteSpec": {
                    "_typeName": "string",
                    "ipRouteConfig": {
                        "_typeName": "string",
                        "defaultGateway": "string",
                        "gatewayDevice": "string",
                        "ipV6DefaultGateway": "string",
                        "ipV6GatewayDevice": "string"
                    }
                },
                "systemOwned": false,
                "dpuId": "string"
            },
            "port": "string",
            "owner": "string"
        }
    ],
    "dnsConfig": {
        "_typeName": "string",
        "dhcp": false,
        "virtualNicDevice": "string",
        "ipv6VirtualNicDevice": "string",
        "hostName": "string",
        "domainName": "string",
        "address": [
            "string"
        ],
        "searchDomain": [
            "string"
        ]
    },
    "ipRouteConfig": {
        "_typeName": "string",
        "defaultGateway": "string",
        "gatewayDevice": "string",
        "ipV6DefaultGateway": "string",
        "ipV6GatewayDevice": "string"
    },
    "consoleIpRouteConfig": {
        "_typeName": "string",
        "defaultGateway": "string",
        "gatewayDevice": "string",
        "ipV6DefaultGateway": "string",
        "ipV6GatewayDevice": "string"
    },
    "routeTableInfo": {
        "_typeName": "string",
        "ipRoute": [
            {
                "_typeName": "string",
                "network": "string",
                "prefixLength": 0,
                "gateway": "string",
                "deviceName": "string"
            }
        ],
        "ipv6Route": [
            {
                "_typeName": "string",
                "network": "string",
                "prefixLength": 0,
                "gateway": "string",
                "deviceName": "string"
            }
        ]
    },
    "dhcp": [
        {
            "_typeName": "string",
            "key": "string",
            "spec": {
                "_typeName": "string",
                "virtualSwitch": "string",
                "defaultLeaseDuration": 0,
                "leaseBeginIp": "string",
                "leaseEndIp": "string",
                "maxLeaseDuration": 0,
                "unlimitedLease": false,
                "ipSubnetAddr": "string",
                "ipSubnetMask": "string"
            }
        }
    ],
    "nat": [
        {
            "_typeName": "string",
            "key": "string",
            "spec": {
                "_typeName": "string",
                "virtualSwitch": "string",
                "activeFtp": false,
                "allowAnyOui": false,
                "configPort": false,
                "ipGatewayAddress": "string",
                "udpTimeout": 0,
                "portForward": [
                    {
                        "_typeName": "string",
                        "type": "string",
                        "name": "string",
                        "hostPort": 0,
                        "guestPort": 0,
                        "guestIpAddress": "string"
                    }
                ],
                "nameService": {
                    "_typeName": "string",
                    "dnsAutoDetect": false,
                    "dnsPolicy": "string",
                    "dnsRetries": 0,
                    "dnsTimeout": 0,
                    "dnsNameServer": [
                        "string"
                    ],
                    "nbdsTimeout": 0,
                    "nbnsRetries": 0,
                    "nbnsTimeout": 0
                }
            }
        }
    ],
    "ipV6Enabled": false,
    "atBootIpV6Enabled": false,
    "netStackInstance": [
        {
            "_typeName": "string",
            "key": "string",
            "name": "string",
            "dnsConfig": {
                "_typeName": "string",
                "dhcp": false,
                "virtualNicDevice": "string",
                "ipv6VirtualNicDevice": "string",
                "hostName": "string",
                "domainName": "string",
                "address": [
                    "string"
                ],
                "searchDomain": [
                    "string"
                ]
            },
            "ipRouteConfig": {
                "_typeName": "string",
                "defaultGateway": "string",
                "gatewayDevice": "string",
                "ipV6DefaultGateway": "string",
                "ipV6GatewayDevice": "string"
            },
            "requestedMaxNumberOfConnections": 0,
            "congestionControlAlgorithm": "string",
            "ipV6Enabled": false,
            "routeTableConfig": {
                "_typeName": "string",
                "ipRoute": [
                    {
                        "_typeName": "string",
                        "changeOperation": "string",
                        "route": {
                            "_typeName": "string",
                            "network": "string",
                            "prefixLength": 0,
                            "gateway": "string",
                            "deviceName": "string"
                        }
                    }
                ],
                "ipv6Route": [
                    {
                        "_typeName": "string",
                        "changeOperation": "string",
                        "route": {
                            "_typeName": "string",
                            "network": "string",
                            "prefixLength": 0,
                            "gateway": "string",
                            "deviceName": "string"
                        }
                    }
                ]
            },
            "owner": "string"
        }
    ],
    "opaqueSwitch": [
        {
            "_typeName": "string",
            "dynamicProperty": [
                {
                    "_typeName": "string",
                    "name": "string",
                    "val": {
                        "_typeName": "string"
                    }
                }
            ],
            "key": "string",
            "name": "string",
            "pnic": [
                "string"
            ],
            "pnicZone": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "pnicDevice": [
                        "string"
                    ]
                }
            ],
            "status": "string",
            "vtep": [
                {
                    "_typeName": "string",
                    "device": "string",
                    "key": "string",
                    "portgroup": "string",
                    "spec": {
                        "_typeName": "string",
                        "dynamicProperty": [
                            {
                                "_typeName": "string",
                                "name": "string",
                                "val": {
                                    "_typeName": "string"
                                }
                            }
                        ],
                        "ip": {
                            "_typeName": "string",
                            "dhcp": false,
                            "ipAddress": "string",
                            "subnetMask": "string",
                            "ipV6Config": {
                                "_typeName": "string",
                                "ipV6Address": [
                                    {
                                        "_typeName": "string",
                                        "ipAddress": "string",
                                        "prefixLength": 0,
                                        "origin": "string",
                                        "dadState": "string",
                                        "lifetime": "string",
                                        "operation": "string"
                                    }
                                ],
                                "autoConfigurationEnabled": false,
                                "dhcpV6Enabled": false
                            }
                        },
                        "mac": "string",
                        "distributedVirtualPort": {
                            "_typeName": "string",
                            "switchUuid": "string",
                            "portgroupKey": "string",
                            "portKey": "string",
                            "connectionCookie": 0
                        },
                        "portgroup": "string",
                        "mtu": 0,
                        "tsoEnabled": false,
                        "netStackInstanceKey": "string",
                        "opaqueNetwork": {
                            "_typeName": "string",
                            "opaqueNetworkId": "string",
                            "opaqueNetworkType": "string"
                        },
                        "externalId": "string",
                        "pinnedPnic": "string",
                        "ipRouteSpec": {
                            "_typeName": "string",
                            "ipRouteConfig": {
                                "_typeName": "string",
                                "defaultGateway": "string",
                                "gatewayDevice": "string",
                                "ipV6DefaultGateway": "string",
                                "ipV6GatewayDevice": "string"
                            }
                        },
                        "systemOwned": false,
                        "dpuId": "string"
                    },
                    "port": "string",
                    "owner": "string"
                }
            ],
            "extraConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "featureCapability": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "featureName": "string",
                    "value": "string"
                }
            ]
        }
    ],
    "opaqueNetwork": [
        {
            "_typeName": "string",
            "dynamicProperty": [
                {
                    "_typeName": "string",
                    "name": "string",
                    "val": {
                        "_typeName": "string"
                    }
                }
            ],
            "opaqueNetworkId": "string",
            "opaqueNetworkName": "string",
            "opaqueNetworkType": "string",
            "pnicZone": [
                "string"
            ],
            "capability": {
                "_typeName": "string",
                "networkReservationSupported": false
            },
            "extraConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ]
        }
    ],
    "nsxTransportNodeId": "string",
    "nvdsToVdsMigrationRequired": false,
    "migrationStatus": "string"
}

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/HostNetworkSystem/{moId}/networkInfo
                
Virtual Infrastructure Operations
POST
Host Network System Add Port Group
POST
Host Network System Add Service Console Virtual Nic
POST
Host Network System Add Virtual Nic
POST
Host Network System Add Virtual Switch
POST
Host Network System Query Network Hint
POST
Host Network System Refresh Network System
POST
Host Network System Remove Port Group
POST
Host Network System Remove Service Console Virtual Nic
POST
Host Network System Remove Virtual Nic
POST
Host Network System Remove Virtual Switch
POST
Host Network System Restart Service Console Virtual Nic
POST
Host Network System Set Custom Value
POST
Host Network System Start Dpu Failover
POST
Host Network System Update Console Ip Route Config
POST
Host Network System Update Dns Config
Deprecated
POST
Host Network System Update Ip Route Config
Deprecated
POST
Host Network System Update Ip Route Table Config
Deprecated
POST
Host Network System Update Network Config
POST
Host Network System Update Physical Nic Link Speed
POST
Host Network System Update Port Group
POST
Host Network System Update Service Console Virtual Nic
POST
Host Network System Update Virtual Nic
POST
Host Network System Update Virtual Switch
GET
Host Network System Get Available Field
GET
Host Network System Get Capabilities
GET
Host Network System Get Console Ip Route Config
GET
Host Network System Get Dns Config
Deprecated
GET
Host Network System Get Ip Route Config
Deprecated
GET
Host Network System Get Network Config
GET
Host Network System Get Network Info
GET
Host Network System Get Offload Capabilities
Deprecated
GET
Host Network System Get Value