全部產品
Search
文件中心

Auto Scaling:ModifyEciScalingConfiguration

更新時間:Jan 14, 2025

調用ModifyEciScalingConfiguration,並可以指定待修改伸縮配置的ID、伸縮配置的名稱、ECI執行個體的屬性等參數,修改伸縮配置,例如執行個體重啟策略、執行個體的搶佔策略、彈性公網 IP 的頻寬等資訊。

介面說明

  • 如果修改伸縮配置的名稱,請注意同一伸縮組下不能存在名稱相同的伸縮配置。
  • 可以調用DescribeEciScalingConfigurations 查詢並驗證修改結果。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱

類型

是否必選

樣本值

描述

Action String ModifyEciScalingConfiguration

系統規定參數。取值:ModifyEciScalingConfiguration

ScalingConfigurationId String asc-bp16har3jpj6fjbx****

待修改伸縮配置的ID。

ScalingConfigurationName String test-modify

伸縮配置的名稱。長度為2~64個英文或中文字元,以數字、大小寫字母或中文開頭,可包含數字、底線(_)、短劃線(-)或半形句號(.)。

在同一地區下同一伸縮組內伸縮配置名稱唯一。如果您沒有指定該參數,則預設使用伸縮配置的ID。

SecurityGroupId String sg-uf66jeqopgqa9hdn****

ECI執行個體所屬的安全性群組ID。同一個安全性群組內的ECI執行個體之間可以互相訪問。

如果沒有指定安全性群組,系統將自動使用您選擇的地區下的預設安全性群組,您需要確保該安全性群組的入方向規則中包含容器需要暴露的協議和連接埠。如果您在該地區下沒有預設安全性群組,系統將自動建立一個預設安全性群組,並將您聲明的容器協議和連接埠添加到該安全性群組的入方向規則中。

ContainerGroupName String nginx-test

ECI執行個體名稱,即容器組名稱。格式要求如下:

  • 長度為2~128個字元。
  • 支援英文小寫字母、數字或者短劃線(-),不能以短劃線(-)開頭或者結尾。
RestartPolicy String Always

執行個體重啟策略。取值範圍:

  • Always:總是重啟。
  • Never:從不重啟。
  • OnFailure:失敗時重啟。

預設值:Always。

Cpu Float 1.0

執行個體層級的vCPU大小。單位:核。

Memory Float 2.0

執行個體層級的記憶體大小。單位:GiB。

ResourceGroupId String rg-uf66jeqopgqa9hdn****

資源群組ID。

DnsPolicy String Default

DNS策略。取值範圍:

  • None:使用DnsConfig欄位設定的DNS。
  • Default:繼承運行環境的DNS設定。
ImageSnapshotId String imc-2zebxkiifuyzzlhl****

鏡像緩衝ID。

RamRoleName String RamTestRole

執行個體RAM角色名稱。ECI與ECS共用執行個體RAM角色,更多資訊,請參見通過API使用執行個體RAM角色

TerminationGracePeriodSeconds Long 60

程式的緩衝時間,用於處理關閉之前的操作。單位為秒。

AutoMatchImageCache Boolean false

是否自動匹配鏡像緩衝。取值範圍:

  • true:是。
  • false:否。

預設值:false。

Ipv6AddressCount Integer 1

IPv6地址數。

ActiveDeadlineSeconds Long 1000

有效期間限。單位為秒。

SpotStrategy String SpotPriceLimit

執行個體的搶佔策略。取值範圍:

  • NoSpot:正常隨用隨付執行個體。
  • SpotWithPriceLimit:設定上限價格的搶佔式執行個體。
  • SpotAsPriceGo:系統自動出價,跟隨當前市場實際價格的搶佔式執行個體。

預設值:NoSpot。

SpotPriceLimit Float 0.025

設定搶佔式執行個體的每小時最高價格,最多精確到小數點後3位。

當SpotStrategy取值為SpotWithPriceLimit時,必須設定SpotPriceLimit。

AutoCreateEip Boolean true

是否自動建立Elastic IP Address,並綁定ECI執行個體。

EipBandwidth Integer 5

Elastic IP Address的頻寬。

預設值:5 Mbit/s。

HostName String test

主機名稱,即容器組名稱。

IngressBandwidth Long 1024000

入方向頻寬節流設定。單位:Byte。

