Azure / azure-rest-api-specs-examples

SDK examples for azure-rest-api-specs
MIT License
19 stars 11 forks source link

not able to fetch private endpoint properties #4334

Open mehtameet9 opened 3 months ago

mehtameet9 commented 3 months ago

Link to sample

https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-endpoints/get?view=rest-virtualnetwork-2023-09-01&tabs=Python#get-private-endpoint

Library name and version

https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-endpoints/get?view=rest-virtualnetwork-2023-09-01&tabs=Python#get-private-endpoint

Language of the Sample

Sample Issue Type

Issue details

response = client.private_endpoints.get() should return the properties field as well but this is return empty dict {}

Goal: i need to fetch resourceGuid for private endpoint which im not able to

Expected behavior

No response

Actual behavior

No response

Reproduction Steps

No response

Environment

No response

msyyc commented 6 days ago

Hi @mehtameet9 SDK is generated by tool with swagger automatically however I don't find any definition named "resourceGuid" for private endpoint: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/privateEndpoint.json. Could you provide more details?