ConfigGroup を使用中の Cluster一覧の照会
    • PDF

    ConfigGroup を使用中の Cluster一覧の照会

    • PDF

    Article Summary

    VPC環境で利用できます。

    説明

    Cloud Data Streaming Serviceの ConfigGroupを使用中の Cluster一覧を照会します。

    リクエスト

    リクエスト URL

    POST https://clouddatastreamingservice.apigw.ntruss.com/api/v1/configGroup/getConfigGroupUsingClusterList/{configGroupNo} [KR]
    POST https://clouddatastreamingservice.apigw.ntruss.com/api/sgn-v1/configGroup/getConfigGroupUsingClusterList/{configGroupNo} [SGN]
    POST https://clouddatastreamingservice.apigw.ntruss.com/api/jpn-v1/configGroup/getConfigGroupUsingClusterList/{configGroupNo} [JPN]
    

    リクエストヘッダ

    ヘッダ名説明
    x-ncp-apigw-timestamp- 1970年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

    リクエストパラメータ

    パラメータタイプ要否説明
    configGroupNoStringY- ConfigGroupNo
    - 対象 ConfigGroup番号
    pageNoIntegerY表示するページ番号(Default: 1)
    pageSizeIntegerY表示するページサイズ(Default: 10)

    リクエスト例

    POST https://clouddatastreamingservice.apigw.ntruss.com/api/v1/configGroup/getConfigGroupUsingClusterList/174
    HOST: clouddatastreamingservice.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: uLWYAZULzt3UZl5MeUo5Xj1mepW49qSMKc9n2rMv/YA=
    x-ncp-apigw-timestamp: 1653981745173
    x-ncp-iam-access-key: 7fIvgFY428mtY6sY8maw
    
    {
      "pageNo": 1,
      "pageSize": 10
    }
    
    curl -X POST "https://clouddatastreamingservice.apigw.ntruss.com/api/v1/configGroup/getConfigGroupUsingClusterList/174" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "x-ncp-iam-access-key: ANJNnR1jz1gUzaiS0aV2" \
    -H "x-ncp-apigw-timestamp: 1653981745173" \
    -H "x-ncp-apigw-signature-v2: uLWYAZULzt3UZl5MeUo5Xj1mepW49qSMKc9n2rMv/YA=" \
    -d \
    '{
      "pageNo": 1,
      "pageSize": 10
    }'
    

    レスポンスパラメータ

    public class GetConfigGroupUsingClusterListResponseVo {
        private Integer currentPage;
        private Boolean isFirst;
        private Boolean isLast;
        private Integer pageSize;
        private Long totalCount;
        private Integer totalPage;
        private List<usingClusterNameList> ConfigGroupClusterInfo;
    }
    
    public class usingClusterNameList {
        private String clusterName;
        private Integer serviceGroupInstanceNo;
    }
    

    フィールド

    パラメータ名タイプ説明
    currentPageInteger現在のページ番号
    isFirstBoolean最初のページであるか否か
    isLastBoolean最後のページであるか否か
    pageSizeIntegerページに表示するデータ数
    totalCountLong照会された総データ数
    totalPageInteger全体ページの個数(totalCount/pageSize)
    kafkaConfigGroupListList<usingClusterNameList>ConfigGroupを使用中の Clusterリスト
    serviceGroupInstanceNoIntegerClusterインスタンス番号
    clusterNameStringCluster名

    レスポンス例(成功)

    {
      "code": 0,
      "message": "SUCCESS",
      "result": {
        "currentPage": 1,
        "isFirst": true,
        "isLast": true,
        "pageSize": 10,
        "totalCount": 2,
        "totalPage": 1,
        "usingClusterNameList": [
          {
            "clusterName": "cluster-sample1",
            "serviceGroupInstanceNo": 2389832
          },
          {
            "clusterName": "cluster-sample2",
            "serviceGroupInstanceNo": 2389848
          }
        ]
      },
      "requestId": "86f64c9b-053a-4069-94c9-644ece14b506"
    }
    

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

    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.