EgressBandwidth Long 1024000

出方向頻寬節流設定。單位:Byte。

CpuOptionsCore Integer 2

CPU物理核心數。僅部分規格支援自訂設定。更多資訊,請參見自訂CPU選項

CpuOptionsThreadsPerCore Integer 2

每核線程數。僅部分規格支援自訂設定。配置為1時表示關閉超執行緒。更多資訊,請參見自訂CPU選項

EphemeralStorage Integer 20

臨時儲存空間大小,預設使用ESSD PL1類型的雲端硬碟。單位:GiB。

LoadBalancerWeight Integer 50

後端伺服器的權重,取值範圍:1~100。

Tag.N.Key String version

標籤鍵。

Tag.N.Value String 3

標籤值。

ImageRegistryCredential.N.Password String yourpaasword

鏡像倉庫密碼。

ImageRegistryCredential.N.Server String registry-vpc.cn-shanghai.aliyuncs.com

鏡像倉庫登入位址。

ImageRegistryCredential.N.UserName String yourusername

鏡像倉庫使用者名稱。

Container.N.ReadinessProbe.TimeoutSeconds Integer 1

檢查逾時的時間,預設值為1秒,最小值為1秒。

Container.N.ReadinessProbe.SuccessThreshold Integer 1

從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設值為1。當前值必須為1。

Container.N.SecurityContext.Capability.Add.N String NET_ADMIN

為容器內的進程授予某些特定的許可權。目前僅支援配置為NET_ADMIN和NET_RAW。

說明 NET_RAW預設不支援,需提交工單申請。
Container.N.ReadinessProbe.TcpSocket.Port Integer 8000

使用TCP Socket方式進行健全狀態檢查時,TCP Socket檢測的連接埠。

Container.N.ReadinessProbe.HttpGet.Scheme String HTTP

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求對應的協議類型,取值範圍:

  • HTTP。
  • HTTPS。
Container.N.LivenessProbe.PeriodSeconds Integer 5

檢查執行的周期,預設為值10秒,最小值為1秒。

Container.N.Port.N.Protocol String TCP

協議類型。取值範圍:

  • TCP。
  • UDP。
Container.N.Port.N.Port Integer 80

連接埠號碼。取值範圍:1~65535。

Container.N.SecurityContext.ReadOnlyRootFilesystem Boolean true

容器啟動並執行根檔案系統是否為唯讀,目前僅支援配置為true。

Container.N.EnvironmentVar.N.Key String PATH

環境變數名。長度為1~128位,格式要求:[0-9a-zA-Z],以及底線,不能以數字開頭。

Container.N.EnvironmentVar.N.Value String /usr/local/bin

環境變數值。長度為0~256位。

Container.N.LivenessProbe.TcpSocket.Port Integer 8000

使用TCP Socket方式進行健全狀態檢查時,TCP Socket檢測的連接埠。

Container.N.Tty Boolean false

是否開啟互動。預設為false。

當Command為/bin/bash命令時,需要設定為true。

Container.N.WorkingDir String /usr/local/

容器工作目錄。

Container.N.LivenessProbe.HttpGet.Scheme String HTTP

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求對應的協議類型,取值範圍:

  • HTTP。
  • HTTPS。
Container.N.ReadinessProbe.HttpGet.Port Integer 8080

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求檢測的連接埠號碼。

Container.N.Arg.N String 100

容器啟動命令對應的參數。最多10個。

Container.N.Gpu Integer 1

指定容器使用的GPU個數。

Container.N.ReadinessProbe.InitialDelaySeconds Integer 3

檢查開始執行的時間,以容器啟動完成為起點計算。單位為秒。

Container.N.Stdin Boolean false

此容器是否應在容器運行時為標準輸入分配緩衝區。如果未設定,則容器中標準輸入的讀取值將導致EOF。

預設值:false。

Container.N.Memory Float 0.5

容器記憶體大小。單位:GiB。

Container.N.Name String nginx

容器鏡像名稱。

Container.N.Image String registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest

容器鏡像。

Container.N.LivenessProbe.InitialDelaySeconds Integer 5

檢查開始執行的時間,以容器啟動完成為起點計算。單位為秒。

Container.N.VolumeMount.N.MountPropagation String None

