Providers - List
Gets all resource providers for a subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers?api-version=2021-04-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers?$expand={$expand}&api-version=2021-04-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string |
The Microsoft Azure subscription ID. |
|
api-version
|
query | True |
string |
The API version to use for this operation. |
|
$expand
|
query |
string |
The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Returns an array of resource providers. |
|
| Other Status Codes |
Error response describing why the operation failed. |
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 providers.
Sample request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2021-04-01
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP1",
"namespace": "Microsoft.TestRP1",
"registrationState": "Registering",
"registrationPolicy": "RegistrationRequired",
"resourceTypes": [
{
"resourceType": "TestResourceType",
"locations": [
"West US"
],
"apiVersions": [
"2018-01-01",
"2015-05-01"
],
"locationMappings": [
{
"location": "West US",
"type": "EdgeZone",
"extendedLocations": [
"LosAngeles",
"LosAngeles2"
]
}
],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "TestResourceTypeSibling",
"locations": [
"West US"
],
"apiVersions": [
"2018-01-01",
"2015-05-01"
],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
}
]
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources",
"namespace": "Microsoft.Resources",
"registrationState": "Registered",
"registrationPolicy": "RegistrationFree",
"resourceTypes": [
{
"resourceType": "subscriptions",
"locations": [
"eastus",
"eastus2",
"westus"
],
"apiVersions": [
"2016-09-01",
"2014-04-01-preview"
],
"aliases": [],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "resourceGroups",
"locations": [
"centralus",
"eastasia",
"southeastasia"
],
"apiVersions": [
"2016-09-01",
"2014-04-01-preview"
],
"aliases": [],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "subscriptions/resourceGroups",
"locations": [
"eastus",
"eastus2",
"westus"
],
"apiVersions": [
"2016-09-01",
"2014-04-01-preview"
],
"aliases": [],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "bulkDelete",
"locations": [
"centralus",
"eastasia"
],
"apiVersions": [
"2014-04-01-preview"
],
"aliases": [],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "deployments",
"locations": [],
"apiVersions": [
"2017-08-01",
"2017-06-01"
],
"aliases": [],
"capabilities": "SupportsTags"
},
{
"resourceType": "tags",
"locations": [
"DevFabric"
],
"apiVersions": [],
"aliases": [],
"capabilities": "SupportsExtension"
}
]
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP2",
"namespace": "Microsoft.TestRP2",
"registrationState": "NotRegistered",
"registrationPolicy": "RegistrationRequired",
"resourceTypes": [
{
"resourceType": "TestResourceType",
"locations": [
"West US"
],
"apiVersions": [
"2018-01-01",
"2015-05-01"
],
"locationMappings": [
{
"location": "West US",
"type": "EdgeZone",
"extendedLocations": [
"LosAngeles",
"LosAngeles2"
]
}
],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
{
"resourceType": "TestResourceTypeSibling",
"locations": [
"West US"
],
"apiVersions": [
"2018-01-01",
"2015-05-01"
],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
}
]
}
]
}
Definitions
| Name | Description |
|---|---|
| Alias |
The alias type. |
|
Alias |
The type of the paths for alias. |
|
Alias |
The attributes of the token that the alias path is referring to. |
|
Alias |
|
|
Alias |
The type of the token that the alias path is referring to. |
|
Alias |
The type of the pattern for an alias path. |
|
Alias |
The type of alias pattern |
|
Alias |
The type of the alias. |
|
Api |
|
|
Cloud |
An error response for a resource management request. |
|
Error |
The resource management error additional info. |
|
Error |
Error Response |
| Provider |
Resource provider information. |
|
Provider |
The provider authorization consent state. |
|
Provider |
The provider extended location. |
|
Provider |
List of resource providers. |
|
Provider |
Resource type managed by the resource provider. |
|
Zone |
Alias
The alias type.
| Name | Type | Description |
|---|---|---|
| defaultMetadata |
The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata |
|
| defaultPath |
string |
The default path for an alias. |
| defaultPattern |
The default pattern for an alias. |
|
| name |
string |
The alias name. |
| paths |
The paths for an alias. |
|
| type |
The type of the alias. |
AliasPath
The type of the paths for alias.
| Name | Type | Description |
|---|---|---|
| apiVersions |
string[] |
The API versions. |
| metadata |
The metadata of the alias path. If missing, fall back to the default metadata of the alias. |
|
| path |
string |
The path of an alias. |
| pattern |
The pattern for an alias path. |
AliasPathAttributes
The attributes of the token that the alias path is referring to.
| Value | Description |
|---|---|
| None |
The token that the alias path is referring to has no attributes. |
| Modifiable |
The token that the alias path is referring to is modifiable by policies with 'modify' effect. |
AliasPathMetadata
| Name | Type | Description |
|---|---|---|
| attributes |
The attributes of the token that the alias path is referring to. |
|
| type |
The type of the token that the alias path is referring to. |
AliasPathTokenType
The type of the token that the alias path is referring to.
| Value | Description |
|---|---|
| NotSpecified |
The token type is not specified. |
| Any |
The token type can be anything. |
| String |
The token type is string. |
| Object |
The token type is object. |
| Array |
The token type is array. |
| Integer |
The token type is integer. |
| Number |
The token type is number. |
| Boolean |
The token type is boolean. |
AliasPattern
The type of the pattern for an alias path.
| Name | Type | Description |
|---|---|---|
| phrase |
string |
The alias pattern phrase. |
| type |
The type of alias pattern |
|
| variable |
string |
The alias pattern variable. |
AliasPatternType
The type of alias pattern
| Value | Description |
|---|---|
| NotSpecified |
NotSpecified is not allowed. |
| Extract |
Extract is the only allowed value. |
AliasType
The type of the alias.
| Value | Description |
|---|---|
| NotSpecified |
Alias type is unknown (same as not providing alias type). |
| PlainText |
Alias value is not secret. |
| Mask |
Alias value is secret. |
ApiProfile
| Name | Type | Description |
|---|---|---|
| apiVersion |
string |
The API version. |
| profileVersion |
string |
The profile version. |
CloudError
An error response for a resource management request.
| Name | Type | Description |
|---|---|---|
| error |
Error Response |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorResponse
Error Response
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
Provider
Resource provider information.
| Name | Type | Description |
|---|---|---|
| id |
string |
The provider ID. |
| namespace |
string |
The namespace of the resource provider. |
| providerAuthorizationConsentState |
The provider authorization consent state. |
|
| registrationPolicy |
string |
The registration policy of the resource provider. |
| registrationState |
string |
The registration state of the resource provider. |
| resourceTypes |
The collection of provider resource types. |
ProviderAuthorizationConsentState
The provider authorization consent state.
| Value | Description |
|---|---|
| NotSpecified | |
| Required | |
| NotRequired | |
| Consented |
ProviderExtendedLocation
The provider extended location.
| Name | Type | Description |
|---|---|---|
| extendedLocations |
string[] |
The extended locations for the azure location. |
| location |
string |
The azure location. |
| type |
string |
The extended location type. |
ProviderListResult
List of resource providers.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The URL to use for getting the next set of results. |
| value |
Provider[] |
An array of resource providers. |
ProviderResourceType
Resource type managed by the resource provider.
| Name | Type | Description |
|---|---|---|
| aliases |
Alias[] |
The aliases that are supported by this resource type. |
| apiProfiles |
The API profiles for the resource provider. |
|
| apiVersions |
string[] |
The API version. |
| capabilities |
string |
The additional capabilities offered by this resource type. |
| defaultApiVersion |
string |
The default API version. |
| locationMappings |
The location mappings that are supported by this resource type. |
|
| locations |
string[] |
The collection of locations where this resource type can be created. |
| properties |
object |
The properties. |
| resourceType |
string |
The resource type. |
| zoneMappings |
ZoneMapping
| Name | Type | Description |
|---|---|---|
| location |
string |
The location of the zone mapping. |
| zones |
string[] |