Tous les produits
Search
Centre de documentation

Elastic Compute Service:DescribeInstances

Dernière mise à jour :Aug 18, 2026

Consulte la liste des instances en fonction des conditions de requête spécifiées et associe la requête conditionnelle aux informations détaillées des instances.

Description de l'opération

Avant de commencer.

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

Le tableau ci-dessous décrit les autorisations nécessaires pour appeler cette API. Vous pouvez les définir dans une politique Resource Access Management (RAM). Les colonnes du tableau sont détaillées ci-dessous :

  • Action : les actions peuvent être utilisées dans l'élément Action des instructions de politique de permissions RAM pour accorder les autorisations nécessaires à l'exécution de l'opération.

  • API : l'API que vous pouvez appeler pour exécuter l'action.

  • Niveau d'accès : le niveau d'accès prédéfini accordé pour chaque API. Valeurs valides : create, list, get, update et delete.

  • Type de ressource : le type de ressource qui prend en charge l'autorisation pour exécuter l'action. Il indique si l'action prend en charge les permissions au niveau de la ressource. La ressource spécifiée doit être compatible avec l'action. Sinon, la politique sera inefficace.

    • Pour les API avec permissions au niveau de la ressource, les types de ressource requis sont marqués d'un astérisque (*). Spécifiez l'Alibaba Cloud Resource Name (ARN) correspondant dans l'élément Resource de la politique.

    • Pour les API sans permissions au niveau de la ressource, la valeur All Resources est affichée. Utilisez un astérisque (*) dans l'élément Resource de la politique.

  • Clé de condition : les clés de condition définies par le service. La clé permet un contrôle granulaire, applicable aux actions seules ou aux actions associées à des ressources spécifiques. En plus des clés de condition propres au service, Alibaba Cloud fournit un ensemble de clés de condition communes applicables à tous les services pris en charge par RAM.

  • Action dépendante : les actions dépendantes requises pour exécuter l'action. Pour mener à bien l'opération, l'utilisateur RAM ou le rôle RAM doit disposer des permissions pour toutes les actions dépendantes.

ecs:DescribeInstances

list

Instance

acs:ecs:{#regionId}:{#accountId}:instance/*

Instance

acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}

  • ResourceOwner
Aucune

Paramètres de requête

Paramètre

Type

Requis

Description

Exemple

RegionId

string

Oui

L'identifiant de la région de l'instance. Vous pouvez appeler DescribeRegions pour consulter la liste des régions la plus récente.

cn-hangzhou

VpcId

string

Non

L'identifiant du cloud privé virtuel (VPC).

v-bp67acfmxazb4p****

VSwitchId

string

Non

L'identifiant du vSwitch.

vsw-bp67acfmxazb4p****

ZoneId

string

Non

L'identifiant de la zone.

cn-hangzhou-g

InstanceNetworkType

string

Non

Le type de réseau de l'instance. Valeurs valides :

vpc

SecurityGroupId

string

Non

Le groupe de sécurité auquel l'instance appartient.

sg-bp67acfmxazb4p****

InstanceIds

string

Non

Les identifiants des instances. La valeur peut être un tableau JSON composé de jusqu'à 100 identifiants d'instance. Séparez les identifiants par des virgules (,).

["i-bp67acfmxazb4p****", "i-bp67acfmxazb4p****", … "i-bp67acfmxazb4p****"]

PageNumber

integer

Non

Remarque

Ce paramètre est sur le point d'être obsolète. Utilisez NextToken et MaxResults pour effectuer les opérations de requête paginée.

1

PageSize

integer

Non

Remarque

Ce paramètre est sur le point d'être obsolète. Utilisez NextToken et MaxResults pour effectuer les opérations de requête paginée.

10

NextToken

string

Non

Le jeton de requête. Définissez la valeur sur la valeur NextToken renvoyée lors de l'appel précédent à cette opération.

caeba0bbb2be03f84eb48b699f0a4883

MaxResults

integer

Non

Le nombre maximal d'entrées par page dans une requête paginée. Valeur maximale : 100.

