Share via


取得撤銷的發行者

擷取指定之事件中樞內所有撤銷的發行者。 請參閱 [RevokedPublisherDescription 屬性] (/dotnet/api/microsoft.servicebus.messaging.revokedpublisherdescription。

要求

方法 要求 URI
GET https://{servicebusNamespace}.servicebus.windows.net/{eventHubPath}/revokedpublishers

要求標頭

如需所有與事件中樞相關的要求所使用的標頭和參數,請參閱 一般參數和標頭

回應

回應包括 HTTP 狀態碼、一組回應標頭和回應主體。

元素名稱 必要 類型 版本 描述
名稱 是,唯讀 string 2014-01 撤銷發行者的名稱 (識別碼) 。

回應碼

程式碼 描述
200 成功。
401 授權失敗。
500 內部錯誤。

回應本文

如果要求成功,回應本文會包含已撤銷的事件中樞發行者的描述。 如果要求未成功,則主體包含錯誤碼和錯誤訊息。

範例

要求

注意

您也可以使用授權標頭的Azure Active Directory權杖,如Common 參數和標頭中所述。 例如:Authorization: Bearer <Azure AD token>

GET https://your-namespace.servicebus.windows.net/your-event-hub/RevokedPublishers?timeout=60&api-version=2014-01 HTTP/1.1  
Authorization: SharedAccessSignature sr=https%3A%2F%2Fyour-namespace.servicebus.windows.net%2F&sig=your-sas-key&se=1455847106&skn=RootManageSharedAccessKey  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Host: your-namespace.servicebus.windows.net  
  

回應

HTTP/1.1 200 OK  
Content-Type: application/atom+xml;type=feed;charset=utf-8  
Server: Microsoft-HTTPAPI/2.0  
Date: Fri, 19 Feb 2016 03:36:27 GMT  
Content-Length: 1059  
  
<?xml version="1.0" encoding="UTF-8"?>  
<feed xmlns="http://www.w3.org/2005/Atom">  
   <title type="text">RevokedPublishers</title>  
   <id>https://your-namespace.servicebus.windows.net/your-event-hub/revokedpublishers?timeout=60&api-version=2014-01</id>  
   <updated>2016-02-19T03:36:28Z</updated>  
   <link rel="self" href="https://your-namespace.servicebus.windows.net/your-event-hub/revokedpublishers?timeout=60&api-version=2014-01" />  
   <entry xml:base="https://your-namespace.servicebus.windows.net/your-event-hub/revokedpublishers?timeout=60&api-version=2014-01">  
      <id>https://your-namespace.servicebus.windows.net/your-event-hub/revokedpublishers/?api-version=2014-01</id>  
      <title type="text">your-publisher</title>  
      <updated>2016-02-19T03:36:28Z</updated>  
      <link rel="self" href="revokedpublishers/?api-version=2014-01" />  
      <content type="application/xml">  
         <RevokedPublisherDescription xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
            <Name>your-publisher</Name>  
         </RevokedPublisherDescription>  
      </content>  
   </entry>  
</feed>