ConfigGroup Kafka Properties設定の保存
    • PDF

    ConfigGroup Kafka Properties設定の保存

    • PDF

    記事の要約

    VPC環境で利用できます。

    説明

    Cloud Data Streaming Service Config GroupのConfig詳細情報を修正します。

    リクエスト

    リクエストURL

    POST https://clouddatastreamingservice.apigw.ntruss.com/api/v1/cluster/setKafkaConfigGroupDetail/{ConfigGroupNo} [KR]
    POST https://clouddatastreamingservice.apigw.ntruss.com/api/sgn-v1/cluster/setKafkaConfigGroupDetail/{ConfigGroupNo} [SGN]
    POST https://clouddatastreamingservice.apigw.ntruss.com/api/jpn-v1/cluster/setKafkaConfigGroupDetail/{ConfigGroupNo} [JPN]
    

    リクエストヘッダ

    ヘッダ名説明
    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-Typeリクエストボディのコンテンツタイプをapplication/jsonに指定
    Content-Type: application/json

    リクエストパラメータ

    パラメータタイプ必須の有無説明
    configGroupNoStringYConfigGroupNo
    対象ConfigGroupの番号
    kafkaVersionCodeStringY使用するCloud Data Streaming Serviceバージョン
    getCDSSVersionアクションを通じて取得可能
    autoCreateTopicsEnableBooleanNKafka Config参照(デフォルト:true)
    deleteTopicEnableBooleanNKafka Config参照(デフォルト:true)
    logCleanerEnableBooleanNKafka Config参照(デフォルト:true)
    logCleanupPolicyStringNKafka Config参照(デフォルト:delete)
    logCleanerThreadsIntegerNKafka Config参照(デフォルト:1)
    logFlushIntervalMessagesLongNKafka Config参照(デフォルト:9223372036854775807)
    logRetentionBytesLongNKafka Config参照(デフォルト:-1)
    logRetentionHoursIntegerNKafka Config参照(デフォルト:168)
    logSegmentBytesIntegerNKafka Config参照(デフォルト:1073741824)
    numIoThreadsIntegerNKafka Config参照(デフォルト:8)
    numNetworkThreadsIntegerNKafka Config参照(デフォルト:3)
    numPartitionsIntegerNKafka Config参照(デフォルト:3)
    allowEveryoneIfNoAclFoundBooleanNKafka Config参照(デフォルト:true)

    リクエスト例

    POST https://clouddatastreamingservice.apigw.ntruss.com/api/v1/cluster/setKafkaConfigGroupDetail/174
    HOST: clouddatastreamingservice.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
    
    {
      "kafkaVersionCode": "2403005",
      "autoCreateTopicsEnable": true,
      "deleteTopicEnable": true,
      "logCleanerEnable": true,
      "logCleanupPolicy": "delete",
      "logCleanerThreads": 1,
      "logFlushIntervalMessages": 9223372036854775807,
      "logRetentionBytes":-1,
      "logRetentionHours": 168,
      "logSegmentBytes": 1073741824,
      "numIoThreads": 8,
      "numNetworkThreads": 3,
      "numPartitions": 3,
      "allowEveryoneIfNoAclFound": true
    }
    
    curl -X POST "https://clouddatastreamingservice.apigw.ntruss.com/api/v1/cluster/setKafkaConfigGroupDetail/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 \
    '{
      "kafkaVersionCode": "2403005",
      "autoCreateTopicsEnable": true,
      "deleteTopicEnable": true,
      "logCleanerEnable": true,
      "logCleanupPolicy": "delete",
      "logCleanerThreads": 1,
      "logFlushIntervalMessages": 9223372036854775807,
      "logRetentionBytes":-1,
      "logRetentionHours": 168,
      "logSegmentBytes": 1073741824,
      "numIoThreads": 8,
      "numNetworkThreads": 3,
      "numPartitions": 3,
      "allowEveryoneIfNoAclFound": true
    }'
    

    レスポンス例

    {
      "code": 0,
      "message": "SUCCESS",
      "result": {
        "configGroupNo": 174
      },
      "requestId": "3487ee91-4a54-49c8-8ea8-cddc447e4285"
    }
    

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

    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.