CreateTairKVCacheVNode

Updated at:

Creates a Tair VNode virtual node instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

kvstore:CreateTairKVCacheVNode

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. Specifies the region where the instance is to be created.

cn-beijing

ZoneId

string

Yes

The zone ID. Specifies the zone where the instance is to be created.

cn-beijing-f

InstanceName

string

No

The name of the new instance. The name must be 2 to 80 characters in length and start with a letter or a Chinese character. It cannot contain spaces or the following special characters: @/:="<>{[]}.

vnodetest

InstanceClass

string

Yes

The instance type.

kvcache.cu.g4b.2

ComputeUnitNum

integer

Yes

The number of compute units. Currently, only one compute unit is supported.

Valid values:

  • 1 :

    1

1

VkName

string

Yes

The instance ID of the VCluster virtual cluster to which the VNode belongs.

tk-2ze4bba3c8fe****

VSwitchId

string

Yes

The vSwitch ID of the instance. The vSwitch must belong to the VPC of the specified VCluster virtual cluster. You can call the DescribeVpcs operation of the VPC API to query the vSwitch ID.

Note

The zone of the vSwitch must be the same as the zone of the instance.

vsw-bp1e7clcw529l773d****

ChargeType

string

No

The billing method. Valid values:

  • PrePaid: subscription. If you set this parameter to PrePaid, you must also specify the Period parameter.

Valid values:

  • PrePaid :

    Subscription.

PrePaid

Period

integer

No

The subscription duration. Unit: months. Valid values: 1 to 9, 12, 24, and 36.

Note

This parameter is required when ChargeType is set to PrePaid.

1

BusinessInfo

string

No

The extended information such as the activity ID and business information.

000000000

CouponNo

string

No

The coupon code.

youhuiquan_promotion_option_id_for_blank

AutoUseCoupon

boolean

No

Specifies whether to use a voucher. Valid values:

  • true: uses a voucher.

  • false (default): does not use a voucher.

false

AutoRenew

boolean

No

Specifies whether to enable auto-renewal. Valid values:

  • true: enables auto-renewal.

  • false (default): disables auto-renewal.

false

AutoRenewPeriod

string

No

The auto-renewal epoch. Unit: months. Valid values: 1, 2, 3, 6, and 12.

Note

This parameter is required when AutoRenew is set to true.

1

ResourceGroupId

string

No

The ID of the destination resource group.

Note

rg-acfmyiu4ekp****

AutoPay

boolean

No

Specifies whether to enable automatic payment. Set the value to true.

Valid values:

  • true :

    Automatic payment.

true

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token is case-sensitive and can be up to 64 ASCII characters in length.

ETnLKlblzczshOTUbOCz****

Tag

array<object>

No

The tag information of the instance.

object

No

The tag information of the instance.

Key

string

No

The tag key. A tag key and a tag value form a tag key-value pair.

Note

You can specify up to 5 tag key-value pairs in a single request.

value1_test

Value

string

No

The tag value.

Note

N specifies the sequence number of the tag. For example, Tag.1.Value specifies the value of the first tag, and Tag.2.Value specifies the value of the second tag.

key1_test

DryRun

boolean

No

Specifies whether to perform a dry run on the instance creation request. Valid values:

  • true: performs a dry run without creating the instance. The system checks the request parameters, request format, service limits, and available resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.

  • false (default): sends the request. If the request passes the check, the instance is created.

false

VNodeType

string

No

The virtual node type. Valid values: fixed and elastic.

Valid values:

  • fixed
  • elastic

fixed

ElasticTimeRange

string

No

The elastic time range.

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

2BE6E619-A657-42E3-AD2D-18F8428A****

InstanceId

string

The virtual node instance ID.

tv-2zeb1ce76fee****

OrderId

integer

The order ID.

20905403119****

RegionId

string

The region ID.

cn-beijing

ZoneId

string

The zone ID.

cn-beijing-f

VkName

string

The virtual cluster instance ID.

tk-2ze4bba3c8fe****

VClusterId

string

The ID of the virtual cluster.

vc-16965a9267*****-*****

NodeId

string

The ID of the virtual node.

vn-03a49876edb****

Examples

Success response

JSON format

{
  "RequestId": "2BE6E619-A657-42E3-AD2D-18F8428A****",
  "InstanceId": "tv-2zeb1ce76fee****",
  "OrderId": 0,
  "RegionId": "cn-beijing",
  "ZoneId": "cn-beijing-f",
  "VkName": "tk-2ze4bba3c8fe****\n",
  "VClusterId": "vc-16965a9267*****-*****",
  "NodeId": "vn-03a49876edb****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingParameter Period is mandatory for this action.
400 InvalidToken.Malformed The Specified parameter Token is not valid.
400 InvalidInstanceName.Malformed The Specified parameter InstanceName is not valid.
400 InvalidPassword.Malformed The Specified parameter Password is not valid.
400 InsufficientBalance Your account does not have enough balance.
400 QuotaExceed.AfterpayInstance Living afterpay instances quota exceeded.
400 InvalidCapacity.NotFound The Capacity provided does not exist in our records.
400 ResourceNotAvailable Resource you requested is not available for finance user.
400 PaymentMethodNotFound No payment method has been registered on the account.
400 IdempotentParameterMismatch Request uses a client token in a previous request but is not identical to that request. Idempotent check.
400 QuotaNotEnough Quota not enough in this zone.
400 QuotaExceed Living afterpay instances quota exceed.
400 VpcServiceError Invoke vpc service failed.
400 IzNotSupportVpcError Specify iz not support vpc.
400 InvalidvSwitchId The vpc does not cover the vswitch.
400 InvalidIzNo.NotSupported The Specified vpc zone not supported.
400 InvalidAccountPassword.Format Specified account password is not valid.
400 InstanceClass.NotMatch Current instance class and instance type is not match.
400 InvalidVPCId.NotFound Specified virtual vpc is not found. The specified VPC is not found. Check whether the VPC ID is correct.
400 AccountMoneyValidateError Account money validate error.
400 RequestTokenConflict Specified request token conflict.
400 InvalidIPNotInSubnet Error ip not in subnet.
400 InvalidEngineVersion.Malformed Specified engine version is not valid. The error message returned because the instance engine version is invalid.
400 Zone.Closed The specified zone is closed.
400 VSwithNotBelongToNotVpcFault The vSwitch does not belong to current vpc.
400 PayIllegalAgreement Pay mayi with holding agreement illegal.
400 IllegalParamError validateSaleConditionWithSubArticle failed.
400 InvalidRegion.Format Specified Region is not valid. The specified region is invalid.
403 RealNameAuthenticationError Your account has not passed the real-name authentication yet.
403 AuthorizationFailure The request processing has failed due to authorization failure.
403 TokenServiceError The specified token is duplicated, please change it.
403 UserCannotBuyNotInnerCommodity The user can not buy this commodity without alibaba group tag.
404 InvalidCapacity.NotFound The Capacity provided does not exist in our records. The specified storage specification does not exist.
404 InvalidvSwitchId The Specified vSwitchId zone not supported.
404 InvalidVpcIdOrVswitchId.NotSupported The Specified vpcId or vSwitchId not supported.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.