Share via


Namespaces - Authorization Rules - List Keys

Hiermee haalt u de primaire en secundaire verbindingsreeksen voor de naamruimte op.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys?api-version=2021-11-01

URI-parameters

Name In Vereist Type Description
authorizationRuleName
path True

string

De naam van de autorisatieregel.

namespaceName
path True

string

De naam van de naamruimte

resourceGroupName
path True

string

Naam van de resourcegroep binnen het Azure-abonnement.

subscriptionId
path True

string

Abonnementsreferenties waarmee een Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep.

api-version
query True

string

Client-API-versie.

Antwoorden

Name Type Description
200 OK

AccessKeys

Verbindingsreeksen zijn geretourneerd.

Other Status Codes

ErrorResponse

ServiceBus-foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

NameSpaceAuthorizationRuleListKey

Sample Request

POST https://management.azure.com/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-namespace-6914/AuthorizationRules/sdk-AuthRules-1788/listKeys?api-version=2021-11-01

Sample Response

{
  "primaryConnectionString": "Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=############################################",
  "secondaryConnectionString": "Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=############################################",
  "primaryKey": "############################################",
  "secondaryKey": "############################################",
  "keyName": "sdk-AuthRules-1788"
}

Definities

Name Description
AccessKeys

Naamruimte/ServiceBus-verbindingsreeks

Error

Het foutobject.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Het antwoord op de resourcebeheerfout.

AccessKeys

Naamruimte/ServiceBus-verbindingsreeks

Name Type Description
aliasPrimaryConnectionString

string

Primaire verbindingsreeks van de alias als GEO-herstel na noodgeval is ingeschakeld

aliasSecondaryConnectionString

string

Secundaire verbindingsreeks van de alias als GEO DR is ingeschakeld

keyName

string

Een tekenreeks die de autorisatieregel beschrijft.

primaryConnectionString

string

Primaire verbindingsreeks van de autorisatieregel voor de gemaakte naamruimte.

primaryKey

string

Een met base64 gecodeerde 256-bits primaire sleutel voor het ondertekenen en valideren van het SAS-token.

secondaryConnectionString

string

Secundaire verbindingsreeks van de autorisatieregel voor de gemaakte naamruimte.

secondaryKey

string

Een met base64 gecodeerde 256-bits primaire sleutel voor het ondertekenen en valideren van het SAS-token.

Error

Het foutobject.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

code

string

De foutcode.

details

ErrorResponse[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorResponse

Het antwoord op de resourcebeheerfout.

Name Type Description
error

Error

Het foutobject.