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=2021-11-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
authentication
|
path | True |
Namnet på servern 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 |
Prenumerations-ID:t 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 azure Active Directory-egenskap för endast autentisering har uppdaterats. |
|
201 Created |
Azure Active Directory-autentiseringsegenskapen har uppdaterats. |
|
202 Accepted |
Har godkänts |
|
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=2021-11-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å servern azure active directory only authentication. |
Managed |
Endast Azure Active Directory-autentisering. |
AuthenticationName
Namnet på servern azure active directory only authentication.
Name | Typ | Description |
---|---|---|
Default |
string |
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. |