다음을 통해 공유


Files - Read Write

파일 콘텐츠를 읽고 쓰기 위한 정보를 요청합니다.
이 메서드는 파일 콘텐츠를 읽고 쓰기 위한 정보를 요청하는 데 사용됩니다.

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 매개 변수

Name In(다음 안에) 필수 형식 Description
fileName
path True

string

파일의 이름

groupName
path True

string

리소스 그룹의 이름

projectName
path True

string

프로젝트 이름

serviceName
path True

string

서비스 이름

subscriptionId
path True

string

Azure 구독을 식별하는 구독 ID입니다.

api-version
query True

string

API 버전

응답

Name 형식 Description
200 OK

FileStorageInfo

파일 콘텐츠에 액세스하는 방법을 설명하는 개체

Other Status Codes

ApiError

오류

보안

azure_auth

Azure Active Directory OAuth2 흐름

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Files_List

샘플 요청

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

샘플 응답

{
  "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"
  }
}

정의

Name Description
ApiError

오류 정보입니다.

createdByType
FileStorageInfo

파일 스토리지 정보입니다.

ODataError

OData 형식의 오류 정보입니다.

SystemData

ApiError

오류 정보입니다.

Name 형식 Description
error

ODataError

OData 형식의 오류 정보

systemData

SystemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

createdByType

Description
User
Application
ManagedIdentity
Key

FileStorageInfo

파일 스토리지 정보입니다.

Name 형식 Description
headers

object

uri

string

파일 콘텐츠에 액세스하는 데 사용할 수 있는 URI입니다.

ODataError

OData 형식의 오류 정보입니다.

Name 형식 Description
code

string

'InvalidRequest' 또는 'InternalServerError'와 같은 오류에 대한 컴퓨터에서 읽을 수 있는 설명입니다.

details

ODataError[]

이 오류를 발생시킨 내부 오류

message

string

사용자가 읽을 수 있는 오류 설명

SystemData

Name 형식 Description
createdAt

string (date-time)

createdBy

string

createdByType

createdByType

lastModifiedAt

string (date-time)

lastModifiedBy

string

lastModifiedByType

createdByType