VPC 환경에서 이용 가능합니다.
커넥터 정보를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | /api/v1/topics/{topicId}/connectors |
요청 헤더
Data Stream API에서 공통으로 사용하는 헤더에 대한 정보는 Data Stream 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
topicId |
String | Required | 토픽 아이디
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://datastream.apigw.ntruss.com/api/v1/topics/mgNWA*****/connectors' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
id |
String | - | 커넥터 아이디 |
topicId |
String | - | 토픽 아이디 |
status |
String | - | 커넥터 상태
|
connectorName |
String | - | 커넥터 이름 |
description |
String | - | 커넥터 설명 |
consumerSpec |
String | - | 컨슈머 사양(커넥터 처리 성능)
|
location |
String | - | 저장 경로 |
locationWithTopicName |
String | - | 토픽 이름 디렉터리가 포함된 저장 경로 |
objectStorageLocation |
String | - | Object Storage 경로 |
dateFormat |
String | - | 하위 저장 경로에 날짜 포맷 사용 여부
|
exportType |
String | - | 커넥터 유형
|
includeTopicInPath |
Boolean | - | 저장 경로에 토픽 이름 디렉터리 생성 여부
|
createdDate |
String | - | 커넥터 생성 일시
|
roleNrn |
String | - | 커넥터 접근 시 사용되는 Data Stream 서비스의 역할(Role)에 대한 리소스 식별 값 |
flushInterval |
Number | - | 스토리지에 메시지 기록 시 파일 생성 주기(분)
|
flushCount |
Number | - | 스토리지에 메시지 기록 시 저장 메시지 수(개)
|
groupId |
String | - | 커넥터 그룹 아이디 |
failedMessage |
String | - | 커넥터의 상태가 실패 FAILED 인 경우, 실패에 대한 원인 |
failedDate |
String | - | 커넥터의 상태가 실패 FAILED 인 경우, 실패 상태로 변경된 일시 |
응답 상태 코드
Data Stream API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Data Stream 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
- 커넥터 상태: 정상
[ { "id": "xlThN*****", "topicId": "mgNWA*****", "status": "RUNNING", "connectorName": "connector-h4j6l-ds001", "description": "", "consumerSpec": "SMALL", "location": "s3a://datastream001", "locationWithTopicName": "s3a://datastream001", "objectStorageLocation": "https://console.ncloud.com/objectStorage/objectStorageList?bucketName=datastream001&folderPrefix=", "dateFormat": "NONE", "exportType": "OBJECT_STORAGE", "includeTopicInPath": false, "createdDate": "2025-05-22T16:39:21Z", "roleNrn": "nrn:PUB:IAM::****:Role/********-36**-11**-a**-24****b4", "flushInterval": 10, "flushCount": 100, "groupId": "connect-h**-ds0**" } ]
- 커넥터 상태: 실패
[ { "id": "1c*****", "topicId": "15*****", "status": "FAILED", "connectorName": "connector-n***-c***", "description": "", "consumerSpec": "SMALL", "location": "s3a://stream-***", "locationWithTopicName": "s3a://stream-***/n***-c***", "objectStorageLocation": "https://beta-console.ncloud.com/objectStorage/objectStorageList?bucketName=stream-***&folderPrefix=n***-c***", "dateFormat": "HOUR", "exportType": "OBJECT_STORAGE", "includeTopicInPath": true, "createdDate": "2025-07-23T14:29:57Z", "roleNrn": "nrn:PUB:IAM::***:Role/8733****-10**-1**-a1**-246*****c4", "flushInterval": 10, "flushCount": 100, "groupId": "connect-n***-c***", "failedMessage": "Failed to access ObjectStorage: an error occurred during the connection or request.", "failedDate": "2025-07-23T14:40:26" } ]