10

InnerIpAddresses

string

Non

Les adresses IP de réseau interne des instances de type réseau classique. Ce paramètre prend effet lorsque InstanceNetworkType est défini sur classic. La valeur peut être un tableau JSON composé de jusqu'à 100 adresses IP. Séparez les adresses IP par des virgules (,).

["10.1.1.1", "10.1.2.1", … "10.1.10.1"]

PrivateIpAddresses

string

Non

Les adresses IP privées des instances de type réseau VPC. Ce paramètre prend effet lorsque InstanceNetworkType est défini sur vpc. La valeur peut être un tableau JSON composé de jusqu'à 100 adresses IP. Séparez les adresses IP par des virgules (,).

["172.16.1.1", "172.16.2.1", … "172.16.10.1"]

PublicIpAddresses

string

Non

Les adresses IP publiques des instances. La valeur peut être un tableau JSON composé de jusqu'à 100 adresses IP. Séparez les adresses IP par des virgules (,).

["42.1.1.**", "42.1.2.**", … "42.1.10.**"]

EipAddresses

string

Non

Les adresses IP élastiques (EIP) des instances. Ce paramètre prend effet lorsque InstanceNetworkType est défini sur vpc. La valeur peut être un tableau JSON composé de jusqu'à 100 adresses IP. Séparez les adresses IP par des virgules (,).

["42.1.1.**", "42.1.2.**", … "42.1.10.**"]

InstanceChargeType

string

Non

Les modes de facturation de l'instance. Valeurs valides :

PostPaid

InternetChargeType

string

Non

Les modes de facturation de la bande passante publique. Valeurs valides :

PayByTraffic

InstanceName

string

Non

Le nom de l'instance. La recherche approximative avec le caractère générique * est prise en charge.

Test

ImageId

string

Non

L'identifiant de l'image.

m-bp67acfmxazb4p****

Status

string

Non

L'état de l'instance. Valeurs valides :

Running

LockReason

string

Non

La raison pour laquelle la ressource est verrouillée. Valeurs valides :

security

Filter.1.Key

string

Non

La clé du filtre 1 utilisée pour interroger les ressources. Définissez la valeur sur CreationStartTime. Lorsque Filter.1.Key et Filter.1.Value sont tous deux spécifiés, vous pouvez interroger les ressources qui ont été créées après le moment spécifié.

CreationStartTime

Filter.2.Key

string

Non

La clé du filtre 2 utilisée pour interroger les ressources. Définissez la valeur sur CreationEndTime. Lorsque Filter.2.Key et Filter.2.Value sont tous deux spécifiés, vous pouvez interroger les ressources qui ont été créées avant le moment spécifié.

CreationEndTime

Filter.3.Key

string

Non

La clé du filtre 3 utilisée pour interroger les ressources. Définissez la valeur sur ExpiredStartTime. Lorsque Filter.3.Key et Filter.3.Value sont tous deux spécifiés, vous pouvez interroger les ressources qui expirent après le moment spécifié.

ExpiredStartTime

Filter.4.Key

string

Non

La clé du filtre 4 utilisée pour interroger les ressources. Définissez la valeur sur ExpiredEndTime. Lorsque Filter.4.Key et Filter.4.Value sont tous deux spécifiés, vous pouvez interroger les ressources qui expirent avant le moment spécifié.

ExpiredEndTime

Filter.1.Value

string

Non

La valeur du filtre 1 utilisée pour interroger les ressources. Lorsque vous spécifiez ce paramètre, vous devez également spécifier Filter.1.Key. Spécifiez l'heure au format yyyy-MM-ddTHH:mmZ en UTC.

2017-12-05T22:40Z

Filter.2.Value

string

Non

La valeur du filtre 2 utilisée pour interroger les ressources. Lorsque vous spécifiez ce paramètre, vous devez également spécifier Filter.2.Key. Spécifiez l'heure au format yyyy-MM-ddTHH:mmZ en UTC.

2017-12-06T22:40Z

Filter.3.Value

string

Non

