Features - List
Gets all the preview features in a provider namespace that are available through AFEC for the subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features?api-version=2021-07-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string |
The namespace of the resource provider for getting features. |
|
subscription
|
path | True |
string |
The Azure subscription ID. |
|
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Returns an array containing metadata for each feature in the resource provider. The metadata includes the name of the feature, the registration state, the resource ID, and resource type. Media Types: "application/json", "text/json" |
|
| Other Status Codes |
Error response describing the reason for operation failure. Media Types: "application/json", "text/json" |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
List provider Features
Sample request
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Features/providers/Resource Provider Namespace/features?api-version=2021-07-01
Sample response
{
"value": [
{
"name": "Feature1",
"properties": {
"state": "registered"
},
"id": "feature_id1",
"type": "type1"
},
{
"name": "Feature2",
"properties": {
"state": "unregistered"
},
"id": "feature_id2",
"type": "type2"
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
Error definition. |
|
Error |
Error response indicates that the service is not able to process the incoming request. |
|
Feature |
List of previewed features. |
|
Feature |
Information about feature. |
|
Feature |
Previewed feature information. |
ErrorDefinition
Error definition.
| Name | Type | Description |
|---|---|---|
| code |
string |
Service specific error code which serves as the substatus for the HTTP error code. |
| details |
Internal error details. |
|
| message |
string |
Description of the error. |
ErrorResponse
Error response indicates that the service is not able to process the incoming request.
| Name | Type | Description |
|---|---|---|
| error |
The error details. |
FeatureOperationsListResult
List of previewed features.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The URL to use for getting the next set of results. |
| value |
The array of features. |
FeatureProperties
Information about feature.
| Name | Type | Description |
|---|---|---|
| state |
string |
The registration state of the feature for the subscription. |
FeatureResult
Previewed feature information.
| Name | Type | Description |
|---|---|---|
| id |
string |
The resource ID of the feature. |
| name |
string |
The name of the feature. |
| properties |
Properties of the previewed feature. |
|
| type |
string |
The resource type of the feature. |