Megosztás a következőn keresztül:


Notification Hubs - List

Felsorolja a névtérhez társított értesítési központokat.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs?api-version=2023-09-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs?$skipToken={$skipToken}&$top={$top}&api-version=2023-09-01

URI-paraméterek

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

string

minLength: 1
maxLength: 50
pattern: ^[a-zA-Z][a-zA-Z0-9-]*$

Névtér neve

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket.

subscriptionId
path True

string (uuid)

A cél-előfizetés azonosítója. Az értéknek UUID-nek kell lennie.

api-version
query True

string

minLength: 1

A művelethez használni kívánt API-verzió.

$skipToken
query

string

Folytatási jogkivonat.

$top
query

integer (int32)

Oldalméret.

Válaszok

Name Típus Description
200 OK

NotificationHubListResult

Siker

Other Status Codes

ErrorResponse

Hibakód okokkal.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow

Típus: oauth2
Folyamat: implicit
Engedélyezési URL: https://login.microsoftonline.com/common/oauth2/authorize

Hatókörök

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

Példák

NotificationHubs_List

Mintakérelem

GET https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs?api-version=2023-09-01

Mintaválasz

{
  "value": [
    {
      "location": "East US",
      "properties": {
        "name": "test",
        "registrationTtl": "10675199.02:48:05.4775807",
        "dailyMaxActiveDevices": 0
      },
      "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test",
      "name": "test",
      "type": "Microsoft.NotificationHubs/namespaces/notificationHubs",
      "tags": {
        "hubTag1": "hubTagValue1",
        "hubTag2": "hubTagValue2"
      }
    }
  ]
}

Definíciók

Name Description
AccessRights

Az AccessRights értékeit határozza meg.

AdmCredential

A NotificationHub AdmCredential leírása.

AdmCredentialProperties

A NotificationHub AdmCredential leírása.

ApnsCredential

A NotificationHub ApnsCredential leírása.

ApnsCredentialProperties

A NotificationHub ApnsCredential leírása.

BaiduCredential

A NotificationHub BaiduCredential leírása.

BaiduCredentialProperties

A NotificationHub BaiduCredential leírása.

BrowserCredential

A NotificationHub BrowserCredential leírása.

BrowserCredentialProperties

A NotificationHub BrowserCredential leírása.

createdByType

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

ErrorAdditionalInfo

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

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

GcmCredential

A NotificationHub GcmCredential leírása.

GcmCredentialProperties

A NotificationHub GcmCredential leírása.

MpnsCredential

A NotificationHub MpnsCredential leírása.

MpnsCredentialProperties

A NotificationHub MpnsCredential leírása.

NotificationHubListResult

A List NotificationHub művelet válasza.

NotificationHubProperties

NotificationHub-tulajdonságok.

NotificationHubResource

Notification Hub-erőforrás.

SharedAccessAuthorizationRuleProperties

SharedAccessAuthorizationRule tulajdonságok.

Sku

A névtér termékváltozatának leírása

SkuName

Névtér termékváltozatának neve.

systemData

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

WnsCredential

A NotificationHub WnsCredential leírása.

WnsCredentialProperties

A NotificationHub WnsCredential leírása.

XiaomiCredential

A NotificationHub XiaomiCredential leírása.

XiaomiCredentialProperties

A NotificationHub XiaomiCredentialProperties leírása.

AccessRights

Az AccessRights értékeit határozza meg.

Érték Description
Listen
Manage
Send

AdmCredential

A NotificationHub AdmCredential leírása.

Name Típus Description
properties

AdmCredentialProperties

A NotificationHub AdmCredential leírása.

AdmCredentialProperties

A NotificationHub AdmCredential leírása.

Name Típus Description
authTokenUrl

string

minLength: 1

Lekéri vagy beállítja az engedélyezési jogkivonat URL-címét.

clientId

string

minLength: 1

Lekéri vagy beállítja az ügyfélazonosítót.

clientSecret

string

minLength: 1

Lekéri vagy beállítja a hitelesítőadat-titkos hozzáférési kulcsot.

ApnsCredential

A NotificationHub ApnsCredential leírása.

Name Típus Description
properties

