你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Topics - List By Namespace
Gets all the topics in a namespace.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics?api-version=2024-01-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics?api-version=2024-01-01&$skip={$skip}&$top={$top}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
namespace
|
path | True |
string |
The namespace name |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
The API version to use for this operation. |
$skip
|
query |
integer |
Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. |
|
$top
|
query |
integer |
May be used to limit the number of results to the most recent N usageDetails. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved list of topics. |
|
Other Status Codes |
ServiceBus error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
TopicGet
Sample request
GET https://management.azure.com/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics?api-version=2024-01-01
Sample response
{
"value": [
{
"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
}
}
]
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Entity |
Entity status. |
Error |
The error object. |
Error |
The resource management error additional info. |
Error |
The resource management error response. |
Message |
Message Count Details. |
SBTopic |
Description of topic resource. |
SBTopic |
The response to the List Topics operation. |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
EntityStatus
Entity status.
Name | Type | Description |
---|---|---|
Active |
string |
|
Creating |
string |
|
Deleting |
string |
|
Disabled |
string |
|
ReceiveDisabled |
string |
|
Renaming |
string |
|
Restoring |
string |
|
SendDisabled |
string |
|
Unknown |
string |
Error
The error object.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
The resource management error response.
Name | Type | Description |
---|---|---|
error |
The error object. |
MessageCountDetails
Message Count Details.
Name | Type | Description |
---|---|---|
activeMessageCount |
integer |
Number of active messages in the queue, topic, or subscription. |
deadLetterMessageCount |
integer |
Number of messages that are dead lettered. |
scheduledMessageCount |
integer |
Number of scheduled messages. |
transferDeadLetterMessageCount |
integer |
Number of messages transferred into dead letters. |
transferMessageCount |
integer |
Number of messages transferred to another queue, topic, or subscription. |
SBTopic
Description of topic resource.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.accessedAt |
string |
Last time the message was sent, or a request was received, for this topic. |
properties.autoDeleteOnIdle |
string |
ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. |
properties.countDetails |
Message count details |
|
properties.createdAt |
string |
Exact time the message was created. |
properties.defaultMessageTimeToLive |
string |
ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself. |
properties.duplicateDetectionHistoryTimeWindow |
string |
ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. |
properties.enableBatchedOperations |
boolean |
Value that indicates whether server-side batched operations are enabled. |
properties.enableExpress |
boolean |
Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. |
properties.enablePartitioning |
boolean |
Value that indicates whether the topic to be partitioned across multiple message brokers is enabled. |
properties.maxMessageSizeInKilobytes |
integer |
Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024. |
properties.maxSizeInMegabytes |
integer |
Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024. |
properties.requiresDuplicateDetection |
boolean |
Value indicating if this topic requires duplicate detection. |
properties.sizeInBytes |
integer |
Size of the topic, in bytes. |
properties.status |
Enumerates the possible values for the status of a messaging entity. |
|
properties.subscriptionCount |
integer |
Number of subscriptions. |
properties.supportOrdering |
boolean |
Value that indicates whether the topic supports ordering. |
properties.updatedAt |
string |
The exact time the message was updated. |
systemData |
The system meta data relating to this resource. |
|
type |
string |
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
SBTopicListResult
The response to the List Topics operation.
Name | Type | Description |
---|---|---|
nextLink |
string |
Link to the next set of results. Not empty if Value contains incomplete list of topics. |
value |
SBTopic[] |
Result of the List Topics operation. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The type of identity that last modified the resource. |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |