你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Namespaces - Get
获取指定命名空间的说明。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}?api-version=2024-01-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
namespace
|
path | True |
string minLength: 6maxLength: 50 |
命名空间名称 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string |
唯一标识Microsoft Azure 订阅的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功返回Namespace。 |
|
Other Status Codes |
描述操作失败的原因的 ServiceBus 错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
NameSpaceGet
示例请求
示例响应
{
"sku": {
"name": "Standard",
"tier": "Standard"
},
"id": "/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924",
"name": "sdk-Namespace-2924",
"type": "Microsoft.ServiceBus/Namespaces",
"location": "South Central US",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"provisioningState": "Succeeded",
"metricId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-2924",
"createdAt": "2017-05-25T22:26:36.76Z",
"updatedAt": "2017-05-25T22:26:59.35Z",
"serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/",
"minimumTlsVersion": "1.2",
"disableLocalAuth": false,
"privateEndpointConnections": [
{
"id": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/namespaces/NamespaceSample/privateEndpointConnections/privateEndpointConnectionName",
"name": "privateEndpointConnectionName",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.Network/privateEndpoints/NamespaceSample"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
]
}
}
定义
名称 | 说明 |
---|---|
Connection |
ConnectionState 信息。 |
created |
创建资源的标识的类型。 |
End |
专用终结点连接的预配状态。 |
Error |
错误对象。 |
Error |
资源管理错误附加信息。 |
Error |
资源管理错误响应。 |
key |
枚举 KeySource for Encryption 的可能值 |
Key |
用于配置 keyVault 属性的属性 |
Managed |
托管服务标识的类型。 |
Private |
PrivateEndpoint 信息。 |
Private |
PrivateEndpointConnection 的属性。 |
Private |
连接状态。 |
Public |
这决定了是否允许通过公用网络流量。 默认情况下,它处于启用状态。 |
SBNamespace |
命名空间资源的说明。 |
SBSku |
命名空间的 SKU。 |
Sku |
此 SKU 的名称。 |
Sku |
此特定 SKU 的计费层。 |
system |
与创建和上次修改资源相关的元数据。 |
Tls |
要支持的群集的最低 TLS 版本,例如“1.2” |
User |
已识别的字典值。 |
ConnectionState
ConnectionState 信息。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
连接状态的说明。 |
status |
连接状态。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
EndPointProvisioningState
专用终结点连接的预配状态。
值 | 说明 |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
Error
错误对象。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorResponse
资源管理错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
keySource
枚举 KeySource for Encryption 的可能值
值 | 说明 |
---|---|
Microsoft.KeyVault |
KeyVaultProperties
用于配置 keyVault 属性的属性
名称 | 类型 | 说明 |
---|---|---|
identity.userAssignedIdentity |
string |
为加密选择的用户标识的 ARM ID |
keyName |
string |
KeyVault 中密钥的名称 |
keyVaultUri |
string |
KeyVault 的 URI |
keyVersion |
string |
KeyVault 版本 |
ManagedServiceIdentityType
托管服务标识的类型。
值 | 说明 |
---|---|
None | |
SystemAssigned | |
SystemAssigned, UserAssigned | |
UserAssigned |
PrivateEndpoint
PrivateEndpoint 信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点的 ARM 标识符。 |
PrivateEndpointConnection
PrivateEndpointConnection 的属性。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
资源所在的地理位置 |
name |
string |
资源的名称 |
properties.privateEndpoint |
此连接的专用终结点资源。 |
|
properties.privateLinkServiceConnectionState |
有关连接状态的详细信息。 |
|
properties.provisioningState |
专用终结点连接的预配状态。 |
|
systemData |
与此资源相关的系统元数据。 |
|
type |
string |
资源的类型。 例如“Microsoft.EventHub/Namespaces”或“Microsoft.EventHub/Namespaces/EventHubs” |
PrivateLinkConnectionStatus
连接状态。
值 | 说明 |
---|---|
Approved | |
Disconnected | |
Pending | |
Rejected |
PublicNetworkAccess
这决定了是否允许通过公用网络流量。 默认情况下,它处于启用状态。
值 | 说明 |
---|---|
Disabled | |
Enabled | |
SecuredByPerimeter |
SBNamespace
命名空间资源的说明。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
id |
string |
资源 ID |
|
identity.principalId |
string |
KeyVault 中的 ObjectId |
|
identity.tenantId |
string |
KeyVault 中的 TenantId |
|
identity.type |
托管服务标识的类型。 |
||
identity.userAssignedIdentities |
<string,
User |
用户分配标识的属性 |
|
location |
string |
资源所在的地理位置 |
|
name |
string |
资源名称 |
|
properties.alternateName |
string |
命名空间的备用名称 |
|
properties.createdAt |
string (date-time) |
创建命名空间的时间 |
|
properties.disableLocalAuth |
boolean |
此属性禁用服务总线命名空间的 SAS 身份验证。 |
|
properties.encryption.keySource | Microsoft.KeyVault |
枚举 KeySource for Encryption 的可能值 |
|
properties.encryption.keyVaultProperties |
KeyVault 的属性 |
||
properties.encryption.requireInfrastructureEncryption |
boolean |
启用基础结构加密(双重加密) |
|
properties.metricId |
string |
Azure Insights 指标的标识符 |
|
properties.minimumTlsVersion |
要支持的群集的最低 TLS 版本,例如“1.2” |
||
properties.premiumMessagingPartitions |
integer (int32) |
服务总线命名空间的分区数。 此属性仅适用于高级 SKU 命名空间。 默认值为 1,可能值为 1、2 和 4 |
|
properties.privateEndpointConnections |
专用终结点连接列表。 |
||
properties.provisioningState |
string |
命名空间的预配状态。 |
|
properties.publicNetworkAccess | Enabled |
这决定了是否允许通过公用网络流量。 默认情况下,它处于启用状态。 |
|
properties.serviceBusEndpoint |
string |
可用于执行服务总线操作的终结点。 |
|
properties.status |
string |
命名空间的状态。 |
|
properties.updatedAt |
string (date-time) |
命名空间的更新时间。 |
|
properties.zoneRedundant |
boolean |
启用此属性会在支持的可用性区域中创建高级服务总线Namespace。 |
|
sku |
SKU 的属性 |
||
systemData |
与此资源相关的系统元数据。 |
||
tags |
object |
资源标记 |
|
type |
string |
资源类型 |
SBSku
命名空间的 SKU。
名称 | 类型 | 说明 |
---|---|---|
capacity |
integer (int32) |
服务总线高级命名空间的消息传送单元。 有效容量为 {1, 2, 4, 8, 16} 个属性的倍数。premiumMessagingPartitions 设置。 例如,如果 properties.premiumMessagingPartitions 为 1,则可能的容量值为 1、2、4、8 和 16。 如果 properties.premiumMessagingPartitions 为 4,则可能的容量值为 4、8、16、32 和 64 |
name |
此 SKU 的名称。 |
|
tier |
此特定 SKU 的计费层。 |
SkuName
此 SKU 的名称。
值 | 说明 |
---|---|
Basic | |
Premium | |
Standard |
SkuTier
此特定 SKU 的计费层。
值 | 说明 |
---|---|
Basic | |
Premium | |
Standard |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改资源的标识的类型。 |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
TlsVersion
要支持的群集的最低 TLS 版本,例如“1.2”
值 | 说明 |
---|---|
1.0 | |
1.1 | |
1.2 |
UserAssignedIdentity
已识别的字典值。
名称 | 类型 | 说明 |
---|---|---|
clientId |
string |
用户分配标识的客户端 ID |
principalId |
string |
用户分配标识的主体 ID |