La valeur du filtre 3 utilisée pour interroger les ressources. Lorsque vous spécifiez ce paramètre, vous devez également spécifier Filter.3.Key. Spécifiez l'heure au format yyyy-MM-ddTHH:mmZ en UTC.

2017-12-07T22:40Z

Filter.4.Value

string

Non

La valeur du filtre 4 utilisée pour interroger les ressources. Lorsque vous spécifiez ce paramètre, vous devez également spécifier Filter.4.Key. Spécifiez l'heure au format yyyy-MM-ddTHH:mmZ en UTC.

2017-12-08T22:40Z

DeviceAvailable

boolean

Non

Remarque

Ce paramètre est en avant-première sur invitation et n'est pas disponible publiquement.

false

IoOptimized

boolean

Non

Indique si l'instance est optimisée pour les E/S. Valeurs valides :

true

NeedSaleCycle

boolean

Non

Remarque

Ce paramètre est en avant-première sur invitation et n'est pas disponible publiquement.

false

InstanceType

string

Non

Le type de l'instance.

ecs.g5.large

InstanceTypeFamily

string

Non

La famille d'instances.

ecs.g5

KeyPairName

string

Non

Le nom de la paire de clés SSH liée à l'instance.

KeyPairNameTest

ResourceGroupId

string

Non

L'identifiant du groupe de ressources auquel l'instance appartient. Lorsque vous utilisez ce paramètre pour filtrer les ressources, le nombre de ressources ne peut pas dépasser 1 000.

rg-bp67acfmxazb4p****

HpcClusterId

string

Non

L'identifiant du cluster HPC auquel l'instance appartient.

hpc-bp67acfmxazb4p****

RdmaIpAddresses

string

Non

Les adresses IP RDMA de l'instance HPC.

10.10.10.102

DryRun

boolean

Non

Indique si un test à blanc uniquement doit être effectué. Valeurs valides :

false

HttpEndpoint

string

Non

Indique si le canal d'accès aux métadonnées de l'instance est activé. Valeurs valides :

enabled

HttpTokens

string

Non

Indique si l'utilisation du mode China (IMDSv2) est imposée pour accéder aux métadonnées de l'instance. Valeurs valides :

optional

HttpPutResponseHopLimit

integer

Non

Remarque

Ce paramètre n'est pas disponible publiquement.

0

Ipv6Address

array

Non

Les adresses IPv6 attribuées au contrôleur d'interface réseau (NIC).

string

Non

L'adresse IPv6 du contrôleur d'interface réseau (NIC). N indique que vous pouvez définir plusieurs adresses IPv6. Valeurs valides de N : 1 à 100.

2408:4321:180:1701:94c7:bc38:3bfa:****

Tag

array<object>

Non

Les balises.

object

Non

Les balises.

key

string

Non

La clé de la balise.

keyTest

Key

string

Non

La clé de la balise de l'instance. Valeurs valides de N : 1 à 20.

TestKey

Value

string

Non

La valeur de la balise de l'instance. Valeurs valides de N : 1 à 20.

TestValue

value

string

Non

La valeur de la balise.

valueTest

AdditionalAttributes

array

Non

La liste des attributs supplémentaires de l'instance.

META_OPTIONS

string

Non

La valeur de l'attribut supplémentaire. Valeurs valides de N : 1 à 5. Valeurs valides :

META_OPTIONS

Éléments de réponse

Élément

Type

Description

Exemple

object

NextToken

string

Le jeton de requête renvoyé dans cet appel.

caeba0bbb2be03f84eb48b699f0a4883

PageSize

integer

Le nombre d'entrées par page tel que spécifié dans la requête.

10

PageNumber

integer

Le numéro de page.

1

RequestId

string

L'identifiant de la requête.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

TotalCount

integer

Le nombre total d'instances interrogées.

1

Instances

object

Instance

array<object>

Les informations sur les instances renvoyées au format de tableau.

array<object>

CreationTime

string

The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC+0. For more information, see ISO 8601.

2017-12-10T04:04Z

SerialNumber

string

