Features - Get
获取具有指定名称的预览功能。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}?api-version=2021-07-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
feature
|
path | True |
string |
要获取的功能的名称。 |
|
resource
|
path | True |
string |
该功能的资源提供程序命名空间。 |
|
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 | 模拟用户帐户 |
示例
Get feature
示例请求
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Features/providers/Resource Provider Namespace/features/feature?api-version=2021-07-01
示例响应
{
"name": "Feature1",
"properties": {
"state": "registered"
},
"id": "feature_id1",
"type": "type1"
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
错误定义。 |
|
Error |
错误响应指示服务无法处理传入请求。 |
|
Feature |
有关功能的信息。 |
|
Feature |
预览的功能信息。 |
ErrorDefinition
错误定义。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
服务特定的错误代码,用作 HTTP 错误代码的子状态。 |
| details |
内部错误详细信息。 |
|
| message |
string |
错误说明。 |
ErrorResponse
错误响应指示服务无法处理传入请求。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误详细信息。 |
FeatureProperties
有关功能的信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| state |
string |
订阅功能的注册状态。 |
FeatureResult
预览的功能信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
功能的资源 ID。 |
| name |
string |
功能的名称。 |
| properties |
预览功能的属性。 |
|
| type |
string |
功能的资源类型。 |