DescribeEciScalingConfigurationDetail - 查詢ECI類型伸縮配置資訊
調用API DescribeEciScalingConfigurationDetail,通過伸縮組的伸縮配置ID查詢對應的伸縮配置資訊(例如臨時儲存空間大小、IPv6地址數、Elastic IP Address的頻寬等),支援輸出為YAML格式。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ess:DescribeEciScalingConfigurationDetail |
get |
*ScalingGroup
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
伸縮規則所屬伸縮組的地區 ID。 |
cn-beijing |
| ScalingGroupId |
string |
否 |
伸縮配置所屬的伸縮組的 ID。 |
asg-bp1ffogfdauy0jw0**** |
| ScalingConfigurationId |
string |
是 |
ECI 類型伸縮組的伸縮配置 ID。 |
asc-bp1ffogfdauy0nu5**** |
| OutputFormat |
string |
否 |
Output 輸出格式,現僅支援 YAML。 枚舉值:
|
YAML |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
6EF9BFEE-FE07-4627-B8FB-14326FB9**** |
| ScalingConfiguration |
object |
伸縮配置資訊。 |
|
| CreationTime |
string |
伸縮配置的建立時間。 |
2023-05-10T02:39:15Z |
| ScalingConfigurationName |
string |
伸縮配置的名稱。 |
scalingconfi**** |
| SecurityGroupId |
string |
ECI 執行個體所屬的安全性群組的 ID,同一個安全性群組內的 ECI 執行個體可以互相訪問。 |
sg-bp18kz60mefs**** |
| ActiveDeadlineSeconds |
integer |
有效期間限。單位為秒。 |
60 |
| SpotStrategy |
string |
執行個體的搶佔策略。可能值:
|
NoSpot |
| AutoCreateEip |
boolean |
是否自動建立彈性公網 IP,並綁定 ECI 執行個體。 |
true |
| ScalingGroupId |
string |
伸縮組的 ID。 |
asg-bp1frlu04fq4zv65b1bh |
| EphemeralStorage |
integer |
臨時儲存空間大小。單位:GiB。 |
20 |
| Ipv6AddressCount |
integer |
IPv6 地址數。 |
1 |
| Description |
string |
說明
該參數未開放使用。 |
This is an example. |
| EipBandwidth |
integer |
彈性公網 IP 的頻寬。預設為 5 M。 |
5 |
| ImageSnapshotId |
string |
鏡像緩衝 ID。 |
imc-2zebxkiifuyzzlhl**** |
| Memory |
number |
記憶體大小。單位:GiB。 同時指定 CPU 和 Memory 可以定義執行個體規格範圍。例如,CPU=2 且 Memory=16 可以定義配置為 2 vCPU 和 16 GiB 的所有執行個體規格。Auto Scaling會結合 IO 最佳化、可用性區域等因素確定可用執行個體規格集合,並根據價格排序為您建立價格最低的執行個體。 說明
該區間配置效果僅在成本最佳化模式下且伸縮配置未設定執行個體規格時生效。 |
4 |
| RestartPolicy |
string |
容器組的重啟策略。可能值:
|
Always |
| SpotPriceLimit |
number |
搶佔式執行個體的每小時最高價格。 僅當 SpotStrategy 為 SpotWithPriceLimit 時返回。 |
0.025 |
| IngressBandwidth |
integer |
入方向頻寬節流設定。單位:Byte。 |
1024000 |
| CpuOptionsThreadsPerCore |
integer |
每核線程數。僅部分規格支援自訂設定。配置為 1 時表示關閉超執行緒。更多資訊,請參見自訂 CPU 選項。 |
2 |
| TerminationGracePeriodSeconds |
integer |
程式的緩衝時間,用於處理關閉之前的操作。 |
60 |
| LoadBalancerWeight |
integer |
ECI 執行個體作為負載平衡後端伺服器時的權重,取值範圍:1~100。 預設值:50。 |
50 |
| DnsPolicy |
string |
DNS 策略。 |
Default |
| HostName |
string |
主機名稱。 |
hostname |
| EgressBandwidth |
integer |
出方向頻寬節流設定。單位:Byte。 |
10485760 |
| RegionId |
string |
伸縮規則所屬伸縮組的地區 ID。 |
cn-shanghai |
| RamRoleName |
string |
執行個體 RAM 角色名稱,ECI 與 ECS 共用執行個體 RAM 角色,具體操作,請參見通過 API 使用執行個體 RAM 角色。 |
ram:PassRole |
| Cpu |
number |
執行個體層級 vCPU 大小。單位:核。 |
2.0 |
| AutoMatchImageCache |
boolean |
是否自動匹配鏡像緩衝。 預設值:false。 |
true |
| ResourceGroupId |
string |
資源群組 ID |
rg-acfmwozpmmksakq |
| ContainerGroupName |
string |
容器組執行個體名稱。 |
test |
| ScalingConfigurationId |
string |
伸縮配置的 ID。 |
asc-2zec39vg84usxdocme6a |
| CpuOptionsCore |
integer |
CPU 物理核心數。僅部分規格支援自訂設定。 |
2 |
| SlsEnable |
boolean |
開啟使用者日誌收集,預設為 false。 |
false |
| Containers |
array<object> |
執行個體包含的容器列表。 |
|
|
array<object> |
執行個體包含的容器列表。 |
||
| ReadinessProbeHttpGetPath |
string |
HttpGet 檢測的路徑。 |
/usr/local |
| ReadinessProbeSuccessThreshold |
integer |
從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設為 1。當前值必須為 1。 |
1 |
| LivenessProbePeriodSeconds |
integer |
檢查執行的周期,預設為 10 秒,最小值為 1 秒。 |
5 |
| LivenessProbeTcpSocketPort |
integer |
TcpSocket 的連接埠號碼。 |
80 |
| LivenessProbeHttpGetScheme |
string |
使用 HTTP 要求方式進行健全狀態檢查時,HTTP Get 請求對應的協議類型,取值範圍:
|
HTTP |
| WorkingDir |
string |
容器內工作目錄。 |
/usr/local/nginx |
| Tty |
boolean |
是否開啟互動。取值範圍:
例如:當 Command 配置為/bin/bash 時,需要配置為 true。 預設值:false。 |
true |
| LivenessProbeHttpGetPort |
integer |
HttpGet 檢測的連接埠。 |
8080 |
| Gpu |
integer |
GPU 個數。 |
2 |
| ReadinessProbeInitialDelaySeconds |
integer |
檢查開始執行的時間,以容器啟動完成為起點計算。 |
5 |
| Stdin |
boolean |
此容器是否應在容器運行時為標準輸入分配緩衝區。如果未設定,則容器中標準輸入的讀取值將導致 EOF。預設為 false。 |
true |
| Memory |
number |
記憶體大小。 |
2.0 |
| Name |
string |
容器名稱。 |
nginx |
| SecurityContextReadOnlyRootFilesystem |
boolean |
是否唯讀根檔案系統,目前僅支援 true。 |
true |
| LivenessProbeHttpGetPath |
string |
HttpGet 檢測的路徑。 |
/usr/nginx/ |
| Image |
string |
容器鏡像。 |
registry-vpc.aliyuncs.com/eci_open/alpine:3.5 |
| ReadinessProbeTcpSocketPort |
integer |
TcpSocket 的連接埠號碼。 |
80 |
| ReadinessProbeHttpGetScheme |
string |
使用 HTTP 要求方式進行健全狀態檢查時,HTTP Get 請求對應的協議類型,取值範圍:
|
HTTP |
| ReadinessProbeHttpGetPort |
integer |
HttpGet 檢測的路徑。 |
80 |
| LivenessProbeSuccessThreshold |
integer |
從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設為 1。當前值必須為 1。 |
1 |
| ReadinessProbeTimeoutSeconds |
integer |
檢查逾時的時間,預設為 1 秒,最小為 1 秒。 |
5 |
| SecurityContextRunAsUser |
integer |
用於運行容器進程進入點的 UID。 |
1000 |
| LivenessProbeInitialDelaySeconds |
integer |
檢查開始執行的時間,以容器啟動完成為起點計算。 |
10 |
| ReadinessProbePeriodSeconds |
integer |
檢查執行的周期,預設為 10 秒,最小為 1 秒。 |
5 |
| ImagePullPolicy |
string |
鏡像拉取策略。 |
Always |
| StdinOnce |
boolean |
當標準輸入為 true 時,標準輸入資料流將在多個附加會話中保持開啟狀態。 如果 StdinOnce 設為 true,標準輸入在容器開啟時被開啟,在首個用戶端附加到標準輸入之前都為空白,然後會一直保持開啟狀態,接收資料,直到用戶端串連斷開,此時標準輸入被關閉,在容器重啟前一直保持關閉狀態。 |
true |
| Cpu |
number |
執行個體層級 vCPU 大小。 |
2 |
| LivenessProbeTimeoutSeconds |
integer |
檢查逾時的時間,預設為 1 秒,最小值為 1 秒。 |
10 |
| ReadinessProbeFailureThreshold |
integer |
從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗)。 預設值:3。 |
3 |
| LivenessProbeFailureThreshold |
integer |
從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗)。 預設值:3。 |
3 |
| Ports |
array<object> |
暴露連接埠和協議。 |
|
|
object |
暴露連接埠和協議。 |
||
| Port |
integer |
連接埠號碼。可能值:1~65535。 |
8083 |
| Protocol |
string |
協議類型。取值範圍:
|
TCP |
| VolumeMounts |
array<object> |
掛載資料卷。 |
|
|
object |
掛載資料卷。 |
||
| ReadOnly |
boolean |
資料卷是否唯讀。 預設值:false。 |
true |
| SubPath |
string |
資料卷子路徑。 |
data2/ |
| Name |
string |
掛載資料卷的名稱。 |
default-volume1 |
| MountPropagation |
string |
資料卷的掛載傳播設定。掛載傳播允許將 Container 掛載的卷共用到同一 Pod 中的其他 Container,甚至可以共用到同一節點上的其他 Pod。可能值:
預設值:None。 |
None |
| MountPath |
string |
容器掛載資料卷的目錄。 重要 容器掛載目錄下的內容會被 Volume 的內容直接覆蓋,請您謹慎使用。
|
/pod/data |
| EnvironmentVars |
array<object> |
環境變數的資訊。 |
|
|
object |
環境變數的資訊。 |
||
| Key |
string |
環境變數名。 |
PATH |
| Value |
string |
環境變數值。 |
/usr/bin/ |
| FieldRefFieldPath |
string |
說明
該參數未開放使用。 |
fieldPath |
| Commands |
array |
容器啟動指令。 |
|
|
string |
容器啟動指令。 |
sleep |
|
| LivenessProbeExecCommands |
array |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
|
|
string |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
cat /tmp/healthy |
|
| Args |
array |
容器啟動參數。 |
|
|
string |
容器啟動參數。 |
100 |
|
| ReadinessProbeExecCommands |
array |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
|
|
string |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
cat /tmp/healthy |
|
| SecurityContextCapabilityAdds |
array |
為容器內的進程授予某些特定的許可權。目前僅支援配置為 NET_ADMIN 和 NET_RAW。 |
|
|
string |
為容器內的進程授予某些特定的許可權。目前僅支援配置為 NET_ADMIN 和 NET_RAW。 |
NET_ADMIN |
|
| LifecyclePostStartHandlerHttpGetHost |
string |
使用 HTTP 要求方式設定 postStart 回呼函數時,接收 HTTP Get 請求的主機地址。 |
10.0.XX.XX |
| LifecyclePostStartHandlerHttpGetPort |
integer |
使用 HTTP 要求方式設定 postStart 回呼函數時,HTTP Get 請求檢查的連接埠號碼。 |
80 |
| LifecyclePostStartHandlerHttpGetPath |
string |
使用 HTTP 要求方式設定 postStart 回呼函數時,HTTP Get 請求檢測的路徑。 |
/healthyz |
| LifecyclePostStartHandlerHttpGetScheme |
string |
使用 HTTP 要求方式設定 postStart 回呼函數時,HTTP Get 請求對應的協議類型。 |
HTTP |
| LifecyclePostStartHandlerExecs |
array |
使用命令列方式設定 postStart 回呼函數時,在容器內執行的命令。 |
|
|
string |
使用命令列方式設定 postStart 回呼函數時,在容器內執行的命令。 |
["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"] |
|
| LifecyclePostStartHandlerTcpSocketHost |
string |
使用 TCP Socket 方式設定 postStart 回呼函數時,TCP Socket 檢測的主機地址。 |
10.0.XX.XX |
| LifecyclePostStartHandlerTcpSocketPort |
integer |
使用 TCPSocket 方式設定 postStart 回呼函數時,TCP Socket 檢測的連接埠。 |
80 |
| LifecyclePreStopHandlerHttpGetHost |
string |
使用 HTTP 要求方式設定 preStop 回呼函數時,接收 HTTP Get 請求的主機地址。 |
10.0.XX.XX |
| LifecyclePreStopHandlerHttpGetPort |
integer |
使用 HTTP 要求方式設定 preStop 回呼函數時,HTTP Get 請求檢測的連接埠號碼。 |
80 |
| LifecyclePreStopHandlerHttpGetPath |
string |
使用 HTTP 要求方式設定 preStop 回呼函數時,HTTP Get 請求檢測的路徑。 |
/healthyz |
| LifecyclePreStopHandlerHttpGetScheme |
string |
使用 HTTP 要求方式設定 preStop 回呼函數時,HTTP Get 請求對應的協議類型。 |
HTTP |
| LifecyclePreStopHandlerExecs |
array |
使用命令列方式設定 preStop 回呼函數時,在容器內執行的命令。 |
|
|
string |
使用命令列方式設定 preStop 回呼函數時,在容器內執行的命令。 |
["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"] |
|
| LifecyclePreStopHandlerTcpSocketHost |
string |
使用 TCP Socket 方式設定 preStop 回呼函數時,TCP Socket 檢測的主機地址。 |
10.0.XX.XX |
| LifecyclePreStopHandlerTcpSocketPort |
integer |
使用 TCPSocket 方式設定 preStop 回呼函數時,TCP Socket 檢測的連接埠。 |
80 |
| InitContainers |
array<object> |
init 容器列表。 |
|
|
array<object> |
init 容器列表。 |
||
| SecurityContextReadOnlyRootFilesystem |
boolean |
是否唯讀根檔案系統,目前僅支援 true。 |
|
| ImagePullPolicy |
string |
鏡像拉取策略。 |
Always |
| WorkingDir |
string |
工作目錄。 |
/www |
| Cpu |
number |
容器 CPU 核心數。 |
0.5 |
| Image |
string |
容器鏡像。 |
registry-vpc.cn-hongkong.aliyuncs.com/eci_open/nginx:alpine |
| Gpu |
integer |
指定容器使用的 GPU 個數。 |
1 |
| SecurityContextRunAsUser |
string |
設定運行容器的使用者識別碼。 |
1000 |
| Memory |
number |
記憶體大小。 |
1.0 |
| Name |
string |
容器名稱。 |
test-init |
| InitContainerEnvironmentVars |
array<object> |
init 容器的環境變數資訊。 |
|
|
object |
init 容器的環境變數資訊。 |
||
| Key |
string |
環境變數名。 |
PATH |
| Value |
string |
環境變數值。 |
/usr/local/bin |
| FieldRefFieldPath |
string |
說明
該參數未開放使用。 |
path |
| InitContainerPorts |
array<object> |
init 容器連接埠資訊。 |
|
|
object |
init 容器連接埠資訊。 |
||
| Port |
integer |
連接埠號碼。取值範圍:1~65535。 |
1024 |
| Protocol |
string |
協議類型。取值範圍:
|
UDP |
| InitContainerVolumeMounts |
array<object> |
init 容器的掛載點資訊數組。 |
|
|
object |
資料卷掛載。 |
||
| ReadOnly |
boolean |
掛載路徑是否唯讀。 預設值:false。 |
false |
| SubPath |
string |
資料卷子路徑。 |
/usr/sub/ |
| Name |
string |
掛載資料卷的名稱。 |
test-empty |
| MountPropagation |
string |
資料卷的掛載傳播設定。掛載傳播允許將 Container 掛載的卷共用到同一 Pod 中的其他 Container,甚至可以共用到同一節點上的其他 Pod。可能值:
預設值:None。 |
None |
| MountPath |
string |
容器掛載資料卷的目錄。 說明
容器掛載目錄下的內容會被 Volume 的內容直接覆蓋,請謹慎使用。 |
/usr/share/ |
| SecurityContextCapabilityAdds |
array |
為容器內的進程授予某些特定的許可權。目前僅支援配置為 NET_ADMIN 和 NET_RAW。 |
|
|
string |
為容器內的進程授予某些特定的許可權。目前僅支援配置為 NET_ADMIN 和 NET_RAW。 說明
NET_RAW 預設不支援,需提交工單申請。 |
NET_ADMIN |
|
| InitContainerCommands |
array |
容器啟動指令。 |
|
|
string |
容器啟動指令。 |
sleep |
|
| InitContainerArgs |
array |
容器啟動參數。 |
|
|
string |
容器啟動參數。 |
10 |
|
| Tags |
array<object> |
執行個體的標籤索引值對。 |
|
|
object |
執行個體的標籤索引值對。 |
||
| Key |
string |
標籤鍵 |
version |
| Value |
string |
標籤值。 |
3 |
| Volumes |
array<object> |
資料卷資訊。 |
|
|
array<object> |
資料卷資訊。 |
||
| Type |
string |
資料卷類型,可能值:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
DiskVolume 的 ID。 |
d-xx |
| DiskVolumeFsType |
string |
DiskVolume 的系統類別型。 |
xfs |
| EmptyDirVolumeMedium |
string |
EmptyDirVolume 的儲存媒介,預設為空白,使用 node 檔案系統。支援 memory,表示使用記憶體。 |
memory |
| NFSVolumePath |
string |
NFS 資料卷路徑。 |
/share |
| DiskVolumeDiskSize |
integer |
DiskVolume 的大小。單位為 GiB。 |
15 |
| NFSVolumeReadOnly |
boolean |
NFS 資料卷是否唯讀。 預設值:false。 |
false |
| FlexVolumeFsType |
string |
掛載的檔案系統類型,預設取決於 FlexVolume 的 script。 |
ext4 |
| ConfigFileVolumeDefaultMode |
integer |
ConfigFileVolume 預設的許可權。 |
0644 |
| FlexVolumeDriver |
string |
用於 FlexVolume 的驅動程式名稱。 |
flexvolume |
| FlexVolumeOptions |
string |
FlexVolume 對象選項列表。 |
{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} |
| NFSVolumeServer |
string |
NFS 伺服器地址。 |
3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com |
| Name |
string |
資料卷名稱。 |
default-volume1 |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
設定檔路徑列表。 |
|
|
object |
設定檔路徑列表。 |
||
| Path |
string |
路徑 |
/usr/bin/ |
| Mode |
integer |
ConfigFileVolume 目錄許可權。 |
0644 |
| Content |
string |
設定檔內容。 |
bGl1bWk= |
| EmptyDirVolumeSizeLimit |
string |
EmptyDir 資料卷的大小。 |
256Mi |
| HostPathVolumeType |
string |
HostPath Volume 的類型。 |
Directory |
| HostPathVolumePath |
string |
HostPath Volume 在主機上的目錄路徑。 |
/pod/data |
| ImageRegistryCredentials |
array<object> |
鏡像倉庫資訊。 |
|
|
object |
鏡像倉庫資訊。 |
||
| Password |
string |
鏡像倉庫密碼。 |
yourpaasword |
| Server |
string |
鏡像倉庫登入位址。 |
registry-vpc.cn-shanghai.aliyuncs.com |
| UserName |
string |
鏡像倉庫使用者名稱。 |
yourusername |
| DnsConfigOptions |
array<object> |
DNS 配置選項。 |
|
|
object |
DNS 配置選項。 |
||
| Name |
string |
對象的變數名。 |
name |
| Value |
string |
物件變數值。 |
value |
| HostAliases |
array<object> |
自訂執行個體內一個容器的 Hostname 映射。 |
|
|
object |
自訂執行個體內一個容器的 Hostname 映射。 |
||
| Ip |
string |
添加 IP 位址。 |
192.0.XX.XX |
| Hostnames |
array |
添加主機名稱。 |
|
|
string |
添加主機名稱。 |
['hehe.com', 'haha.com'] |
|
| SecurityContextSysCtls |
array<object> |
執行個體啟動並執行安全內容相關的系統資訊。 |
|
|
object |
執行個體啟動並執行安全內容相關的變數值。 |
||
| Name |
string |
執行個體啟動並執行安全上下文系統名稱。 |
kernel.msgmax |
| Value |
string |
執行個體啟動並執行安全內容相關的變數值。 |
65536 |
| AcrRegistryInfos |
array<object> |
ACR 企業版執行個體的資訊。 |
|
|
object |
ACR 企業版執行個體的資訊。 |
||
| InstanceId |
string |
ACR 企業版執行個體 ID。 |
cri-nwj395hgf6f3**** |
| InstanceName |
string |
ACR 企業版執行個體的名稱。 |
acr-test |
| RegionId |
string |
ACR 企業版執行個體所屬地區。 |
cn-hangzhou |
| Domains |
array |
ACR 企業版執行個體的網域名稱。預設為相應執行個體的所有網域名稱。支援指定個別網域名稱,多個以半形逗號(,)分隔。 |
|
|
string |
ACR 企業版執行個體的網域名稱。預設為相應執行個體的所有網域名稱。支援指定個別網域名稱,多個以半形逗號(,)分隔。 |
*****-****-registry.cn-beijing.cr.aliyuncs.com |
|
| DnsConfigNameServers |
array |
DNS 伺服器的 IP 位址列表。 |
|
|
string |
DNS 伺服器的 IP 位址列表。 |
172.10.*.** |
|
| DnsConfigSearches |
array |
DNS 搜尋域列表。 |
|
|
string |
DNS 搜尋域列表。 |
svc.local.kubenetes |
|
| NtpServers |
array |
NTP 伺服器。 |
|
|
string |
NTP 伺服器。 |
ntp.cloud.aliyuncs.com |
|
| LifecycleState |
string |
伸縮配置在伸縮組中的狀態。取值範圍:
|
Active |
| CostOptimization |
boolean |
是否開啟成本最佳化開關。可能值:
|
false |
| InstanceFamilyLevel |
string |
執行個體規格類型系列層級,用於篩選符合要求的執行個體規格範圍,當
|
EnterpriseLevel |
| InstanceTypes |
array |
指定的 ECS 執行個體規格,支援多規格(最多支援 5 個)。 |
|
|
string |
指定的 ECS 執行個體規格。支援指定多個規格(最多支援 5 個)。更多資訊,請參見指定 ECS 規格建立執行個體。 |
ecs.g6.large |
|
| DataCacheBucket |
string |
資料緩衝 Bucket。 |
default |
| DataCachePL |
string |
資料緩衝使用的雲端硬碟的效能等級。 建議優先使用 ESSD 雲端硬碟,該雲端硬碟的效能等級的可能值:
說明
關於 ESSD 雲端硬碟的更多資訊,請參見 ESSD 雲端硬碟。 |
PL1 |
| DataCacheProvisionedIops |
integer |
資料緩衝使用 ESSD AutoPL 雲端硬碟時,ESSD AutoPL 雲端硬碟預配置的讀寫 IOPS。可能值:0~min{50000, 1000容量-基準效能},其中,基準效能=min{1800+50容量, 50000}。 說明
關於 ESSD AutoPL 雲端硬碟的更多資訊,請參見ESSD AutoPL 雲端硬碟。 |
40000 |
| DataCacheBurstingEnabled |
boolean |
資料緩衝使用 ESSD AutoPL 雲端硬碟時,是否開啟 Burst(效能突發)。取值範圍:
預設值:false。 說明
關於 ESSD AutoPL 雲端硬碟的更多資訊,請參見ESSD AutoPL 雲端硬碟。 |
false |
| EipPublicIpAddressPoolId |
string |
IP 位址集區 ID。 |
pippool-bp187arfugi543y1s**** |
| EipCommonBandwidthPackage |
string |
綁定已有的共用頻寬包。 |
cbwp-bp1rxai1z4b1an454xl8m |
| EipISP |
string |
設定 EIP 的線路類型。取值範圍:
|
BGP |
| ComputeCategory |
array |
算力類別。取值為 economy 時,表示查詢經濟型規格的執行個體。 |
|
|
string |
指定算力類別。 |
economy |
|
| Output |
string |
伸縮配置 YAML 輸出內容。 |
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx annotations: k8s.aliyun.com/eip-bandwidth: 10 k8s.aliyun.com/eci-with-eip: true spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6EF9BFEE-FE07-4627-B8FB-14326FB9****",
"ScalingConfiguration": {
"CreationTime": "2023-05-10T02:39:15Z",
"ScalingConfigurationName": "scalingconfi****",
"SecurityGroupId": "sg-bp18kz60mefs****",
"ActiveDeadlineSeconds": 60,
"SpotStrategy": "NoSpot",
"AutoCreateEip": true,
"ScalingGroupId": "asg-bp1frlu04fq4zv65b1bh",
"EphemeralStorage": 20,
"Ipv6AddressCount": 1,
"Description": "This is an example.",
"EipBandwidth": 5,
"ImageSnapshotId": "imc-2zebxkiifuyzzlhl****",
"Memory": 4,
"RestartPolicy": "Always",
"SpotPriceLimit": 0.025,
"IngressBandwidth": 1024000,
"CpuOptionsThreadsPerCore": 2,
"TerminationGracePeriodSeconds": 60,
"LoadBalancerWeight": 50,
"DnsPolicy": "Default",
"HostName": "hostname",
"EgressBandwidth": 10485760,
"RegionId": "cn-shanghai",
"RamRoleName": "ram:PassRole\n",
"Cpu": 2,
"AutoMatchImageCache": true,
"ResourceGroupId": "rg-acfmwozpmmksakq",
"ContainerGroupName": "test",
"ScalingConfigurationId": "asc-2zec39vg84usxdocme6a",
"CpuOptionsCore": 2,
"SlsEnable": false,
"Containers": [
{
"ReadinessProbeHttpGetPath": "/usr/local",
"ReadinessProbeSuccessThreshold": 1,
"LivenessProbePeriodSeconds": 5,
"LivenessProbeTcpSocketPort": 80,
"LivenessProbeHttpGetScheme": "HTTP",
"WorkingDir": "/usr/local/nginx",
"Tty": true,
"LivenessProbeHttpGetPort": 8080,
"Gpu": 2,
"ReadinessProbeInitialDelaySeconds": 5,
"Stdin": true,
"Memory": 2,
"Name": "nginx",
"SecurityContextReadOnlyRootFilesystem": true,
"LivenessProbeHttpGetPath": "/usr/nginx/\n",
"Image": "registry-vpc.aliyuncs.com/eci_open/alpine:3.5",
"ReadinessProbeTcpSocketPort": 80,
"ReadinessProbeHttpGetScheme": "HTTP",
"ReadinessProbeHttpGetPort": 80,
"LivenessProbeSuccessThreshold": 1,
"ReadinessProbeTimeoutSeconds": 5,
"SecurityContextRunAsUser": 1000,
"LivenessProbeInitialDelaySeconds": 10,
"ReadinessProbePeriodSeconds": 5,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"LivenessProbeTimeoutSeconds": 10,
"ReadinessProbeFailureThreshold": 3,
"LivenessProbeFailureThreshold": 3,
"Ports": [
{
"Port": 8083,
"Protocol": "TCP"
}
],
"VolumeMounts": [
{
"ReadOnly": true,
"SubPath": "data2/\n",
"Name": "default-volume1",
"MountPropagation": "None",
"MountPath": "/pod/data"
}
],
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/\n",
"FieldRefFieldPath": "fieldPath"
}
],
"Commands": [
"sleep"
],
"LivenessProbeExecCommands": [
"cat /tmp/healthy"
],
"Args": [
"100"
],
"ReadinessProbeExecCommands": [
"cat /tmp/healthy\n"
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"LifecyclePostStartHandlerHttpGetHost": "10.0.XX.XX",
"LifecyclePostStartHandlerHttpGetPort": 80,
"LifecyclePostStartHandlerHttpGetPath": "/healthyz\n",
"LifecyclePostStartHandlerHttpGetScheme": "HTTP",
"LifecyclePostStartHandlerExecs": [
"[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
],
"LifecyclePostStartHandlerTcpSocketHost": "10.0.XX.XX\n",
"LifecyclePostStartHandlerTcpSocketPort": 80,
"LifecyclePreStopHandlerHttpGetHost": "10.0.XX.XX\n",
"LifecyclePreStopHandlerHttpGetPort": 80,
"LifecyclePreStopHandlerHttpGetPath": "/healthyz",
"LifecyclePreStopHandlerHttpGetScheme": "HTTP",
"LifecyclePreStopHandlerExecs": [
"[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
],
"LifecyclePreStopHandlerTcpSocketHost": "10.0.XX.XX",
"LifecyclePreStopHandlerTcpSocketPort": 80
}
],
"InitContainers": [
{
"SecurityContextReadOnlyRootFilesystem": true,
"ImagePullPolicy": "Always",
"WorkingDir": "/www",
"Cpu": 0.5,
"Image": "registry-vpc.cn-hongkong.aliyuncs.com/eci_open/nginx:alpine",
"Gpu": 1,
"SecurityContextRunAsUser": "1000",
"Memory": 1,
"Name": "test-init\n",
"InitContainerEnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/local/bin\n",
"FieldRefFieldPath": "path"
}
],
"InitContainerPorts": [
{
"Port": 1024,
"Protocol": "UDP"
}
],
"InitContainerVolumeMounts": [
{
"ReadOnly": false,
"SubPath": "/usr/sub/",
"Name": "test-empty\n",
"MountPropagation": "None",
"MountPath": "/usr/share/\n"
}
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"InitContainerCommands": [
"sleep"
],
"InitContainerArgs": [
"10"
]
}
],
"Tags": [
{
"Key": "version",
"Value": "3"
}
],
"Volumes": [
{
"Type": "EmptyDirVolume",
"DiskVolumeDiskId": "d-xx",
"DiskVolumeFsType": "xfs",
"EmptyDirVolumeMedium": "memory",
"NFSVolumePath": "/share\n",
"DiskVolumeDiskSize": 15,
"NFSVolumeReadOnly": false,
"FlexVolumeFsType": "ext4",
"ConfigFileVolumeDefaultMode": 644,
"FlexVolumeDriver": "flexvolume",
"FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}\n",
"NFSVolumeServer": "3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com\n",
"Name": "default-volume1\n",
"ConfigFileVolumeConfigFileToPaths": [
{
"Path": "/usr/bin/\n",
"Mode": 644,
"Content": "bGl1bWk=\n"
}
],
"EmptyDirVolumeSizeLimit": "256Mi",
"HostPathVolumeType": "Directory",
"HostPathVolumePath": "/pod/data\n"
}
],
"ImageRegistryCredentials": [
{
"Password": "yourpaasword",
"Server": "registry-vpc.cn-shanghai.aliyuncs.com\n",
"UserName": "yourusername"
}
],
"DnsConfigOptions": [
{
"Name": "name",
"Value": "value"
}
],
"HostAliases": [
{
"Ip": "192.0.XX.XX\n",
"Hostnames": [
"['hehe.com', 'haha.com']\n"
]
}
],
"SecurityContextSysCtls": [
{
"Name": "kernel.msgmax\n",
"Value": "65536"
}
],
"AcrRegistryInfos": [
{
"InstanceId": "cri-nwj395hgf6f3****\n",
"InstanceName": "acr-test\n",
"RegionId": "cn-hangzhou\n",
"Domains": [
"*****-****-registry.cn-beijing.cr.aliyuncs.com\n"
]
}
],
"DnsConfigNameServers": [
"172.10.*.**\n"
],
"DnsConfigSearches": [
"svc.local.kubenetes\n"
],
"NtpServers": [
"ntp.cloud.aliyuncs.com\n"
],
"LifecycleState": "Active",
"CostOptimization": false,
"InstanceFamilyLevel": "EnterpriseLevel",
"InstanceTypes": [
"ecs.g6.large\n"
],
"DataCacheBucket": "default",
"DataCachePL": "PL1\n",
"DataCacheProvisionedIops": 40000,
"DataCacheBurstingEnabled": false,
"EipPublicIpAddressPoolId": "pippool-bp187arfugi543y1s****",
"EipCommonBandwidthPackage": "cbwp-bp1rxai1z4b1an454xl8m",
"EipISP": "BGP",
"ComputeCategory": [
"economy"
]
},
"Output": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: nginx-deployment\n labels:\n app: nginx\n spec:\n replicas: 3\n selector:\n matchLabels:\n app: nginx\n template:\n metadata:\n labels:\n app: nginx\n annotations:\n k8s.aliyun.com/eip-bandwidth: 10\n k8s.aliyun.com/eci-with-eip: true\n spec:\n containers:\n - name: nginx\n image: nginx:1.14.2\n ports:\n - containerPort: 80"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | Forbidden.RiskControl | Forbidden.RiskControl |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。