Creates and deploys a service instance in Compute Nest by specifying parameters such as a region ID, a service instance name, and a service ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:CreateServiceInstance |
create |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Valid values:
|
cn-hangzhou |
| Name |
string |
No |
The name of the service instance. The name must meet the following requirements:
|
TestName |
| ServiceId |
string |
Yes |
The service ID. |
service-0e6fca6a51a54420**** |
| ServiceVersion |
string |
No |
The service version. |
1 |
| Parameters |
object |
No |
The parameters for deploying the user instance. Note
If the service instance contains deployment region information, you must specify the region in the deployment parameters. |
{ "RegionId": "cn-hangzhou" "NodeCount": 3, "SystemDiskSize": 40, "InstancePassword": "******" } |
| ClientToken |
string |
No |
A client-generated, unique token that ensures the idempotence of the request. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
123e4567-e89b-12d3-a456-426655440000 |
| EnableInstanceOps |
boolean |
No |
Indicates whether the service instance has the O&M feature. Valid values:
|
true |
| TemplateName |
string |
No |
The template name. You must specify this parameter if the service supports multiple templates. |
模板1 |
| OperationMetadata |
object |
No |
The O&M configuration. |
|
| StartTime |
string |
No |
The start time of the O&M window. This parameter is valid only in managed O&M mode. |
2021-12-29T06:48:56Z |
| EndTime |
string |
No |
The end time of the O&M window. This parameter is valid only in managed O&M mode. |
2022-01-28T06:48:56Z |
| Resources |
string |
No |
The list of imported resources. |
{ "RegionId": "cn-hangzhou", "Type": "ResourceIds", "ResourceIds": { "ALIYUN::ECS::INSTANCE": ["i-xxx", "i-yyy"], "ALIYUN::RDS::INSTANCE": ["rm-xxx", "rm-yyy"], "ALIYUN::VPC::VPC": ["vpc-xxx", "vpc-yyy"], "ALIYUN::SLB::INSTANCE": ["lb-xxx", "lb-yyy"] } } |
| ServiceInstanceId |
string |
No |
The ID of the imported service instance. |
si-d6ab3a63ccbb4b17**** |
| ExtraInfo |
string |
No |
Additional information about the managed O&M service. |
```json { "vncInfo": [ { "instanceId": "i-001", "username": "admin", "password": "******", "vncPassword": "******" } ] } ``` |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-bp67acfmxazb4p**** |
| ContactGroup |
string |
No |
The CloudMonitor alert contact group that receives alerts. |
云账号报警联系人 |
| TrialType |
string |
No |
The type of the service instance. Valid values:
|
Trial |
| Tag |
array<object> |
No |
The custom tags. |
|
|
object |
No |
The custom tags. |
||
| Key |
string |
No |
The tag key. |
key1 |
| Value |
string |
No |
The tag value. |
value1 |
| SpecificationName |
string |
No |
The name of the specification package. |
套餐一 |
| DryRun |
boolean |
No |
Indicates whether to perform a dry run for the request. The dry run checks for permissions and instance status. Valid values:
|
false |
| SpecificationCode |
string |
No |
The commodity specification code. |
yuncode5425200001 |
| EnableUserPrometheus |
boolean |
No |
Indicates whether to enable Prometheus monitoring. Valid values:
|
true |
| Commodity |
object |
No |
The information about the Alibaba Cloud Marketplace purchase order. You do not need to specify this parameter if the service is not listed in Alibaba Cloud Marketplace or if you use the pay-as-you-go billing method. |
|
| PayPeriodUnit |
string |
No |
The unit of the subscription duration. Valid values:
|
Year |
| PayPeriod |
integer |
No |
The subscription duration. |
1 |
| AutoRenew |
boolean |
No |
Indicates whether to enable auto-renewal. Valid values:
|
false |
| AutoPay |
boolean |
No |
Indicates whether to enable automatic payment for the order. Valid values:
|
false |
| CouponId |
string |
No |
The coupon ID. |
302070970220 |
| QuotationId |
string |
No |
The ID of the private offer in Alibaba Cloud Marketplace. |
xxxx-xxxx-xxxx-xxxx |
| ResourceAutoPay |
boolean |
No |
Indicates whether to automatically deduct the payment from your account balance. Valid values:
|
true |
| ServiceInstanceId |
string |
No |
The ID of the service instance to convert to a paid instance. |
si-d32fbcef30664721b785 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status of the service instance. Valid values:
|
Created |
| RequestId |
string |
The request ID. |
4DB0F536-B3BE-4F0D-BD29-E83FB56D**** |
| ServiceInstanceId |
string |
The service instance ID. |
si-d6ab3a63ccbb4b17**** |
| MarketInstanceId |
string |
The ID of the Alibaba Cloud Marketplace instance. |
786***45 |
| OrderId |
string |
The order ID. |
2306175xxxxxxxx |
Examples
Success response
JSON format
{
"Status": "Created",
"RequestId": "4DB0F536-B3BE-4F0D-BD29-E83FB56D****",
"ServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"MarketInstanceId": "786***45",
"OrderId": "2306175xxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.