--- title: "トピックの照会" slug: "datastream-gettopicid" updated: 2026-09-17T09:57:39Z published: 2026-09-17T09:57:39Z canonical: "api.ncloud-docs.com/datastream-gettopicid" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # トピックの照会 VPC環境で利用できます。 トピックの詳細情報を照会します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | GET | /api/v1/topics/{topicId} | ### リクエストヘッダ Data Stream APIで共通して使用されるヘッダの詳細は、[Data Streamのリクエストヘッダ](/docs/ja/datastream-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `topicId` | String | Required | トピック ID - [トピックリストの照会](/docs/ja/datastream-gettopic#list)を参照 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request GET 'https://datastream.apigw.ntruss.com/api/v1/topics/mgNWA*****' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `topicId` | String | - | トピック ID | | `topicName` | String | - | トピック名 | | `description` | String | - | トピックの説明 | | `partitions` | Number | - | トピックパーティション数 | | `retentionMs` | Number | - | トピックパーティションメッセージの保存期間(ミリ秒) | | `status` | String | - | トピックの状態 - `CREATING` \| `CREATED` \| `PENDING_DELETION` \| `DELETE_ERROR` \| `DELETED` \| `UNKNOWN` - `CREATING`: トピック作成中 - `CREATED`: トピック作成完了(有効化) - `PENDING_DELETION`: 削除待ち - `DELETE_ERROR`: 削除エラー - `DELETED`: 削除完了 - `UNKNOWN`: 不明 | | `tcpEndpoint` | String | - | TCPエンドポイント | | `createdDate` | String | - | トピック作成日時 - ISO 8601形式 - `YYYY-MM-DDThh:mm:ssZ` | | `updatedDate` | String | - | トピック更新日時 - ISO 8601形式 - `YYYY-MM-DDThh:mm:ssZ` | ### レスポンスステータスコード Data Stream APIで共通して使用されるレスポンスステータスコードの詳細は、[Data Streamのレスポンスステータスコード](/docs/ja/datastream-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "topicId": "mgNWA*****", "topicName": "h4j6l-ds001", "description": "Data Stream Topic", "partitions": 3, "retentionMs": 86400000, "status": "CREATED", "tcpEndpoint": "cluster-1.datastream.naverncp.com:30010", "createdDate": "2025-05-22T10:25:19Z", "updatedDate": "2025-05-22T14:14:41Z" } ```