Managed Instance Administrators - Create Or Update
Erstellt oder aktualisiert einen verwalteten instance-Administrator.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/ActiveDirectory?api-version=2021-11-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
administrator
|
path | True | ||
managed
|
path | True |
string |
Der Name der verwalteten Instanz. |
resource
|
path | True |
string |
Der Name der Ressourcengruppe, die die Ressource enthält. Dieser Wert kann über die Azure-Ressourcen-Manager-API oder das Portal abgerufen werden. |
subscription
|
path | True |
string |
Abonnement-ID für ein Azure-Abonnement. |
api-version
|
query | True |
string |
API-Version, die für die Anforderung verwendet werden soll. |
Anforderungstext
Name | Erforderlich | Typ | Beschreibung |
---|---|---|---|
properties.administratorType | True |
Typ des verwalteten instance-Administrators. |
|
properties.login | True |
string |
Anmeldename des verwalteten instance Administrators. |
properties.sid | True |
string |
SID (Objekt-ID) des verwalteten instance Administrators. |
properties.tenantId |
string |
Mandanten-ID des verwalteten instance Administrators. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
Der verwaltete instance-Administrator wurde erfolgreich aktualisiert. |
|
201 Created |
Der verwaltete instance-Administrator wurde erfolgreich erstellt. |
|
202 Accepted |
Akzeptiert |
|
Other Status Codes |
Fehlerantworten: ***
|
Beispiele
Create administrator of managed instance |
Update administrator of managed instance |
Create administrator of managed instance
Beispielanforderung
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"
}
}
Beispiel für eine Antwort
{
"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
Beispielanforderung
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"
}
}
Beispiel für eine Antwort
{
"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"
}
Definitionen
Name | Beschreibung |
---|---|
Administrator |
|
Managed |
Ein Azure SQL verwalteter instance-Administrator. |
Managed |
Typ des verwalteten instance-Administrators. |
AdministratorName
Name | Typ | Beschreibung |
---|---|---|
ActiveDirectory |
string |
ManagedInstanceAdministrator
Ein Azure SQL verwalteter instance-Administrator.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Ressourcen-ID |
name |
string |
Name der Ressource. |
properties.administratorType |
Typ des verwalteten instance-Administrators. |
|
properties.login |
string |
Anmeldename des verwalteten instance Administrators. |
properties.sid |
string |
SID (Objekt-ID) des verwalteten instance Administrators. |
properties.tenantId |
string |
Mandanten-ID des verwalteten instance Administrators. |
type |
string |
Der Ressourcentyp. |
ManagedInstanceAdministratorType
Typ des verwalteten instance-Administrators.
Name | Typ | Beschreibung |
---|---|---|
ActiveDirectory |
string |