msgraph-cli icon indicating copy to clipboard operation
msgraph-cli copied to clipboard

Show response headers for long running operations

Open CarolKigoonya opened this issue 1 year ago • 2 comments

For long running operations, such as creating an external connection schema, we need to return the location header which allows users to check the operation state. Right now, we don’t return any information which makes it impossible for users to check the operation status, because the link to check the operation state is returned only once and there’s no other way to construct or retrieve it.

Screenshot (248)

In the PowerShell SDK the current recommendation is to use Invoke-MgGraphRequest https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1452

CarolKigoonya avatar Oct 03 '23 12:10 CarolKigoonya

With the latest release the response headers have been deserialized and can the individual header params can be accessed via a hashtable. In this case one can retrieve the location header. image

timayabi2020 avatar Feb 19 '24 06:02 timayabi2020

@timayabi2020, this is the CLI repository

calebkiage avatar Feb 19 '24 09:02 calebkiage