Snapshot作成履歴の照会
    • PDF

    Snapshot作成履歴の照会

    • PDF

    Article Summary

    VPC環境で利用できます。

    説明

    Snapshotの作成履歴を照会します。

    リクエスト

    リクエストURL

    POST https://vpcsearchengine.apigw.ntruss.com/api/v2/snapshot/getSnapshotHistory/{service-group-instance-no} [KR]
    POST https://vpcsearchengine.apigw.ntruss.com/api/sgn-v2/snapshot/getSnapshotHistory/{service-group-instance-no} [SGN]
    

    リクエストヘッダ

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

    リクエストパラメータ

    パラメータタイプ必須有無説明
    pageNoIntegerNページ番号です。Default : 1
    ex) 1, 2
    pageSizeIntegerNページサイズです。Defatlt : 10
    ex) 10, 20

    リクエスト例

    POST https://vpcsearchengine.apigw.ntruss.com/api/v2/snapshot/getSnapshotHistory/1531843
    HOST: vpcsearchengine.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: zq0FrtlU8JZJi9esTK31bCQUNG3H+jo4CMjMkJDoWSc=
    x-ncp-apigw-timestamp: 1593848345548
    x-ncp-iam-access-key: 7fIvgFY428mtY6sY8maw
    {
    }
    
    curl -X POST "https://vpcsearchengine.apigw.ntruss.com/api/v2/snapshot/getSnapshotHistory/1531843 \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "x-ncp-iam-access-key: 7fIvgFY428mtY6sY8maw" \
    -H "x-ncp-apigw-timestamp: 1601971222179" \
    -H "x-ncp-apigw-signature-v2: zrCelnR48AADdK/uh6Xe3yy468i8KpQoewYHUmeqYh4=" \
    -d \
    '{
     }'
    

    レスポンスパラメータ

    public class SnapshotHistoryListResponseVo extends PagerResponseVo{
        List<SnapshotHistoryResponseVo> snapshotHistoryResponseList;
    }
    
    public class SnapshotHistoryResponseVo {
        Integer idx;
        String clusterName;
        String snapshotName;
        String memberNo;
        Integer serviceGroupInstanceNo;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
        Date actionDate;
        String duration;
        String requestType;
        String message;
        String bucketName;
        boolean hasErrorLog;
    }
    
    public class PagerResponseVo {
        Integer currentPage;
        Boolean isFirst;
        Boolean isLast;
        Integer pageSize;
        Long totalCount;
        Integer totalPage;
    }
    
    

    レスポンス例

    {
      "code": 0,
      "message": "SUCCESS",
      "result": {
        "currentPage": 1,
        "isFirst": true,
        "isLast": true,
        "pageSize": 10,
        "totalCount": 4,
        "totalPage": 1,
        "snapshotHistoryResponseList": [
          {
            "idx": 40,
            "clusterName": "common",
            "snapshotName": "commonsnapshot2",
            "memberNo": "703",
            "serviceGroupInstanceNo": 1728943,
            "actionDate": "2021-06-16 17:51:05",
            "duration": "600ms",
            "requestType": "C",
            "message": "commonsnapshot2のスナップショット作成完了",
            "bucketName": "common-1473858190",
            "hasErrorLog": false
          },
          {
            "idx": 39,
            "clusterName": "common",
            "snapshotName": "commonsnapshot2",
            "memberNo": "703",
            "serviceGroupInstanceNo": 1728943,
            "actionDate": "2021-06-16 17:51:04",
            "duration": null,
            "requestType": "R",
            "message": "commonsnapshot2のスナップショット作成開始",
            "bucketName": "common-1473858190",
            "hasErrorLog": false
          },
          {
            "idx": 38,
            "clusterName": "common",
            "snapshotName": "commonsnapshot",
            "memberNo": "703",
            "serviceGroupInstanceNo": 1728943,
            "actionDate": "2021-06-16 17:50:07",
            "duration": "1.2s",
            "requestType": "C",
            "message": "commonsnapshotのスナップショット作成完了",
            "bucketName": "common-1473858190",
            "hasErrorLog": false
          },
          {
            "idx": 37,
            "clusterName": "common",
            "snapshotName": "commonsnapshot",
            "memberNo": "703",
            "serviceGroupInstanceNo": 1728943,
            "actionDate": "2021-06-16 17:50:05",
            "duration": null,
            "requestType": "R",
            "message": "commonsnapshotのスナップショット作成開始",
            "bucketName": "common-1473858190",
            "hasErrorLog": false
          }
        ]
      },
      "requestId": "93fd2a5a-7a0-4ea3-a040-a69204947048"
    }
    

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

    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.