Namespaces - Authorization Rules - List Authorization Rules

Lekéri egy névtér engedélyezési szabályait.

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

URI-paraméterek

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

string

A névtér neve

resourceGroupName
path True

string

Az Azure-előfizetésen belüli erőforráscsoport 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

SBAuthorizationRuleListResult

A névtér engedélyezési szabályai sikeresen visszaadva.

Other Status Codes

ErrorResponse

ServiceBus-hibaválasz, amely leírja, hogy miért hiúsult meg 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

NameSpaceAuthorizationRuleListAll

Sample Request

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

Sample Response

{
  "value": [
    {
      "id": "https://sbgm.windows-int.net/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules?api-version=2017-04-01/RootManageSharedAccessKey",
      "name": "RootManageSharedAccessKey",
      "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules",
      "properties": {
        "rights": [
          "Listen",
          "Manage",
          "Send"
        ]
      }
    },
    {
      "id": "https://sbgm.windows-int.net/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules?api-version=2017-04-01/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.

SBAuthorizationRuleListResult

A Listanévtér műveletre adott válasz.

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 hiba célja.

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 adattí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. Például : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

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. Pl. "Microsoft.EventHub/Namespaces" vagy "Microsoft.EventHub/Namespaces/EventHubs"

SBAuthorizationRuleListResult

A Listanévtér műveletre adott válasz.

Name Típus Description
nextLink

string

A következő eredményhalmazra mutató hivatkozás. Nem üres, ha az Érték az engedélyezési szabályok hiányos listáját tartalmazza.

value

SBAuthorizationRule[]

A Listaengedélyezési szabályok művelet eredménye.

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 erőforrást utoljára módosító identitás.

lastModifiedByType

createdByType

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