GetClusterCredentials
処理概要
クラスターのkubeconfigを取得します。
リクエストURL
GET /v1/clusters/{ClusterName}/credentials
指定するパラメーター
パスパラメーター
| パラメーター |
型 |
説明 |
必須 |
| ClusterName |
string |
kubeconfigを取得したいクラスター名
|
○
|
応答フィールド
| フィールド (項目) |
型 |
説明 |
| credentials |
string |
kubeconfig
|
リクエストサンプル
curl https://jp-east-1.hatoba.api.nifcloud.com/v1/clusters/cluster01/credentials
-H "X-Amz-Date: 20190724T000000Z"
-H "Authorization: AWS4-HMAC-SHA256 ..."
応答サンプル
{
"credentials": "apiVersion: v1\nclusters:\n- cluster:\n certificate-authority-data: xxxxx\n server: https://c-xxxxxxxx.kubernetes.hatoba.api.nifcloud.com:6443\n name: \\"cluster01\\"\ncontexts:\n- context:\n cluster: \\"cluster01\\"\n user: cluster01-hatoba-user\n name: cluster01-context\ncurrent-context: cluster01-context\nkind: Config\npreferences: {}\nusers:\n- name: cluster01-hatoba-user\n user:\n token: xxxxx\n"
}