You can create and deploy a service instance by specifying parameters such as the region ID, service ID, and service version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:CreateServiceInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region. 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 ID of the service. |
service-0e6fca6a51a54420**** |
| ServiceVersion |
string |
No |
The version of the service. |
1 |
| Parameters |
object |
No |
The parameters used to deploy the service instance. Note
If the service instance includes information about the deployment region, specify that information in the deployment parameters. |
{"NodeCount": 3, "SystemDiskSize": 40, "InstancePassword": "******"} |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. Generate a unique value for this parameter from your client. The token can be up to 64 characters in length and can contain only ASCII characters. |
123e4567-e89b-12d3-a456-426655440000 |
| TemplateName |
string |
No |
The name of the template. Specify this parameter if the service supports multiple templates. |
模板1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aekzuqyxxxxxx |
| UserId |
string |
No |
The ID of the user. |
1563457855xxxxxx |
| Tag |
array<object> |
No |
The custom tags. |
|
|
object |
No |
The custom tags. |
||
| Key |
string |
No |
The key of the tag. |
key1 |
| Value |
string |
No |
The value of the tag. |
value1 |
| SpecificationName |
string |
No |
The name of the specification package. |
套餐一 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. A dry run checks for permissions and instance status. Valid values:
|
false |
| EndTime |
string |
No |
The time when the service instance is released. Note
Only service providers can set this parameter for their own service instances in managed scenarios. |
2023-12-12T03:13:05Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status of the service instance. Valid values:
|
Created |
| RequestId |
string |
The ID of the request. |
4DB0F536-B3BE-4F0D-BD29-E83FB56D**** |
| ServiceInstanceId |
string |
The ID of the service instance. |
si-d6ab3a63ccbb4b17**** |
Examples
Success response
JSON format
{
"Status": "Created",
"RequestId": "4DB0F536-B3BE-4F0D-BD29-E83FB56D****",
"ServiceInstanceId": "si-d6ab3a63ccbb4b17****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.