Providers - Get At Tenant Scope

取得租用戶層級的指定資源提供者。

GET https://management.azure.com/providers/{resourceProviderNamespace}?api-version=2021-04-01
GET https://management.azure.com/providers/{resourceProviderNamespace}?$expand={$expand}&api-version=2021-04-01

URI 參數

名稱 位於 必要 類型 Description
resourceProviderNamespace
path True

string

資源提供者的命名空間。

api-version
query True

string

用於此作業的 API 版本。

$expand
query

string

$expand查詢參數。 例如,若要在回應中包含屬性別名,請使用 $expand=resourceTypes/aliases。

回應

名稱 類型 Description
200 OK

Provider

確定 - 傳回資源提供者的相關信息。

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Get a resource provider at tenant scope

Sample Request

GET https://management.azure.com/providers/Microsoft.Storage?$expand=resourceTypes/aliases&api-version=2021-04-01

Sample Response

{
  "namespace": "Microsoft.Storage",
  "resourceTypes": [
    {
      "resourceType": "storageAccounts",
      "locations": [
        "East US",
        "East US 2",
        "East US 2 (Stage)",
        "West US",
        "West Europe",
        "East Asia",
        "Southeast Asia",
        "Japan East",
        "Japan West",
        "North Central US",
        "South Central US",
        "Central US",
        "North Europe",
        "Brazil South",
        "Australia East",
        "Australia Southeast",
        "South India",
        "Central India",
        "West India",
        "Canada East",
        "Canada Central",
        "West US 2",
        "West Central US",
        "UK South",
        "UK West",
        "Korea Central",
        "Korea South",
        "East US 2 EUAP",
        "Central US EUAP",
        "France Central",
        "France South",
        "Australia Central",
        "Australia Central 2",
        "South Africa West",
        "South Africa North",
        "UAE Central",
        "UAE North",
        "Switzerland North",
        "Switzerland West",
        "Germany West Central",
        "Germany North",
        "Norway East",
        "Norway West",
        "South Central US STG",
        "Brazil Southeast"
      ],
      "apiVersions": [
        "2019-06-01",
        "2019-04-01",
        "2018-11-01",
        "2018-07-01",
        "2018-03-01-preview",
        "2018-02-01",
        "2017-10-01",
        "2017-06-01",
        "2016-12-01",
        "2016-05-01",
        "2016-01-01",
        "2015-06-15",
        "2015-05-01-preview"
      ],
      "defaultApiVersion": "2019-06-01",
      "apiProfiles": [
        {
          "profileVersion": "2019-03-01-hybrid",
          "apiVersion": "2017-10-01"
        },
        {
          "profileVersion": "2017-03-09-profile",
          "apiVersion": "2016-01-01"
        },
        {
          "profileVersion": "2018-03-01-hybrid",
          "apiVersion": "2016-01-01"
        },
        {
          "profileVersion": "2018-06-01-profile",
          "apiVersion": "2017-10-01"
        }
      ],
      "aliases": [
        {
          "name": "Microsoft.Storage/storageAccounts/accountType",
          "paths": [
            {
              "path": "properties.accountType",
              "apiVersions": [
                "2015-06-15",
                "2015-05-01-preview"
              ]
            },
            {
              "path": "sku.name",
              "apiVersions": [
                "2018-11-01",
                "2018-11-09",
                "2018-07-01",
                "2018-03-01-Preview",
                "2018-02-01",
                "2017-10-01",
                "2017-06-01",
                "2016-12-01",
                "2016-05-01",
                "2016-01-01"
              ]
            }
          ],
          "defaultPath": "sku.name"
        },
        {
          "name": "Microsoft.Storage/storageAccounts/sku.name",
          "paths": [
            {
              "path": "properties.accountType",
              "apiVersions": [
                "2015-06-15",
                "2015-05-01-preview"
              ]
            },
            {
              "path": "sku.name",
              "apiVersions": [
                "2018-11-01",
                "2018-11-09",
                "2018-07-01",
                "2018-03-01-Preview",
                "2018-02-01",
                "2017-10-01",
                "2017-06-01",
                "2016-12-01",
                "2016-05-01",
                "2016-01-01"
              ]
            }
          ],
          "defaultPath": "sku.name"
        },
        {
          "name": "Microsoft.Storage/storageAccounts/accessTier",
          "paths": [
            {
              "path": "properties.accessTier",
              "apiVersions": [
                "2018-11-01",
                "2018-11-09",
                "2018-07-01",
                "2018-03-01-Preview",
                "2018-02-01",
                "2017-10-01",
                "2017-06-01",
                "2016-12-01",
                "2016-05-01",
                "2016-01-01",
                "2015-06-15",
                "2015-05-01-preview"
              ]
            }
          ],
          "defaultPath": "properties.accessTier"
        },
        {
          "name": "Microsoft.Storage/storageAccounts/enableBlobEncryption",
          "paths": [
            {
              "path": "properties.encryption.services.blob.enabled",
              "apiVersions": [
                "2018-11-01",
                "2018-11-09",
                "2018-07-01",
                "2018-03-01-Preview",
                "2018-02-01",
                "2017-10-01",
                "2017-06-01",
                "2016-12-01",
                "2016-05-01",
                "2016-01-01",
                "2015-06-15",
                "2015-05-01-preview"
              ]
            }
          ],
          "defaultPath": "properties.encryption.services.blob.enabled"
        },
        {
          "name": "Microsoft.Storage/storageAccounts/enableFileEncryption",
          "paths": [
            {
              "path": "properties.encryption.services.file.enabled",
              "apiVersions": [
                "2018-11-01",
                "2018-11-09",
                "2018-07-01",
                "2018-03-01-Preview",
                "2018-02-01",
                "2017-10-01",
                "2017-06-01",
                "2016-12-01",
                "2016-05-01",
                "2016-01-01",
                "2015-06-15",
                "2015-05-01-preview"
              ]
            }
          ],
          "defaultPath": "properties.encryption.services.file.enabled"
        },
        {
          "name": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
          "paths": [
            {
              "path": "properties.supportsHttpsTrafficOnly",
              "apiVersions": [
                "2018-11-09",
                "2018-03-01-Preview",
                "2016-05-01",
                "2016-01-01",
                "2015-06-15",
                "2015-05-01-preview"
              ],
              "metadata": {
                "type": "NotSpecified",
                "attributes": "None"
              }
            }
          ],
          "defaultPath": "properties.supportsHttpsTrafficOnly",
          "defaultMetadata": {
            "type": "Boolean",
            "attributes": "Modifiable"
          }
        }
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    }
  ]
}

定義

名稱 Description
Alias

別名類型。

AliasPath

別名的路徑類型。

AliasPathAttributes

別名路徑所參考之令牌的屬性。

AliasPathMetadata
AliasPathTokenType

別名路徑所參考的令牌類型。

AliasPattern

別名路徑的模式類型。

AliasPatternType

別名模式的類型

AliasType

別名類型。

ApiProfile
CloudError

資源管理要求的錯誤回應。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorResponse

錯誤回應

Provider

資源提供者資訊。

ProviderAuthorizationConsentState

提供者授權同意狀態。

ProviderExtendedLocation

提供者擴充位置。

ProviderResourceType

資源提供者所管理的資源類型。

ZoneMapping

Alias

別名類型。

名稱 類型 Description
defaultMetadata

AliasPathMetadata

默認別名路徑元數據。 適用於預設路徑,以及沒有元數據的任何別名路徑

defaultPath

string

別名的預設路徑。

defaultPattern

AliasPattern

別名的預設模式。

name

string

別名名稱。

paths

AliasPath[]

別名的路徑。

type

AliasType

別名類型。

AliasPath

別名的路徑類型。

名稱 類型 Description
apiVersions

string[]

API 版本。

metadata

AliasPathMetadata

別名路徑的元數據。 如果遺失,請回復為別名的預設元數據。

path

string

別名的路徑。

pattern

AliasPattern

別名路徑的模式。

AliasPathAttributes

別名路徑所參考之令牌的屬性。

名稱 類型 Description
Modifiable

string

別名路徑所參考的令牌可由具有 『modify』 效果的原則修改。

None

string

別名路徑所參考的令牌沒有屬性。

AliasPathMetadata

名稱 類型 Description
attributes

AliasPathAttributes

別名路徑所參考之令牌的屬性。

type

AliasPathTokenType

別名路徑所參考的令牌類型。

AliasPathTokenType

別名路徑所參考的令牌類型。

名稱 類型 Description
Any

string

Token 類型可以是任何專案。

Array

string

Token 類型為array。

Boolean

string

Token 類型為布爾值。

Integer

string

Token 類型為整數。

NotSpecified

string

未指定 Token 類型。

Number

string

Token 類型為 number。

Object

string

Token 類型為物件。

String

string

Token 類型為字串。

AliasPattern

別名路徑的模式類型。

名稱 類型 Description
phrase

string

別名模式片語。

type

AliasPatternType

別名模式的類型

variable

string

別名模式變數。

AliasPatternType

別名模式的類型

名稱 類型 Description
Extract

string

Extract 是唯一允許的值。

NotSpecified

string

不允許 NotSpecified。

AliasType

別名類型。

名稱 類型 Description
Mask

string

別名值為秘密。

NotSpecified

string

別名類型未知, (與不提供別名類型) 相同。

PlainText

string

別名值不是秘密。

ApiProfile

名稱 類型 Description
apiVersion

string

API 版本。

profileVersion

string

配置檔版本。

CloudError

資源管理要求的錯誤回應。

名稱 類型 Description
error

ErrorResponse

錯誤回應
所有 Azure Resource Manager API 的常見錯誤回應,以傳回失敗作業的錯誤詳細數據。 (這也會遵循 OData 錯誤回應格式。)

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorResponse

錯誤回應

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorResponse[]

錯誤詳細資料。

message

string

錯誤訊息。

target

string

錯誤目標。

Provider

資源提供者資訊。

名稱 類型 Description
id

string

提供者 ID。

namespace

string

資源提供者的命名空間。

providerAuthorizationConsentState

ProviderAuthorizationConsentState

提供者授權同意狀態。

registrationPolicy

string

資源提供者的註冊原則。

registrationState

string

資源提供者的註冊狀態。

resourceTypes

ProviderResourceType[]

提供者資源類型的集合。

ProviderAuthorizationConsentState

提供者授權同意狀態。

名稱 類型 Description
Consented

string

NotRequired

string

NotSpecified

string

Required

string

ProviderExtendedLocation

提供者擴充位置。

名稱 類型 Description
extendedLocations

string[]

Azure 位置的擴充位置。

location

string

Azure 位置。

type

string

擴充位置類型。

ProviderResourceType

資源提供者所管理的資源類型。

名稱 類型 Description
aliases

Alias[]

此資源類型支援的別名。

apiProfiles

ApiProfile[]

資源提供者的 API 設定檔。

apiVersions

string[]

API 版本。

capabilities

string

此資源類型所提供的其他功能。

defaultApiVersion

string

預設 API 版本。

locationMappings

ProviderExtendedLocation[]

此資源類型支援的位置對應。

locations

string[]

可以建立此資源類型的位置集合。

properties

object

屬性。

resourceType

string

資源類型。

zoneMappings

ZoneMapping[]

ZoneMapping

名稱 類型 Description
location

string

區域對應的位置。

zones

string[]