Consulte les configurations de mise à l'échelle de type ECI.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
ess:DescribeEciScalingConfigurations |
get |
*ScalingGroup
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région du groupe de mise à l'échelle auquel appartient la configuration de mise à l'échelle. |
cn-qingdao |
| PageNumber |
integer |
Non |
Le numéro de page de la liste des configurations de mise à l'échelle. Valeur minimale : 1. Valeur par défaut : 1. |
1 |
| PageSize |
integer |
Non |
Le nombre d'entrées par page pour une requête paginée. Valeur maximale : 50. Valeur par défaut : 10. |
50 |
| ScalingGroupId |
string |
Non |
L'identifiant du groupe de mise à l'échelle. Vous pouvez consulter toutes les configurations de mise à l'échelle du groupe de mise à l'échelle spécifié. |
asg-bp17pelvl720x3v7**** |
| ScalingConfigurationId |
array |
Non |
Les identifiants des configurations de mise à l'échelle que vous souhaitez interroger. Vous pouvez spécifier de 1 à 10 identifiants. Les résultats de la requête incluent les configurations de mise à l'échelle dans les états Active et Inactive, qui sont identifiés par le paramètre de réponse LifecycleState. |
|
|
string |
Non |
L'identifiant de la configuration de mise à l'échelle que vous souhaitez interroger. Les résultats de la requête incluent les configurations de mise à l'échelle dans les états Active et Inactive, qui sont identifiés par le paramètre de réponse LifecycleState. |
asc-bp17pelvl720x5ub**** |
|
| ScalingConfigurationName |
array |
Non |
Les noms des configurations de mise à l'échelle que vous souhaitez interroger. Vous pouvez spécifier 1 à 10 noms. Les noms de configurations de mise à l'échelle non valides sont ignorés dans les résultats de la requête et aucune erreur n'est retournée. |
|
|
string |
Non |
Le nom de la configuration de mise à l'échelle que vous souhaitez interroger. Les noms de configuration de mise à l'échelle non valides sont ignorés dans les résultats de la requête et aucune erreur n'est retournée. |
scalingcon**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| PageNumber |
integer |
Le numéro de page actuel. |
1 |
| PageSize |
integer |
Le nombre d'entrées par page. |
50 |
| RequestId |
string |
L'identifiant de la requête. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
Le nombre total de configurations de mise à l'échelle. |
1 |
| ScalingConfigurations |
array<object> |
La collection d'informations sur les configurations de mise à l'échelle. |
|
|
array<object> |
La collection d'informations sur les configurations de mise à l'échelle. |
||
| CreationTime |
string |
L'heure de création de la configuration de mise à l'échelle. |
2014-08-14T10:58Z |
| ScalingConfigurationName |
string |
Le nom de la configuration de mise à l'échelle. |
scalingconfi**** |
| SecurityGroupId |
string |
L'identifiant du groupe de sécurité auquel appartient l'instance ECI. Les instances ECI d'un même groupe de sécurité peuvent communiquer entre elles. |
sg-bp18kz60mefs**** |
| ActiveDeadlineSeconds |
integer |
La période de validité. Unité : secondes. |
1000 |
| SpotStrategy |
string |
La stratégie d'enchères pour l'instance. Valeurs valides :
|
NoSpot |
| AutoCreateEip |
boolean |
Indique si la création automatique d'une adresse IP élastique (EIP) et son association à l'instance ECI sont activées. |
true |
| ScalingGroupId |
string |
L'identifiant du groupe de mise à l'échelle auquel appartient la configuration de mise à l'échelle. |
asg-bp17pelvl720x3v7**** |
| EphemeralStorage |
integer |
La taille du stockage éphémère. Unité : Gio. |
20 |
| Ipv6AddressCount |
integer |
Le nombre d'adresses IPv6. |
1 |
| EipBandwidth |
integer |
La bande passante de l'EIP. Valeur par défaut : 5 Mbit/s. |
5 |
| ImageSnapshotId |
string |
L'identifiant du cache d'images. |
imc-2zebxkiifuyzzlhl**** |
| Memory |
number |
La taille de la mémoire. Si vous spécifiez à la fois CPU et Memory, la plage de types d'instances est définie. Par exemple, CPU=2 et Memory=16 définit tous les types d'instances dotés de 2 vCPU et de 16 Gio de mémoire. Auto Scaling détermine l'ensemble des types d'instances disponibles en fonction de facteurs tels que l'optimisation des E/S et les zones, puis crée des instances du type d'instance au prix le plus bas. Remarque
Cette configuration ne prend effet que lorsque le mode d'optimisation des coûts est activé et qu'aucun type d'instance n'est spécifié dans la configuration de mise à l'échelle. |
16 |
| RestartPolicy |
string |
La stratégie de redémarrage du groupe de conteneurs. Valeurs valides :
|
Never |
| SpotPriceLimit |
number |
Le prix horaire maximum de l'instance spot. Ce paramètre est renvoyé uniquement lorsque SpotStrategy est défini sur SpotWithPriceLimit. |
0.025 |
| IngressBandwidth |
integer |
La limite de bande passante entrante. Unité : octets. |
1024000 |
| CpuOptionsThreadsPerCore |
integer |
Le nombre de threads par cœur. Seuls certains types d'instances prennent en charge les paramètres personnalisés. Une valeur de 1 désactive l'hyper-threading. Pour plus d'informations, consultez Personnaliser les options du processeur. |
2 |
| TerminationGracePeriodSeconds |
integer |
Le temps de temporisation permettant au programme de traiter les opérations avant l'arrêt. |
60 |
| LoadBalancerWeight |
integer |
Le poids de l'instance ECI en tant que serveur backend. Valeurs valides : 1 à 100. |
1 |
| DnsPolicy |
string |
La stratégie DNS. |
Default |
| HostName |
string |
Le nom d'hôte. |
['hehe.com', 'haha.com'] |
| EgressBandwidth |
integer |
La limite de bande passante sortante. Unité : octets. |
1024000 |
| RegionId |
string |
L'identifiant de la région de l'instance ECI. |
cn-hangzhou |
| RamRoleName |
string |
Le nom du rôle RAM de l'instance. ECI et ECS partagent les rôles RAM d'instance. Pour plus d'informations, consultez Utiliser un rôle RAM d'instance en appelant des opérations d'API. |
ram:PassRole |
| Cpu |
number |
La taille des vCPU au niveau de l'instance. |
2.0 |
| AutoMatchImageCache |
boolean |
Indique si les caches d'images sont automatiquement mis en correspondance. Valeurs valides :\n- true : mis en correspondance automatiquement.\n- false : non mis en correspondance automatiquement. |
false |
| ResourceGroupId |
string |
L'identifiant du groupe de ressources. |
rg-8db03793gfrz**** |
| ContainerGroupName |
string |
Le nom de l'instance ECI, qui correspond au nom du groupe de conteneurs. |
test |
| ScalingConfigurationId |
string |
L'identifiant de la configuration de mise à l'échelle. |
asc-bp1ezrfgoyn5kijl**** |
| CpuOptionsCore |
integer |
Le nombre de cœurs de processeur physique. Seuls certains types d'instances prennent en charge les paramètres personnalisés. Pour plus d'informations, consultez Personnaliser les options du processeur. |
2 |
| Containers |
array<object> |
La liste des conteneurs dans l'instance ECI. |
|
|
array<object> |
Les informations sur un conteneur dans l'instance ECI. |
||
| ReadinessProbeHttpGetPath |
string |
The path for HTTP GET-based health checks. |
/usr/local |
| ReadinessProbeSuccessThreshold |
integer |
The minimum number of consecutive successes required to transition from a failure status to a success status. Default value: 1. The current value must be 1. |
1 |
| LivenessProbePeriodSeconds |
integer |
The interval at which health checks are performed. Default value: 10 seconds. Minimum value: 1 second. |
5 |
| LivenessProbeTcpSocketPort |
integer |
The port number for TCP Socket-based health checks. |
80 |
| LivenessProbeHttpGetScheme |
string |
The protocol type for HTTP GET-based health checks. Valid values:
|
HTTP |
| WorkingDir |
string |
The working directory of the container. |
/usr/local/nginx |
| Tty |
boolean |
Indicates whether interaction is enabled. Valid values:
|
false |
| LivenessProbeHttpGetPort |
integer |
The port for HTTP GET-based health checks. |
80 |
| Gpu |
integer |
The number of GPUs. |
1 |
| ReadinessProbeInitialDelaySeconds |
integer |
The time to wait before the first health check starts, calculated from the time the container finishes starting. |
5 |
| Stdin |
boolean |
Specifies whether the container runtime allocates a buffer for standard input. If this parameter is not set, reads from standard input in the container result in EOF. Default value: false. |
true |
| Memory |
number |
The memory size of the container. |
2.0 |
| Name |
string |
The custom container name. |
nginx |
| LivenessProbeHttpGetPath |
string |
The path for HTTP GET-based health checks. |
/usr/nginx/ |
| Image |
string |
The container image. |
mysql |
| ReadinessProbeTcpSocketPort |
integer |
The port number for TCP Socket-based health checks. |
8888 |
| ReadinessProbeHttpGetScheme |
string |
The protocol type for HTTP GET-based health checks. Valid values:
|
HTTP |
| ReadinessProbeHttpGetPort |
integer |
The path for HTTP GET-based health checks. |
/usr/nginx/ |
| LivenessProbeSuccessThreshold |
integer |
The minimum number of consecutive successes required to transition from a failure status to a success status. Default value: 1. The current value must be 1. |
1 |
| ReadinessProbeTimeoutSeconds |
integer |
The timeout period for health checks. Default value: 1 second. Minimum value: 1 second. |
5 |
| SecurityContextRunAsUser |
integer |
The UID used to run the container process entry point. |
1000 |
| LivenessProbeInitialDelaySeconds |
integer |
The time to wait before the first health check starts, calculated from the time the container finishes starting. |
10 |
| ReadinessProbePeriodSeconds |
integer |
The interval at which health checks are performed. Default value: 10 seconds. Minimum value: 1 second. |
1 |
| ImagePullPolicy |
string |
The image pull policy. Valid values:
|
Always |
| StdinOnce |
boolean |
When standard input is set to true, the standard input stream remains open across multiple attach sessions. If StdinOnce is set to true, standard input is opened when the container starts and remains empty until the first client attaches to it. It then stays open and accepts data until the client disconnects, at which point standard input enters the shutdown enabling status and remains shutdown until the container restarts. |
true |
| Cpu |
number |
The vCPU size of the container. |
2.0 |
| LivenessProbeTimeoutSeconds |
integer |
The timeout period for health checks. Default value: 1 second. Minimum value: 1 second. |
10 |
| ReadinessProbeFailureThreshold |
integer |
The minimum number of consecutive failures required to transition from a success status to a failure status. Default value: 3. |
3 |
| LivenessProbeFailureThreshold |
integer |
The minimum number of consecutive failures required to transition from a success status to a failure status. Default value: 3. |
3 |
| Ports |
array<object> |
The list of exposed ports and protocols. |
|
|
object |
The exposed port and protocol. |
||
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8888 |
| Protocol |
string |
The protocol type. Valid values:
|
TCP |
| VolumeMounts |
array<object> |
The list of volume mounts. |
|
|
object |
The volume mount. |
||
| ReadOnly |
boolean |
Indicates whether the volume is read-only. Valid values:
|
false |
| SubPath |
string |
The subpath of the volume. |
data2/ |
| Name |
string |
The name of the volume. This value is the same as the Name value in Volume. |
default-volume1 |
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The directory where the container mounts the volume. Remarque
The content in the mount directory of the container is overwritten by the volume content. Use this parameter with caution. |
/pod/data |
| EnvironmentVars |
array<object> |
The list of environment variables. |
|
|
object |
The environment variable information. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/bin/ |
| Commands |
array |
The list of container startup commands. A maximum of 20 commands are supported. Each command can contain up to 256 characters. |
|
|
string |
The container startup command. A maximum of 20 commands are supported. Each command can contain up to 256 characters. |
sleep |
|
| LivenessProbeExecCommands |
array |
The list of commands executed in the container for command-based health checks. |
|
|
string |
The command executed in the container for command-based health checks. |
cat/tmp/healthy |
|
| Args |
array |
The list of arguments for the container startup command. A maximum of 10 arguments are supported. |
|
|
string |
The argument for the container startup command. A maximum of 10 arguments are supported. |
100 |
|
| ReadinessProbeExecCommands |
array |
The list of commands executed in the container for command-based health checks. |
|
|
string |
The command executed in the container for command-based health checks. |
cat/tmp/healthy |
|
| SecurityContextCapabilityAdds |
array |
The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported. Remarque
NET_RAW is not supported by default. Submit a ticket to apply for this permission. |
|
|
string |
The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported. Remarque
NET_RAW is not supported by default. Submit a ticket to apply for this permission. |
NET_ADMIN |
|
| LifecyclePostStartHandlerHttpGetHost |
string |
The host address that receives the HTTP GET request when the PostStart callback function is configured with the HTTP request method. |
10.0.XX.XX |
| LifecyclePostStartHandlerHttpGetPort |
integer |
The port number for the HTTP GET request when the PostStart callback function is configured with the HTTP request method. |
80 |
| LifecyclePostStartHandlerHttpGetPath |
string |
The path for the HTTP GET request when the PostStart callback function is configured with the HTTP request method. |
/healthyz |
| LifecyclePostStartHandlerHttpGetScheme |
string |
The protocol type for the HTTP GET request when the PostStart callback function is configured with the HTTP request method. |
HTTP |
| LifecyclePostStartHandlerExecs |
array |
The commands executed in the container when the PostStart callback function is configured with the command-line method. |
|
|
string |
The commands executed in the container when the PostStart callback function is configured with the command-line method. |
[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ] |
|
| LifecyclePostStartHandlerTcpSocketHost |
string |
The host address for TCP Socket-based detection when the PostStart callback function is configured with the TCP Socket method. |
10.0.XX.XX |
| LifecyclePostStartHandlerTcpSocketPort |
integer |
The port for TCP Socket-based detection when the PostStart callback function is configured with the TCP Socket method. |
80 |
| LifecyclePreStopHandlerHttpGetHost |
string |
The host address that receives the HTTP GET request when the PreStop callback function is configured with the HTTP request method. |
10.0.XX.XX |
| LifecyclePreStopHandlerHttpGetPort |
integer |
The port number for the HTTP GET request when the PreStop callback function is configured with the HTTP request method. |
80 |
| LifecyclePreStopHandlerHttpGetPath |
string |
The path for the HTTP GET request when the PreStop callback function is configured with the HTTP request method. |
/healthyz |
| LifecyclePreStopHandlerHttpGetScheme |
string |
The protocol type for the HTTP GET request when the PreStop callback function is configured with the HTTP request method. |
HTTP |
| LifecyclePreStopHandlerExecs |
array |
The commands executed in the container when the PreStop callback function is configured with the command-line method. |
|
|
string |
The commands executed in the container when the PreStop callback function is configured with the command-line method. |
[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ] |
|
| LifecyclePreStopHandlerTcpSocketHost |
string |
The host address for TCP Socket-based detection when the PreStop callback function is configured with the TCP Socket method. |
10.0.XX.XX |
| LifecyclePreStopHandlerTcpSocketPort |
integer |
The port for TCP Socket-based detection when the PreStop callback function is configured with the TCP Socket method. |
80 |
| InitContainers |
array<object> |
La liste des conteneurs d'initialisation. |
|
|
array<object> |
La liste des conteneurs d'initialisation. |
||
| SecurityContextReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system on which the container runs is read-only. Currently, only true is supported. |
true |
| ImagePullPolicy |
string |
The image pull policy. |
Always |
| WorkingDir |
string |
The working directory. |
/usr/local |
| Cpu |
number |
The CPU size. |
0.5 |
| Image |
string |
The image used by the container. |
nginx |
| Gpu |
integer |
The number of GPUs used by the container. |
1 |
| SecurityContextRunAsUser |
string |
The user ID used to run the container. |
587 |
| Memory |
number |
The memory size. |
1.0 |
| Name |
string |
The container name. |
test-init |
| InitContainerEnvironmentVars |
array<object> |
The environment variable information. |
|
|
object |
The environment variable information. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/local/bin |
| InitContainerVolumeMounts |
array<object> |
The volume mounts. |
|
|
object |
The volume mounts. |
||
| ReadOnly |
boolean |
Indicates whether the mount path is read-only. Default value: false. |
false |
| SubPath |
string |
The subdirectory of the volume. This allows a pod to mount different directories of the same volume to different directories in the container. |
/usr/sub/ |
| Name |
string |
The name of the mounted volume. |
test-empty |
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The mount directory. The content in the mount directory of the container is overwritten by the volume content. Use this parameter with caution. |
/usr/share/ |
| SecurityContextCapabilityAdds |
array |
The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported. |
|
|
string |
The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported. |
NET_ADMIN |
|
| InitContainerCommands |
array |
The container startup commands. |
|
|
string |
The container startup commands. |
sleep |
|
| InitContainerArgs |
array |
The container startup arguments. |
|
|
string |
The container startup arguments. |
10 |
|
| Tags |
array<object> |
Les paires clé-valeur des balises de l'instance. |
|
|
object |
Les paires clé-valeur des balises de l'instance. |
||
| Key |
string |
The tag key. |
version |
| Value |
string |
The tag value. |
3 |
| Volumes |
array<object> |
Les informations sur le volume. |
|
|
array<object> |
Les informations sur le volume. |
||
| Type |
string |
The volume type. Valid values:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
The size of the DiskVolume. Unit: GiB. |
15 |
| DiskVolumeFsType |
string |
The file system type of the DiskVolume. |
xfs |
| EmptyDirVolumeMedium |
string |
The storage medium of the EmptyDirVolume. By default, this parameter is empty, which indicates that the node file system is used. A value of memory indicates that memory is used. |
memory |
| NFSVolumePath |
string |
The path of the NFS volume. |
/share |
| DiskVolumeDiskSize |
integer |
The size of the DiskVolume. Unit: GiB. |
15 |
| NFSVolumeReadOnly |
boolean |
Indicates whether the NFS volume is read-only. Default value: false. |
false |
| FlexVolumeFsType |
string |
The file system type to mount. The default value depends on the FlexVolume script. |
ext4 |
| ConfigFileVolumeDefaultMode |
integer |
The default permissions of the ConfigFileVolume. |
0644 |
| FlexVolumeDriver |
string |
The driver name for the FlexVolume. |
flexvolume |
| FlexVolumeOptions |
string |
The list of FlexVolume object options. The options are in key-value format and passed as JSON. For example, when you mount a cloud disk by using FlexVolume, the Options format is |
{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} |
| NFSVolumeServer |
string |
The NFS server address. |
3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com |
| Name |
string |
The volume name. |
default-volume1 |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
The list of configuration file paths. |
|
|
object |
The list of configuration file paths. |
||
| Path |
string |
The relative file path. |
/usr/bin/ |
| Mode |
integer |
The permissions of the ConfigFileVolume directory. |
0644 |
| Content |
string |
The content of the configuration file (32 KB). |
bGl1bWk= |
| EmptyDirVolumeSizeLimit |
string |
The size of the EmptyDir volume. |
256 Mi |
| HostPathVolumeType |
string |
The type of the HostPath volume. |
Directory |
| HostPathVolumePath |
string |
The directory path of the HostPath volume on the host. |
/pod/data |
| ImageRegistryCredentials |
array<object> |
Les informations du référentiel d'images. |
|
|
object |
Les informations du référentiel d'images. |
||
| Password |
string |
The password of the image repository. |
yourpaasword |
| Server |
string |
The address of the image repository. |
registry-vpc.cn-shanghai.aliyuncs.com |
| UserName |
string |
The username of the image repository. |
yourusername |
| DnsConfigOptions |
array<object> |
La liste des options d'objet. Chaque objet se compose d'un nom et d'une valeur facultative. |
|
|
object |
La liste des options d'objet. Chaque objet se compose d'un nom et d'une valeur facultative. |
||
| Name |
string |
The variable name of the object. |
name |
| Value |
string |
The variable value of the object. |
value |
| HostAliases |
array<object> |
Les mappages de noms d'hôte personnalisés pour un conteneur dans l'instance. |
|
|
object |
Les mappages de noms d'hôte personnalisés pour un conteneur dans l'instance. |
||
| Ip |
string |
The added IP address. |
192.0.XX.XX |
| Hostnames |
array |
The added hostnames. |
|
|
string |
The added hostnames. |
['hehe.com', 'haha.com'] |
|
| SecurityContextSysCtls |
array<object> |
Les informations système du contexte de sécurité dans lequel l'instance s'exécute. |
|
|
object |
Les informations système du contexte de sécurité dans lequel l'instance s'exécute. |
||
| Name |
string |
The system name of the security context in which the instance runs. |
kernel.msgmax |
| Value |
string |
The variable value of the security context in which the instance runs. |
65536 |
| AcrRegistryInfos |
array<object> |
Les informations sur les instances Container Registry Enterprise Edition. |
|
|
object |
Les informations sur les instances Container Registry Enterprise Edition. |
||
| InstanceId |
string |
The ID of the Container Registry Enterprise Edition instance. |
cri-nwj395hgf6f3**** |
| InstanceName |
string |
The name of the Container Registry Enterprise Edition instance. |
acr-test |
| RegionId |
string |
The region ID of the Container Registry Enterprise Edition instance. |
cn-hangzhou |
| Domains |
array |
The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are returned. You can specify individual domain names. Separate multiple domain names with commas (,). |
|
|
string |
The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are returned. You can specify individual domain names. Separate multiple domain names with commas (,). |
*****-****-registry.cn-beijing.cr.aliyuncs.com |
|
| DnsConfigNameServers |
array |
La liste des adresses IP des serveurs DNS. |
|
|
string |
La liste des adresses IP des serveurs DNS. |
172.10.*.** |
|
| DnsConfigSearches |
array |
La liste des domaines de recherche DNS. |
|
|
string |
La liste des domaines de recherche DNS. |
svc.local.kubenetes |
|
| NtpServers |
array |
Les serveurs NTP. |
|
|
string |
Les serveurs NTP. |
ntp.cloud.aliyuncs.com |
|
| LifecycleState |
string |
L'état de la configuration de mise à l'échelle dans le groupe de mise à l'échelle. Valeurs valides :
|
Active |
| CostOptimization |
boolean |
Indique si la fonctionnalité d'optimisation des coûts est activée. Valeurs valides :
|
false |
| InstanceFamilyLevel |
string |
Le niveau de famille d'instances, qui permet de filtrer les types d'instances répondant aux exigences. Ce paramètre ne prend effet que lorsque CostOptimization est activé. Valeurs valides :
|
EnterpriseLevel |
| InstanceTypes |
array |
Les types d'instances ECS spécifiés. Vous pouvez spécifier plusieurs types d'instances (jusqu'à 5). |
|
|
string |
Le type d'instance ECS spécifié. Vous pouvez spécifier plusieurs types d'instances (jusqu'à 5). Pour plus d'informations, consultez Créer une instance en spécifiant un type d'instance ECS. |
ecs.g6.large |
|
| DataCacheBucket |
string |
Le compartiment de cache de données. |
default |
| DataCachePL |
string |
Le niveau de performance du disque cloud utilisé pour la mise en cache des données. Nous vous recommandons d'utiliser des disques SSD améliorés (ESSD). Valeurs valides pour le niveau de performance d'un disque ESSD :
Remarque
Pour plus d'informations sur les disques ESSD, consultez ESSD. |
PL1 |
| DataCacheProvisionedIops |
integer |
Les IOPS de lecture et d'écriture provisionnés du disque ESSD AutoPL utilisé pour la mise en cache des données. Valeurs valides : 0 à min{50000, 1000 × capacité - performances de base}, où les performances de base = min{1800 + 50 × capacité, 50000}.\n>Pour plus d'informations sur les disques ESSD AutoPL, consultez disques ESSD AutoPL. |
40000 |
| DataCacheBurstingEnabled |
boolean |
Indique si la fonctionnalité de burst (burst de performances) est activée pour le disque ESSD AutoPL utilisé pour la mise en cache des données. Valeurs valides :
Remarque
Pour plus d'informations sur les disques ESSD AutoPL, consultez Disques ESSD AutoPL. |
false |
| GpuDriverVersion |
string |
La version du pilote GPU. |
tesla=470.82.01 |
Exemples
JSON format
{
"PageNumber": 1,
"PageSize": 50,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalCount": 1,
"ScalingConfigurations": [
{
"CreationTime": "2014-08-14T10:58Z",
"ScalingConfigurationName": "scalingconfi****",
"SecurityGroupId": "sg-bp18kz60mefs****",
"ActiveDeadlineSeconds": 1000,
"SpotStrategy": "NoSpot",
"AutoCreateEip": true,
"ScalingGroupId": "asg-bp17pelvl720x3v7****",
"EphemeralStorage": 20,
"Ipv6AddressCount": 1,
"EipBandwidth": 5,
"ImageSnapshotId": "imc-2zebxkiifuyzzlhl****",
"Memory": 16,
"RestartPolicy": "Never",
"SpotPriceLimit": 0.025,
"IngressBandwidth": 1024000,
"CpuOptionsThreadsPerCore": 2,
"TerminationGracePeriodSeconds": 60,
"LoadBalancerWeight": 1,
"DnsPolicy": "Default",
"HostName": "['hehe.com', 'haha.com']",
"EgressBandwidth": 1024000,
"RegionId": "cn-hangzhou",
"RamRoleName": "ram:PassRole",
"Cpu": 2,
"AutoMatchImageCache": false,
"ResourceGroupId": "rg-8db03793gfrz****",
"ContainerGroupName": "test",
"ScalingConfigurationId": "asc-bp1ezrfgoyn5kijl****",
"CpuOptionsCore": 2,
"Containers": [
{
"ReadinessProbeHttpGetPath": "/usr/local",
"ReadinessProbeSuccessThreshold": 1,
"LivenessProbePeriodSeconds": 5,
"LivenessProbeTcpSocketPort": 80,
"LivenessProbeHttpGetScheme": "HTTP",
"WorkingDir": "/usr/local/nginx",
"Tty": false,
"LivenessProbeHttpGetPort": 80,
"Gpu": 1,
"ReadinessProbeInitialDelaySeconds": 5,
"Stdin": true,
"Memory": 2,
"Name": "nginx",
"LivenessProbeHttpGetPath": "/usr/nginx/",
"Image": "mysql",
"ReadinessProbeTcpSocketPort": 8888,
"ReadinessProbeHttpGetScheme": "HTTP",
"ReadinessProbeHttpGetPort": 0,
"LivenessProbeSuccessThreshold": 1,
"ReadinessProbeTimeoutSeconds": 5,
"SecurityContextRunAsUser": 1000,
"LivenessProbeInitialDelaySeconds": 10,
"ReadinessProbePeriodSeconds": 1,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"LivenessProbeTimeoutSeconds": 10,
"ReadinessProbeFailureThreshold": 3,
"LivenessProbeFailureThreshold": 3,
"Ports": [
{
"Port": 8888,
"Protocol": "TCP"
}
],
"VolumeMounts": [
{
"ReadOnly": false,
"SubPath": "data2/",
"Name": "default-volume1",
"MountPropagation": "None",
"MountPath": "/pod/data"
}
],
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/"
}
],
"Commands": [
"sleep"
],
"LivenessProbeExecCommands": [
"cat/tmp/healthy"
],
"Args": [
"100"
],
"ReadinessProbeExecCommands": [
"cat/tmp/healthy"
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"LifecyclePostStartHandlerHttpGetHost": "10.0.XX.XX",
"LifecyclePostStartHandlerHttpGetPort": 80,
"LifecyclePostStartHandlerHttpGetPath": "/healthyz",
"LifecyclePostStartHandlerHttpGetScheme": "HTTP",
"LifecyclePostStartHandlerExecs": [
"[ \"/bin/sh\", \"-c\", \"echo Hello from the preStop handler /usr/share/message\" ]"
],
"LifecyclePostStartHandlerTcpSocketHost": "10.0.XX.XX",
"LifecyclePostStartHandlerTcpSocketPort": 80,
"LifecyclePreStopHandlerHttpGetHost": "10.0.XX.XX",
"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": "/usr/local",
"Cpu": 0.5,
"Image": "nginx",
"Gpu": 1,
"SecurityContextRunAsUser": "587",
"Memory": 1,
"Name": "test-init",
"InitContainerEnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/local/bin"
}
],
"InitContainerVolumeMounts": [
{
"ReadOnly": false,
"SubPath": "/usr/sub/",
"Name": "test-empty",
"MountPropagation": "None",
"MountPath": "/usr/share/"
}
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"InitContainerCommands": [
"sleep"
],
"InitContainerArgs": [
"10"
]
}
],
"Tags": [
{
"Key": "version",
"Value": "3"
}
],
"Volumes": [
{
"Type": "EmptyDirVolume",
"DiskVolumeDiskId": "15",
"DiskVolumeFsType": "xfs",
"EmptyDirVolumeMedium": "memory",
"NFSVolumePath": "/share",
"DiskVolumeDiskSize": 15,
"NFSVolumeReadOnly": false,
"FlexVolumeFsType": "ext4",
"ConfigFileVolumeDefaultMode": 644,
"FlexVolumeDriver": "flexvolume",
"FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}",
"NFSVolumeServer": "3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com",
"Name": "default-volume1",
"ConfigFileVolumeConfigFileToPaths": [
{
"Path": "/usr/bin/",
"Mode": 644,
"Content": "bGl1bWk="
}
],
"EmptyDirVolumeSizeLimit": "256 Mi",
"HostPathVolumeType": "Directory",
"HostPathVolumePath": "/pod/data"
}
],
"ImageRegistryCredentials": [
{
"Password": "yourpaasword",
"Server": "registry-vpc.cn-shanghai.aliyuncs.com",
"UserName": "yourusername"
}
],
"DnsConfigOptions": [
{
"Name": "name",
"Value": "value"
}
],
"HostAliases": [
{
"Ip": "192.0.XX.XX",
"Hostnames": [
"['hehe.com', 'haha.com']"
]
}
],
"SecurityContextSysCtls": [
{
"Name": "kernel.msgmax",
"Value": "65536"
}
],
"AcrRegistryInfos": [
{
"InstanceId": "cri-nwj395hgf6f3****",
"InstanceName": "acr-test",
"RegionId": "cn-hangzhou",
"Domains": [
"*****-****-registry.cn-beijing.cr.aliyuncs.com"
]
}
],
"DnsConfigNameServers": [
"172.10.*.**"
],
"DnsConfigSearches": [
"svc.local.kubenetes"
],
"NtpServers": [
"ntp.cloud.aliyuncs.com"
],
"LifecycleState": "Active",
"CostOptimization": false,
"InstanceFamilyLevel": "EnterpriseLevel",
"InstanceTypes": [
"ecs.g6.large"
],
"DataCacheBucket": "default",
"DataCachePL": "PL1",
"DataCacheProvisionedIops": 40000,
"DataCacheBurstingEnabled": false,
"GpuDriverVersion": "tesla=470.82.01"
}
]
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 403 | Forbidden.RiskControl | Forbidden.RiskControl |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.