你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Operations - List
Lists所有可用的网络 Rest API 操作。
GET https://management.azure.com/providers/Microsoft.Network/operations?api-version=2023-09-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get a list of operations for a resource provider
Sample Request
GET https://management.azure.com/providers/Microsoft.Network/operations?api-version=2023-09-01
Sample Response
{
"value": [
{
"name": "Microsoft.Network/localnetworkgateways/read",
"display": {
"provider": "Microsoft Network",
"resource": "LocalNetworkGateway",
"operation": "Get LocalNetworkGateway",
"description": "Gets LocalNetworkGateway"
}
},
{
"name": "Microsoft.Network/localnetworkgateways/write",
"display": {
"provider": "Microsoft Network",
"resource": "LocalNetworkGateway",
"operation": "Create or update LocalNetworkGateway",
"description": "Creates or updates an existing LocalNetworkGateway"
}
},
{
"name": "Microsoft.Network/localnetworkgateways/delete",
"display": {
"provider": "Microsoft Network",
"resource": "LocalNetworkGateway",
"operation": "Delete LocalNetworkGateway",
"description": "Deletes LocalNetworkGateway"
}
},
{
"name": "Microsoft.Network/networkInterfaces/providers/Microsoft.Insights/metricDefinitions/read",
"display": {
"provider": "Microsoft Network",
"resource": "Network Interface metric definition",
"operation": "Read Network Interface metric definitions",
"description": "Gets available metrics for the Network Interface"
},
"origin": "system",
"properties": {
"serviceSpecification": {
"metricSpecifications": [
{
"name": "BytesSentRate",
"displayName": "Bytes Sent",
"displayDescription": "Number of bytes the Network Interface sent",
"unit": "Count",
"aggregationType": "Total",
"availabilities": [
{
"timeGrain": "00:01:00",
"retention": "00:00:00",
"blobDuration": "01:00:00"
},
{
"timeGrain": "01:00:00",
"retention": "00:00:00",
"blobDuration": "1.00:00:00"
}
],
"enableRegionalMdmAccount": false,
"metricFilterPattern": "^__Ready__$",
"fillGapWithZero": false,
"dimensions": [],
"isInternal": false
},
{
"name": "BytesReceivedRate",
"displayName": "Bytes Received",
"displayDescription": "Number of bytes the Network Interface received",
"unit": "Count",
"aggregationType": "Total",
"availabilities": [
{
"timeGrain": "00:01:00",
"retention": "00:00:00",
"blobDuration": "01:00:00"
},
{
"timeGrain": "01:00:00",
"retention": "00:00:00",
"blobDuration": "1.00:00:00"
}
],
"enableRegionalMdmAccount": false,
"metricFilterPattern": "^__Ready__$",
"fillGapWithZero": false,
"dimensions": [],
"isInternal": false
}
]
}
}
},
{
"name": "Microsoft.Network/networksecuritygroups/providers/Microsoft.Insights/logDefinitions/read",
"display": {
"provider": "Microsoft Network",
"resource": "Network Security Groups Log Definitions",
"operation": "Get Network Security Group Event Log Definitions",
"description": "Gets the events for network security group"
},
"origin": "system",
"properties": {
"serviceSpecification": {
"logSpecifications": [
{
"name": "NetworkSecurityGroupEvent",
"displayName": "Network Security Group Event",
"blobDuration": "PT1H"
},
{
"name": "NetworkSecurityGroupRuleCounter",
"displayName": "Network Security Group Rule Counter",
"blobDuration": "PT1H"
},
{
"name": "NetworkSecurityGroupFlowEvent",
"displayName": "Network Security Group Rule Flow Event",
"blobDuration": "PT1H"
}
]
}
}
}
]
}
定义
名称 | 说明 |
---|---|
Availability |
指标的可用性。 |
Cloud |
来自服务的错误响应。 |
Cloud |
来自服务的错误响应。 |
Dimension |
指标的维度。 |
Display |
显示与操作关联的元数据。 |
Log |
日志记录规范的说明。 |
Metric |
指标规范的说明。 |
Operation |
网络 REST API 操作定义。 |
Operation |
列出网络操作的请求的结果。 它包含操作列表和用于获取下一组结果的 URL 链接。 |
Service |
服务的规范。 |
Availability
指标的可用性。
名称 | 类型 | 说明 |
---|---|---|
blobDuration |
string |
可用性 Blob 的持续时间。 |
retention |
string |
可用性的保留期。 |
timeGrain |
string |
可用性的时间粒度。 |
CloudError
来自服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
云错误正文。 |
CloudErrorBody
来自服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,该消息适用于在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,属性的名称出错。 |
Dimension
指标的维度。
名称 | 类型 | 说明 |
---|---|---|
displayName |
string |
维度的显示名称。 |
internalName |
string |
维度的内部名称。 |
name |
string |
维的名称。 |
Display
显示与操作关联的元数据。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
操作说明。 |
operation |
string |
操作类型:获取、读取、删除等。 |
provider |
string |
服务提供商:Microsoft 网络。 |
resource |
string |
对其执行操作的资源。 |
LogSpecification
日志记录规范的说明。
名称 | 类型 | 说明 |
---|---|---|
blobDuration |
string |
Blob 的持续时间。 |
displayName |
string |
规范的显示名称。 |
name |
string |
规范的名称。 |
MetricSpecification
指标规范的说明。
名称 | 类型 | 说明 |
---|---|---|
aggregationType |
string |
聚合类型。 |
availabilities |
可用性列表。 |
|
dimensions |
维度列表。 |
|
displayDescription |
string |
指标的说明。 |
displayName |
string |
指标的显示名称。 |
enableRegionalMdmAccount |
boolean |
区域 MDM 帐户是否已启用。 |
fillGapWithZero |
boolean |
是否用零填充间隙。 |
isInternal |
boolean |
指标是否为内部指标。 |
metricFilterPattern |
string |
指标筛选器的模式。 |
name |
string |
指标的名称。 |
resourceIdDimensionNameOverride |
string |
资源 ID 维度名称替代。 |
sourceMdmAccount |
string |
源 MDM 帐户。 |
sourceMdmNamespace |
string |
源 MDM 命名空间。 |
unit |
string |
单位要显示的指标。 |
Operation
网络 REST API 操作定义。
名称 | 类型 | 说明 |
---|---|---|
display |
显示与操作关联的元数据。 |
|
name |
string |
操作名称:{provider}/{resource}/{operation}。 |
origin |
string |
操作的源。 |
properties.serviceSpecification |
服务的规范。 |
OperationListResult
列出网络操作的请求的结果。 它包含操作列表和用于获取下一组结果的 URL 链接。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于获取下一组操作列表结果的 URL(如果有)。 |
value |
网络资源提供程序支持的网络操作列表。 |
ServiceSpecification
服务的规范。
名称 | 类型 | 说明 |
---|---|---|
logSpecifications |
操作日志规范。 |
|
metricSpecifications |
操作服务规范。 |