The serial number of the instance.

51d1353b-22bf-4567-a176-8b3e12e4****

Status

string

The instance status.

Running

DeploymentSetId

string

The ID of the deployment set.

ds-bp67acfmxazb4p****

KeyPairName

string

The name of the key pair.

testKeyPairName

SaleCycle

string

Remarque

This parameter is deprecated and no longer returns meaningful data.

month

SpotStrategy

string

The bidding policy for the pay-as-you-go instance. Valid values:

NoSpot

DeviceAvailable

boolean

Indicates whether data cloud disks can be attached to the instance.

true

LocalStorageCapacity

integer

The local storage capacity attached to the instance. Unit: GiB.

1000

Description

string

The description of the instance.

testDescription

SpotDuration

integer

The protection period of the spot instance. Unit: hours. Valid values:

1

InstanceNetworkType

string

The network type of the instance. Valid values:

vpc

InstanceName

string

Instance name

InstanceNameTest

OSNameEn

string

The English name of the operating system of the instance.

CentOS 7.4 64 bit

HpcClusterId

string

The ID of the HPC cluster to which the instance belongs.

hpc-bp67acfmxazb4p****

SpotPriceLimit

number

The maximum hourly price of the instance. The value supports up to three decimal places. This parameter takes effect when SpotStrategy=SpotWithPriceLimit.

0.98

Memory

integer

The memory size. Unit: MiB.

16384

OSName

string

The name of the operating system of the instance.

CentOS 7.4 64 位

DeploymentSetGroupNo

integer

The group number of the ECS instance in the deployment set when the ECS instance is attached to a deployment set for scattered deployment.

1

ImageId

string

The ID of the image that the instance is running.

m-bp67acfmxazb4p****

VlanId

string

The VLAN ID of the instance.

10

ClusterId

string

The ID of the cluster to which the instance belongs.

c-bp67acfmxazb4p****

ClockOptions

object

PtpStatus

string

GPUSpec

string

The GPU type of the instance type.

NVIDIA V100

AutoReleaseTime

string

The automatic release time of the pay-as-you-go instance.

2017-12-10T04:04Z

DeletionProtection

boolean

The release protection attribute of the instance. It specifies whether the instance can be released from the ECS console or by calling the DeleteInstance operation.

false

StoppedMode

string

Indicates whether the instance continues to be billed after it is stopped. Valid values:

KeepCharging

GPUAmount

integer

The number of GPUs for the instance type.

4

HostName

string

The hostname of the instance.

testHostName

InstanceId

string

The instance ID.

i-bp67acfmxazb4p****

InternetMaxBandwidthOut

integer

The maximum outbound public bandwidth. Unit: Mbit/s.

5

InternetMaxBandwidthIn

integer

The maximum inbound public bandwidth. Unit: Mbit/s.

50

InstanceType

string

The instance type.

ecs.g5.large

InstanceChargeType

string

The billing method of the instance. Valid values:

PostPaid

RegionId

string

The region ID of the instance.

cn-hangzhou

IoOptimized

boolean

Indicates whether the instance is I/O optimized.

true

StartTime

string

The most recent startup time of the instance. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC+0. For more information, see ISO 8601.

2017-12-10T04:04Z

Cpu

integer

The number of vCPUs.

8

LocalStorageAmount

integer

The number of local storage devices attached to the instance.

2

ExpiredTime

string

The expiration time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC+0. For more information, see ISO 8601.

2017-12-10T04:04Z

ResourceGroupId

string

The ID of the resource group to which the instance belongs.

rg-bp67acfmxazb4p****

InternetChargeType

string

The billing method for network usage. Valid values:

PayByTraffic

ZoneId

string

The zone ID of the instance.

cn-hangzhou-g

Recyclable

boolean

Indicates whether the instance can be recycled.

false

ISP

string

Remarque

This parameter is in invitational preview and is not publicly available.

null

CreditSpecification

string

The running mode of the burstable instance. Valid values:

Standard

InstanceTypeFamily

string

The instance family.

ecs.g5

OSType

string

