MENU
      Ncloud Kubernetes Service

        Ncloud Kubernetes Service


        記事の要約

        Classic/VPC環境で利用できます。

        VPC環境の Ncloud Kubernetes Serviceサーバインスタンス(VM)リストを照会します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/api/{regionCode}-v1/vpc/servers/kubernetes

        リクエストヘッダ

        Cloud Log Analytics APIで共通して使用されるヘッダの詳細は、Cloud Log Analyticsのリクエストヘッダをご参照ください。

        リクエストパスパラメータ

        リクエストパスパラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        regionCodeStringRequiredリージョンコード
        • kr | sgn | jpn
          • kr: 韓国リージョン
          • sgn: シンガポールリージョン
          • jpn: 日本リージョン

        リクエストクエリパラメータ

        リクエストパスパラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        pageNoIntegerOptionalページ番号
        • 1~100 (デフォルト: 1)
        pageSizeIntegerOptionalページごとの項目数
        • 20~100 (デフォルト: 20)

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request GET 'https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/vpc/servers/kubernetes' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Content-Type: application/json' \
        Shell

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの説明は次の通りです。

        フィールドタイプ必須の有無説明
        codeInteger-レスポンスステータスコード
        messageString-レスポンスステータスメッセージ
        resultObject-レスポンス結果
        result.pageSizeInteger-ページごとの項目数
        result.currentPageInteger-現在のページ番号
        result.totalPageInteger-ページの総数
        result.totalCountInteger-総項目数
        result.isPagedBoolean-ページングするかどうか
        • true | false
          • true: ページング
          • false: ページングしない
        result.clustersArray-サーバリスト
        • サーバ情報
        参考

        Server情報関連フィールド(clusters)の詳細は、Ncloud Kubernetes Service APIガイドNcloud Kubernetes Serviceご利用ガイドをご参照ください。

        レスポンスステータスコード

        Cloud Log Analytics APIで共通して使用されるレスポンスステータスコードの詳細は、Cloud Log Analyticsのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

        {
            "code": 0,
            "message": "リクエストが正常に処理されました。",
            "result": {
                "pageSize": 10,
                "currentPage": 1,
                "totalPage": 1,
                "totalCount": 1,
                "isPaged": true,
                "clusters": [
                    {
                        "name": "nks-test",
                        "k8sVersion": "1.29.9",
                        "vpcNm": "test",
                        "subnetNm": "testsubnet",
                        "collectionStatusNameValue": "未設定",
                        "collectionStatusNameColor": "grey",
                        "requestParam": {
                            "vpcNm": "test | ***.***.***.***/**",
                            "subnetNm": "testsubnet | KR-1 | ***.***.***.***/** | Private",
                            "logEnable": "N"
                        }
                    }
                ]
            }
        }
        JSON

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

        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.