DATASOURCE::ComputeNest::ServiceInstance类型用于查询单个服务实例详情。
语法
{
"Type": "DATASOURCE::ComputeNest::ServiceInstance",
"Properties": {
"ServiceInstanceId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ServiceInstanceId | String | 是 | 是 | 服务实例ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
Progress:服务实例的部署进度,单位:%。
Parameters:存储服务部署配置的信息。
ResourceGroupId:资源组 ID。
EnableInstanceOps:服务实例是否有代运维功能。
ServiceInstanceName:服务实例名称。
CreateTime:创建时间。
NetworkConfig:网络配置信息。
Service:服务信息。
PredefinedParameterName:套餐名称。
Source:服务实例来源。
Components:商品模块。
LicenseEndTime:许可到期时间。
ServiceInstanceId:服务实例 ID。
UserId:用户的 AliUid。
EnableUserPrometheus:是否启用 Prometheus 监控。
ServiceType:服务类型。
StatusDetail:部署实例的状态描述。
UpdateTime:更新时间。
Outputs:创建服务实例返回的输出字段。
TemplateName:模板名称。
IsOperated:服务实例的代运维功能是否开启。
SupplierUid:服务商 AliUid。
MarketInstanceId:云市场实例 ID。
Tags:用户自定义标签。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ServiceInstanceId:
Type: String
Description:
en: The ID of the service instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ComputeNest::ServiceInstance
Properties:
ServiceInstanceId:
Ref: ServiceInstanceId
Outputs:
Progress:
Description: 'The deployment progress of the service instance. Unit: percentage.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- Progress
Parameters:
Description: The parameters configured for the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Parameters
ResourceGroupId:
Description: The resource group ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
EnableInstanceOps:
Description: Indicates whether the service instance supports the operation feature.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EnableInstanceOps
ServiceInstanceName:
Description: The name of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceInstanceName
CreateTime:
Description: The time when the serviceInstance was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
NetworkConfig:
Description: The network configurations.
Value:
Fn::GetAtt:
- ExtensionDataSource
- NetworkConfig
Service:
Description: The information about the service to which the service instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Service
PredefinedParameterName:
Description: The name of the package .
Value:
Fn::GetAtt:
- ExtensionDataSource
- PredefinedParameterName
Source:
Description: The source of the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Source
Components:
Description: Cloud Marketplace additional billing items.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Components
LicenseEndTime:
Description: The expiration time of licence.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LicenseEndTime
ServiceInstanceId:
Description: The ID of the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceInstanceId
UserId:
Description: The AliUid of the user.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UserId
EnableUserPrometheus:
Description: Whether to enable Prometheus monitoring.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EnableUserPrometheus
ServiceType:
Description: The type of the service.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceType
StatusDetail:
Description: The description of the deployment state of the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- StatusDetail
UpdateTime:
Description: The time when the serviceInstance was last updated.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTime
Outputs:
Description: The outputs returned from creating the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Outputs
TemplateName:
Description: The name of the template.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TemplateName
IsOperated:
Description: Indicates whether the hosted O&M feature is enabled for the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IsOperated
SupplierUid:
Description: The Alibaba Cloud account ID of the service provider.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SupplierUid
MarketInstanceId:
Description: The ID of the cloud marketplace instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MarketInstanceId
Tags:
Description: The tags of the service instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ServiceInstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the service instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ComputeNest::ServiceInstance",
"Properties": {
"ServiceInstanceId": {
"Ref": "ServiceInstanceId"
}
}
}
},
"Outputs": {
"Progress": {
"Description": "The deployment progress of the service instance. Unit: percentage.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Progress"
]
}
},
"Parameters": {
"Description": "The parameters configured for the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Parameters"
]
}
},
"ResourceGroupId": {
"Description": "The resource group ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"EnableInstanceOps": {
"Description": "Indicates whether the service instance supports the operation feature.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EnableInstanceOps"
]
}
},
"ServiceInstanceName": {
"Description": "The name of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceInstanceName"
]
}
},
"CreateTime": {
"Description": "The time when the serviceInstance was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"NetworkConfig": {
"Description": "The network configurations.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"NetworkConfig"
]
}
},
"Service": {
"Description": "The information about the service to which the service instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Service"
]
}
},
"PredefinedParameterName": {
"Description": "The name of the package .",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PredefinedParameterName"
]
}
},
"Source": {
"Description": "The source of the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Source"
]
}
},
"Components": {
"Description": "Cloud Marketplace additional billing items.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Components"
]
}
},
"LicenseEndTime": {
"Description": "The expiration time of licence.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LicenseEndTime"
]
}
},
"ServiceInstanceId": {
"Description": "The ID of the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceInstanceId"
]
}
},
"UserId": {
"Description": "The AliUid of the user.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UserId"
]
}
},
"EnableUserPrometheus": {
"Description": "Whether to enable Prometheus monitoring.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EnableUserPrometheus"
]
}
},
"ServiceType": {
"Description": "The type of the service.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceType"
]
}
},
"StatusDetail": {
"Description": "The description of the deployment state of the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"StatusDetail"
]
}
},
"UpdateTime": {
"Description": "The time when the serviceInstance was last updated.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTime"
]
}
},
"Outputs": {
"Description": "The outputs returned from creating the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Outputs"
]
}
},
"TemplateName": {
"Description": "The name of the template.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TemplateName"
]
}
},
"IsOperated": {
"Description": "Indicates whether the hosted O&M feature is enabled for the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IsOperated"
]
}
},
"SupplierUid": {
"Description": "The Alibaba Cloud account ID of the service provider.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SupplierUid"
]
}
},
"MarketInstanceId": {
"Description": "The ID of the cloud marketplace instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MarketInstanceId"
]
}
},
"Tags": {
"Description": "The tags of the service instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
该文章对您有帮助吗?