All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::PAI::Services

Last Updated:Jul 05, 2023

DATASOURCE::PAI::Services is used to query the information about Elastic Algorithm Service (EAS) services of Machine Learning Platform for AI (PAI).

Syntax

{
  "Type": "DATASOURCE::PAI::Services",
  "Properties": {
    "ServiceName": String,
    "Labels": Map
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

ServiceName

String

No

Yes

The name of the service.

None.

Labels

Map

No

Yes

The tags of the service.

None.

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 of the service.

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 of the account that is used to create the service.

None.

Role

String

The role of the service.

None.

Memory

String

The memory that you applied for each instance.

Unit: MB.

Gpu

String

The GPU that you applied for each instance.

None.

Status

String

The state 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 for the running service.

None.

ServiceUid

String

The ID of the service. 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 user ID 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 current version of the model.

None.

PendingInstance

String

The number of instances for the suspended service.

None.

InternetEndpoint

String

The public endpoint of the service.

None.

Cpu

String

The CPU that you applied for each instance.

None.

ServiceGroup

String

The group to which the service belongs.

None.

Weight

String

The weight of the canary release for the service.

None.

ServiceConfig

String

The configurations of the service.

None.

Image

String

The data 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 name of the service.

None.

Message

String

The summary of the service.

None.

ResourceAlias

String

The alias of the resource group to which the service belongs.

None.

Examples

YAML format

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

JSON format

{
  "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"
        ]
      }
    }
  }
}