你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Operations - List

Lists所有可用的 Microsoft.Devices REST API 操作。

GET https://management.azure.com/providers/Microsoft.Devices/operations?api-version=2022-12-12

URI 参数

名称 必需 类型 说明
api-version
query True

string

API 的版本。

响应

名称 类型 说明
200 OK

OperationListResult

没问题。 请求已成功。

Other Status Codes

ErrorDetails

默认错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

DPSOperations

Sample Request

GET https://management.azure.com/providers/Microsoft.Devices/operations?api-version=2022-12-12

Sample Response

{
  "value": [
    {
      "name": "Microsoft.Devices/register/action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Register Resource Provider"
      }
    },
    {
      "name": "Microsoft.Devices/IotHubs/diagnosticSettings/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get Diagnostic Setting"
      }
    },
    {
      "name": "Microsoft.Devices/IotHubs/diagnosticSettings/write",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Set Diagnostic Setting"
      }
    },
    {
      "name": "Microsoft.Devices/IotHubs/metricDefinitions/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Read IotHub service metric definitions"
      }
    },
    {
      "name": "Microsoft.Devices/IotHubs/logDefinitions/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Read IotHub service log definitions"
      }
    },
    {
      "name": "Microsoft.Devices/operations/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get All ResourceProvider Operations"
      }
    },
    {
      "name": "Microsoft.Devices/checkNameAvailability/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Check If IotHub name is available"
      }
    },
    {
      "name": "Microsoft.Devices/usages/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get Subscription Usages"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get IotHub(s)"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/Write",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Create or update IotHub Resource"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/Delete",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Delete IotHub Resource"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/iotHubStats/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get IotHub Statistics"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/skus/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get valid IotHub Skus"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/listkeys/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get all IotHub Keys"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/iotHubKeys/listkeys/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get IotHub Key for the given name"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Write",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Create EventHub Consumer Group"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get EventHub Consumer Group(s)"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Delete",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Delete EventHub Consumer Group"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/exportDevices/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Export Devices"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/importDevices/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Import Devices"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/jobs/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get the Job(s) on IotHub"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/quotaMetrics/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get Quota Metrics"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/routing/routes/$testall/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Routing Rule Test All"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/routing/routes/$testnew/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Routing Rule Test Route"
      }
    },
    {
      "name": "Microsoft.Devices/iotHubs/routingEndpointsHealth/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get Endpoint Health"
      }
    },
    {
      "name": "Microsoft.Devices/ProvisioningServices/diagnosticSettings/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Get Diagnostic Setting"
      }
    },
    {
      "name": "Microsoft.Devices/ProvisioningServices/diagnosticSettings/write",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Set Diagnostic Setting"
      }
    },
    {
      "name": "Microsoft.Devices/ProvisioningServices/metricDefinitions/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Read DPS service metric definitions"
      }
    },
    {
      "name": "Microsoft.Devices/ProvisioningServices/logDefinitions/read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "IotHubs",
        "operation": "Read DPS service log definitions"
      }
    },
    {
      "name": "Microsoft.Devices/checkProvisioningServiceNameAvailability/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServives",
        "operation": "Check If Provisioning Service name is available"
      }
    },
    {
      "name": "Microsoft.Devices/provisioningServices/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServices",
        "operation": "Get Provisioning Service resource"
      }
    },
    {
      "name": "Microsoft.Devices/provisioningServices/Write",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServices",
        "operation": "Create Provisioning Service resource"
      }
    },
    {
      "name": "Microsoft.Devices/provisioningServices/Delete",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServices",
        "operation": "Delete Provisioning Service resource"
      }
    },
    {
      "name": "Microsoft.Devices/provisioningServices/skus/Read",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServices",
        "operation": "Delete Provisioning Service resource"
      }
    },
    {
      "name": "Microsoft.Devices/provisioningServices/listkeys/Action",
      "display": {
        "provider": "Microsoft Devices",
        "resource": "ProvisioningServices",
        "operation": "get security related metadata"
      }
    }
  ]
}

定义

名称 说明
Display

表示操作的 对象。

ErrorDetails

错误详细信息。

Operation

预配服务 REST API 操作。

OperationListResult

列出预配服务操作的请求的结果。 它包含操作列表和用于获取下一组结果的 URL 链接。

Display

表示操作的 对象。

名称 类型 说明
operation

string

操作的名称。

provider

string

服务提供商:Microsoft 设备。

resource

string

资源类型:ProvisioningServices。

ErrorDetails

错误详细信息。

名称 类型 说明
code

integer

错误代码。

details

string

错误详细信息。

httpStatusCode

string

HTTP 状态代码。

message

string

错误消息。

Operation

预配服务 REST API 操作。

名称 类型 说明
display

Display

表示操作的 对象。

name

string

操作名称:{provider}/{resource}/{read | write | action | delete}

OperationListResult

列出预配服务操作的请求的结果。 它包含操作列表和用于获取下一组结果的 URL 链接。

名称 类型 说明
nextLink

string

用于获取下一组操作列表结果(如果有)的 URL。

value

Operation[]

Microsoft.Devices 资源提供程序支持的预配服务操作。