ThingWorx 시작하기 > ThingWorx에서 가져오기 및 내보내기 > 수동으로 가져오기 및 내보내기
수동으로 가져오기 및 내보내기
Composer에서 관리자 사용자는 가져오기/내보내기 메뉴를 볼 수 있습니다. 이 메뉴를 사용하면 데이터, 엔티티 및 확장을 가져오고 내보낼 수 있습니다. 관리자가 아닌 사용자는 API를 사용하여 수동으로 ThingWorx로 데이터를 가져오고 ThingWorx에서 데이터를 내보낼 수 있지만, 이렇게 하려면 특정 디자인 타임 권한이 있어야 합니다.
수동으로 가져오고 내보낼 때 다음 디자인 타임 권한이 적용됩니다.
내보내려면 사용자에게 디자인 타임 읽기 권한이 있어야 합니다.
가져오려면 사용자에게 디자인 타임 만들기 권한이 있어야 합니다.
수동으로 내보내기
브라우저에서 아래 표의 호출을 사용하여 데이터와 엔티티를 내보냅니다.
엔티티 내보내기는 바이너리(응용 프로그램/옥텟 스트림) 또는 XML(텍스트/XML)을 지원합니다.
데이터 내보내기(블로그, Wiki, 스트림, 가치 스트림 및 데이터 테이블 데이터)는 바이너리(옥텟 스트림)를 지원합니다.
엔티티 내보내기
설명
URL 예
모든 엔티티를 파일로 내보내기(바이너리)
/Thingworx/Exporter/Exporter/?Accept=application/octet-stream&startdate=2015-08-26T11:33:50&enddate=2015-08-28T11:33:52&searchTags=Applications:testTag&repositoryName=SystemRepository&path=/mydir
모든 입력 매개 변수는 이 예에서 정의됩니다.
시작 날짜=
2015-08-26T11:33:50
종료 날짜=
2015-08-28T11:33:52
종료 날짜가 정의되어 있지 않으면 현재 날짜와 시간이 사용됩니다.
모델 태그=
Applications:testTag
저장소=
SystemRepository
경로=
mydir
모든 엔티티를 파일로 내보내기(XML)
/Thingworx/Exporter/?Accept=text/xml&startdate=2015-08-26T11:33:50&enddate=2015-08-28T11:33:52&searchTags=Applications:testTag&repositoryName=SystemRepository&path=/mydir
모든 입력 매개 변수는 이 예에서 정의됩니다.
시작 날짜=
2015-08-26T11:33:50
종료 날짜=
2015-08-28T11:33:52
종료 날짜가 정의되어 있지 않으면 현재 날짜와 시간이 사용됩니다.
모델 태그=
Applications:testTag
저장소=
SystemRepository
경로=
mydir
단일 엔티티를 파일로 내보내기(바이너리)
/Thingworx/Exporter/ThingTemplates/GenericThing?Accept=application/octet-stream&repositoryName=SystemRepository&path=/mydir
모든 입력 매개 변수는 이 예에서 정의됩니다.
엔티티=ThingTemplate, GenericThing
저장소=System Repository
경로=mydir
단일 엔티티를 파일로 내보내기(XML)
/Thingworx/Exporter/ThingTemplates/GenericThing?Accept=text/xml&repositoryName=SystemRepository&path=/mydir
모든 입력 매개 변수는 이 예에서 정의됩니다.
엔티티=ThingTemplate, GenericThing
저장소=System Repository
경로=mydir
데이터 내보내기
설명
URL 예
모든 데이터를 파일로 내보내기
/Thingworx/DataExporter/?Accept=application/octet-stream&repositoryName=SystemRepository&path=/mydir
저장소=SystemRepository
경로=mydir
데이터 테이블 데이터를 파일로 내보내기
/Thingworx/DataExporter/DataTables/?Accept=application/octet-stream&searchTags=Applications:testTag&repositoryname=SystemRepository&path=/mydir
모델 태그=Applications:testTag
저장소=SystemRepository
경로=mydir
단일 데이터를 파일로 내보내기
/Thingworx/DataExporter/Streams/AlertHistoryStream?Accept=application/octet-stream&startDate=2015-08-26T11:38:46&endDate=2015-08-28T11:38:49&searchTags=Applications:testTag&respositoryName=SystemRepository&path=/mydir
모든 입력 매개 변수는 이 예에서 정의됩니다.
컬렉션=Streams
엔티티 이름=AlertHistoryStream
시작 날짜=
2015-08-26T11:38:46
종료 날짜=
2015-08-28T11:38:49
종료 날짜가 정의되어 있지 않으면 현재 날짜와 시간이 사용됩니다.
저장소=
SystemRepository
경로=
mydir
수동으로 가져오기
가져오기는 여러 부분으로 구성된 요청입니다. 다음과 같은 간단한 HTML 양식을 작성하는 것이 좋습니다.
<html>
<body>
<FORM action="/Thingworx/Importer?purpose=import&usedefaultdataprovider=true&WithSubsystems=false"
enctype="multipart/form-data"
method="post"
<P>
<BR>
What files are you sending? <INPUT type="file" name="files"><BR>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</FORM>
</body>
</html>
도움이 되셨나요?