資料卷的掛載傳播設定。掛載傳播允許將Container掛載的卷共用到同一Pod中的其他Container,甚至可以共用到同一節點上的其他Pod。取值範圍:

  • None:該卷不感知任何後續在此卷或其子目錄上執行的掛載操作。
  • HostToCotainer:該卷將會感知到後續在此卷或其子目錄上的掛載操作。
  • Bidirectional:和HostToCotainer類似,能感知掛載操作。另外,該卷將被傳播回主機和使用同一卷的所有Pod的所有容器。

預設值:None。

Container.N.VolumeMount.N.MountPath String /pod/data

容器掛載資料卷的目錄。

重要 容器掛載目錄下的內容會被Volume的內容直接覆蓋,請您謹慎使用。
Container.N.VolumeMount.N.ReadOnly Boolean false

資料卷是否唯讀。

  • true:唯讀。
  • false:可讀可寫。

預設值:false。

Container.N.VolumeMount.N.Name String default-volume1

資料卷名稱。同Volume中的Name。

Container.N.VolumeMount.N.SubPath String data2/

資料卷子路徑。

Container.N.LivenessProbe.FailureThreshold Integer 3

從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗)。

預設值:3。

Container.N.ReadinessProbe.Exec.Command.N String cat/tmp/healthy

使用命令列方式進行健全狀態檢查時,在容器內執行的命令。

Container.N.ReadinessProbe.FailureThreshold Integer 3

從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗)。

預設值:3。

Container.N.ImagePullPolicy String Always

容器的鏡像拉取策略。取值範圍:

  • Alway:總是拉取。每次都拉取鏡像。
  • IfNotPresent:按需拉取。優先使用本地鏡像,本地沒有鏡像時則拉取鏡像。
  • Never:從不拉取。使用本地鏡像,不拉取鏡像。
Container.N.StdinOnce Boolean false

當標準輸入為true時,標準輸入資料流將在多個附加會話中是否保持開啟狀態。

如果StdinOnce設為true,標準輸入在容器開啟時被開啟,在首個用戶端附加到標準輸入之前都為空白,然後會一直保持開啟狀態,接收資料,直到用戶端串連斷開,此時標準輸入被關閉,在容器重啟前一直保持關閉狀態。

Container.N.Cpu Float 0.25

容器的VCPU大小。單位:核。

Container.N.LivenessProbe.HttpGet.Port Integer 8888

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求檢測的連接埠號碼。

Container.N.LivenessProbe.HttpGet.Path String /healthyz

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求檢測的路徑。

Container.N.LivenessProbe.SuccessThreshold Integer 1

從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設值為1。當前值必須為1。

Container.N.ReadinessProbe.PeriodSeconds Integer 3

檢查執行的周期,預設值為10秒,最小值為1秒。

Container.N.LivenessProbe.TimeoutSeconds Integer 1

檢查逾時的時間,預設值為1秒,最小值為1秒。

Container.N.Command.N String sleep

容器啟動命令。最多20個。每個命令最多包含256個字元。

Container.N.SecurityContext.RunAsUser Long 1000

設定運行容器的使用者ID。

Container.N.ReadinessProbe.HttpGet.Path String /healthz

使用HTTP請求方式進行健全狀態檢查時,HTTP Get請求檢測的路徑。

Container.N.LivenessProbe.Exec.Command.N String cat /tmp/healthy

使用命令列方式進行健全狀態檢查時,在容器內執行的命令。

Container.N.LifecyclePostStartHandlerHttpGetHost String 10.0.XX.XX

使用HTTP請求方式設定PostStart回呼函數時,接收HTTP Get請求的主機地址。

Container.N.LifecyclePostStartHandlerHttpGetPort Integer 5050

使用HTTP請求方式設定PostStart回呼函數時,HTTP Get請求檢查的連接埠號碼。

Container.N.LifecyclePostStartHandlerHttpGetPath String /healthyz

使用HTTP請求方式設定PostStart回呼函數時,HTTP Get請求檢測的路徑。

Container.N.LifecyclePostStartHandlerHttpGetScheme String HTTPS

使用HTTP請求方式設定PostStart回呼函數時,HTTP Get請求對應的協議類型,取值範圍:

  • HTTP。
  • HTTPS。
Container.N.LifecyclePostStartHandlerExec.N String [ "/bin/sh", "-c", "echo Hello from the postStart handler /usr/share/message" ]

使用命令列方式設定PostStart回呼函數時,在容器內執行的命令。

Container.N.LifecyclePostStartHandlerTcpSocketHost String 10.0.XX.XX

使用TCP Socket方式設定PostStart回呼函數時,TCP Socket檢測的主機地址。

Container.N.LifecyclePostStartHandlerTcpSocketPort Integer 80

使用TCPSocket方式設定PostStart回呼函數時,TCP Socket 檢測的連接埠。

Container.N.LifecyclePreStopHandlerHttpGetHost String 10.0.XX.XX

使用HTTP請求方式設定PreStop回呼函數時,接收HTTP Get請求的主機地址。

Container.N.LifecyclePreStopHandlerHttpGetPort Integer 80

使用HTTP請求方式設定PreStop回呼函數時,HTTP Get請求檢測的連接埠號碼。

Container.N.LifecyclePreStopHandlerHttpGetPath String /healthyz

使用HTTP請求方式設定PreStop回呼函數時,HTTP Get 請求檢測的路徑。

Container.N.LifecyclePreStopHandlerHttpGetScheme String HTTP

使用HTTP請求方式設定PreStop回呼函數時,HTTP Get請求對應的協議類型,取值範圍:

  • HTTP。
  • HTTPS。
Container.N.LifecyclePreStopHandlerExec.N String [ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ]

使用命令列方式設定PreStop回呼函數時,在容器內執行的命令。

Container.N.LifecyclePreStopHandlerTcpSocketHost String 10.0.XX.XX

使用TCP Socket方式設定PreStop回呼函數時,TCP Socket檢測的主機地址。

Container.N.LifecyclePreStopHandlerTcpSocketPort Integer 80

使用TCP Socket方式設定PreStop回呼函數時,TCP Socket檢測的連接埠。

Volume.N.Type String EmptyDirVolume

資料卷類型,取值範圍:

  • EmptyDirVolume。
  • NFSVolume。
  • ConfigFileVolume。
  • FlexVolume。
Volume.N.DiskVolume.DiskSize Integer 15

DiskVolume的大小。單位:GiB。

Volume.N.NFSVolume.Path String /share

NFS資料卷路徑。

Volume.N.FlexVolume.FsType String ext4

掛載的檔案系統類型,預設取決於FlexVolume的script。

Volume.N.DiskVolume.FsType String xfs

該系統類別型不推薦使用,建議您使用FlexVolume.FsType參數。

Volume.N.HostPathVolume.Type String Directory

Host目錄的類型。例如:File、Directory、Socket等。

Volume.N.NFSVolume.ReadOnly Boolean false

NFS資料卷是否唯讀。

  • true:唯讀。
  • false:可讀可寫。

預設值:false。

Volume.N.HostPathVolume.Path String /xx/xx/name

Host上的絕對路徑。

Volume.N.FlexVolume.Options String {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}

FlexVolume對象選項列表。為KV形式,採用JSON傳遞。

例如:通過FlexVolume掛載雲端硬碟時,Options的格式為{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}

Volume.N.FlexVolume.Driver String flexvolume

用於FlexVolume的驅動程式名稱。

Volume.N.ConfigFileVolumeDefaultMode Integer 0644

ConfigFileVolume預設的許可權。

Volume.N.NFSVolume.Server String 3f9cd4a596-n****.cn-shanghai.nas.aliyuncs.com

NFS伺服器位址。

Volume.N.DiskVolume.DiskId String d-xx

DiskVolume的ID。

Volume.N.Name String default-volume1

資料卷名稱。

Volume.N.EmptyDirVolume.Medium String memory

EmptyDirVolume的儲存媒介,預設為空白,使用node檔案系統;支援memory,表示使用記憶體。

Volume.N.ConfigFileVolumeConfigFileToPath.N.Path String /usr/bin/

相對檔案路徑。

Volume.N.ConfigFileVolumeConfigFileToPath.N.Mode Integer 0644

ConfigFileVolume目錄許可權。

Volume.N.ConfigFileVolumeConfigFileToPath.N.Content String bGl1bWk=

設定檔內容(32 KB)。

Volume.N.EmptyDirVolume.SizeLimit String 256 Mi

EmptyDir資料卷的大小。取值時請帶上單位,建議使用Gi或Mi。

InitContainer.N.InitContainerEnvironmentVar.N.Key String Path

環境變數名。長度為1~128位。格式要求:[0-9a-zA-Z],以及底線,不能以數字開頭。

InitContainer.N.InitContainerEnvironmentVar.N.Value String /usr/bin/

環境變數值。長度為0~256位。

InitContainer.N.SecurityContext.Capability.Add.N String NET_ADMIN

為容器內的進程授予某些特定的許可權。目前僅支援配置為NET_ADMIN和NET_RAW。

說明 NET_RAW預設不支援,需提交工單申請。
InitContainer.N.Image String nginx

容器使用的鏡像。

InitContainer.N.InitContainerVolumeMount.N.MountPropagation String None

資料卷的掛載傳播設定。掛載傳播允許將Container掛載的卷共用到同一Pod中的其他Container,甚至可以共用到同一節點上的其他Pod。取值範圍:

  • None:該卷不感知任何後續在此卷或其子目錄上執行的掛載操作。
  • HostToCotainer:該卷將會感知到後續在此卷或其子目錄上的掛載操作。
  • Bidirectional:和HostToCotainer類似,能感知掛載操作。另外,該卷將被傳播回主機和使用同一卷的所有Pod的所有容器。

預設值:None。

InitContainer.N.InitContainerVolumeMount.N.MountPath String /usr/share/

掛載目錄。

重要 容器掛載目錄下的內容會被Volume的內容直接覆蓋,請您謹慎使用。
InitContainer.N.InitContainerVolumeMount.N.ReadOnly Boolean false

掛載路徑是否唯讀。

  • true:唯讀。
  • false:可讀可寫。

預設值:false。

InitContainer.N.InitContainerVolumeMount.N.Name String test-empty

掛載資料卷的名稱。

InitContainer.N.InitContainerVolumeMount.N.SubPath String /usr/sub/

資料卷下的子目錄,方便Pod將同一個Volume下不同目錄掛載到容器不同目錄。

InitContainer.N.ImagePullPolicy String Always

鏡像拉取策略。取值範圍:

  • Always:總是拉取。每次都拉取鏡像。
  • IfNotPresent:按需拉取。優先使用本地鏡像,本地沒有鏡像時則拉取鏡像。
  • Never:從不拉取。使用本地鏡像,不拉取鏡像。
InitContainer.N.Cpu Float 0.5

容器的vCPU大小。單位:核。

InitContainer.N.WorkingDir String /usr/local

工作目錄。

InitContainer.N.Command.N String sleep

容器啟動指令。

InitContainer.N.Arg.N String 10

容器啟動參數。

InitContainer.N.SecurityContext.RunAsUser Long 587

設定運行容器的使用者ID。

InitContainer.N.Gpu Integer 1

指定容器使用的GPU個數。

InitContainer.N.Memory Float 1.0

記憶體大小。單位:GiB。

InitContainer.N.Name String test-init

容器名稱。

DnsConfigNameServer.N String 172.10.*.**

DNS伺服器的IP地址清單。

DnsConfigSearch.N String svc.local.kubenetes

DNS搜尋域列表。

DnsConfigOption.N.Value String value

物件變數值。

DnsConfigOption.N.Name String name

物件變數名。

HostAliase.N.Ip String 192.0.XX.XX

添加IP地址。

HostAliase.N.Hostname.N String ['hehe.com', 'haha.com']

添加主機名稱。

SecurityContextSysctl.N.Value String 65536

執行個體啟動並執行安全內容相關的變數值。

SecurityContextSysctl.N.Name String kernel.msgmax

執行個體啟動並執行安全上下文系統名稱。

NtpServer.N String ntp.cloud.aliyuncs.com

NTP伺服器。

AcrRegistryInfo.N.Domain.N String *****-****-registry.cn-beijing.cr.aliyuncs.com

ACR企業版執行個體的網域名稱。預設為相應執行個體的所有網域名稱。支援指定個別網域名稱,多個以半形逗號分隔。

AcrRegistryInfo.N.InstanceName String acr-test

ACR企業版執行個體的名稱。

AcrRegistryInfo.N.InstanceId String cri-nwj395hgf6f3****

ACR企業版執行個體ID。