The operating system type of the instance, which is either Windows Server or Linux. Valid values:

linux

NetworkInterfaces

object

NetworkInterface

array<object>

The collection of Elastic Network Interfaces (ENIs) that are attached to the instance.

array<object>

The collection of Elastic Network Interfaces (ENIs) that are attached to the instance.

Type

string

The type of the network interface controller (NIC). Valid values:

Primary

MacAddress

string

The MAC address of the network interface controller (NIC).

00:16:3e:32:b4:**

PrimaryIpAddress

string

The primary private IP address of the network interface controller (NIC).

172.17.**.***

NetworkInterfaceId

string

The ID of the network interface controller (NIC).

eni-2zeh9atclduxvf1z****

PrivateIpSets

object

PrivateIpSet

array<object>

The collection of PrivateIpSet objects.

object

PrivateIpAddress

string

The private IP address of the instance.

172.17.**.**

Primary

boolean

Indicates whether the IP address is the primary private IP address. Valid values:

true

PrivateDnsName

string

The private domain name of the instance.

dnsTestName

Ipv6Sets

object

Ipv6Set

array<object>

The collection of IPv6 addresses assigned to the network interface controller (NIC). This parameter is returned only when the request parameter AdditionalAttributes.N is set to NETWORK_PRIMARY_ENI_IP.

object

Ipv6Address

string

The IPv6 address assigned to the network interface controller (NIC).

2408:4321:180:1701:94c7:bc38:3bfa:***

Primary

boolean

Ipv4PrefixSets

object

Ipv4PrefixSet

array<object>

The collection of IPv4 prefixes assigned to the network interface controller (NIC). This parameter is returned only when the request parameter AdditionalAttributes.N is set to NETWORK_PRIMARY_ENI_IP.

object

Ipv4Prefix

string

The IPv4 prefix assigned to the network interface controller (NIC).

192.168.*.*/28

Ipv6PrefixSets

object

Ipv6PrefixSet

array<object>

The collection of IPv6 prefixes assigned to the network interface controller (NIC). This parameter is returned only when the request parameter AdditionalAttributes.N is set to NETWORK_PRIMARY_ENI_IP.

object

Ipv6Prefix

string

The IPv6 prefix assigned to the network interface controller (NIC).

2001:1111:*:*::/80

OperationLocks

object

LockReason

array<object>

The lock reason of the instance.

object

LockMsg

string

The description of the lock on the instance.

The specified instance is locked due to financial reason.

LockReason

string

The lock type. Valid values:

Recycling

Tags

object

Tag

array<object>

The tags of the instance.

object

TagValue

string

The tag value of the instance.

TestValue

TagKey

string

The tag key of the instance.

TestKey

RdmaIpAddress

object

IpAddress

array

The list of RDMA network IP addresses of the HPC instance.

string

The RDMA IP addresses of the HPC instance.

10.10.10.102

SecurityGroupIds

object

SecurityGroupId

array

The list of security group IDs to which the instance belongs.

string

The security group ID.

sg-bp67acfmxazb4p****

PublicIpAddress

object

IpAddress

array

The list of public IP addresses of the instance.

string

The public IP address of the instance.

121.40.**.**

InnerIpAddress

object

IpAddress

array

The list of internal network IP addresses of the instance in the classic network type.

string

The internal network IP address of the instance in the classic network type.

10.170.**.**

VpcAttributes

object

The VPC attributes of the instance.

VpcId

string

The ID of the virtual private cloud (VPC).

vpc-2zeuphj08tt7q3brd****

NatIpAddress

string

The IP address of the cloud service, which is used for network communication between VPC-connected cloud services.

172.17.**.**

VSwitchId

string

The vSwitch ID.

vsw-2zeh0r1pabwtg6wcs****

PrivateIpAddress

object

IpAddress

array

The list of private IP addresses.

string

The private IP address.

172.17.**.**

EipAddress

object

The information about the elastic IP address (EIP) associated with the instance.

IsSupportUnassociate

boolean

Indicates whether the EIP can be used to disassociate from an EIP.

