Storage Accounts - Get Customer Initiated Migration

Belirtilen depolama hesabı için devam eden geçişin durumunu alır.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/default?api-version=2023-01-01

URI Parametreleri

Name İçinde Gerekli Tür Description
accountName
path True

string

Belirtilen kaynak grubu içindeki depolama hesabının adı. Depolama hesabı adlarının uzunluğu 3 ile 24 karakter arasında olmalı ve yalnızca sayı ve küçük harf kullanmalıdır.

Regex pattern: ^[a-z0-9]+$

migrationName
path True

MigrationName

Depolama Hesabı Geçişi'nin adı. Her zaman 'varsayılan' olmalıdır

Regex pattern: ^[a-z][a-z0-9]*$

resourceGroupName
path True

string

Kullanıcının aboneliğindeki kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

StorageAccountMigration

Tamam -- Devam eden veya tamamlanan geçişin ayrıntılarını başarıyla alın.

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

StorageAccountGetMigrationFailed
StorageAccountGetMigrationInProgress

StorageAccountGetMigrationFailed

Sample Request

GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default?api-version=2023-01-01

Sample Response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default",
  "name": "default",
  "type": "Microsoft.Storage/storageAccounts/accountMigrations",
  "properties": {
    "targetSkuName": "Standard_ZRS",
    "migrationStatus": "Failed",
    "migrationFailedReason": "ZrsNotSupportedForAccountWithArchiveData",
    "migrationFailedDetailedReason": "ZRS is not supported for accounts with archive data."
  }
}

StorageAccountGetMigrationInProgress

Sample Request

GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default?api-version=2023-01-01

Sample Response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default",
  "name": "default",
  "type": "Microsoft.Storage/storageAccounts/accountMigrations",
  "properties": {
    "targetSkuName": "Standard_ZRS",
    "migrationStatus": "InProgress"
  }
}

Tanımlar

Name Description
ErrorResponse

Depolama kaynak sağlayıcısından bir hata yanıtı.

ErrorResponseBody

Hata yanıtı gövde sözleşmesi.

MigrationName

Depolama Hesabı Geçişi'nin adı. Her zaman 'varsayılan' olmalıdır

migrationStatus

Geçişin geçerli durumu

SkuName

SKU adı. Hesap oluşturmak için gereklidir; isteğe bağlı olarak güncelleştirin. Eski sürümlerde SKU adının accountType olarak adlandırıldığını unutmayın.

StorageAccountMigration

Geçerli SKU'su veya bölgesini güncelleştirmek için devam eden veya sıraya alınan depolama hesabı geçişiyle ilişkili parametreler veya durum.

ErrorResponse

Depolama kaynak sağlayıcısından bir hata yanıtı.

Name Tür Description
error

ErrorResponseBody

Azure Depolama Kaynak Sağlayıcısı hata yanıtı gövdesi.

ErrorResponseBody

Hata yanıtı gövde sözleşmesi.

Name Tür Description
code

string

Hatanın tanımlayıcısı. Kodlar sabittir ve program aracılığıyla kullanılması amaçlanmıştır.

message

string

Hatayı açıklayan ve kullanıcı arabiriminde görüntülenmeye uygun olması amaçlanan bir ileti.

MigrationName

Depolama Hesabı Geçişi'nin adı. Her zaman 'varsayılan' olmalıdır

Name Tür Description
default

string

migrationStatus

Geçişin geçerli durumu

Name Tür Description
Complete

string

Failed

string

InProgress

string

Invalid

string

SubmittedForConversion

string

SkuName

SKU adı. Hesap oluşturmak için gereklidir; isteğe bağlı olarak güncelleştirin. Eski sürümlerde SKU adının accountType olarak adlandırıldığını unutmayın.

Name Tür Description
Premium_LRS

string

Premium_ZRS

string

Standard_GRS

string

Standard_GZRS

string

Standard_LRS

string

Standard_RAGRS

string

Standard_RAGZRS

string

Standard_ZRS

string

StorageAccountMigration

Geçerli SKU'su veya bölgesini güncelleştirmek için devam eden veya sıraya alınan depolama hesabı geçişiyle ilişkili parametreler veya durum.

Name Tür Description
id

string

Geçiş Kaynak Kimliği

name

string

müşteri tarafından başlatılan geçiş için geçerli değer 'varsayılan'

properties.migrationFailedDetailedReason

string

Geçiş hatasının nedeni

properties.migrationFailedReason

string

Geçiş hatası için hata kodu

properties.migrationStatus

migrationStatus

Geçişin geçerli durumu

properties.targetSkuName

SkuName

Hesap için hedef sku adı

type

string

ARM sözleşmesinde 'accountMigrations' olan SrpAccountMigrationType