Providers - Register At Management Group Scope

向資源提供者註冊管理群組。 使用此作業向可在管理群組範圍部署的資源類型註冊資源提供者。 它不會遞歸註冊管理群組內的訂用帳戶。 相反地,您必須個別註冊訂用帳戶。

POST https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register?api-version=2021-04-01

URI 參數

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

string

管理群組標識碼。

resourceProviderNamespace
path True

string

要註冊之資源提供者的命名空間。

api-version
query True

string

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

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

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 模擬您的用戶帳戶

定義

名稱 Description
CloudError

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

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorResponse

錯誤回應

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

錯誤目標。