UpdateK8sResource
更新K8s资源
服务地址:
华东1 金融云
输入参数
只看必填
ClusterId集群ID
NamespaceK8s命名空间ID
ResourceContentYAML格式的描述内容
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

说明 当前仅支持 Deployment 资源的修改。

请求语法

POST /pop/v5/oam/update_k8s_resource_config HTTP/1.1

请求参数

字段名称字段详情
ClusterIdstring

集群 ID。

示例值:2e7059e9-2d********5e8ecac64ff参考取值来源:
    InsertCluster
    ListCluster
    GetK8sCluster
Namespacestring

K8s 命名空间 ID。

示例值:app-namespace参考取值来源:
    ListK8sNamespaces
ResourceContentstring

YAML 格式的描述内容。

示例值:apiVersion: apps/v1 kind: Deployment metadata: name: demo-app namespace: app-namespace spec: replicas: 3 selector: matchLabels: cluster: abc template: # create pods using pod definition in this template metadata: labels: cluster: abc spec: containers: - image: registry-vpc.cn-hangzhou.aliyuncs.com/edas-demo-image/consumer:1.0 imagePullPolicy: Always name: test-container ports: - containerPort: 80 env: - name: foo value: bar

返回参数

字段名称字段详情
Codeinteger<int32>

Code 码。

示例值:200
Messagestring

附加信息。

示例值:success
RequestIdstring

唯一请求 ID。

示例值:7638276F-****-****-884F-54CC0BC84A8D
变更历史
暂无变更历史