Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k stars 4.8k forks source link

Is there any documentation on what `filter` in some of the APIs is supported? #33585

Open johnsimons opened 1 year ago

johnsimons commented 1 year ago

Library name and version

AzureResourceManager 1.3.2

Query/Question

Here is an example where I would like to only retrieve locks with ReadOnly lock type.

So I have some code that looks similar to:

var armClient = new ArmClient(...);
var resourceIdentifier = ResourceIdentifier.Parse(resourceId);
armClient.GetGenericResource(resourceIdentifier).GetManagementLocks().GetAllAsync("What is the syntax here????");

According to the REST API that is being called behind the scenes, it does support filter query string. Unfortunately, the doco for the REST API is also not great.

az lock list also supports filter but no doco there either 😞

Any help here would be appreciated.

Environment

No response

jsquire commented 1 year ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

ghost commented 1 year ago

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

Issue Details
### Library name and version AzureResourceManager 1.3.2 ### Query/Question Here is an example where I would like to only retrieve locks with `ReadOnly` lock type. So I have some code that looks similar to: ```c# var armClient = new ArmClient(...); var resourceIdentifier = ResourceIdentifier.Parse(resourceId); armClient.GetGenericResource(resourceIdentifier).GetManagementLocks().GetAllAsync("What is the syntax here????"); ``` According to the REST API that is being called behind the scenes, it does support `filter` query string. Unfortunately, the [doco for the REST API](https://learn.microsoft.com/en-us/rest/api/resources/management-locks/list-at-resource-level?tabs=HTTP#uri-parameters) is also not great. `az lock list` also supports filter but no doco there either 😞 Any help here would be appreciated. ### Environment _No response_
Author: johnsimons
Assignees: xboxeer
Labels: `ARM`, `Service Attention`, `Mgmt`, `customer-reported`, `question`, `needs-team-attention`
Milestone: -
fengzhou-msft commented 1 year ago

Route to ARM team for help.