你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Subscription Feature Registrations - Get
返回功能注册
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}?api-version=2021-07-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
feature
|
path | True |
string |
功能名称。 |
provider
|
path | True |
string |
提供程序命名空间。 |
subscription
|
path | True |
string |
Azure 订阅 ID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
订阅功能注册。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Gets a feature registration
Sample Request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/subscriptionFeatureRegistrationGroupTestRG/subscriptionFeatureRegistrations/testFeature?api-version=2021-07-01
Sample Response
{
"name": "testFeature",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature",
"type": "Microsoft.Features/featureProviders/subscriptionFeatureRegistrations",
"properties": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"featureName": "testFeature",
"providerNamespace": "Microsoft.TestRP",
"state": "Pending",
"authorizationProfile": {},
"releaseDate": "2019-11-05T00:34:53.1243228Z",
"approvalType": "ApprovalRequired",
"registrationDate": "2020-02-26T01:57:51.734777Z"
}
}
定义
名称 | 说明 |
---|---|
Authorization |
授权配置文件 |
Error |
错误定义。 |
Error |
错误响应指示服务无法处理传入请求。 |
Properties | |
Subscription |
订阅功能注册详细信息 |
Subscription |
功能审批类型。 |
Subscription |
状态。 |
AuthorizationProfile
授权配置文件
名称 | 类型 | 说明 |
---|---|---|
approvedTime |
string |
批准时间 |
approver |
string |
审批者 |
requestedTime |
string |
请求的时间 |
requester |
string |
请求者 |
requesterObjectId |
string |
请求者对象 ID |
ErrorDefinition
错误定义。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务特定的错误代码,用作 HTTP 错误代码的子状态。 |
details |
内部错误详细信息。 |
|
message |
string |
错误的说明。 |
ErrorResponse
错误响应指示服务无法处理传入请求。
名称 | 类型 | 说明 |
---|---|---|
error |
错误详细信息。 |
Properties
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
approvalType |
功能审批类型。 |
||
authorizationProfile |
授权配置文件 |
||
description |
string |
功能说明。 |
|
displayName |
string |
featureDisplayName。 |
|
documentationLink |
string |
功能文档链接。 |
|
featureName |
string |
featureName。 |
|
metadata |
object |
元数据的键值对。 |
|
providerNamespace |
string |
providerNamespace。 |
|
registrationDate |
string |
功能注册日期。 |
|
releaseDate |
string |
功能发布日期。 |
|
shouldFeatureDisplayInPortal |
boolean |
False |
指示是否应在门户中显示功能。 |
state |
状态。 |
||
subscriptionId |
string |
subscriptionId。 |
|
tenantId |
string |
tenantId。 |
SubscriptionFeatureRegistration
订阅功能注册详细信息
名称 | 类型 | 说明 |
---|---|---|
id |
string |
Azure 资源 ID。 |
name |
string |
Azure 资源名称。 |
properties | ||
type |
string |
Azure 资源类型。 |
SubscriptionFeatureRegistrationApprovalType
功能审批类型。
名称 | 类型 | 说明 |
---|---|---|
ApprovalRequired |
string |
|
AutoApproval |
string |
|
NotSpecified |
string |
SubscriptionFeatureRegistrationState
状态。
名称 | 类型 | 说明 |
---|---|---|
NotRegistered |
string |
|
NotSpecified |
string |
|
Pending |
string |
|
Registered |
string |
|
Registering |
string |
|
Unregistered |
string |
|
Unregistering |
string |