取り消されたパブリッシャーを取得する
指定したイベント ハブ内で取り消されたすべてのパブリッシャーを取得します。 「RevokedPublisherDescription プロパティ](/dotnet/api/microsoft.servicebus.messaging.revokedpublisherdescription」を参照してください。
Request
Method | 要求 URI |
---|---|
GET | https://{servicebusNamespace}.servicebus.windows.net/{eventHubPath}/revokedpublishers |
要求ヘッダー
Event Hubs に関連するすべての要求で使用されるヘッダーとパラメーターについては、「 共通 パラメーターとヘッダー」を参照してください。
[応答]
応答には、HTTP 状態コード、一連の応答ヘッダー、および応答本文が含まれています。
要素名 | 必須 | Type | Version | Description |
---|---|---|---|---|
名前 | はい、読み取り専用 | string | 2014-01 | 取り消された発行元の名前 (ID)。 |
応答コード
コード | 説明 |
---|---|
200 | 正常終了しました。 |
401 | 認証エラー。 |
500 | 内部エラーです。 |
応答本文
要求が成功した場合、応答本文には、クエリされたイベント ハブの取り消された発行元の説明が含まれます。 要求が失敗すると、本文にエラー コードとエラー メッセージが追加されます。
使用例
Request
注意
また、「共通パラメーターとヘッダー」で説明されているように、Authorization ヘッダーに Azure Active Directory トークンを使用することもできます。 たとえば、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
Response
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>