Managed Instance Administrators - Create Or Update
Crée ou met à jour un administrateur de instance managé.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/ActiveDirectory?api-version=2021-11-01
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
administrator
|
path | True | ||
managed
|
path | True |
string |
Nom de l'instance managée. |
resource
|
path | True |
string |
Nom du groupe de ressources qui contient la ressource. Vous pouvez obtenir cette valeur à partir de l’API Azure Resource Manager ou du portail. |
subscription
|
path | True |
string |
L’ID d’abonnement d’un abonnement Azure. |
api-version
|
query | True |
string |
Version de l’API à utiliser pour la requête. |
Corps de la demande
Nom | Obligatoire | Type | Description |
---|---|---|---|
properties.administratorType | True |
Type de l’administrateur instance managé. |
|
properties.login | True |
string |
Nom de connexion de l’administrateur instance managé. |
properties.sid | True |
string |
SID (ID d’objet) de l’administrateur instance managé. |
properties.tenantId |
string |
ID de locataire de l’administrateur instance managé. |
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Mise à jour réussie de l’administrateur instance managé. |
|
201 Created |
L’administrateur de instance managé a été créé. |
|
202 Accepted |
Accepté |
|
Other Status Codes |
Réponses d’erreur : ***
|
Exemples
Create administrator of managed instance |
Update administrator of managed instance |
Create administrator of managed instance
Exemple de requête
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory?api-version=2021-11-01
{
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
}
}
Exemple de réponse
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
},
"type": "Microsoft.Sql/managedInstances/administrators"
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
},
"type": "Microsoft.Sql/managedInstances/administrators"
}
Update administrator of managed instance
Exemple de requête
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory?api-version=2021-11-01
{
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
}
}
Exemple de réponse
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
},
"type": "Microsoft.Sql/managedInstances/administrators"
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
"login": "bob@contoso.com",
"sid": "44444444-3333-2222-1111-000000000000",
"tenantId": "55555555-4444-3333-2222-111111111111"
},
"type": "Microsoft.Sql/managedInstances/administrators"
}
Définitions
Nom | Description |
---|---|
Administrator |
|
Managed |
Administrateur instance géré Azure SQL. |
Managed |
Type de l’administrateur instance managé. |
AdministratorName
Nom | Type | Description |
---|---|---|
ActiveDirectory |
string |
ManagedInstanceAdministrator
Administrateur instance géré Azure SQL.
Nom | Type | Description |
---|---|---|
id |
string |
ID de la ressource |
name |
string |
Nom de la ressource. |
properties.administratorType |
Type de l’administrateur instance managé. |
|
properties.login |
string |
Nom de connexion de l’administrateur instance managé. |
properties.sid |
string |
SID (ID d’objet) de l’administrateur instance managé. |
properties.tenantId |
string |
ID de locataire de l’administrateur instance managé. |
type |
string |
Type de ressource. |
ManagedInstanceAdministratorType
Type de l’administrateur instance managé.
Nom | Type | Description |
---|---|---|
ActiveDirectory |
string |