ApnsCredentialProperties

A NotificationHub ApnsCredential leírása.

ApnsCredentialProperties

A NotificationHub ApnsCredential leírása.

Name Típus Description
apnsCertificate

string

Lekéri vagy beállítja az APNS-tanúsítványt.

appId

string

Lekéri vagy beállítja a kiállító (iss) regisztrált jogcímkulcsát, amelynek értéke a fejlesztői fiókjából beszerzett 10 karakteres csapatazonosító

appName

string

Lekéri vagy beállítja az alkalmazás nevét

certificateKey

string

Lekéri vagy beállítja a tanúsítványkulcsot.

endpoint

string

minLength: 1

Lekéri vagy beállítja a hitelesítő adatok végpontját.

keyId

string

Lekéri vagy beállít egy 10 karakteres kulcsazonosítót (gyermekkulcsot) a fejlesztői fiókjából

thumbprint

string

Lekéri vagy beállítja az APNS-tanúsítvány ujjlenyomatát

token

string

Szolgáltatói hitelesítési jogkivonat lekérése vagy beállítása a fejlesztői fiókon keresztül

BaiduCredential

A NotificationHub BaiduCredential leírása.

Name Típus Description
properties

BaiduCredentialProperties

A NotificationHub BaiduCredential leírása.

BaiduCredentialProperties

A NotificationHub BaiduCredential leírása.

Name Típus Description
baiduApiKey

string

minLength: 1

Lekéri vagy beállítja a baidu Api-kulcsot.

baiduEndPoint

string

minLength: 1

Lekéri vagy beállítja a baidu végpontot.

baiduSecretKey

string

minLength: 1

Baidu titkos kulcs lekérése vagy beállítása

BrowserCredential

A NotificationHub BrowserCredential leírása.

Name Típus Description
properties

BrowserCredentialProperties

A NotificationHub BrowserCredential leírása.

BrowserCredentialProperties

A NotificationHub BrowserCredential leírása.

Name Típus Description
subject

string

minLength: 1

Lekéri vagy beállítja a webes leküldés tárgyát.

vapidPrivateKey

string

minLength: 1

Lekéri vagy beállítja a VAPID titkos kulcsát.

vapidPublicKey

string

minLength: 1

Lekéri vagy beállítja a VAPID nyilvános kulcsát.

createdByType

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

Érték Description
Application
Key
ManagedIdentity
User

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.

ErrorDetail

A hiba részletei.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hibacél.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

A hibaobjektum.

GcmCredential

A NotificationHub GcmCredential leírása.

Name Típus Description
properties

GcmCredentialProperties

A NotificationHub GcmCredential leírása.

GcmCredentialProperties

A NotificationHub GcmCredential leírása.

Name Típus Description
gcmEndpoint

string

Lekéri vagy beállítja a GCM-végpontot.

googleApiKey

string

minLength: 1

Lekéri vagy beállítja a Google API-kulcsot.

MpnsCredential

A NotificationHub MpnsCredential leírása.

Name Típus Description
properties

MpnsCredentialProperties

A NotificationHub MpnsCredential leírása.

MpnsCredentialProperties

A NotificationHub MpnsCredential leírása.

Name Típus Description
certificateKey

string

minLength: 1

Lekéri vagy beállítja a hitelesítő adatok tanúsítványkulcsát.

mpnsCertificate

string

minLength: 1

Lekéri vagy beállítja az MPNS-tanúsítványt.

thumbprint

string

minLength: 1

Lekéri vagy beállítja az MPNS-tanúsítvány ujjlenyomatát

NotificationHubListResult

A List NotificationHub művelet válasza.

Name Típus Description
nextLink

string

Lekéri vagy beállítja a következő találatkészletre mutató hivatkozást.

value

NotificationHubResource[]

Lekéri vagy beállítja a List AuthorizationRules művelet eredményét.

NotificationHubProperties

NotificationHub-tulajdonságok.

Name Típus Description
admCredential

AdmCredential

A NotificationHub AdmCredential leírása.

apnsCredential

ApnsCredential

A NotificationHub ApnsCredential leírása.

authorizationRules

SharedAccessAuthorizationRuleProperties[]

