Added Get-TraceFlowsObservations
Added Get-TraceFlowsObservations. Will add to export if it looks ok.
This commit is contained in:
@@ -326,4 +326,20 @@ Function Get-NSXTTraceFlows {
|
||||
if ($Id) {
|
||||
write-output $Id
|
||||
}
|
||||
}
|
||||
|
||||
Function Get-NSXTTraceFlowObservations {
|
||||
Param (
|
||||
[parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$Id
|
||||
)
|
||||
|
||||
$NSXTraceFlowsObservService = Get-NsxtService -Name "com.vmware.nsx.traceflows.observations"
|
||||
|
||||
if($Id) {
|
||||
$NSXTraceFlowsObserv = $NSXTraceFlowsObservService.list($Id)
|
||||
} else {
|
||||
throw "TraceFlow ID required"
|
||||
}
|
||||
|
||||
$NSXTraceFlowsObserv.results | select transport_node_name,component_name,@{N='PacketEvent';E={($_.resource_type).TrimStart("TraceflowObservation")}}
|
||||
}
|
||||
Reference in New Issue
Block a user