The ALIYUN::ComputeNest::ServiceInstance type is used to create and deploy a service instance.
Syntax
{
"Type": "ALIYUN::ComputeNest::ServiceInstance",
"Properties": {
"SpecificationCode": String,
"Parameters": Map,
"ResourceGroupId": String,
"OperationName": String,
"EnableInstanceOps": Boolean,
"Service": Map,
"PredefinedParameterName": String,
"Commodity": Map,
"EnableUserPrometheus": Boolean,
"TemplateName": String,
"ContactGroup": String,
"Tags": List,
"ServiceInstanceName": String,
"ResourceAutoPay": Boolean,
"DryRun": Boolean
}
}Properties
Property | Type | Required | Update allowed | Description | Constraints |
Service | Map | Yes | No | The details of the service. | For more information, see Service properties |
Commodity | Map | No | No | The order information for a purchase from Alibaba Cloud Marketplace. This parameter is not required if the service is not available in the Alibaba Cloud Marketplace or uses the pay-as-you-go billing method. | For more information, see Commodity properties |
ContactGroup | String | No | No | The Cloud Monitor contact group that receives alerts. | None |
EnableInstanceOps | Boolean | No | No | Specifies whether to enable the O&M feature for the service instance. | Valid values:
|
EnableUserPrometheus | Boolean | No | Yes | Specifies whether to enable Prometheus monitoring. | Valid values:
|
OperationName | String | No | No | The name of the action. | None |
Parameters | Map | No | Yes | The parameters for deploying the service instance. | Example: |
PredefinedParameterName | String | No | Yes | The name of the package. | None |
ResourceGroupId | String | No | Yes | The ID of the resource group. | None |
SpecificationCode | String | No | No | The commodity code. | None |
Tags | List | No | No | The custom tags. | |
TemplateName | String | No | No | The name of the template. | You must specify this parameter when the service supports multiple templates. |
ServiceInstanceName | String | No | No | The name of the service instance. | None |
ResourceAutoPay | Boolean | No | No | Specifies whether to enable automatic payment for the resource. | Valid values:
|
DryRun | Boolean | No | No | Specifies whether to perform a dry run for the creation request. | The dry run checks permissions and the instance status. Valid values:
|
Service syntax
"Service": {
"ServiceInfos": List,
"ServiceDocUrl": String,
"DeployType": String,
"ServiceProductUrl": String,
"ServiceType": String,
"SupplierUrl": String,
"Status": String,
"SupplierName": String,
"PublishTime": String,
"UpgradableServiceVersions": List,
"DeployMetadata": String,
"VersionName": String,
"UpgradeMetadata": String,
"Version": String,
"ServiceId": String
}Service properties
Property | Type | Required | Update allowed | Description | Constraints |
ServiceInfos | List | No | No | The information about the service. | For more information, see ServiceInfos properties. |
ServiceDocUrl | String | No | No | The URL of the product document. | None |
DeployType | String | No | No | The deployment type. | Valid values:
|
Version | String | No | No | The version of the service provider. | None |
ServiceId | String | Yes | No | The service ID. | None |
ServiceProductUrl | String | No | No | The URL of the product page. | None |
ServiceType | String | No | No | The service type. | Valid values:
|
SupplierUrl | String | No | No | The URL of the service provider. | None |
Status | String | No | No | The deployment status of the service instance. | Valid values:
|
SupplierName | String | No | No | The name of the service provider. | None |
PublishTime | String | No | No | The time when the service was published. | None |
UpgradableServiceVersions | List | No | No | The list of service versions to which the service can be upgraded. | None |
DeployMetadata | String | No | No | The information about the deployment configuration of the service. | None |
VersionName | String | No | No | The custom version name defined by the service provider. | None |
UpgradeMetadata | String | No | No | The upgrade metadata. | None |
ServiceInfos syntax
"ServiceInfos": [
{
"Image": String,
"Locale": String,
"Name": String,
"ShortDescription": String
}
]ServiceInfos properties
Property | Type | Required | Update allowed | Description | Constraints |
Image | String | No | No | The URL of the service icon. | None |
Locale | String | No | No | The language of the service instance. | None |
Name | String | No | No | The name of the service. | None |
ShortDescription | String | No | No | The description of the service. | None |
Commodity syntax
"Commodity": {
"PayPeriod": Integer,
"PayPeriodUnit": String,
"AutoRenew": Boolean,
"CouponId": String,
"AutoPay": Boolean
}Commodity properties
Property | Type | Required | Update allowed | Description | Constraints |
PayPeriod | Integer | No | No | The subscription duration. | None |
PayPeriodUnit | String | No | No | The unit of the subscription duration. | Valid values:
|
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal. | Valid values:
|
CouponId | String | No | No | The coupon ID. | None |
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment for the order. | Valid values:
|
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]Tags properties
Property | Type | Required | Update allowed | Description | Constraints |
Key | String | Yes | No | The key of the tag. | The tag key must be 1 to 128 characters in length. It cannot start with |
Value | String | No | No | The value of the tag. | The tag value must be 0 to 128 characters in length. It cannot start with |
Return values
Fn::GetAtt
Progress: The deployment progress of the service instance.
Parameters: The deployment parameters for the service instance.
ResourceGroupId: The ID of the resource group.
EnableInstanceOps: Indicates whether the Operations and Maintenance (O&M) feature is enabled for the service instance.
CreateTime: The time when the service instance was created.
NetworkConfig: The network configuration.
Service: The details of the service.
PredefinedParameterName: The name of the package.
Source: The source of the service instance.
Components: The billable items from Alibaba Cloud Marketplace.
LicenseEndTime: The time when the license expires.
ServiceInstanceId: The ID of the service instance.
UserId: The user's Alibaba Cloud account ID.
EnableUserPrometheus: Indicates whether Prometheus monitoring is enabled.
ServiceType: The type of the service.
StatusDetail: The details of the instance deployment status.
UpdateTime: The time of the last update.
Outputs: The fields returned when a service instance is created.
TemplateName: The name of the template.
IsOperated: Indicates whether the O&M feature is enabled for the service instance.
SupplierUid: The service provider's Alibaba Cloud account ID.
Tags: The custom tags.
Output: The output fields returned after the service instance is created.
ServiceInstanceName: The name of the service instance.
MarketInstanceId: The ID of the Alibaba Cloud Marketplace instance.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Parameters:
Type: Json
Description: The parameters for deploying the service instance.
Default:
NodeCount: 3
SystemDiskSize: 40
InstancePassword: '******'
Service:
Type: Json
Description: The details of the service.
Default:
Version: 1
ServiceId: service-9c8a3522528b4fe8****
Resources:
ExtensionResource:
Type: ALIYUN::ComputeNest::ServiceInstance
Properties:
Parameters:
Ref: Parameters
Service:
Ref: Service
Outputs:
Progress:
Description: The deployment progress of the service instance. Unit: %.
Value:
Fn::GetAtt:
- ExtensionResource
- Progress
Parameters:
Description: The parameters for deploying the service instance.
Value:
Fn::GetAtt:
- ExtensionResource
- Parameters{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Parameters": {
"Type": "Json",
"Description": "The parameters for deploying the service instance.",
"Default": {
"NodeCount": 3,
"SystemDiskSize": 40,
"InstancePassword": "******"
}
},
"Service": {
"Type": "Json",
"Description": "The details of the service.",
"Default": {
"Version": 1,
"ServiceId": "service-9c8a3522528b4fe8****"
}
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ComputeNest::ServiceInstance",
"Properties": {
"Parameters": {
"Ref": "Parameters"
},
"Service": {
"Ref": "Service"
}
}
}
},
"Outputs": {
"Progress": {
"Description": "The deployment progress of the service instance. Unit: %.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Progress"
]
}
},
"Parameters": {
"Description": "The parameters for deploying the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Parameters"
]
}
}
}
}