DATASOURCE::PAI::Services is used to query the information about Elastic Algorithm Service (EAS) services.
Syntax
{
"Type": "DATASOURCE::PAI::Services",
"Properties": {
"ServiceName": String,
"Labels": Map,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ServiceName | String | No | Yes | The service name. | None. |
Labels | Map | No | Yes | The tags of the service. | None. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
Services: details of the services.
ServiceNames: the names of the services.
Property | Type | Description | Constraint |
ServiceNames | List | The names of the services. | None. |
Services | List | Details of the services. | None. |
SafetyLock | String | The security lock of the service. | None. |
RegionId | String | The region ID. | None. |
AccessToken | String | The request token of the service. | None. |
ExtraData | String | The additional information about the service. | None. |
Namespace | String | The namespace of the service. | None. |
CallerUid | String | The user ID (UID) of the Alibaba Cloud account or Resource Access Management (RAM) user that is used to create the service. | None. |
Role | String | The role of the service. | None. |
Memory | String | The memory requested for each instance. | Unit: MB. |
Gpu | String | The number of GPUs requested for each instance. | None. |
Status | String | The status of the instance. | None. |
UpdateTime | String | The time when the service was updated. | None. |
RoleAttrs | String | The additional attributes of the service role. | None. |
TotalInstance | String | The total number of instances of the service. | None. |
RunningInstance | String | The number of instances of the running service. | None. |
ServiceUid | String | The service ID. The value of this property is the same as the value of ServiceId. | None. |
Reason | String | The reason why the service is in the current state. | None. |
LatestVersion | String | The latest version of the service. | None. |
Resource | String | The resource group to which the service belongs. | None. |
ParentUid | String | The UID of the Alibaba Cloud account that is used to create the service. | None. |
IntranetEndpoint | String | The private endpoint of the service. | None. |
CurrentVersion | String | The version of the model that is running. | None. |
PendingInstance | String | The number of instances of the pending service. | None. |
InternetEndpoint | String | The public endpoint of the service. | None. |
Cpu | String | The number of vCPUs requested for each instance. | None. |
ServiceGroup | String | The group to which the service belongs. | None. |
Weight | String | The weight of the service in a canary release. | None. |
ServiceConfig | String | The configurations of the service. | None. |
Image | String | The image of the service. | None. |
Labels | String | The tags of the service. | None. |
CreateTime | String | The time when the service was created. | None. |
ServiceName | String | The service name. | None. |
Message | String | The summary of the service. | None. |
ResourceAlias | String | The alias of the resource group to which the service belongs. | None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ServiceName:
Description: Service Name.
Type: String
Resources:
ExtensionDataSource:
Properties:
ServiceName:
Ref: ServiceName
Type: DATASOURCE::PAI::Services
Outputs:
ServiceNames:
Description: The list of service names.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceNames
Services:
Description: The list of services.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Services
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ServiceName": {
"Type": "String",
"Description": "Service Name."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PAI::Services",
"Properties": {
"ServiceName": {
"Ref": "ServiceName"
}
}
}
},
"Outputs": {
"Services": {
"Description": "The list of services.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Services"
]
}
},
"ServiceNames": {
"Description": "The list of service names.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceNames"
]
}
}
}
}