Share via


Namespaces - Authorization Rules - List Authorization Rules

Bir ad alanı için yetkilendirme kurallarını alır.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
namespaceName
path True

string

Ad alanı adı

resourceGroupName
path True

string

Azure aboneliğindeki Kaynak grubunun adı.

subscriptionId
path True

string

Microsoft Azure aboneliğini benzersiz olarak tanımlayan abonelik kimlik bilgileri. Abonelik kimliği, her hizmet çağrısı için URI'nin bir parçasını oluşturur.

api-version
query True

string

İstemci API sürümü.

Yanıtlar

Name Tür Description
200 OK

SBAuthorizationRuleListResult

Ad alanı yetkilendirme kuralları başarıyla döndürüldü.

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan ServiceBus hata yanıtı.

Güvenlik

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 kullanıcı hesabınızın kimliğine bürünme

Örnekler

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"
        ]
      }
    }
  ]
}

Tanımlar

Name Description
AccessRights

Kuralla ilişkili haklar.

createdByType

Kaynağı oluşturan kimliğin türü.

Error

Hata nesnesi.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorResponse

Kaynak yönetimi hata yanıtı.

SBAuthorizationRule

Ad alanı yetkilendirme kuralının açıklaması.

SBAuthorizationRuleListResult

Ad Alanını Listele işlemine verilen yanıt.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

AccessRights

Kuralla ilişkili haklar.

Name Tür Description
Listen

string

Manage

string

Send

string

createdByType

Kaynağı oluşturan kimliğin türü.

Name Tür Description
Application

string

Key

string

ManagedIdentity

string

User

string

Error

Hata nesnesi.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorResponse[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorResponse

Kaynak yönetimi hata yanıtı.

Name Tür Description
error

Error

Hata nesnesi.

SBAuthorizationRule

Ad alanı yetkilendirme kuralının açıklaması.

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

Kaynağın bulunduğu coğrafi konum

name

string

Kaynağın adı

properties.rights

AccessRights[]

Kuralla ilişkili haklar.

systemData

systemData

Bu kaynakla ilgili sistem meta verileri.

type

string

Kaynağın türü. Örneğin, "Microsoft.EventHub/Namespaces" veya "Microsoft.EventHub/Namespaces/EventHubs"

SBAuthorizationRuleListResult

Ad Alanını Listele işlemine verilen yanıt.

Name Tür Description
nextLink

string

Sonraki sonuç kümesine bağlantı. Değer, Tamamlanmamış Yetkilendirme Kuralları listesi içeriyorsa boş değildir.

value

SBAuthorizationRule[]

Yetkilendirme Kurallarını Listele işleminin sonucu.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string

Kaynağı en son değiştiren kimliğin türü.

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimliğin türü.