true

InternetChargeType

string

The billing method of the EIP.

PayByTraffic

IpAddress

string

The EIP address.

42.112.**.**

Bandwidth

integer

The public bandwidth limit of the EIP. Unit: Mbit/s.

5

AllocationId

string

The ID of the EIP.

eip-2ze88m67qx5z****

HibernationOptions

object

Remarque

This parameter is in invitational preview and is not publicly available.

Configured

boolean

Remarque

This parameter is in invitational preview and is not publicly available.

false

DedicatedHostAttribute

object

The dedicated host attributes, which consist of the dedicated host cluster ID (DedicatedHostClusterId), dedicated host ID (DedicatedHostId), and dedicated host name (DedicatedHostName).

DedicatedHostId

string

The ID of the dedicated host.

dh-bp67acfmxazb4p****

DedicatedHostName

string

The name of the dedicated host.

testDedicatedHostName

DedicatedHostClusterId

string

The ID of the dedicated host cluster.

dc-bp67acfmxazb4h****

EcsCapacityReservationAttr

object

The capacity reservation-related parameters of Elastic Compute Service (ECS).

CapacityReservationPreference

string

The capacity reservation preference.

cr-bp67acfmxazb4p****

CapacityReservationId

string

The capacity reservation ID.

cr-bp67acfmxazb4p****

DedicatedInstanceAttribute

object

The attributes of the instance on the dedicated host.

Affinity

string

Indicates whether the instance on the dedicated host is associated with the dedicated host. Valid values:

default

Tenancy

string

Indicates whether the host type of the instance is a dedicated host. Valid values:

default

CpuOptions

object

The CPU configuration details.

Numa

string

Remarque

This parameter is deprecated.

null

CoreCount

integer

The number of physical CPU cores.

2

ThreadsPerCore

integer

The number of threads per CPU core.

2

TopologyType

string

The CPU topology type of the instance. Valid values:

DiscreteCoreToHTMapping

EnableVISST

boolean

TurboMode

string

EnableVRDT

boolean

NestedVirtualization

string

Indicates whether nested virtualization is enabled.

enabled

MetadataOptions

object

The collection of instance metadata options.

HttpEndpoint

string

Indicates whether the access channel for instance metadata is enabled. Valid values:

enabled

HttpPutResponseHopLimit

integer

Remarque

This parameter is not publicly available.

0

HttpTokens

string

Indicates whether the China mode (IMDSv2) is forcefully used to access instance metadata. Valid values:

optional

InstanceMetadataTags

string

ImageOptions

object

The image-related attribute information.

LoginAsNonRoot

boolean

Indicates whether the instance that uses this image supports logon with the ecs-user user. Valid values:

false

CurrentOSNVMeSupported

boolean

Indicates whether the current operating system supports access to disks over the NVMe protocol. Valid values:

true

SpotInterruptionBehavior

string

The interruption pattern of the spot instance when the platform initiates an interruption. Valid values:

Terminate

PrivateDnsNameOptions

object

The collection of private domain name configuration information for the instance.

EnableInstanceIdDnsARecord

boolean

Indicates whether the instance ID-based domain name to IPv4 resolution is enabled. Valid values:

false

EnableInstanceIdDnsAAAARecord

boolean

Indicates whether the instance ID-based domain name to IPv6 resolution is enabled. Valid values:

false

EnableIpDnsARecord

boolean

Indicates whether the IP-based domain name to IPv4 resolution is enabled. Valid values:

true

EnableIpDnsPtrRecord

boolean

Indicates whether the IPv4 to IP-based domain name reverse resolution is enabled. Valid values:

true

HostnameType

string

The hostname type. Valid values:

Custom

AdditionalInfo

object

Remarque

This parameter is in invitational preview and is not publicly available.

EnableHighDensityMode

boolean

Remarque

This parameter is in invitational preview and is not publicly available.

true

NodeSerialNumber

string

EnableNVS

boolean

SecurityOptions

object

EnableSecureBoot

boolean

Exemples

JSON format

