你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Operations - List
获取所有操作
返回所有操作的列表。
GET https://management.azure.com/providers/Microsoft.LabServices/operations?api-version=2023-06-07
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 | 模拟用户帐户 |
示例
listOperations
Sample Request
GET https://management.azure.com/providers/Microsoft.LabServices/operations?api-version=2023-06-07
Sample Response
{
"nextLink": null,
"value": [
{
"name": "Microsoft.LabServices/labPlans/write",
"isDataAction": false,
"display": {
"provider": "Microsoft Azure Lab Services",
"resource": "Microsoft.LabServices/labPlans",
"operation": "Create or Update Lab Plan",
"description": "Create new or update an existing lab plan."
},
"origin": "user,system"
}
]
}
定义
名称 | 说明 |
---|---|
Action |
枚举。 指示操作类型。 “内部”是指仅限内部 API 的操作。 |
Display |
此特定操作的本地化显示信息。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Operation |
REST API 操作 |
Operation |
Azure 资源提供程序支持的 REST API 操作的列表。 它包含用于获取下一组结果的 URL 链接。 |
Origin |
操作的预期执行程序;如 在基于资源的 访问控制 (RBAC) 和审核日志 UX。 默认值为“user,system” |
ActionType
枚举。 指示操作类型。 “内部”是指仅限内部 API 的操作。
名称 | 类型 | 说明 |
---|---|---|
Internal |
string |
Display
此特定操作的本地化显示信息。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
操作的简短本地化友好说明;适用于工具提示和详细视图。 |
operation |
string |
操作的简明本地化友好名称;适用于下拉列表。 例如“创建或更新虚拟机”、“重启虚拟机”。 |
provider |
string |
资源提供程序名称的本地化友好形式,例如“Microsoft Monitoring Insights”或“Microsoft Compute”。 |
resource |
string |
与此操作相关的资源类型的本地化友好名称。 例如“虚拟机”或“作业计划集合”。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
Operation
REST API 操作
名称 | 类型 | 说明 |
---|---|---|
actionType |
枚举。 指示操作类型。 “内部”是指仅限内部 API 的操作。 |
|
display |
此特定操作的本地化显示信息。 |
|
isDataAction |
boolean |
操作是否应用于数据平面。 对于数据平面操作,这是“true”,对于 ARM/控制平面操作,这是“false”。 |
name |
string |
操作的名称,根据 Resource-Based 访问控制 (RBAC) 。 示例:“Microsoft.Compute/virtualMachines/write”、“Microsoft.Compute/virtualMachines/capture/action” |
origin |
操作的预期执行程序;如 在基于资源的 访问控制 (RBAC) 和审核日志 UX。 默认值为“user,system” |
OperationListResult
Azure 资源提供程序支持的 REST API 操作的列表。 它包含用于获取下一组结果的 URL 链接。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
如果有任何) , (获取下一组操作列表结果的 URL。 |
value |
资源提供程序支持的操作列表 |
Origin
操作的预期执行程序;如 在基于资源的 访问控制 (RBAC) 和审核日志 UX。 默认值为“user,system”
名称 | 类型 | 说明 |
---|---|---|
system |
string |
|
user |
string |
|
user,system |
string |