ODataUtils icon indicating copy to clipboard operation
ODataUtils copied to clipboard

Remove commandlet is getting generated for all the resources including the resource that does not support the DELETE method.

Open Raghavendra-Venkatar opened this issue 8 years ago • 0 comments

We have a Remove commandlet for the Powersuppy, Chassis etc. which are non-removable resources and that does not support the DELETE method.

Ran Export-ODataEndPointProxy against Redfish Server (Dell iDRAc in this case) to auto generate PowerShell Module

Export-ODataEndpointProxy -Uri https://100.98.8.22/redfish/v1/ -OutputModule C:\Temp\RedfishTest -Force -CmdletAdapter ODataV4Adapter -AllowUnsecureConnection

Imported the auto-generated Module Import-Module C:\temp\RedfishTest -Force

Module has many Cmdlets which makes no sense like “Remove-PowerSupply”. Many such cmdlets are highlighted in bold.

PS C:> Get-Command Remove-* -Module RedfishTest

CommandType Name Version Source


Function Remove-AccountService 1.0 RedfishTest
Function Remove-Chassis 1.0 RedfishTest
Function Remove-ChassisCollection 1.0 RedfishTest
Function Remove-ComputerSystem 1.0 RedfishTest
Function Remove-ComputerSystemCollection 1.0 RedfishTest
Function Remove-EthernetInterface 1.0 RedfishTest
Function Remove-EthernetInterfaceCollection 1.0 RedfishTes
t
Function Remove-EventDestination 1.0 RedfishTest
Function Remove-EventDestinationCollection 1.0 RedfishTest
Function Remove-EventRecord 1.0 RedfishTest
Function Remove-EventService 1.0 RedfishTest
Function Remove-Fan 1.0 RedfishTest
Function Remove-JsonSchemaFile 1.0 RedfishTest
Function Remove-JsonSchemaFileCollection 1.0 RedfishTest

Function Remove-LogEntry 1.0 RedfishTest
Function Remove-LogEntryCollection 1.0 RedfishTest
Function Remove-LogService 1.0 RedfishTest
Function Remove-LogServiceCollection 1.0 RedfishTest
Function Remove-Manager 1.0 RedfishTest

Function Remove-ManagerAccount 1.0 RedfishTest
Function Remove-ManagerAccountCollection 1.0 RedfishTest
Function Remove-ManagerCollection 1.0 RedfishTest
Function Remove-ManagerNetworkProtocol 1.0 RedfishTest
Function Remove-MessageRegistry 1.0 RedfishTest
Function Remove-MessageRegistryFile 1.0 RedfishTest
Function Remove-MessageRegistryFileCollection 1.0 RedfishTest
Function Remove-Power 1.0 RedfishTest
Function Remove-PowerControl 1.0 RedfishTest
Function Remove-PowerSupply 1.0 RedfishTest
Function Remove-Processor 1.0 RedfishTest
Function Remove-ProcessorCollection 1.0 RedfishTest

Function Remove-Redundancy 1.0 RedfishTest
Function Remove-Resource 1.0 RedfishTest
Function Remove-Role 1.0 RedfishTest
Function Remove-RoleCollection 1.0 RedfishTest
Function Remove-SerialInterface 1.0 RedfishTest
Function Remove-SerialInterfaceCollection 1.0 RedfishTest
Function Remove-Session 1.0 RedfishTest
Function Remove-SessionCollection 1.0 RedfishTest
Function Remove-SessionService 1.0 RedfishTest
Function Remove-SimpleStorage 1.0 RedfishTest
Function Remove-SimpleStorageCollection 1.0 RedfishTest
Function Remove-Task 1.0 RedfishTest
Function Remove-TaskCollection 1.0 RedfishTest
Function Remove-TaskService 1.0 RedfishTest
Function Remove-Temperature 1.0 RedfishTest
Function Remove-Thermal 1.0 RedfishTest

Function Remove-VirtualMedia 1.0 RedfishTest
Function Remove-VirtualMediaCollection 1.0 RedfishTest
Function Remove-VLanNetworkInterface 1.0 RedfishTest
Function Remove-VLanNetworkInterfaceCollection 1.0 RedfishTest
Function Remove-Voltage 1.0 RedfishTest

Raghavendra-Venkatar avatar Apr 25 '17 15:04 Raghavendra-Venkatar