共用方式為


Managed Instance Azure AD Only Authentications - Get

取得特定的 Azure Active Directory 僅驗證屬性。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/Default?api-version=2023-08-01

URI 參數

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

AuthenticationName

僅限伺服器 Azure Active Directory 驗證的名稱。

managedInstanceName
path True

string

受控實例的名稱。

resourceGroupName
path True

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。

subscriptionId
path True

string

識別 Azure 訂用帳戶的訂用帳戶標識碼。

api-version
query True

string

要用於要求的 API 版本。

回應

名稱 類型 Description
200 OK

ManagedInstanceAzureADOnlyAuthentication

已成功擷取指定的 Azure Active Directory 驗證屬性。

Other Status Codes

ErrorResponse

錯誤回應: ***

  • 400 InvalidServerAzureADOnlyAuthenticationParameter - 使用者嘗試將 AzureADOnlyAuthentication 參數設定為不允許的 false,請改用 azureADOnlyAuthentications API。

  • 400 InvalidManagedServerAADOnlyAuthTypePropertyName - 受控伺服器 Azure Active Directory 僅限驗證類型應該是預設值

  • 400 InvalidManagedServerAADOnlyAuthNoAADAdminPropertyName - 未設定 AAD 管理員,必須先設定 AAD 管理員,才能啟用/停用僅限 AAD 驗證。

  • 400 SubnetMissingRequiredDelegation - SQL 受控實例不會委派選取的子網。

  • 404 ManagedInstanceNotInSubscriptionResourceGroup - 指定的受控實例不存在於指定的資源群組和訂用帳戶中。

  • 404 SubscriptionNotFound - 找不到要求的訂用帳戶。

  • 404 ServerNotInSubscription - 指定的伺服器不存在於指定的訂用帳戶上。

  • 404 ResourceNotFound - 找不到要求的資源。

  • 429 SubscriptionTooManyCreateUpdateRequests - 超出可用資源可處理之最大要求的要求。

  • 429 SubscriptionTooManyRequests - 超出可用資源可處理之最大要求的要求。

  • 503 TooManyRequests - 超出可用資源可處理之最大要求的要求。

  • 504 RequestTimeout - 服務要求超過允許的逾時。

範例

Gets a Azure Active Directory only authentication property.

範例要求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/azureADOnlyAuthentications/Default?api-version=2023-08-01

範例回覆

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/azureADOnlyAuthentications/providers/Microsoft.Sql/managedInstances/managedInstance/azureadonlyauthentications/default",
  "name": "Default",
  "type": "Microsoft.Sql/managedInstances/azureadonlyauthentications",
  "properties": {
    "azureADOnlyAuthentication": true
  }
}

定義

名稱 Description
AuthenticationName

僅限伺服器 Azure Active Directory 驗證的名稱。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

ManagedInstanceAzureADOnlyAuthentication

僅限 Azure Active Directory 驗證。

AuthenticationName

僅限伺服器 Azure Active Directory 驗證的名稱。

Description
Default

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

ManagedInstanceAzureADOnlyAuthentication

僅限 Azure Active Directory 驗證。

名稱 類型 Description
id

string

資源標識碼。

name

string

資源名稱。

properties.azureADOnlyAuthentication

boolean

僅啟用 Azure Active Directory 驗證。

type

string

資源類型。