Files - Read Write
Dosya içeriğini okumak ve yazmak için bilgi isteyin.
Bu yöntem, dosya içeriğini okumak ve yazmak için bilgi istemek için kullanılır.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite?api-version=2022-03-30-preview
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
file
|
path | True |
string |
Dosyanın Adı |
|
group
|
path | True |
string |
Kaynak grubunun adı |
|
project
|
path | True |
string |
Projenin adı |
|
service
|
path | True |
string |
Hizmetin adı |
|
subscription
|
path | True |
string |
Azure aboneliğini tanımlayan abonelik kimliği. |
|
api-version
|
query | True |
string |
API'nin sürümü |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Dosya içeriğine erişmeyi açıklayan nesne |
|
| Other Status Codes |
Hata |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Files_List
Örnek isteği
POST https://management.azure.com/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8/readwrite?api-version=2022-03-30-preview
Örnek yanıt
{
"uri": "https://dmssdkservicestorage.blob.core.windows.net/dmssdkservicecontainer/_rpfiles/dmssdkproject/pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p?sv=2016-05-31&sr=b&sig=sassignature&se=2018-10-05T18%3A21%3A42Z&sp=racwd",
"headers": {
"x-ms-blob-type": "BlockBlob"
}
}
Tanımlar
| Name | Description |
|---|---|
|
Api |
Hata bilgileri. |
|
created |
|
|
File |
Dosya depolama bilgileri. |
|
OData |
OData biçiminde hata bilgileri. |
|
System |
ApiError
Hata bilgileri.
| Name | Tür | Description |
|---|---|---|
| error |
OData biçiminde hata bilgileri |
|
| systemData |
Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler. |
createdByType
| Değer | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
FileStorageInfo
Dosya depolama bilgileri.
| Name | Tür | Description |
|---|---|---|
| headers |
object |
|
| uri |
string |
Dosya içeriğine erişmek için kullanılabilecek bir URI. |
ODataError
OData biçiminde hata bilgileri.
| Name | Tür | Description |
|---|---|---|
| code |
string |
'InvalidRequest' veya 'InternalServerError' gibi hatanın makine tarafından okunabilir açıklaması |
| details |
Bu hataya neden olan iç hatalar |
|
| message |
string |
Hatanın insan tarafından okunabilen açıklaması |
SystemData
| Name | Tür | Description |
|---|---|---|
| createdAt |
string (date-time) |
|
| createdBy |
string |
|
| createdByType | ||
| lastModifiedAt |
string (date-time) |
|
| lastModifiedBy |
string |
|
| lastModifiedByType |