Managed Instance Azure AD Only Authentications - Create Or Update
Anger endast autentiseringsegenskap för Server Active Directory eller uppdaterar endast en befintlig active directory-autentiseringsegenskap för servern.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/Default?api-version=2023-08-01
URI-parametrar
| Name | I | Obligatorisk | Typ | Description |
|---|---|---|---|---|
|
authentication
|
path | True |
Namnet på server azure active directory only authentication. |
|
|
managed
|
path | True |
string |
Namnet på den hanterade instansen. |
|
resource
|
path | True |
string |
Namnet på resursgruppen som innehåller resursen. Du kan hämta det här värdet från Azure Resource Manager-API:et eller portalen. |
|
subscription
|
path | True |
string |
Det prenumerations-ID som identifierar en Azure-prenumeration. |
|
api-version
|
query | True |
string |
DEN API-version som ska användas för begäran. |
Begärandetext
| Name | Obligatorisk | Typ | Description |
|---|---|---|---|
| properties.azureADOnlyAuthentication | True |
boolean |
Endast Azure Active Directory-autentisering aktiverat. |
Svar
| Name | Typ | Description |
|---|---|---|
| 200 OK |
En autentiseringsegenskap för Endast Azure Active Directory har uppdaterats. |
|
| 201 Created |
Azure Active Directory har endast uppdaterat autentiseringsegenskapen. |
|
| 202 Accepted |
Accepterad Sidhuvuden Location: string |
|
| Other Status Codes |
Felsvar: ***
|
Exempel
Creates or updates Azure Active Directory only authentication object.
Exempelbegäran
PUT 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
{
"properties": {
"azureADOnlyAuthentication": false
}
}
Exempelsvar
{
"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": false
}
}
{
"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": false
}
}
Definitioner
| Name | Description |
|---|---|
|
Authentication |
Namnet på server azure active directory only authentication. |
|
Error |
Ytterligare information om resurshanteringsfelet. |
|
Error |
Felinformationen. |
|
Error |
Felsvar |
|
Managed |
Endast Azure Active Directory-autentisering. |
AuthenticationName
Namnet på server azure active directory only authentication.
| Värde | Description |
|---|---|
| Default |
ErrorAdditionalInfo
Ytterligare information om resurshanteringsfelet.
| Name | Typ | Description |
|---|---|---|
| info |
object |
Ytterligare information. |
| type |
string |
Ytterligare informationstyp. |
ErrorDetail
Felinformationen.
| Name | Typ | Description |
|---|---|---|
| additionalInfo |
Ytterligare information om felet. |
|
| code |
string |
Felkoden. |
| details |
Felinformationen. |
|
| message |
string |
Felmeddelandet. |
| target |
string |
Felmålet. |
ErrorResponse
Felsvar
| Name | Typ | Description |
|---|---|---|
| error |
Felobjektet. |
ManagedInstanceAzureADOnlyAuthentication
Endast Azure Active Directory-autentisering.
| Name | Typ | Description |
|---|---|---|
| id |
string |
Resurs-ID. |
| name |
string |
Resursnamn. |
| properties.azureADOnlyAuthentication |
boolean |
Endast Azure Active Directory-autentisering aktiverat. |
| type |
string |
Resurstyp. |