MENU
      スナップショット情報の照会

        スナップショット情報の照会


        記事の要約

        Live Stationのスナップショット照会用 APIです。

        リクエスト

        GET https://livestation.apigw.ntruss.com/api/v2/channels/{channelId}/snapshot/{snapshotId}
        HTTP

        リクエストヘッダ

        ヘッダ名必須の有無説明
        x-ncp-apigw-timestampYES1970年1月1日00:00:00協定世界時(UTC)からの経過時間をミリ秒(Millisecond)で表し、API Gatewayサーバとの時間差が5分以上の場合は無効なリクエストとみなす
        x-ncp-apigw-timestamp:{Timestamp}
        x-ncp-iam-access-keyYESNAVERクラウドプラットフォームポータルから発行された Access Key ID
        x-ncp-iam-access-key:{Sub Account Access Key}
        x-ncp-apigw-signature-v2YESAccess Key IDと Secret Keyで暗号化した署名
        x-ncp-apigw-signature-v2:{API Gateway Signature}
        Content-TypeYESRequest body content typeを application/jsonに指定
        Content-Type: application/json
        x-ncp-region_codeYESリージョンコード (KR)

        レスポンス

        フィールド名タイプ説明備考
        channelIdStringスナップショットを作成したチャンネル ID
        channelStatusStringスナップショットを作成したチャンネルの状態CREATING、READY、PUBLISH、DELETED、BLOCK、FORCE_BLOCK、FORCE_DELETED
        snapshotObjectスナップショット Object
        snapshot.snapshotIdIntegerスナップショット ID
        snapshot.snapshotUrlStringスナップショット再生 URLスナップショット URLは作成時点から1時間まで有効です。
        snapshot.createdTimeIntegerスナップショットの作成時間
        snapshot.expireTimeIntegerスナップショットの期限切れ時間
        snapshot.durationIntegerスナップショット作成リクエスト時間単位: 分

        レスポンス例

        HTTP/1.1 200 OK
        Server: nginx
        Date: Fri, 26 Jun 2022 09:53:32 GMT
        Content-Type: application/json;charset=utf-8
        Connection: keep-alive
        Access-Control-Allow-Origin: *
        x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
        
        {
          "content": {
            "channelId": "ls-20220623115623-fHnXy",
            "channelStatus": "PUBLISHING",
            "snapshot": {
              "snapshotId": 1047,
              "snapshotUrl": "https://mytest.edge.naverncp.com/dvr/snapshot/1655982268177/ls-nmssencg001/mtfpkgmjxmyecget2wjzthbeplp5vk9a7o6c/480p-16-9/1047-1655978668177.m3u8",
              "createdTime": 1655978668177,
              "expireTime": 1655982268177,
              "duration": 1
            }
          }
        }
        HTTP

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.