次の方法で共有


Topics - Get

指定したトピックの説明を返します。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}?api-version=2024-01-01

URI パラメーター

名前 / 必須 説明
namespaceName
path True

string

minLength: 6
maxLength: 50

名前空間名

resourceGroupName
path True

string

minLength: 1
maxLength: 90

リソース グループの名前。 名前では大文字と小文字が区別されません。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

topicName
path True

string

minLength: 1

トピック名。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

応答

名前 説明
200 OK

SBTopic

トピックの説明が正常に取得されました。

Other Status Codes

ErrorResponse

操作が失敗した理由を説明する ServiceBus エラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

TopicGet

要求のサンプル

GET https://management.azure.com/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-Topics-5488?api-version=2024-01-01

応答のサンプル

{
  "id": "/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-Topics-5488",
  "name": "sdk-Topics-5488",
  "type": "Microsoft.ServiceBus/Namespaces/Topics",
  "properties": {
    "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S",
    "maxSizeInMegabytes": 10240,
    "maxMessageSizeInKilobytes": 10240,
    "requiresDuplicateDetection": false,
    "duplicateDetectionHistoryTimeWindow": "PT10M",
    "enableBatchedOperations": true,
    "sizeInBytes": 0,
    "status": "Active",
    "supportOrdering": true,
    "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S",
    "enablePartitioning": false,
    "enableExpress": true,
    "createdAt": "2017-05-26T20:50:31.4442694Z",
    "updatedAt": "2017-05-26T20:52:32.2092264Z",
    "accessedAt": "0001-01-01T00:00:00Z",
    "subscriptionCount": 0
  }
}

定義

名前 説明
createdByType

リソースを作成した ID の種類。

EntityStatus

エンティティの状態。

Error

エラー オブジェクト。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorResponse

リソース管理エラー応答。

MessageCountDetails

メッセージ数の詳細。

SBTopic

トピック リソースの説明。

systemData

リソースの作成と最後の変更に関連するメタデータ。

createdByType

リソースを作成した ID の種類。

説明
Application
Key
ManagedIdentity
User

EntityStatus

エンティティの状態。

説明
Active
Creating
Deleting
Disabled
ReceiveDisabled
Renaming
Restoring
SendDisabled
Unknown

Error

エラー オブジェクト。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorResponse[]

エラーの詳細。

message

string

エラー メッセージ。

target

string

エラーターゲット。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorResponse

リソース管理エラー応答。

名前 説明
error

Error

エラー オブジェクト。

MessageCountDetails

メッセージ数の詳細。

名前 説明
activeMessageCount

integer (int64)

キュー、トピック、またはサブスクリプション内のアクティブなメッセージの数。

deadLetterMessageCount

integer (int64)

配信不能メッセージの数。

scheduledMessageCount

integer (int64)

スケジュールされたメッセージの数。

transferDeadLetterMessageCount

integer (int64)

配信不能に転送されたメッセージの数。

transferMessageCount

integer (int64)

別のキュー、トピック、またはサブスクリプションに転送されたメッセージの数。

SBTopic

トピック リソースの説明。

名前 説明
id

string

リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

リソースが存在する地理的な場所

name

string

リソースの名前

properties.accessedAt

string (date-time)

このトピックでメッセージが最後に送信されたとき、または要求が受信された時刻。

properties.autoDeleteOnIdle

string (duration)

ISO 8601 timespan idle interval after the topic is automatically deleted. 最小期間は 5 分です。

properties.countDetails

MessageCountDetails

メッセージ数の詳細

properties.createdAt

string (date-time)

メッセージが作成された正確な時刻。

properties.defaultMessageTimeToLive

string (duration)

ISO 8601 の既定のメッセージ期間はライブ値です。 これは、メッセージが Service Bus に送信されてからメッセージが期限切れになるまでの期間です。 これは、メッセージ自体に TimeToLive が設定されていない場合に使用される既定値です。

properties.duplicateDetectionHistoryTimeWindow

string (duration)

ISO8601重複検出履歴の期間を定義する期間構造です。 既定値は 10 分です。

properties.enableBatchedOperations

boolean

サーバー側のバッチ処理操作が有効かどうかを示す値。

properties.enableExpress

boolean

Express エンティティが有効かどうかを示す値。 高速トピックは、永続ストレージに書き込む前に、メッセージを一時的にメモリに保持します。

properties.enablePartitioning

boolean

複数のメッセージ ブローカー間でパーティション分割するトピックが有効かどうかを示す値。

properties.maxMessageSizeInKilobytes

integer (int64)

トピックで受け入れ可能なメッセージ ペイロードの最大サイズ (KB 単位)。 このプロパティは現在 Premium でのみ使用され、既定値は 1024 です。

properties.maxSizeInMegabytes

integer (int32)

トピックの最大サイズ (メガバイト単位)。これは、トピックに割り当てられたメモリのサイズです。 既定値は 1024 です。

properties.requiresDuplicateDetection

boolean

このトピックで重複検出が必要かどうかを示す値。

properties.sizeInBytes

integer (int64)

トピックのサイズ (バイト単位)。

properties.status

EntityStatus

メッセージング エンティティの状態に使用できる値を列挙します。

properties.subscriptionCount

integer (int32)

サブスクリプションの数。

properties.supportOrdering

boolean

トピックが順序付けをサポートしているかどうかを示す値。

properties.updatedAt

string (date-time)

メッセージが更新された正確な時刻。

systemData

systemData

このリソースに関連するシステム メタデータ。

type

string

リソースの種類。 例: "Microsoft.EventHub/Namespaces" または "Microsoft.EventHub/Namespaces/EventHubs"

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string (date-time)

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string (date-time)

リソースを最後に変更した ID の種類。

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。