Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cammurray opened this issue Aug 29, 2024 · 2 comments
Labels
dependency:metadata Awaiting fix from core dependency project module type:bug A broken experience

Comments

@cammurray
Copy link

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 ```
</details>


### Configuration

_No response_

### Other information

_No response_
@cammurray cammurray added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Aug 29, 2024
@cammurray
Copy link
Author

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

@andrueastman
Copy link
Member

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.

@andrueastman andrueastman transferred this issue from microsoftgraph/msgraph-sdk-dotnet Aug 29, 2024
@andrueastman andrueastman added dependency:metadata Awaiting fix from core dependency project module and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency:metadata Awaiting fix from core dependency project module type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants