Lists the access key for the specified configuration store.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys?api-version=2024-05-01
With optional parameters:
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys?api-version=2024-05-01&$skipToken={$skipToken}
URI Parameters
Name
In
Required
Type
Description
configStoreName
path
True
string
The name of the configuration store.
Regex pattern: ^[a-zA-Z0-9_-]*$
resourceGroupName
path
True
string
The name of the resource group to which the container registry belongs.
subscriptionId
path
True
string
The Microsoft Azure subscription ID.
api-version
query
True
string
The client API version.
$skipToken
query
string
A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.
POST https://management.azure.com/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/listKeys?api-version=2024-05-01
/**
* Samples for ConfigurationStores ListKeys.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/
* ConfigurationStoresListKeys.json
*/
/**
* Sample code: ConfigurationStores_ListKeys.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void
configurationStoresListKeys(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE);
}
}
from azure.identity import DefaultAzureCredential
from azure.mgmt.appconfiguration import AppConfigurationManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-appconfiguration
# USAGE
python configuration_stores_list_keys.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = AppConfigurationManagementClient(
credential=DefaultAzureCredential(),
subscription_id="c80fb759-c965-4c6a-9110-9b2b2d038882",
)
response = client.configuration_stores.list_keys(
resource_group_name="myResourceGroup",
config_store_name="contoso",
)
for item in response:
print(item)
# x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json
if __name__ == "__main__":
main()