Queries 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 |
Additional information about the service. |
None. |
|
Namespace |
String |
The namespace of the service. |
None. |
|
CallerUid |
String |
The UID of the Alibaba Cloud account or RAM user that created 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 |
Additional attributes of the service role. |
None. |
|
TotalInstance |
String |
The total number of instances of the service. |
None. |
|
RunningInstance |
String |
The number of running instances. |
None. |
|
ServiceUid |
String |
The service ID. Same as ServiceId. |
None. |
|
Reason |
String |
The reason for the current service 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 created the service. |
None. |
|
IntranetEndpoint |
String |
The private endpoint of the service. |
None. |
|
CurrentVersion |
String |
The model version currently running. |
None. |
|
PendingInstance |
String |
The number of pending instances. |
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 service configurations. |
None. |
|
Image |
String |
The container 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 for the service. |
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"
]
}
}
}
}