ConfigGroup Kafka Properties 설정 저장
    • PDF

    ConfigGroup Kafka Properties 설정 저장

    • PDF

    기사 요약

    VPC 환경에서 이용 가능합니다.

    설명

    Cloud Data Streaming Service Config Group의 Config상세 정보를 수정 합니다.

    요청

    요청 URL

    POST https://clouddatastreamingservice.apigw.gov-ntruss.com/api/v1/configGroup/setKafkaConfigGroupDetail/{ConfigGroupNo} [수도권]
    POST https://clouddatastreamingservice.apigw.gov-ntruss.com/api/krs-v1/configGroup/setKafkaConfigGroupDetail/{ConfigGroupNo} [남부권]
    

    요청 헤더

    헤더명설명
    x-ncp-apigw-timestamp1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며
    API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-key네이버 클라우드 플랫폼 포털에서 발급받은 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

    요청 파라미터

    파라미터타입필수 여부설명
    configGroupNoStringYConfigGroupNo
    대상 ConfigGroup 의 번호
    kafkaVersionCodeStringY사용할 Cloud Data Streaming Service 버전
    getCDSSVersion 액션을 통해 획득 가능
    autoCreateTopicsEnableBooleanNKafka Config참고 (Default: true)
    deleteTopicEnableBooleanNKafka Config참고 (Default: true)
    logCleanerEnableBooleanNKafka Config참고 (Default: true)
    logCleanupPolicyStringNKafka Config참고 (Default: delete)
    logCleanerThreadsIntegerNKafka Config참고 (Default: 1)
    logFlushIntervalMessagesLongNKafka Config참고 (Default: 9223372036854775807)
    logRetentionBytesLongNKafka Config참고 (Default: -1)
    logRetentionHoursIntegerNKafka Config참고 (Default: 168)
    logSegmentBytesIntegerNKafka Config참고 (Default: 1073741824)
    numIoThreadsIntegerNKafka Config참고 (Default: 8)
    numNetworkThreadsIntegerNKafka Config참고 (Default: 3)
    numPartitionsIntegerNKafka Config참고 (Default: 3)
    allowEveryoneIfNoAclFoundBooleanNKafka Config참고 (Default: true)

    요청 예시

    POST https://clouddatastreamingservice.apigw.gov-ntruss.com/api/v1/configGroup/setKafkaConfigGroupDetail/174
    HOST: clouddatastreamingservice.apigw.gov-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.gov-ntruss.com/api/v1/configGroup/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.