Features - List All
获取通过订阅的 AFEC 提供的所有预览功能。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Features/features?api-version=2021-07-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
subscription
|
path | True |
string |
Azure 订阅 ID。 |
|
api-version
|
query | True |
string |
用于此作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
确定 - 返回一个数组,其中包含每个功能的元数据。 元数据包括功能的名称、注册状态、资源 ID 和资源类型。 Media Types: "application/json", "text/json" |
|
| Other Status Codes |
描述作失败原因的错误响应。 Media Types: "application/json", "text/json" |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
List subscription Features
示例请求
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Features/features?api-version=2021-07-01
示例响应
{
"value": [
{
"name": "Feature1",
"properties": {
"state": "registered"
},
"id": "feature_id1",
"type": "type1"
},
{
"name": "Feature2",
"properties": {
"state": "unregistered"
},
"id": "feature_id2",
"type": "type2"
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
错误定义。 |
|
Error |
错误响应指示服务无法处理传入请求。 |
|
Feature |
预览功能列表。 |
|
Feature |
有关功能的信息。 |
|
Feature |
预览的功能信息。 |
ErrorDefinition
错误定义。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
服务特定的错误代码,用作 HTTP 错误代码的子状态。 |
| details |
内部错误详细信息。 |
|
| message |
string |
错误说明。 |
ErrorResponse
错误响应指示服务无法处理传入请求。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误详细信息。 |
FeatureOperationsListResult
预览功能列表。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于获取下一组结果的 URL。 |
| value |
特征数组。 |
FeatureProperties
有关功能的信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| state |
string |
订阅功能的注册状态。 |
FeatureResult
预览的功能信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
功能的资源 ID。 |
| name |
string |
功能的名称。 |
| properties |
预览功能的属性。 |
|
| type |
string |
功能的资源类型。 |