Partíció-futtatókörnyezet metaadatainak listázása

Egy eseményközpont összes partíciójának metaadatait adja vissza. Lásd: Partíció leírásának tulajdonságai.

Kérés

Metódus Kérés URI-ja
GET https://{servicebusNamespace}.servicebus.windows.net/{eventHubPath}/consumergroups/{consumergroupName}/partitions

Kérelemfejlécek

Lásd: Az Event Hubshoz kapcsolódó összes kérés által használt fejlécek és paraméterek gyakori paraméterei és fejlécei .

Reagálás

A válasz tartalmaz egy HTTP-állapotkódot, egy válaszfejléceket és egy választörzset.

Elem neve Kötelező Típus Verzió Leírás
SizeInBytes Igen, írásvédett int 2014-01 Az Event Hubs-partíció hozzávetőleges mérete bájtban.
BeginSequenceNumber Igen, írásvédett sztring 2014-01 Az első sorszám.
EndSequenceNumber Igen, írásvédett sztring 2014-01 A végütemezési szám.
IncomingBytesPerSecond Igen, írásvédett sztring 2014-01 Az ebben a fogyasztói csoportban lévő partícióhoz tartozó események hozzávetőleges bejövő sebessége (bájt/másodpercben).
OutgoingBytesPerSecond Igen, írásvédett sztring 2014-01 Az ebben a fogyasztói csoportban lévő partíció hozzávetőleges kimenő sebessége (bájt/másodpercben).
LastEnqueuedOffset Igen, írásvédett sztring 2015-01 Az utolsó lekért esemény eltolása.
LastEnqueuedTimeUtc Igen, írásvédett sztring 2015-01 Az időpont (UTC) szerint, amikor az utolsó eseményt beiktatták.

Válaszkódok

Code Description
200 Sikeres művelet.
401 Engedélyezési hiba.
500 Belső hiba történt.

Válasz törzse

Ha a kérés sikeres, a válasz törzse tartalmazza a megadott Eseményközpont összes partíciójának leírását. Ha a kérés nem sikerült, a törzs tartalmaz egy hibakódot és egy hibaüzenetet.

Példák

Kérés

Megjegyzés

Azure Active Directory-jogkivonatot is használhat az Engedélyezési fejléchez a Gyakori paraméterek és fejlécek részben leírtak szerint. Példa: Authorization: Bearer <Azure AD token>.

GET https://your-namespace.servicebus.windows.net/your-event-hub//consumergroups/$Default/partitions/0?timeout=60&api-version=2015-01 HTTP/1.1  
Authorization: SharedAccessSignature sr=your-namespace.servicebus.windows.net&sig=your-sas-key&se=1456273000&skn=RootManageSharedAccessKey  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Host: your-namespace.servicebus.windows.net  

Válasz

HTTP/1.1 200 OK  
Content-Type: application/atom+xml;type=feed;charset=utf-8  
Server: Microsoft-HTTPAPI/2.0  
Date: Tue, 23 Feb 2016 23:36:42 GMT  
Content-Length: 2252  
  
<?xml version="1.0" encoding="UTF-8"?>  
<feed xmlns="http://www.w3.org/2005/Atom">  
   <title type="text">Partitions</title>  
   <id>https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions?timeout=60&api-version=2015-01</id>  
   <updated>2016-02-23T23:36:42Z</updated>  
   <link rel="self" href="https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions?timeout=60&api-version=2014-01" />  
   <entry xml:base="https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions?timeout=60&api-version=2014-01">  
      <id>https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions/0?api-version=2015-01</id>  
      <title type="text">0</title>  
      <published>2015-09-09T20:31:00Z</published>  
      <updated>2015-09-09T20:31:00Z</updated>  
      <link rel="self" href="partitions/0?api-version=2015-01" />  
      <content type="application/xml">  
         <PartitionDescription xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
            <SizeInBytes>33554432</SizeInBytes>  
            <BeginSequenceNumber>0</BeginSequenceNumber>  
            <EndSequenceNumber>20044</EndSequenceNumber>  
            <IncomingBytesPerSecond>0</IncomingBytesPerSecond>  
            <OutgoingBytesPerSecond>0</OutgoingBytesPerSecond>  
            <LastEnqueuedOffset>2062040</LastEnqueuedOffset>  
            <LastEnqueuedTimeUtc>2016-02-23T03:22:27.024Z</LastEnqueuedTimeUtc>  
         </PartitionDescription>  
      </content>  
   </entry>  
   <entry xml:base="https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions?timeout=60&api-version=2014-01">  
      <id>https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default/partitions/1?api-version=2015-01</id>  
      <title type="text">1</title>  
      <published>2015-09-09T20:31:01Z</published>  
      <updated>2015-09-09T20:31:01Z</updated>  
      <link rel="self" href="partitions/1?api-version=2015-01" />  
      <content type="application/xml">  
         <PartitionDescription xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
            <SizeInBytes>33554432</SizeInBytes>  
            <BeginSequenceNumber>0</BeginSequenceNumber>  
            <EndSequenceNumber>22907</EndSequenceNumber>  
            <IncomingBytesPerSecond>0</IncomingBytesPerSecond>  
            <OutgoingBytesPerSecond>0</OutgoingBytesPerSecond>  
            <LastEnqueuedOffset>2062040</LastEnqueuedOffset>  
            <LastEnqueuedTimeUtc>2016-02-23T03:22:27.024Z</LastEnqueuedTimeUtc>  
         </PartitionDescription>  
      </content>  
   </entry>  
</feed>