Partner Namespaces - Regenerate Key
Regenerate key for a partner namespace.
Regenerate a shared access key for a partner namespace.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/regenerateKey?api-version=2025-02-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
partner
|
path | True |
string |
Name of the partner namespace. |
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. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
keyName | True |
string |
Key name to regenerate (key1 or key2). |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response returned if request was unsuccessful. |
Examples
PartnerNamespaces_RegenerateKey
Sample request
POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/regenerateKey?api-version=2025-02-15
{
"keyName": "key1"
}
Sample response
{
"key1": "testKey1Value",
"key2": "testKey2Value"
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Partner |
PartnerNamespace regenerate shared access key request. |
Partner |
Shared access keys of the partner namespace. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
PartnerNamespaceRegenerateKeyRequest
PartnerNamespace regenerate shared access key request.
Name | Type | Description |
---|---|---|
keyName |
string |
Key name to regenerate (key1 or key2). |
PartnerNamespaceSharedAccessKeys
Shared access keys of the partner namespace.
Name | Type | Description |
---|---|---|
key1 |
string |
Shared access key1 for the partner namespace. |
key2 |
string |
Shared access key2 for the partner namespace. |