你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Service Tags - List
获取服务标记信息资源的列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTags?api-version=2023-09-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
将用作版本引用的位置 (不作为基于位置的筛选器,你将在所有区域(但仅限于订阅所属的云)获取具有前缀详细信息的服务标记列表) 。 |
subscription
|
path | True |
string |
可以唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 返回服务标记信息资源的列表。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get list of service tags
Sample Request
Sample Response
{
"name": "public",
"id": "/subscriptions/subId/providers/Microsoft.Network/serviceTags/public",
"type": "Microsoft.Network/serviceTags",
"changeNumber": "63",
"cloud": "Public",
"values": [
{
"name": "ApiManagement",
"id": "ApiManagement",
"properties": {
"changeNumber": "7",
"region": "",
"systemService": "AzureApiManagement",
"addressPrefixes": [
"13.64.39.16/32",
"40.74.146.80/31",
"40.74.147.32/28"
]
}
},
{
"name": "ApiManagement.AustraliaCentral",
"id": "ApiManagement.AustraliaCentral",
"properties": {
"changeNumber": "2",
"region": "australiacentral",
"systemService": "AzureApiManagement",
"addressPrefixes": [
"20.36.106.68/31",
"20.36.107.176/28"
]
}
},
{
"name": "AppService",
"id": "AppService",
"properties": {
"changeNumber": "13",
"region": "",
"systemService": "AzureAppService",
"addressPrefixes": [
"13.64.73.110/32",
"191.235.208.12/32",
"191.235.215.184/32"
]
}
},
{
"name": "ServiceBus",
"id": "ServiceBus",
"properties": {
"changeNumber": "10",
"region": "",
"systemService": "AzureServiceBus",
"addressPrefixes": [
"23.98.82.96/29",
"40.68.127.68/32",
"40.70.146.64/29"
]
}
},
{
"name": "ServiceBus.EastUS2",
"id": "ServiceBus.EastUS2",
"properties": {
"changeNumber": "1",
"region": "eastus2",
"systemService": "AzureServiceBus",
"addressPrefixes": [
"13.68.110.36/32",
"40.70.146.64/29"
]
}
}
],
"nextLink": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Network/locations/centraluseuap/serviceTags?api-version=2020-06-01&changenumber=changenumber&$skipToken={skipToken}"
}
定义
名称 | 说明 |
---|---|
Cloud |
来自服务的错误响应。 |
Cloud |
来自服务的错误响应。 |
Service |
服务标记信息。 |
Service |
服务标记信息的属性。 |
Service |
ListServiceTags API 服务调用的响应。 |
CloudError
来自服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
云错误正文。 |
CloudErrorBody
来自服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,该消息适用于在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,属性的名称出错。 |
ServiceTagInformation
服务标记信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
服务标记的 ID。 |
name |
string |
服务标记的名称。 |
properties |
服务标记信息的属性。 |
|
serviceTagChangeNumber |
string |
区域的服务标记对象的迭代次数。 |
ServiceTagInformationPropertiesFormat
服务标记信息的属性。
名称 | 类型 | 说明 |
---|---|---|
addressPrefixes |
string[] |
IP 地址前缀的列表。 |
changeNumber |
string |
服务标记的迭代次数。 |
region |
string |
服务标记的区域。 |
state |
string |
服务标记的状态。 |
systemService |
string |
系统服务的名称。 |
ServiceTagsListResult
ListServiceTags API 服务调用的响应。
名称 | 类型 | 说明 |
---|---|---|
changeNumber |
string |
迭代编号。 |
cloud |
string |
云的名称。 |
id |
string |
云的 ID。 |
name |
string |
云的名称。 |
nextLink |
string |
用于获取下一页服务标记信息资源的 URL。 |
type |
string |
Azure 资源类型。 |
values |
服务标记信息资源的列表。 |