Skip to content

App Configuration client.list_configuration_settings() unexpected keyword argument 'keys' #12775

@yangsiyu007

Description

@yangsiyu007
  • Package Name:
    azure.appconfiguration

  • Package Version:
    1.0.0

  • Operating System:
    Mac

  • Python Version:
    3.6.10

Describe the bug
Following the example for listing configuration settings (https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/appconfiguration/azure-appconfiguration#list-configuration-settings), the for-each loop gives the error

TypeError: request() got an unexpected keyword argument 'labels'

suggesting that it cannot be iterated as shown.

To Reproduce

# set up client
client = AzureAppConfigurationClient.from_connection_string(connection_str)

# example given in the documentation
filtered_listed = client.list_configuration_settings(
    labels=["*Labe*"], keys=["*Ke*"]
)
for item in filtered_listed:
    pass

Expected behavior
Be able to run through the for-each loop without erroring. Please show a working example of how this iterator should be used.

Metadata

Metadata

Assignees

Labels

App ConfigurationAzure.ApplicationModel.ConfigurationClientThis issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions