Aracılığıyla paylaş


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
fileName
path True

string

Dosyanın Adı

groupName
path True

string

Kaynak grubunun adı

projectName
path True

string

Projenin adı

serviceName
path True

string

Hizmetin adı

subscriptionId
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

FileStorageInfo

Dosya içeriğine erişmeyi açıklayan nesne

Other Status Codes

ApiError

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
ApiError

Hata bilgileri.

createdByType
FileStorageInfo

Dosya depolama bilgileri.

ODataError

OData biçiminde hata bilgileri.

SystemData

ApiError

Hata bilgileri.

Name Tür Description
error

ODataError

OData biçiminde hata bilgileri

systemData

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

ODataError[]

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

createdByType

lastModifiedAt

string (date-time)

lastModifiedBy

string

lastModifiedByType

createdByType