{
  "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
  "PageSize": 10,
  "PageNumber": 1,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "TotalCount": 1,
  "Instances": {
    "Instance": [
      {
        "CreationTime": "2017-12-10T04:04Z",
        "SerialNumber": "51d1353b-22bf-4567-a176-8b3e12e4****",
        "Status": "Running",
        "DeploymentSetId": "ds-bp67acfmxazb4p****",
        "KeyPairName": "testKeyPairName",
        "SaleCycle": "month",
        "SpotStrategy": "NoSpot",
        "DeviceAvailable": true,
        "LocalStorageCapacity": 1000,
        "Description": "testDescription",
        "SpotDuration": 1,
        "InstanceNetworkType": "vpc",
        "InstanceName": "InstanceNameTest",
        "OSNameEn": "CentOS  7.4 64 bit",
        "HpcClusterId": "hpc-bp67acfmxazb4p****",
        "SpotPriceLimit": 0.98,
        "Memory": 16384,
        "OSName": "CentOS  7.4 64 位",
        "DeploymentSetGroupNo": 1,
        "ImageId": "m-bp67acfmxazb4p****",
        "VlanId": "10",
        "ClusterId": "c-bp67acfmxazb4p****",
        "ClockOptions": {
          "PtpStatus": ""
        },
        "GPUSpec": "NVIDIA V100",
        "AutoReleaseTime": "2017-12-10T04:04Z",
        "DeletionProtection": false,
        "StoppedMode": "KeepCharging",
        "GPUAmount": 4,
        "HostName": "testHostName",
        "InstanceId": "i-bp67acfmxazb4p****",
        "InternetMaxBandwidthOut": 5,
        "InternetMaxBandwidthIn": 50,
        "InstanceType": "ecs.g5.large",
        "InstanceChargeType": "PostPaid",
        "RegionId": "cn-hangzhou",
        "IoOptimized": true,
        "StartTime": "2017-12-10T04:04Z",
        "Cpu": 8,
        "LocalStorageAmount": 2,
        "ExpiredTime": "2017-12-10T04:04Z",
        "ResourceGroupId": "rg-bp67acfmxazb4p****",
        "InternetChargeType": "PayByTraffic",
        "ZoneId": "cn-hangzhou-g",
        "Recyclable": false,
        "ISP": "null",
        "CreditSpecification": "Standard",
        "InstanceTypeFamily": "ecs.g5",
        "OSType": "linux",
        "NetworkInterfaces": {
          "NetworkInterface": [
            {
              "Type": "Primary",
              "MacAddress": "00:16:3e:32:b4:**",
              "PrimaryIpAddress": "172.17.**.***",
              "NetworkInterfaceId": "eni-2zeh9atclduxvf1z****",
              "PrivateIpSets": {
                "PrivateIpSet": [
                  {
                    "PrivateIpAddress": "172.17.**.**",
                    "Primary": true,
                    "PrivateDnsName": "dnsTestName"
                  }
                ]
              },
              "Ipv6Sets": {
                "Ipv6Set": [
                  {
                    "Ipv6Address": "2408:4321:180:1701:94c7:bc38:3bfa:***",
                    "Primary": false
                  }
                ]
              },
              "Ipv4PrefixSets": {
                "Ipv4PrefixSet": [
                  {
                    "Ipv4Prefix": "192.168.*.*/28"
                  }
                ]
              },
              "Ipv6PrefixSets": {
                "Ipv6PrefixSet": [
                  {
                    "Ipv6Prefix": "2001:1111:*:*::/80"
                  }
                ]
              }
            }
          ]
        },
        "OperationLocks": {
          "LockReason": [
            {
              "LockMsg": "The specified instance is locked due to financial reason.",
              "LockReason": "Recycling"
            }
          ]
        },
        "Tags": {
          "Tag": [
            {
              "TagValue": "TestValue",
              "TagKey": "TestKey"
            }
          ]
        },
        "RdmaIpAddress": {
          "IpAddress": [
            "10.10.10.102"
          ]
        },
        "SecurityGroupIds": {
          "SecurityGroupId": [
            "sg-bp67acfmxazb4p****"
          ]
        },
        "PublicIpAddress": {
          "IpAddress": [
            "121.40.**.**"
          ]
        },
        "InnerIpAddress": {
          "IpAddress": [
            "10.170.**.**"
          ]
        },
        "VpcAttributes": {
          "VpcId": "vpc-2zeuphj08tt7q3brd****",
          "NatIpAddress": "172.17.**.**",
          "VSwitchId": "vsw-2zeh0r1pabwtg6wcs****",
          "PrivateIpAddress": {
            "IpAddress": [
              "172.17.**.**"
            ]
          }
        },
        "EipAddress": {
          "IsSupportUnassociate": true,
          "InternetChargeType": "PayByTraffic",
          "IpAddress": "42.112.**.**",
          "Bandwidth": 5,
          "AllocationId": "eip-2ze88m67qx5z****"
        },
        "HibernationOptions": {
          "Configured": false
        },
        "DedicatedHostAttribute": {
          "DedicatedHostId": "dh-bp67acfmxazb4p****",
          "DedicatedHostName": "testDedicatedHostName",
          "DedicatedHostClusterId": "dc-bp67acfmxazb4h****"
        },
        "EcsCapacityReservationAttr": {
          "CapacityReservationPreference": "cr-bp67acfmxazb4p****",
          "CapacityReservationId": "cr-bp67acfmxazb4p****"
        },
        "DedicatedInstanceAttribute": {
          "Affinity": "default",
          "Tenancy": "default"
        },
        "CpuOptions": {
          "Numa": "null",
          "CoreCount": 2,
          "ThreadsPerCore": 2,
          "TopologyType": "DiscreteCoreToHTMapping",
          "EnableVISST": false,
          "TurboMode": "",
          "EnableVRDT": false,
          "NestedVirtualization": "enabled"
        },
        "MetadataOptions": {
          "HttpEndpoint": "enabled",
          "HttpPutResponseHopLimit": 0,
          "HttpTokens": "optional",
          "InstanceMetadataTags": ""
        },
        "ImageOptions": {
          "LoginAsNonRoot": false,
          "CurrentOSNVMeSupported": true
        },
        "SpotInterruptionBehavior": "Terminate",
        "PrivateDnsNameOptions": {
          "EnableInstanceIdDnsARecord": false,
          "EnableInstanceIdDnsAAAARecord": false,
          "EnableIpDnsARecord": true,
          "EnableIpDnsPtrRecord": true,
          "HostnameType": "Custom"
        },
        "AdditionalInfo": {
          "EnableHighDensityMode": true,
          "NodeSerialNumber": ""
        },
        "EnableNVS": false,
        "SecurityOptions": {
          "EnableSecureBoot": false
        }
      }
    ]
  }
}

Codes d'erreur

Code de statut HTTP

Code d'erreur

Message d'erreur

Description

400 InvalidTag.Mismatch The specified Tag.n.Key and Tag.n.Value are not match.
400 InvalidTagCount The specified tags are beyond the permitted range.
400 InvalidHpcClusterId.NotFound The specified HpcClusterId is not found.
400 InvalidHpcClusterId.Creating The specified HpcClusterId is creating.
400 InternalError The request processing has failed due to some unknown error, exception or failure.
400 Throttling.PageNumberLimited Request throttled. Please use NextToken instead of PageNumber for pagination.
404 InvalidInstanceChargeType.NotFound The InstanceChargeType does not exist in our records.
404 InvalidInternetChargeType.ValueNotSupported The specified InternetChargeType is not valid.
404 InvalidLockReason.NotFound The specified LockReason is not found.
404 InvalidFilterKey.NotFound Invalid filter.%s.
404 InvalidFilterValue Invalid filter.%s.
404 InvalidNetworkType.NotFound The specified InstanceNetworkType is not found.
404 InvalidStatus.NotFound The specified Status is not found.

Consultez Codes d'erreur pour la liste complète.

Notes de version

Consultez Notes de version pour la liste complète.