Azure / Azure/azure-rest-api-specs

Networking questions regarding POST command

Open
#23,503 2 comments 0 reactions 0 assignees View on GitHub
Network Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

I've tried to use a POST command to get some results, there's the swagger PR
https://github.com/Azure/azure-rest-api-specs/pull/20091/files#diff-d564361a79af6ad5be5c8a2237266cecec714a0cecd5a50b994e6550426b1af8
Example getInboundRoutes is in virtualWan.json line 5920.

However, the generated SDK
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperationsExtensions.cs.
How could I get the header of http response body to run another GET for long running operation in powershell. Currently I can only run the POST in powershell but not able to get any response/result.

Now, in order to return the actual response in the response body instead of header, how could I change the command.
Need help from any swagger experts, thanks.

Contributor guide

Open the contributing guide

Research direction

Start with the linked swagger PR and virtualWan.json around line 5920, then compare the generated VirtualHubsOperationsExtensions.cs entry for getInboundRoutes. Trace how the POST response exposes the long-running-operation information to PowerShell. Done means the expected response or follow-up GET behavior is clearly established and usable from PowerShell.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.