microsoftgraph / msgraph-beta-sdk-dotnet

The Microsoft Graph Client Beta Library for .NET supports the Microsoft Graph /beta endpoint. (preview)
Other
91 stars 29 forks source link

Security.AttackSimulation.Simulations.PostAsync has wrong return type, should return AttackSimulationOperation not Simulation #890

Open cammurray opened 2 weeks ago

cammurray commented 2 weeks ago

Describe the bug

When performing Security.AttackSimulation.Simulations.PostAsync(), the return type is stated to be Simulation, this is wrong.

image

When you perform a post operation against https://graph.microsoft.com/beta/security/attackSimulation/simulations, the Location header returned is a reference to an attackSimulationOperation object:

image

Expected behavior

Security.AttackSimulation.Simulations.PostAsync() should return attackSimulationOperation

How to reproduce

Any call to Security.AttackSimulation.Simulations.PostAsync(). It will work, but you can't then track the creation in order to get the simulation id.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ``` ```

Configuration

No response

Other information

No response

cammurray commented 2 weeks ago

I've logged this internally as well as I expect it's the attack simulation training metadata being published incorrectly here.

andrueastman commented 2 weeks ago

I've logged this internally as well as I expect it's the attack simulation training metadata being published incorrectly here.

Thanks for this. Also moving this to the beta repo as the issue is related to the beta lib not the v1 lib.