AcrRegistryInfo.N.RegionId String cn-hangzhou

ACR企業版執行個體所屬地區。

CostOptimization Boolean false

是否開啟成本最佳化開關。取值範圍:

  • true:開啟。
  • false:未開啟。

預設值:false。

InstanceFamilyLevel String EnterpriseLevel

執行個體規格類型系列層級,用於篩選符合要求的執行個體規格範圍,當CostOptimization開啟時生效。取值範圍:

  • EntryLevel:入門級,即共用型執行個體規格。成本更低,但是無法保證執行個體計算效能的穩定。適用於平時CPU使用率低的業務情境。更多資訊,請參見共用型
  • EnterpriseLevel:企業級。效能穩定且資源獨享,適用於對穩定性要求高的業務情境。更多資訊,請參見執行個體規格類型系列
  • CreditEntryLevel:積分入門級,即突發效能執行個體。通過CPU積分來保證計算效能,適用於平時CPU使用率低、偶有突發CPU使用率的業務情境。更多資訊,請參見突發效能執行個體概述
ContainersUpdateType String RenewUpdate

Containers參數更新方式的控制參數。取值範圍:

  • RenewUpdate:全量更新,以更新要求參數中Containers為準,覆蓋原有Containers參數配置。
  • IncrementalUpdate:累加式更新,根據Containers.Name進行Containers匹配,僅更新要求參數中已設定的參數,未設定的參數不進行更新。

預設值:RenewUpdate。

InstanceType.N String ecs.g6.large

指定的ECS執行個體規格。支援指定多個規格(最多支援5個),更多資訊,請參見指定ECS規格建立執行個體

DataCacheBucket String default

資料緩衝Bucket。

DataCachePL String PL1

資料緩衝使用的雲端硬碟的效能等級。建議優先使用ESSD雲端硬碟,該雲端硬碟的效能等級取值範圍:

  • PL0:單盤最高隨機讀寫IOPS 1萬。
  • PL1:單盤最高隨機讀寫IOPS 5萬。
  • PL2:單盤最高隨機讀寫IOPS 10萬。
  • PL3:單盤最高隨機讀寫IOPS 100萬。

預設值:PL1。

說明 關於ESSD雲端硬碟的更多資訊,請參見ESSD雲端硬碟
DataCacheProvisionedIops Integer 40000

資料緩衝使用ESSD AutoPL雲端硬碟時,ESSD AutoPL雲端硬碟預配置的讀寫IOPS。 取值範圍:0~min{50000, 1000*容量-基準效能},其中,基準效能=min{1800+50*容量, 50000}。

說明 關於ESSD AutoPL雲端硬碟的更多資訊,請參見ESSD AutoPL雲端硬碟
DataCacheBurstingEnabled Boolean false

資料緩衝使用ESSD AutoPL雲端硬碟時,是否開啟Burst(效能突發)。取值範圍:

  • true:開啟。
  • false:未開啟。

預設值:false。

說明 關於ESSD AutoPL雲端硬碟的更多資訊,請參見ESSD AutoPL雲端硬碟
GpuDriverVersion String tesla=525.85.12

指定GPU驅動版本。取值範圍:

  • tesla=470.82.01(預設值)
  • tesla=525.85.12
說明 僅部分規格支援切換GPU驅動版本。更多資訊,請參見指定GPU規格建立執行個體

返回資料

名稱

類型

樣本值

描述

RequestId String 89945DD3-9072-47D0-A318-353284CF****

請求ID,唯一標識。

樣本

請求樣本

