Apps - Get
获取 IoT Central 应用程序的元数据。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}?api-version=2021-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
包含 IoT Central 应用程序的资源组的名称。 |
|
resource
|
path | True |
string |
IoT Central 应用程序的 ARM 资源名称。 |
|
subscription
|
path | True |
string |
订阅标识符。 |
|
api-version
|
query | True |
string |
API 的版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
正文包含 IoT Central 应用程序的所有非安全属性。 与安全相关的属性设置为 null。 |
|
| Other Status Codes |
默认错误响应 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Apps_Get
示例请求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp?api-version=2021-06-01
示例响应
code: 200
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "F1"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
{
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
定义
| 名称 | 说明 |
|---|---|
| App |
IoT Central 应用程序。 |
|
App |
SKU 的名称。 |
|
App |
有关 IoT Central 应用程序的 SKU 的信息。 |
|
App |
应用程序的当前状态。 |
|
Cloud |
错误详细信息。 |
|
Cloud |
错误响应的详细信息。 |
|
System |
托管服务标识(系统分配或无) |
|
System |
托管服务标识的类型(系统分配或无)。 |
App
IoT Central 应用程序。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
ARM 资源标识符。 |
| identity |
IoT Central 应用程序的托管标识。 |
|
| location |
string |
资源位置。 |
| name |
string pattern: ^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$ |
ARM 资源名称。 |
| properties.applicationId |
string |
应用程序的 ID。 |
| properties.displayName |
string |
应用程序的显示名称。 |
| properties.state |
应用程序的当前状态。 |
|
| properties.subdomain |
string |
应用程序的子域。 |
| properties.template |
string |
应用程序模板的 ID,它是一个蓝图,用于定义应用程序的特征和行为。 自选;如果未指定,则默认为空白蓝图,并允许从头开始定义应用程序。 |
| sku |
有效的实例 SKU。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 |
AppSku
SKU 的名称。
| 值 | 说明 |
|---|---|
| ST0 | |
| ST1 | |
| ST2 |
AppSkuInfo
有关 IoT Central 应用程序的 SKU 的信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| name |
SKU 的名称。 |
AppState
应用程序的当前状态。
| 值 | 说明 |
|---|---|
| created | |
| suspended |
CloudError
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| error.code |
string |
错误代码。 |
| error.details |
有关错误的其他详细信息的列表。 |
|
| error.message |
string |
错误消息。 |
| error.target |
string |
特定错误的目标。 |
CloudErrorBody
错误响应的详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| details |
有关错误的其他详细信息的列表。 |
|
| message |
string |
错误消息。 |
| target |
string |
特定错误的目标。 |
SystemAssignedServiceIdentity
托管服务标识(系统分配或无)
| 名称 | 类型 | 说明 |
|---|---|---|
| principalId |
string (uuid) |
系统分配标识的服务主体 ID。 此属性仅针对系统分配的标识提供。 |
| tenantId |
string (uuid) |
系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。 |
| type |
托管服务标识的类型(系统分配或无)。 |
SystemAssignedServiceIdentityType
托管服务标识的类型(系统分配或无)。
| 值 | 说明 |
|---|---|
| None | |
| SystemAssigned |