Migration - Put
Migreert van bron naar doel factureringsbereik
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default?api-version=2024-08-01-preview
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
billing
|
path | True |
string pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ |
De id waarmee een factureringsrekening uniek wordt geïdentificeerd. |
api-version
|
query | True |
string |
De versie van de API die moet worden gebruikt met de clientaanvraag. De huidige versie is 2024-04-01. |
Aanvraagbody
Name | Type | Description |
---|---|---|
destinationBillingScope |
string |
Doelfactureringsbereik dat moet worden toegewezen. |
locale |
string |
Landinstelling voor meldingen. Optionele eigenschap, alleen gebruikt voor het migreren van inschrijving |
products |
Products[] |
Productdetails. |
status |
Migratiestatus |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Migratiedetails. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Voorbeelden
Create |
Migration Initiation Details |
CreateOrUpdateMigrationMapping
Voorbeeldaanvraag
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/57151837/migrations/default?api-version=2024-08-01-preview
{
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Draft"
}
Voorbeeldrespons
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
"name": "default",
"type": "Microsoft.Billing/billingAccounts/migrations/default",
"properties": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Draft",
"transferId": null,
"products": []
}
}
Migration Initiation Details
Voorbeeldaanvraag
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/57151837/migrations/default?api-version=2024-08-01-preview
{
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "InProgress",
"locale": "en-us"
}
Voorbeeldrespons
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
"name": "default",
"type": "Microsoft.Billing/billingAccounts/migrations/default",
"properties": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Completed",
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d",
"products": [
{
"productType": "AzureSubscription",
"productId": "43566850-63bf-40d2-a2cb-763eb62d7f3b",
"name": "OpenAI Staging",
"skuDescription": "MS-AZR-0003P",
"status": "Completed"
}
]
}
}
Definities
Name | Description |
---|---|
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Migration |
Migratiedetails. |
Migration |
Migratiedetails. |
Migration |
Migratiestatus |
Products |
Productdetails. |
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
Transfer |
status van productoverdracht |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Waarde | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
Migration
Migratiedetails.
Name | Type | Description |
---|---|---|
destinationBillingScope |
string |
Doelfactureringsbereik dat moet worden toegewezen. |
locale |
string |
Landinstelling voor meldingen. Optionele eigenschap, alleen gebruikt voor het migreren van inschrijving |
products |
Products[] |
Productdetails. |
status |
Migratiestatus |
|
transferId |
string |
Overdrachts-id |
MigrationDetails
Migratiedetails.
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}" |
name |
string |
De naam van de resource |
properties |
Migratiedetails. |
|
systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
tags |
object |
Woordenlijst met metagegevens die zijn gekoppeld aan de resource. Deze kan niet worden ingevuld voor alle resourcetypen. Maximale lengte van sleutel/waarde die wordt ondersteund door 256 tekens. Sleutels/waarde mogen geen lege waarde of null zijn. Sleutels kunnen geen <> % & \ bevatten? / |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
MigrationStatus
Migratiestatus
Waarde | Description |
---|---|
Completed | |
CompletedWithErrors | |
Draft | |
Failed | |
InProgress |
Products
Productdetails.
Name | Type | Description |
---|---|---|
name |
string |
productnaam |
productId |
string |
product-id |
productType |
string |
producttype |
skuDescription |
string |
beschrijving van product-sKU |
status |
status van productoverdracht |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |
TransferProductStatus
status van productoverdracht
Waarde | Description |
---|---|
Completed | |
Failed | |
InProgress | |
NotStarted |