Updates a virtual node (VNode).
Description
Only virtual nodes that are in the Ready state can be updated.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateVirtualNode |
The operation that you want to perform. Set the value to UpdateVirtualNode. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the virtual node. |
SecurityGroupId | String | Yes | sg-2ze81zoc3yl7a3we**** |
The ID of the security group. |
VirtualNodeName | String | Yes | testNode |
The name of the virtual node. |
VSwitchId | String | Yes | vsw-2ze23nqzig8inprou**** |
The ID of the vSwitch. |
VirtualNodeId | String | No | vnd-2ze960zkdqrldeaw**** |
The ID of the virtual node. |
ResourceGroupId | String | No | rg-uf66jeqopgqa9hdn**** |
The ID of the resource group to which the virtual node belongs. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-426655440000 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate this value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotency. |
Tag.N.Key | String | No | name |
The key of Tag N. |
Tag.N.Value | String | No | test |
The value of Tag N. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 89945DD3-9072-47D0-A318-353284CFC7B3 |
The ID of the request. |
Examples
Sample requests
https://eci.aliyuncs.com/?Action=UpdateVirtualNode
&RegionId=cn-hangzhou
&SecurityGroupId=sg-2ze81zoc3yl7a3we****
&VirtualNodeName=testNode
&VSwitchId=vsw-2ze23nqzig8inprou****
&<Common request parameters>
Sample success responses
XML
format
<UpdateVirtualNodeResponse>
<RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>
</UpdateVirtualNodeResponse>
JSON
format
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Account.Arrearage | Your account has an outstanding payment. | The error message returned because you have an overdue payment in your account. |
400 | DryRunOperation | Request validation has been passed with DryRun flag set. | The error message returned because the request is determined as valid in the dry run. |
400 | InvalidParameter.CPU.Memory | The specified cpu and memory are not allowed | The error message returned because the CPU and memory specifications are invalid. |
400 | InvalidParameter.DuplicatedName | The container group include containers with duplicate names. | The error message returned because the container group contains containers with duplicate names. |
400 | InvalidParameter.DuplicatedVolumeName | The container group includes volumes with duplicate names. | The error message returned because the container group contains volumes with duplicate names. |
400 | IncorrectStatus | %s | The error message returned because the status of the specified elastic container instance is invalid. |
400 | ServiceNotEnabled | %s | The error message returned because the service required to call the operation is not activated. Activate the service and try again later. |
400 | ImageSnapshot.IncorrectStatus | %s | The error message returned because the status of the image cache snapshot is invalid. |
400 | ImageSnapshot.NotSupport | %s | The error message returned because the image cache feature based on data disk snapshots is not available to all users. If you need to use this feature, contact Alibaba Cloud technical support personnel. |
400 | DiskVolume.NotSupport | The disk volume is not supported. | The error message returned because the disk cannot be used as a volume. If you want to use the disk, contact Alibaba Cloud technical support personnel. |
400 | RamRole.NotSupport | The RAM role is not supported. | The error message returned because the specified Resource Access Management (RAM) role is not supported. |
400 | DiskNumber.LimitExceed | The maximum number of disks in an instance is exceeded. | The error message returned because the number of disks attached to the elastic container instance has reached the upper limit. |
400 | InvalidPaymentMethod.InsufficientBalance | No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance. | The error message returned because your Alibaba Cloud account does not have a valid payment method. Specify a valid payment method or top up the balance. |
400 | DiskVolume.NotInSameZone | The instance to be created and the disk are not in the same zone. | The error message returned because the container group that you want to create is not in the same zone as the disk. |
400 | NoPermission | You are not authorized to use the "Product on ECI" feature. | The error message returned because you are not authorized to use Alibaba Cloud services with Elastic Container Instance. |
400 | HighCpuMemConfigRequired | You need to apply to be added to the whitelist of the specified CPU and memory. | The error message returned because your account is not authorized to use the specified CPU and memory resources. |
400 | RecommendEmpty.InstanceTypeFamilyNotMatched | The recommended instance type is unavailable in the current zone. Try again later. | The error message returned because no instance types in the current zone meet the requirements. Try again later or create the instance in other zones. |
400 | LocalDiskAmountNotMatch | The number of local volumes does not match the instance type. | The error message returned because the number of local disks does not match the instance type. |
400 | Payfor.CreditPayInsufficientBalance | Your payment credit line is insufficient. | The error message returned because the balance in your credit card is insufficient. |
400 | InvalidOperation.KMS.InstanceTypeNotSupport | The specified instance is invalid. Only I/O optimized instances support KMS key. | The error message returned because the specified instance is not supported. You can set Key Management Service (KMS) keys only for I/O optimized instances. |
400 | InvalidParameter.Encrypted.KmsNotEnabled | KMS must be enabled for encrypted disks. | The error message returned because KMS is not activated. You must activate KMS to encrypt disks. |
400 | InvalidParameter.KMS.EncryptedIllegal | After configuring the parameter KmsKeyId, you must enable encryption. | The error message returned because the encryption feature is not enabled after a KMS key ID is specified. |
400 | Ipv6AddressNotSupportVsw | IPv6 is not supported in the specified vSwitch. | The error message returned because no IPv6 address is activated for the vSwitch. |
403 | OperationDenied.VswZoneMisMatch | The specified VSwitchId is not in the specified Zone. | The error message returned because the specified vSwitch is not deployed in the current zone. |
403 | QuotaExceeded | %s quota exceeded. | The error message returned because the maximum number of elastic container instances has been reached. |
403 | Zone.NotOnSale | The specified zone is not available for purchase. | The error message returned because the specified zone is unavailable or because the vSwitches in the specified virtual private cloud (VPC) are unavailable in the current zone. Specify another zone. |
403 | Forbidden.RiskControl | This operation has been identified as an abnormal operation and cannot be processed. | The error message returned because the operation is determined as abnormal and cannot be performed. |
403 | Forbidden.SubUser | The specified action is not available for you. | The error message returned because you are not authorized to perform the operation. |
403 | Forbidden.OnlyForInvitedTest | Eci create action is only open to invited users during public beta. | The error message returned because Elastic Container Instance is available only to invited users during the public preview period. |
403 | OperationDenied.SecurityGroupMisMatch | The specified VSwitchId and SecurityGroupId are not in the same VPC. | The error message returned because the specified vSwitch and security group are not deployed in the same VPC. |
403 | InvalidVSwitchId.IpNotEnough | The specified VSwitch does not have enough IP addresses. | The error message returned because the vSwitch does not have sufficient IP addresses. |
403 | Forbidden.UserBussinessStatus | This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again. | The error message returned because you have an overdue payment. Settle the overdue payment and try again later. |
403 | Forbidden.UserNotRealNameAuthentication | This operation is not allowed, because you have not passed the real-name verification. | The error message returned because you have not completed real-name verification and the operation is not allowed. |
403 | InvalidUser.PassRoleForbidden | The RAM user is not authorized to assume a RAM role. | The error message returned because the RAM user is not authorized to assume a RAM role. |
403 | OperationDenied.NoStock | Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html | The error message returned because available resources are insufficient. Try other regions, zones or instance types. To ensure that available resources are sufficient, we recommend that you specify multiple zones and instance types. For more information, visit https://www.alibabacloud.com/help/doc-detail/157290.html. |
403 | InvalidParameter.KMS.KeyId.Forbidden | You are not authorized to access the specified KMSKeyId. | The error message returned because you are not authorized to access the specified KMS key ID. |
403 | NoPermission | The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again. | The error message returned because the AliyunECIContainerGroupRole RAM role does not belong to eci.aliyuncs.com. Check and try again. |
403 | Forbidden.AccountClosed | The operation is forbidden. Your account has been closed. | The error message returned because the Alibaba Cloud account has been unregistered and your operations are not allowed. |
403 | InvalidOperation.ResourceManagedByCloudProduct | The operation is forbidden. The security group has been managed by another cloud product. | The error message returned because the security group is managed by another Alibaba Cloud service and is not allowed to operate. |
403 | Spot.NotMatched | %s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html | %s. The error message returned because the inventory of the resource is insufficient. We recommend that you specify multiple zones and instance types to avoid insufficient resources. For more information, visit https://www.alibabacloud.com/help/doc-detail/157290.html. |
403 | SecurityRisk.3DVerification | We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email. | The error message returned because risks are detected in your default credit card or debit card. Click the URL in the email for verification. |
403 | CreateServiceLinkedRole.Denied | Please make sure the account has ram:CreateServiceLinkedRole permission. | The error message returned because you do not have the ram:CreateServiceLinkedRole permission. |
404 | ImageSnapshot.NotFound | The specified snapshot does not exist. | The error message returned because the specified image cache snapshot does not exist. |
404 | InvalidDiskId.NotFound | The specified disk does not exist. | The error message returned because the specified disk does not exist. |
404 | InvalidParameter.KMS.KeyId.NotFound | The specified KMSKeyId does not exist. | The error message returned because the specified KMSKeyId parameter does not exist. |
For a list of error codes, visit the API Error Center.