Namespaces - Authorization Rules - Get Authorization Rule

Lekéri a névtér engedélyezési szabályát szabálynév alapján.

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

URI-paraméterek

Name In Kötelező Típus Description
authorizationRuleName
path True

string

Az engedélyezési szabály neve.

namespaceName
path True

string

A névtér neve

resourceGroupName
path True

string

Az Azure-előfizetés erőforráscsoportjának neve.

subscriptionId
path True

string

Az előfizetés hitelesítő adatai, amelyek egyedileg azonosítják a Microsoft Azure-előfizetést. Az előfizetés-azonosító az URI részét képezi minden szolgáltatáshíváshoz.

api-version
query True

string

Ügyfél API-verziója.

Válaszok

Name Típus Description
200 OK

SBAuthorizationRule

A névtér engedélyezési szabálya sikeresen visszaadott.

Other Status Codes

ErrorResponse

A ServiceBus hibaválasza leírja, hogy miért nem sikerült a művelet.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation felhasználói fiók megszemélyesítése

Példák

NameSpaceAuthorizationRuleGet

Sample Request

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

Sample Response

{
  "id": "/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788/",
  "name": "sdk-AuthRules-1788",
  "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules",
  "properties": {
    "rights": [
      "Listen",
      "Send"
    ]
  }
}

Definíciók

Name Description
AccessRights

A szabályhoz társított jogok.

createdByType

Az erőforrást létrehozó identitás típusa.

Error

A hibaobjektum.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorResponse

Az erőforrás-kezelési hibaválasz.

SBAuthorizationRule

A névtér engedélyezési szabályának leírása.

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

AccessRights

A szabályhoz társított jogok.

Name Típus Description
Listen

string

Manage

string

Send

string

createdByType

Az erőforrást létrehozó identitás típusa.

Name Típus Description
Application

string

Key

string

ManagedIdentity

string

User

string

Error

A hibaobjektum.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorResponse[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hibacél.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

Name Típus Description
info

object

A további információk.

type

string

A további információtípus.

ErrorResponse

Az erőforrás-kezelési hibaválasz.

Name Típus Description
error

Error

A hibaobjektum.

SBAuthorizationRule

A névtér engedélyezési szabályának leírása.

Name Típus Description
id

string

Az erőforrás teljes erőforrás-azonosítója. Ex – /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

Az a földrajzi hely, ahol az erőforrás él

name

string

Az erőforrás neve

properties.rights

AccessRights[]

A szabályhoz társított jogok.

systemData

systemData

Az erőforráshoz kapcsolódó rendszer metaadatai.

type

string

Az erőforrás típusa. Például "Microsoft.EventHub/Namespaces" vagy "Microsoft.EventHub/Namespaces/EventHubs"

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Name Típus Description
createdAt

string

Az erőforrás-létrehozás időbélyege (UTC).

createdBy

string

Az erőforrást létrehozó identitás.

createdByType

createdByType

Az erőforrást létrehozó identitás típusa.

lastModifiedAt

string

Az erőforrást legutóbb módosító identitás típusa.

lastModifiedBy

string

Az az identitás, amely legutóbb módosította az erőforrást.

lastModifiedByType

createdByType

Az erőforrást legutóbb módosító identitás típusa.