Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.11k forks source link

Networking questions regarding POST command #23503

Open zaynchen115 opened 1 year ago

zaynchen115 commented 1 year ago

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.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

Issue Details
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.
Author: zaynchen115
Assignees: -
Labels: `Network`, `Service Attention`, `needs-triage`
Milestone: -
zaynchen115 commented 1 year ago

PR created https://github.com/Azure/azure-rest-api-specs/pull/23515