다음을 통해 공유


Files - Update

파일 업데이트
이 메서드는 기존 파일을 업데이트합니다.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}?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
etag

string

HTTP 강력한 엔터티 태그 값입니다. 이 값은 제출된 경우 무시됩니다.

properties

ProjectFileProperties

사용자 지정 파일 속성

응답

Name 형식 Description
200 OK

ProjectFile

업데이트된 파일 리소스

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_Update

샘플 요청

PATCH https://management.azure.com/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8?api-version=2022-03-30-preview

{
  "properties": {
    "filePath": "DmsSdkFilePath/DmsSdkFile.sql"
  }
}

샘플 응답

{
  "properties": {
    "extension": "sql",
    "filePath": "DmsSdkFilePath/DmsSdkFile.sql"
  },
  "etag": "C2WE6C3yt2I0hunjpjzffY8LhTLqrJZHJ20gkuq2ZOA=",
  "id": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8",
  "name": "x114d023d8",
  "type": "Microsoft.DataMigration/services/projects/files"
}

정의

Name Description
ApiError

오류 정보입니다.

createdByType
ODataError

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

ProjectFile

파일 리소스

ProjectFileProperties

파일 속성에 대한 기본 클래스입니다.

SystemData

ApiError

오류 정보입니다.

Name 형식 Description
error

ODataError

OData 형식의 오류 정보

systemData

SystemData

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

createdByType

Description
User
Application
ManagedIdentity
Key

ODataError

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

Name 형식 Description
code

string

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

details

ODataError[]

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

message

string

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

ProjectFile

파일 리소스

Name 형식 Description
etag

string

HTTP 강력한 엔터티 태그 값입니다. 이 값은 제출된 경우 무시됩니다.

id

string

리소스 ID입니다.

name

string

리소스 이름입니다.

properties

ProjectFileProperties

사용자 지정 파일 속성

systemData

SystemData

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

type

string

리소스 종류입니다.

ProjectFileProperties

파일 속성에 대한 기본 클래스입니다.

Name 형식 Description
extension

string

선택적 파일 확장명입니다. 제출된 경우 선행 기간이 없어야 하며 filePath의 확장과 일치해야 합니다.

filePath

string

이 파일 리소스의 상대 경로입니다. 파일 리소스를 만들거나 업데이트할 때 이 속성을 설정할 수 있습니다.

lastModified

string (date-time)

수정 날짜/시간.

mediaType

string

파일 콘텐츠 형식입니다. 이 속성은 파일 콘텐츠 형식을 반영하도록 수정할 수 있습니다.

size

integer (int64)

파일 크기입니다.

SystemData

Name 형식 Description
createdAt

string (date-time)

createdBy

string

createdByType

createdByType

lastModifiedAt

string (date-time)

lastModifiedBy

string

lastModifiedByType

createdByType