SDK代码示例
集群管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 创建集群 - CreateCluster | ||||
| 获取指定的集群 - ShowCluster | ||||
| 获取指定项目下的集群 - ListClusters | ||||
| 更新指定的集群 - UpdateCluster | ||||
| 删除集群 - DeleteCluster | ||||
| 集群休眠 - HibernateCluster | ||||
| 集群唤醒 - AwakeCluster | ||||
| 获取集群证书 - CreateKubernetesClusterCert | ||||
| 吊销用户的集群证书 - RevokeKubernetesClusterCert | ||||
| 轮转用户的集群证书 - RotateClusterCredentials | - | - | - | |
| 变更集群规格 - ResizeClusterFlavor | - | - | - | |
| 获取任务信息 - ShowJob | ||||
| 绑定、解绑集群公网apiserver地址 - UpdateClusterEip | ||||
| 获取集群访问的地址 - ShowClusterEndpoints | ||||
| 查询集群日志配置信息 - ShowClusterConfig | ||||
| 配置集群日志 - UpdateClusterLogConfig | ||||
| 获取分区列表 - ListPartitions | ||||
| 创建分区 - CreatePartition | ||||
| 获取分区详情 - ShowPartition | ||||
| 更新分区 - UpdatePartition | ||||
| 获取集群LongAKSK配置 - GetClusterLongAKSKConfig | ||||
| 更新集群LongAKSK配置 - UpdateClusterLongAKSKConfig | ||||
| 获取项目LongAKSK配置 - GetLongAKSKConfig | ||||
| 更新项目LongAKSK配置 - UpdateLongAKSKConfig | ||||
| 查询集群可售卖规格 - GetClusterFlavorSpecs | ||||
| 查询特性开关状态 - ShowFeatureGates | ||||
| 查询可用区列表 - GetAvailableZone | ||||
| 获取集群配额 - GetClusterQuota |
节点管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 创建节点 - CreateNode | ||||
| 获取指定的节点 - ShowNode | ||||
| 获取集群下所有节点 - ListNodes | ||||
| 更新指定的节点 - UpdateNode | ||||
| 删除节点 - DeleteNode | ||||
| 节点开启缩容保护 - LockNodeScaledown | - | - | - | |
| 节点关闭缩容保护 - UnlLockNodeScaledown | - | - | - | |
| 同步节点 - SyncNode | ||||
| 批量同步节点 - BatchSyncNodes | ||||
| 按需节点转包年/包月 - BatchChangeNodeToPeriod | - | - | - | |
| 纳管节点 - AddNode | ||||
| 轮转节点证书 - RotateNodeCert | - | - | - | |
| 自定义节点池纳管节点 - AddNodesToNodePool | ||||
| 重置节点 - ResetNode | ||||
| 节点移除 - RemoveNode | ||||
| 节点迁移 - MigrateNode | ||||
| 节点迁移到自定义节点池 - MigrateToNodePool | ||||
| 查询集群中超节点列表 - ListHyperNodes |
节点池管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 创建节点池 - CreateNodePool | ||||
| 获取指定的节点池 - ShowNodePool | ||||
| 获取集群下所有节点池 - ListNodePools | ||||
| 更新指定节点池 - UpdateNodePool | ||||
| 删除节点池 - DeleteNodePool | ||||
| 伸缩节点池 - ScaleNodePool | ||||
| 同步节点池 - UpgradeNodePool |
插件管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 创建AddonInstance - CreateAddonInstance | ||||
| 查询AddonTemplates列表 - ListAddonTemplates | ||||
| 更新AddonInstance - UpdateAddonInstance | ||||
| 回滚AddonInstance - RollbackAddonInstance | ||||
| 删除AddonInstance - DeleteAddonInstance | ||||
| 获取AddonInstance详情 - ShowAddonInstance | ||||
| 获取AddonInstance列表 - ListAddonInstances | ||||
| 批量创建插件检查任务 - BatchCreateAddonPrecheck | ||||
| 获取插件检查任务结果列表 - ListAddonPrecheckTasks |
集群升级
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 集群升级 - UpgradeCluster | ||||
| 获取集群升级任务详情 - ShowUpgradeClusterTask | ||||
| 重试集群升级任务 - RetryUpgradeClusterTask | ||||
| 获取集群升级任务详情列表 - ListUpgradeClusterTasks | ||||
| 集群升级前检查 - PreCheck | - | - | - | |
| 获取集群升级前检查任务详情 - GetPreCheck | - | - | - | |
| 获取集群升级前检查任务详情列表 - GetPreCheckList | - | - | - | |
| 集群升级后确认 - PostCheck | - | - | - | |
| 集群备份 - ClusterMasterSnapshot | - | - | - | |
| 获取集群备份任务详情列表 - ListClusterMasterSnapshotTasks | ||||
| 获取集群升级相关信息 - GetClusterUpgradeInfo | - | - | - | |
| 获取集群升级路径 - GetClusterUpgradePaths | - | - | - | |
| 获取集群升级特性开关配置 - GetClusterUpgradeFeatureGates | - | - | - | |
| 开启集群升级流程引导任务 - CreateUpgradeWorkFlow | ||||
| 获取UpgradeWorkFlows列表 - ListUpgradeWorkFlows | ||||
| 获取指定集群升级引导任务详情 - ShowUpgradeWorkFlow | ||||
| 更新指定集群升级引导任务状态 - UpgradeWorkFlowUpdate |
配额管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 查询CCE服务下的资源配额 - ShowQuotas |
API版本信息
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 查询API版本信息列表 - ShowVersion |
标签管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 批量添加指定集群的资源标签 - BatchCreateClusterTags | ||||
| 批量删除指定集群的资源标签 - BatchDeleteClusterTags | ||||
| 查询资源标签 - GetResourceTags | ||||
| 查询自定义标签 - GetCustomizeTags | ||||
| 获取节点标签 - GetLabels |
配置管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 查询指定节点池支持配置的参数列表 - ShowNodePoolConfigurationDetails | ||||
| 查询指定集群支持配置的参数列表 - ShowClusterConfigurationDetails | ||||
| 获取集群支持的可配置参数列表 - GetClusterSupportConfiguration | - | - | - | |
| 查询指定节点池支持配置的参数内容 - ShowNodePoolConfigurations | ||||
| 修改指定节点池配置参数的值 - UpdateNodePoolConfiguration |
模板管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 上传模板 - UploadChart | ||||
| 获取模板列表 - ListCharts | ||||
| 获取模板实例列表 - ListReleases | ||||
| 更新模板 - UpdateChart | ||||
| 创建模板实例 - CreateRelease | ||||
| 删除模板 - DeleteChart | ||||
| 更新指定模板实例 - UpdateRelease | ||||
| 获取模板 - ShowChart | ||||
| 删除指定模板实例 - DeleteRelease | ||||
| 下载模板 - DownloadChart | ||||
| 获取指定模板实例 - ShowRelease | ||||
| 获取模板Values - ShowChartValues | ||||
| 查询指定模板实例历史记录 - ShowReleaseHistory | ||||
| 获取用户模板配额 - ShowUserChartsQuotas |
权限管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 创建访问策略 - CreateAccessPolicy | ||||
| 获取访问策略列表 - ListAccessPolicy | ||||
| 获取访问策略详情 - GetAccessPolicy | ||||
| 更新访问策略 - UpdateAccessPolicy | ||||
| 删除访问策略 - DeleteAccessPolicy | ||||
| 创建pod-identity关联 - CreatePodIdentityAssociation | - | - | - | |
| 查询指定集群的pod-identity关联 - ListPodIdentityAssociations | - | - | - | |
| 查询指定pod-identity关联 - ShowPodIdentityAssociation | - | - | - | |
| 更新pod-identity关联 - UpdatePodIdentityAssociation | - | - | - | |
| 删除pod-identity关联 - DeletePodIdentityAssociation | - | - | - | |
| 获取pod-identity关联相关委托凭据 - AssumeAgencyForPodIdentity | - | - | - |
Job管理
| API | Java代码示例 | Python代码示例 | Go代码示例 | 更多语言代码示例 |
|---|---|---|---|---|
| 获取Job列表 - ListJobs | - | - | - | |
| 获取Job详情 - GetOneJob | - | - | - | |
| 删除Job - DeleteJob | - | - | - |