Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get list of archives the recording is performed to녹화된 아카이브 목록을 가져오기:

GET http://IPaddress:port/prefix/archive/list/{VIDEOSOURCEID}

Tip

{VIDEOSOURCEID} − three-component source endpoint 세 부분으로 구성된 소스 엔드포인트 ID (see 비디오 카메라 목록 및 정보 가져오기 참조). For instance예를 들어, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".

Sample request요청 예시:

GET http://127.0.0.1:80/archive/list/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0

Sample response응답 예시:

Code Block
{
   "archives" : [
      {
         "default" : true,
         "name" : "hosts/SERVER1/MultimediaStorage.AliceBlue/MultimediaStorage"
      },
      {
         "default" : false,
         "name" : "hosts/SERVER1/MultimediaStorage.AntiqueWhite/MultimediaStorage"
      }
   ]
}


Parameter파라미터Description설명
default

true − default archive기본 아카이브입니다.

false – not a default archive기본 아카이브가 아닙니다.

nameArchive name.

...

아카이브 이름

아카이브 내용 가져오기:

GET http://IPaddress:port/prefix/archive/contents/intervals/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME} – get archive contents starting at BEGINTIME and ending at ENDTIME.BEGINTIME에서 시작하여 ENDTIME에서 끝나는 아카이브 내용 가져오기

Tip

{VIDEOSOURCEID} – three-component source endpoint 세 부분으로 구성된 소스 엔드포인트 ID (see 비디오 카메라 목록 및 정보 가져오기 참조). For instance예를 들어, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".


Tip

If BEGINTIME is not specified, infinite future is considered. If ENDTIME is not specified too, infinite past is considered. The words "past" and "future" can be used to set infinite past and infinite future as well.

Interval sequence corresponds to the ratio between specified BEGINTIME and ENDTIME (in ascending order if BEGINTIME<ENDTIME, and in descending order if ENDTIME<BEGINTIME). Start and end points of interval are returned in its common order, i.e. the interval start time is less than the interval end time or equal to it.

Set time in the YYYYMMDDTHHMMSS format in the timezone UTC+0.

...

The number of intervals in the response, the default value is 100.

...

The minimum time separation between two intervals at which they will be treated as two different intervals (not merged), the default value is 0.

...

BEGINTIME이 지정되지 않으면 무한 미래로 간주됩니다. ENDTIME이 지정되지 않으면 무한 과거로 간주됩니다. "past"와 "future"라는 단어를 사용하여 무한 과거와 무한 미래를 설정할 수도 있습니다.

간격 시퀀스는 지정된 BEGINTIME과 ENDTIME 사이의 비율에 해당합니다 (BEGINTIME<ENDTIME이면 오름차순, ENDTIME<BEGINTIME이면 내림차순). 간격의 시작과 끝 지점은 일반적인 순서로 반환됩니다. 즉, 간격 시작 시간이 간격 끝 시간보다 작거나 같아야 합니다.

시간은 YYYYMMDDTHHMMSS 형식으로 설정되며 UTC+0 시간대에 맞추어야 합니다.


파라미터필수설명
limitNo

응답에 포함될 간격의 수. 기본값은 100입니다.

scaleNo

두 간격이 서로 다른 간격으로 처리되기 위한 최소 시간 간격(병합되지 않음), 기본값은 0입니다.

archiveNo간격을 가져올 아카이브의 이름입니다. 지정하지 않으면 기본 아카이브에서 간격이 가져옵니다.

요청 예시Sample request:

GET http://127.0.0.1:80/archive/contents/intervals/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0/past/future

Sample response응답 예시:

Code Block
{
   "intervals": [
      {
         "begin": "20200512T105111.089000",
         "end": "20200521T121106.032000"
      },
      {
         "begin": "20200430T052909.842000",
         "end": "20200430T063733.242000"
      }
   ],
   "more": true
}


Parameter파라미터Description설명
intervals

An array containing intervals.간격을 포함하는 배열

Info
titleNote

Time is returned in the UTC format시간은 UTC 형식으로 반환됩니다.


more

true – the server did not return all intervals because the limit was exceeded 서버가 제한(limit parameter)매개변수)을 초과하여 모든 간격을 반환하지 않았습니다.

false – the server returned all intervals from the specified time interval서버가 지정된 시간 간격에서 모든 간격을 반환했습니다.


HTML
<script id="asciicast-507166" src="https://asciinema.org/a/507166.js" async></script>

...