Domains - List Shared Access Keys
List keys for a domain.
List the two keys used to publish to a domain.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/listKeys?api-version=2025-02-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
domain
|
path | True |
string |
Name of the domain. |
resource
|
path | True |
string |
The name of the resource group within the user's subscription. |
subscription
|
path | True |
string |
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Version of the API to be used with the client request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Domains_ListSharedAccessKeys
Sample request
POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/listKeys?api-version=2025-02-15
Sample response
{
"key1": "<key1>",
"key2": "<key2>"
}
Definitions
DomainSharedAccessKeys
Shared access keys of the Domain.
Name | Type | Description |
---|---|---|
key1 |
string |
Shared access key1 for the domain. |
key2 |
string |
Shared access key2 for the domain. |