所有文档

          容器引擎 CCE

          Kubeconfig相关接口

          查询集群AdminKubeConfig

          描述

          查询集群 Admin KubeConfig

          请求结构

          GET /v2/kubeconfig/{clusterID}/admin/{type}  HTTP/1.1
          Host: cce.bj.baidubce.com
          Authorization: authorization string

          请求头域

          除公共头域外,无其它特殊头域。

          请求参数

          参数名称 类型 是否必须 参数位置 描述
          clusterID String URL 参数 集群 ID
          type String URL 参数 Kubeconfig 类型, 可选 [ internal, vpc, public ], 分别表示使用 BLB FloatingIP, 使用 BLB VPCIP, 使用 BLB EIP.

          返回头域

          除公共头域,无其它特殊头域。

          返回参数

          参数名称 类型 是否必须 描述
          kubeConfig String kubeconfig 内容
          kubeConfigType String Kubeconfig 类型, 可选 [ internal, vpc, public ], 分别表示使用 BLB FloatingIP, 使用 BLB VPCIP, 使用 BLB EIP.
          requestID String 请求 ID, 问题定位提供该 ID

          请求示例

          GET /v2/kubeconfig/cce-br0i4kl5/admin/vpc HTTP/1.1
          Host: cce.bj.baidubce.com
          Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2019-03-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de

          返回示例

          HTTP/1.1 200 OK
          X-Bce-Request-Id: f3da66d2-4c9f-40c9-aa5c-ab5b2d827361
          Date: Thu, 16 Mar 2020 06:29:48 GMT
          Content-Type: application/json;charset=UTF-8
          
          
          {
          	"kubeConfigType": "vpc",
          	"kubeConfig": "apiVersion: v1\nclusters:\n- cluster:\n    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuakNDQW9hZ0F3SUJBZ0lVQit0NWJteWcydjVHMHRFcnVEdTdMVWxQWnpNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1p6RUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeERqQU1CZ05WQkFv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eXk0MWlySGVSRUFobDNIaTI1U3ZmSTd2V2ROUVFBUDlmQmp6UysrQ0hoCmRHY0dZL3YyQWJCdW5kekJpV2tsbXlsWVgzR2Y0ZDArcTFXLzcyNVFXRFN5MjE0V2QvNHFOVCtJSWZXZTFtRlgKWmhLVlh0SjN2RldrUEIyYUo3Mld2M0htWDhZUzdqNmhtakhDYTIwT0RIOGloTjZ1bVZLbWd6T1FMLy9Keksyago0ZHQ3MVFaZVJ4cVlkRXVyMTdGLzdsUlRuRG9WaEFiT3A0aG5uZGVzMEc0RFBCbFcwZkFKbEVNeHlXNkhMT3dGCmJLcjlRekM3Y0Z0Y2hRNmxsVVVobnhCQW9QbXIra2NQcjFEVTRxQ1JOUVIvNUxxSk5YdWIyWm10NkdlN3BkRU8KSmZmbVFMYUVTYmJjaVNHWkRJQlpxOEY5Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K\n    server: https://100.64.230.48:6443\n  name: kubernetes\ncontexts:\n- context:\n    cluster: kubernetes\n    user: eca97e148cb74e9683d7b7240829d1ff\n  name: eca97e148cb74e9683d7b7240829d1ff@kubernetes\ncurrent-context: eca97e148cb74e9683d7b7240829d1ff@kubernetes\nkind: Config\npreferences: {}\nusers:\n- name: eca97e148cb74e9683d7b7240829d1ff\n  user:\n    client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVQekNDQXllZ0F3SUJBZ0lVSEpZZ09SdjNYbDM0SmlxZ1dwUnF0alhWVE1zd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1p6RUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeERqQU1CZ05WQkFvVEJXcHdZV0Z6TVJRd0VnWURWUVFMRXd0amJHOTFaRzVoZEdsMlpURU9NQXdHCkExVUVBeE1GYW5CaFlYTXdJQmNOTWpBd09USTRNRFF5TWpBd1doZ1BNakV5TURBNU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NnWUFXUmJyK2dENnhSTEo0amxvNHJSVjkKWnoxM2luOHdBY3pWamlyVzMrZmJ2MlBXVzMrZTREZ3J0NU1iMWpFaTUzaVFjWWJqSTBycXV3UU9uVEh0MnNldAo0czl6bC9TbUQ3WUZ2ajdwT1dSOWc4NmR4THJYa25ab1NFMi9sbko2Z3FsRlFKb1JyY1djSStWdmpKL1J6d2RVCld3UWx5OWZoQ0lGTndnK1FhYmdNTVFLQmdRQzVGMWdQQXR3MlJ1THFGaHF5aktDeWIvTk81dUpTZzJjUEJ5QlYKcVJiTjliZElnUklUbUpXSDlObXUxZi9wTVBQYTNiek9tNlpiQkFjbEsxRk9Bc1J2YTVqdGYrQ1d2VUN3TVRiQwppSjJ0eXFKdnhWbmJmN0lzY1lVNEljcFFxMk1QekR0b0N5Z3VHOU9FN0pYVEV4QzhvOW5xV0JBTHhFYkhyMEtaCkd6YWJqd0tCZ1FEYzhRS3M2KzBweGk1dUJweFVpenNxZTNCeS9SbXo4QU4vODliazh6USs4WHZVeDQ2djFXL2IKZnRZUTNCM0g1WkhQVmlnV09yVHJ4VlZodjVOajAzVlp6c21hK29TZTN1RlF2VFhhSGdsSG1Tc0VTalIwWlNMNgpVUkY0aGlzV2tOUnkwYWxSSzRPOFBjMkJyR2lKWTdzbFdzd3RRdzdSM3pVeHBZckp1d1dqalE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=\n",
          	"requestID": "f3da66d2-4c9f-40c9-aa5c-ab5b2d827361"
          }
          上一篇
          Instance相关接口
          下一篇
          Network相关接口