Aracılığıyla paylaş


Authorization Rules - DisasterRecoveryConfigs - Get Authorization Rule

Kural adına göre bir Ad Alanı için AuthorizationRule alır.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}?api-version=2024-01-01

URI Parametreleri

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

string

minLength: 1
maxLength: 50

Olağanüstü Durum Kurtarma yapılandırma adı

authorizationRuleName
path True

string

minLength: 1

Yetkilendirme kuralı adı.

namespaceName
path True

string

minLength: 6
maxLength: 50
pattern: ^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$

Ad Alanı adı

resourceGroupName
path True

string

minLength: 1
maxLength: 90

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

AuthorizationRule

Diğer Ad Alanı AuthorizationRule başarıyla döndürüldü.

Other Status Codes

ErrorResponse

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

Güvenlik

azure_auth

Azure Active Directory OAuth2 Akışı

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

NameSpaceAuthorizationRuleGet

Örnek isteği

GET https://management.azure.com/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4879/authorizationRules/sdk-Authrules-4879?api-version=2024-01-01

Örnek yanıt

{
  "id": "/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/sdk-Authrules-4879",
  "name": "sdk-Authrules-4879",
  "type": "Microsoft.EventHub/Namespaces/AuthorizationRules",
  "properties": {
    "rights": [
      "Listen",
      "Send"
    ]
  }
}

Tanımlar

Name Description
AccessRights

Kuralla ilişkili haklar.

AuthorizationRule

Listede tek öğe veya AuthorizationRule Alma işlemi

createdByType

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

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı, Olay Hub'ı hizmetinin gelen isteği işleyemediğini gösterir. Nedeni hata iletisinde sağlanır.

systemData

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

AccessRights

Kuralla ilişkili haklar.

Değer Description
Manage
Send
Listen

AuthorizationRule

Listede tek öğe veya AuthorizationRule Alma işlemi

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Örn - /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"

createdByType

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

Değer Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı, Olay Hub'ı hizmetinin gelen isteği işleyemediğini gösterir. Nedeni hata iletisinde sağlanır.

Name Tür Description
error

ErrorDetail

Hata nesnesi.

systemData

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

Name Tür Description
createdAt

string (date-time)

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

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

lastModifiedAt

string (date-time)

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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