http(s)://ess.aliyuncs.com/?Action=ModifyEciScalingConfiguration
&ScalingConfigurationId=asc-bp16har3jpj6fjbx****
&ScalingConfigurationName=test-modify
&SecurityGroupId=sg-uf66jeqopgqa9hdn****
&ContainerGroupName=nginx-test
&RestartPolicy=Always
&Cpu=1.0
&Memory=2.0
&ResourceGroupId=rg-uf66jeqopgqa9hdn****
&DnsPolicy=Default
&ImageSnapshotId=imc-2zebxkiifuyzzlhl****
&RamRoleName=RamTestRole
&TerminationGracePeriodSeconds=60
&AutoMatchImageCache=false
&Ipv6AddressCount=1
&ActiveDeadlineSeconds=1000
&SpotStrategy=SpotPriceLimit
&SpotPriceLimit=0.025
&AutoCreateEip=true
&EipBandwidth=5
&HostName=test
&IngressBandwidth=1024000
&EgressBandwidth=1024000
&CpuOptionsCore=2
&CpuOptionsThreadsPerCore=2
&EphemeralStorage=20
&LoadBalancerWeight=50
&Tag=[{"Key":"version","Value":"3"}]
&ImageRegistryCredential=[{"Password":"yourpaasword","Server":"registry-vpc.cn-shanghai.aliyuncs.com","UserName":"yourusername"}]
&Container=[{"ReadinessProbe.TimeoutSeconds":1,"ReadinessProbe.SuccessThreshold":1,"SecurityContext.Capability.Add":["NET_ADMIN"],"ReadinessProbe.TcpSocket.Port":8000,"ReadinessProbe.HttpGet.Scheme":"HTTP","LivenessProbe.PeriodSeconds":5,"Port":[{"Protocol":"TCP","Port":80}],"SecurityContext.ReadOnlyRootFilesystem":true,"EnvironmentVar":[{"Key":"PATH","Value":"/usr/local/bin"}],"LivenessProbe.TcpSocket.Port":8000,"Tty":false,"WorkingDir":"/usr/local/","LivenessProbe.HttpGet.Scheme":"HTTP","ReadinessProbe.HttpGet.Port":8080,"Arg":["100"],"Gpu":1,"ReadinessProbe.InitialDelaySeconds":3,"Stdin":false,"Memory":0.5,"Name":"nginx","Image":"registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest","LivenessProbe.InitialDelaySeconds":5,"VolumeMount":[{"MountPropagation":"None","MountPath":"/pod/data","ReadOnly":false,"Name":"default-volume1","SubPath":"data2/"}],"LivenessProbe.FailureThreshold":3,"ReadinessProbe.Exec.Command":["cat/tmp/healthy"],"ReadinessProbe.FailureThreshold":3,"ImagePullPolicy":"Always","StdinOnce":false,"Cpu":0.25,"LivenessProbe.HttpGet.Port":8888,"LivenessProbe.HttpGet.Path":"/healthyz","LivenessProbe.SuccessThreshold":1,"ReadinessProbe.PeriodSeconds":3,"LivenessProbe.TimeoutSeconds":1,"Command":["sleep"],"SecurityContext.RunAsUser":1000,"ReadinessProbe.HttpGet.Path":"/healthz","LivenessProbe.Exec.Command":["cat /tmp/healthy"],"LifecyclePostStartHandlerHttpGetHost":"10.0.XX.XX","LifecyclePostStartHandlerHttpGetPort":5050,"LifecyclePostStartHandlerHttpGetPath":"/healthyz","LifecyclePostStartHandlerHttpGetScheme":"HTTPS","LifecyclePostStartHandlerExec":["[     \"/bin/sh\",      \"-c\",      \"echo Hello from the postStart handler   /usr/share/message\" ]"],"LifecyclePostStartHandlerTcpSocketHost":"10.0.XX.XX","LifecyclePostStartHandlerTcpSocketPort":80,"LifecyclePreStopHandlerHttpGetHost":"10.0.XX.XX","LifecyclePreStopHandlerHttpGetPort":80,"LifecyclePreStopHandlerHttpGetPath":"/healthyz","LifecyclePreStopHandlerHttpGetScheme":"HTTP","LifecyclePreStopHandlerExec":["[     \"/bin/sh\",     \"-c\",     \"echo Hello from the preStop handler  /usr/share/message\" ]"],"LifecyclePreStopHandlerTcpSocketHost":"10.0.XX.XX","LifecyclePreStopHandlerTcpSocketPort":80}]
&Volume=[{"Type":"EmptyDirVolume","DiskVolume.DiskSize":15,"NFSVolume.Path":"/share","FlexVolume.FsType":"ext4","DiskVolume.FsType":"xfs","HostPathVolume.Type":"Directory","NFSVolume.ReadOnly":false,"HostPathVolume.Path":"/xx/xx/name","FlexVolume.Options":"{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}","FlexVolume.Driver":"flexvolume","ConfigFileVolumeDefaultMode":644,"NFSVolume.Server":"3f9cd4a596-n****.cn-shanghai.nas.aliyuncs.com","DiskVolume.DiskId":"d-xx","Name":"default-volume1","EmptyDirVolume.Medium":"memory","ConfigFileVolumeConfigFileToPath":[{"Path":"/usr/bin/","Mode":644,"Content":"bGl1bWk="}],"EmptyDirVolume.SizeLimit":"256 Mi"}]
&InitContainer=[{"InitContainerEnvironmentVar":[{"Key":"Path","Value":"/usr/bin/"}],"SecurityContext.Capability.Add":["NET_ADMIN"],"Image":"nginx","InitContainerVolumeMount":[{"MountPropagation":"None","MountPath":"/usr/share/","ReadOnly":false,"Name":"test-empty","SubPath":"/usr/sub/"}],"ImagePullPolicy":"Always","Cpu":0.5,"WorkingDir":"/usr/local","Command":["sleep"],"Arg":["10"],"SecurityContext.RunAsUser":587,"Gpu":1,"Memory":1.0,"Name":"test-init"}]
&DnsConfigNameServer=["172.10.*.**"]
&DnsConfigSearch=["svc.local.kubenetes"]
&DnsConfigOption=[{"Value":"value","Name":"name"}]
&HostAliase=[{"Ip":"192.0.XX.XX","Hostname":["['hehe.com', 'haha.com']"]}]
&SecurityContextSysctl=[{"Value":"65536","Name":"kernel.msgmax"}]
&NtpServer=["ntp.cloud.aliyuncs.com"]
&AcrRegistryInfo=[{"Domain":["*****-****-registry.cn-beijing.cr.aliyuncs.com"],"InstanceName":"acr-test","InstanceId":"cri-nwj395hgf6f3****","RegionId":"cn-hangzhou"}]
&CostOptimization=false
&InstanceFamilyLevel=EnterpriseLevel
&ContainersUpdateType=RenewUpdate
&InstanceType=["ecs.g6.large"]
&DataCacheBucket=default
&DataCachePL=PL1
&DataCacheProvisionedIops=40000
&DataCacheBurstingEnabled=false
&GpuDriverVersion=tesla=525.85.12
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyEciScalingConfigurationResponse>
    <RequestId>89945DD3-9072-47D0-A318-353284CF****</RequestId>
</ModifyEciScalingConfigurationResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "89945DD3-9072-47D0-A318-353284CF****"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

HttpCode

錯誤碼

錯誤資訊

描述

403

Forbidden.Unauthorized

A required authorization for the specified action is not supplied.

未授權操作當前Action。

404

InvalidDataDiskSnapshotId.NotFound

Snapshot "XXX" does not exist.

不存在指定的快照。

400

InvalidDataDiskSnapshotId.SizeNotSupported

The capacity of snapshot "XXX" exceeds the size limit of the specified disk category.

指定快照的大小超過了磁碟大小的限制。

404

InvalidImageId.NotFound

The specified image does not exist.

指定的鏡像不存在。

400

InvalidKeyPairName.NotFound

The specified KeyPairName does not exist in our records.

指定的KeyPairName不存在。

400

InvalidNetworkType.ForRAMRole

RAMRole can't be used For classic instance.

傳統網路執行個體不支援RamRoleName參數。

400

InvalidParamter

The specified value of parameter is not valid.

指定的參數值無效。

400

InvalidScalingConfigurationName.Duplicate

The specified value of parameter is duplicated.

伸縮配置名已存在。

400

InvalidSecurityGroupId.IncorrectNetworkType

The network type of specified Security Group does not support this action.

指定的安全性群組與伸縮組指定網路類型不一致。

400

InvalidSecurityGroupId.VPCMismatch

The specified security group and the specified virtual switch are not in the same VPC.

指定的安全性群組和虛擬交換器不屬於同一個Virtual Private Cloud絡。

400

InvalidTags.KeyValue

The specified tags key/value cannot be empty.

必須指定Tags參數。

400

InvalidTags.ListSize

The specified tags list size cannot be more than "20".

Tags列表長度超過限制長度。

400

InvalidUserData.Base64FormatInvalid

The specified parameter UserData must be base64 encoded.

UserData不符合Base64編碼規範。

400

InvalidUserData.SizeExceeded

The specified parameter UserData exceeds the size.

指定的UserData過長。