Features - Get

Gets the preview feature with the specified name.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}?api-version=2021-07-01

URI Parameters

Name In Required Type Description
featureName
path True

string

The name of the feature to get.

resourceProviderNamespace
path True

string

The resource provider namespace for the feature.

subscriptionId
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

FeatureResult

OK - Returns metadata about the feature. 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

ErrorResponse

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

Get feature

Sample request

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Features/providers/Resource Provider Namespace/features/feature?api-version=2021-07-01

Sample response

{
  "name": "Feature1",
  "properties": {
    "state": "registered"
  },
  "id": "feature_id1",
  "type": "type1"
}

Definitions

Name Description
ErrorDefinition

Error definition.

ErrorResponse

Error response indicates that the service is not able to process the incoming request.

FeatureProperties

Information about feature.

FeatureResult

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

ErrorDefinition[]

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

ErrorDefinition

The error details.

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

FeatureProperties

Properties of the previewed feature.

type

string

The resource type of the feature.