Megosztás a következőn keresztül:


Students - Create Or Update

Hozzon létre és vegyen fel egy új tanulót a megadott tesztkörnyezetbe, vagy frissítse egy meglévő tanuló adatait egy tesztkörnyezetben. Vegye figyelembe, hogy a tanulónak érvényes bérlővel kell rendelkeznie ahhoz, hogy elfogadja a labort, miután hozzáadta őket a laborhoz.

PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}?api-version=2021-12-01-preview

URI-paraméterek

Name In Kötelező Típus Description
billingAccountName
path True

string

A számlázási fiókot egyedileg azonosító azonosító.

billingProfileName
path True

string

A számlázási profilt egyedileg azonosító azonosító.

invoiceSectionName
path True

string

A számlaszakaszt egyedileg azonosító azonosító.

studentAlias
path True

string

Tanulói alias.

api-version
query True

string

Az ügyfélkéréshez használandó API verziója. A jelenlegi verzió: 2021-12-01-preview

Kérelem törzse

Name Kötelező Típus Description
properties.budget True

Amount

Hallgatói költségvetés

properties.email True

string

Tanulói e-mail

properties.expirationDate True

string (date-time)

Az a dátum, amikor a tanuló lejár a laborból.

properties.firstName True

string

Keresztnév

properties.lastName True

string

Vezetéknév

properties.role True

Student role

Tanulói szerepkör

properties.subscriptionAlias

string

Előfizetés aliasa

properties.subscriptionInviteLastSentDate

string (date-time)

előfizetés-meghívás legutóbbi elküldött dátuma

Válaszok

Name Típus Description
200 OK

StudentDetails

A diákok adatainak frissítése sikeresen megtörtént.

201 Created

StudentDetails

Sikeresen létrehozta a tanulói adatokat.

Other Status Codes

ErrorResponseBody

Azt a hibát írja le, ha a művelet nem sikeres.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow.

Típus: oauth2
Folyamat: implicit
Engedélyezési URL: https://login.microsoftonline.com/common/oauth2/authorize

Hatókörök

Name Description
user_impersonation a felhasználói fiók megszemélyesítése

Példák

Student

Mintakérelem

PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}?api-version=2021-12-01-preview

{
  "properties": {
    "firstName": "test",
    "lastName": "user",
    "email": "test@contoso.com",
    "role": "Student",
    "budget": {
      "currency": "USD",
      "value": 100
    },
    "expirationDate": "2021-11-09T22:13:21.795Z"
  }
}

Mintaválasz

{
  "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
  "name": "{studentAlias}",
  "type": "Microsoft.Education/Students",
  "properties": {
    "firstName": "test",
    "lastName": "user",
    "email": "test@contoso.com",
    "role": "Student",
    "budget": {
      "currency": "USD",
      "value": 100
    },
    "subscriptionId": "000000000-0000-0000-0000-00000000000000",
    "expirationDate": "2022-11-09T21:43:54.161Z",
    "status": "Active",
    "effectiveDate": "2021-11-09T21:43:54.161Z"
  }
}
{
  "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
  "name": "{studentAlias}",
  "type": "Microsoft.Education/Students",
  "properties": {
    "firstName": "test",
    "lastName": "user",
    "email": "test@contoso.com",
    "role": "Student",
    "budget": {
      "currency": "USD",
      "value": 100
    },
    "subscriptionId": "000000000-0000-0000-0000-00000000000000",
    "expirationDate": "2022-11-09T21:43:54.161Z",
    "status": "Active",
    "effectiveDate": "2021-11-09T21:43:54.161Z"
  }
}

Definíciók

Name Description
Amount

Az összeg.

createdByType

Az erőforrást létrehozó identitás típusa.

ErrorResponse

A hibaválasz formátumát ismerteti.

ErrorResponseBody

A hibaválasz azt jelzi, hogy a szolgáltatás nem tudja feldolgozni a bejövő kérést. Ennek okát a hibaüzenet adja meg.

Student Lab Status

Tanulói tesztkörnyezet állapota

Student role

Tanulói szerepkör

StudentDetails

Tanulói adatok.

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Amount

Az összeg.

Name Típus Description
currency

string

Az értékhez használt pénznem típusa.

value

number

Összegérték.

createdByType

Az erőforrást létrehozó identitás típusa.

Érték Description
Application
Key
ManagedIdentity
User

ErrorResponse

A hibaválasz formátumát ismerteti.

Name Típus Description
code

string

Hibakód

message

string

A művelet sikertelen voltát jelző hibaüzenet.

ErrorResponseBody

A hibaválasz azt jelzi, hogy a szolgáltatás nem tudja feldolgozni a bejövő kérést. Ennek okát a hibaüzenet adja meg.

Name Típus Description
error

ErrorResponse

A hiba részletei.

Student Lab Status

Tanulói tesztkörnyezet állapota

Érték Description
Active
Deleted
Disabled
Expired
Pending

Student role

Tanulói szerepkör

Érték Description
Admin
Student

StudentDetails

Tanulói adatok.

Name Típus Description
id

string

Az erőforrás teljes erőforrás-azonosítója. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Az erőforrás neve

properties.budget

Amount

Hallgatói költségvetés

properties.effectiveDate

string (date-time)

A tanuló felvétele a laborba

properties.email

string

Tanulói e-mail

properties.expirationDate

string (date-time)

Az a dátum, amikor a tanuló lejár a laborból.

properties.firstName

string

Keresztnév

properties.lastName

string

Vezetéknév

properties.role

Student role

Tanulói szerepkör

properties.status

Student Lab Status

Tanulói tesztkörnyezet állapota

properties.subscriptionAlias

string

Előfizetés aliasa

properties.subscriptionId

string

Előfizetés azonosítója

properties.subscriptionInviteLastSentDate

string (date-time)

előfizetés-meghívás legutóbbi elküldött dátuma

systemData

systemData

A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok.

type

string

Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Name Típus Description
createdAt

string (date-time)

Az erőforrás-létrehozás időbélyege (UTC).

createdBy

string

Az erőforrást létrehozó identitás.

createdByType

createdByType

Az erőforrást létrehozó identitás típusa.

lastModifiedAt

string (date-time)

Az erőforrás utolsó módosításának időbélyege (UTC)

lastModifiedBy

string

Az erőforrást legutóbb módosító identitás.

lastModifiedByType

createdByType

Az erőforrást legutóbb módosító identitás típusa.