Lekéri vagy beállítja a létrehozott NotificationHub engedélyezési szabályait

baiduCredential

BaiduCredential

A NotificationHub BaiduCredential leírása.

browserCredential

BrowserCredential

A NotificationHub BrowserCredential leírása.

dailyMaxActiveDevices

integer (int64)

gcmCredential

GcmCredential

A NotificationHub GcmCredential leírása.

mpnsCredential

MpnsCredential

A NotificationHub MpnsCredential leírása.

name

string

Lekéri vagy beállítja a NotificationHub nevét.

registrationTtl

string

Lekéri vagy beállítja a létrehozott NotificationHub RegistrationTtl-ét

wnsCredential

WnsCredential

A NotificationHub WnsCredential leírása.

xiaomiCredential

XiaomiCredential

A NotificationHub XiaomiCredential leírása.

NotificationHubResource

Notification Hub-erőforrás.

Name Típus Description
id

string (arm-id)

Az erőforrás teljes erőforrás-azonosítója. Például: "/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

NotificationHubProperties

NotificationHub-tulajdonságok.

sku

Sku

A névtér termékváltozatának leírása

systemData

systemData

A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok.

tags

object

Erőforráscímkék.

type

string

Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"

SharedAccessAuthorizationRuleProperties

SharedAccessAuthorizationRule tulajdonságok.

Name Típus Description
claimType

string

Lekéri a jogcím típusát leíró sztringet

claimValue

string

Lekéri a jogcím értékét leíró sztringet

createdTime

string (date-time)

A szabályhoz létrehozott idő lekérdezése

keyName

string

Lekéri az engedélyezési szabályt leíró sztringet.

modifiedTime

string (date-time)

A szabály utolsó módosítási idejét kapja meg

primaryKey

string

Lekéri a base64 kódolású, 256 bites elsődleges kulcsot az SAS-jogkivonat aláírásához és érvényesítéséhez.

revision

integer (int32)

Lekéri a szabály változatszámát

rights

AccessRights[]

Lekéri vagy beállítja a szabályhoz társított jogokat.

secondaryKey

string

Lekéri a base64 kódolású, 256 bites elsődleges kulcsot az SAS-jogkivonat aláírásához és érvényesítéséhez.

Sku

A névtér termékváltozatának leírása

Name Típus Description
capacity

integer (int32)

Lekéri vagy beállítja az erőforrás kapacitását

family

string

Lekéri vagy beállítja a termékváltozatcsaládot

name

SkuName

Névtér termékváltozatának neve.

size

string

Lekéri vagy beállítja a termékváltozat méretét

tier

string

Lekéri vagy beállítja az adott termékváltozat szintjét

SkuName

Névtér termékváltozatának neve.

Érték Description
Basic
Free
Standard

systemData

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

Name Típus Description
createdAt

string (date-time)

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 (date-time)

Az erőforrás utolsó módosításának időbélyege (UTC)

lastModifiedBy

string

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

lastModifiedByType

createdByType

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

WnsCredential

A NotificationHub WnsCredential leírása.

Name Típus Description
properties

WnsCredentialProperties

A NotificationHub WnsCredential leírása.

WnsCredentialProperties

A NotificationHub WnsCredential leírása.

Name Típus Description
certificateKey

string

Ges vagy beállítás a WNS tanúsítványkulcs.

packageSid

string

Lekéri vagy beállítja a hitelesítő adatok csomagazonosítóját.

secretKey

string

Lekéri vagy beállítja a titkos kulcsot.

windowsLiveEndpoint

string

Lekéri vagy beállítja a Windows Live végpontot.

wnsCertificate

string

Lekéri vagy beállítja a WNS-tanúsítványt.

XiaomiCredential

A NotificationHub XiaomiCredential leírása.

Name Típus Description
properties

XiaomiCredentialProperties

A NotificationHub XiaomiCredentialProperties leírása.

XiaomiCredentialProperties

A NotificationHub XiaomiCredentialProperties leírása.

Name Típus Description
appSecret

string

Lekéri vagy beállítja az alkalmazás titkos kódját.

endpoint

string

Lekéri vagy beállítja a xiaomi szolgáltatásvégpontot.