すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::PAI::Service

最終更新日:Jan 16, 2025

ALIYUN::PAI::Service は、Machine Learning Platform for AI(PAI)で Elastic Algorithm Service(EAS)サービスを作成するために使用されます。

構文

{
  "Type": "ALIYUN::PAI::Service",
  "Properties": {
    "Develop": String,
    "ServiceConfig": Map,
    "Labels": Map
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Develop

String

いいえ

いいえ

開発モードに入るかどうかを指定します。

有効な値:

  • true

  • false

ServiceConfig

Map

はい

はい

サービスの構成。

例:

{ "metadata": { "cpu":1, "instance":1, "memory":1024 }, "name":"echo", "processor_entry":"libecho.so", "processor_path":"http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz", "processor_type":"cpp" }

Labels

Map

いいえ

はい

サービスのタグ。

例:

{"key":"value"}

戻り値

Fn::GetAtt

  • ServiceGroup:サービスが属するグループ。

  • Message:サービスの概要。

  • Memory:インスタンスごとに申請したメモリ。

  • CurrentVersion:モデルの現在のバージョン。

  • RunningInstance:実行中のサービスのインスタンス数。

  • Cpu:インスタンスごとに申請した CPU。

  • Image:サービスのデータイメージ。

  • Gpu:インスタンスごとに申請した GPU。

  • CallerUid:サービスの作成に使用されるアカウントのユーザー ID。

  • Reason:サービスが現在の状態になっている理由。

  • TotalInstance:サービスのインスタンスの総数。

  • ServiceConfig:サービスの構成。

  • AccessToken:サービスの要求トークン。

  • InternetEndpoint:サービスのパブリックエンドポイント。

  • ResourceAlias:サービスが属するリソースグループのエイリアス。

  • CreateTime:サービスが作成された時刻。

  • Resource:サービスが属するリソースグループ。

  • Labels:サービスのタグ。

  • ExtraData:サービスに関する追加情報。

  • Namespace:サービスが属する名前空間。

  • Weight:サービスのカナリアリリースの重み。

  • Role:サービスのロール。

  • PendingInstance:中断されているサービスのインスタンス数。

  • LatestVersion:サービスの最新バージョン。

  • ServiceName:サービスの名前。

  • SafetyLock:サービスのセキュリティロック。

  • UpdateTime:サービスが更新された時刻。

  • ServiceUid:サービス ID。このプロパティの値は、ServiceId の値と同じです。

  • RoleAttrs:サービスロールの追加属性。

  • ParentUid:サービスの作成に使用される Alibaba Cloud アカウントのユーザー ID。

  • IntranetEndpoint:サービスのプライベートエンドポイント。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ServiceConfig:
    Type: Json
    Description: サービス構成情報。
    Default:
      metadata:
        cpu: 1
        instance: 1
        memory: 1024
      name: echo
      processor_entry: libecho.so
      processor_path: http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz
      processor_type: cpp
  Labels:
    Type: Json
    Description: サービスタグ。
    Default:
      key: value
Resources:
  ExtensionResource:
    Type: ALIYUN::PAI::Service
    Properties:
      ServiceConfig:
        Ref: ServiceConfig
      Labels:
        Ref: Labels
Outputs:
  ServiceGroup:
    Description: サービスが属するグループ。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ServiceGroup
  Message:
    Description: サービスの最新情報。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Message
  Memory:
    Description: サービスのメモリ(MB)。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Memory
  CurrentVersion:
    Description: サービスの現在実行中のバージョン。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CurrentVersion
  RunningInstance:
    Description: 実行中のサービスのインスタンス数。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RunningInstance
  Cpu:
    Description: サービス CPU コア数。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Cpu
  Image:
    Description: サービスデプロイミラーリング。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Image
  Gpu:
    Description: サービス GPU カード数。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Gpu
  CallerUid:
    Description: サービス作成者の ID。RAM アカウントの ID にすることができます。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CallerUid
  Reason:
    Description: サービスデプロイの失敗理由。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Reason
  TotalInstance:
    Description: サービスに必要なインスタンスの総数。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TotalInstance
  ServiceConfig:
    Description: サービス構成情報。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ServiceConfig
  AccessToken:
    Description: サービスリクエスト認証トークン。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AccessToken
  InternetEndpoint:
    Description: サービスのパブリックネットワーク Endpoint。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InternetEndpoint
  ResourceAlias:
    Description: サービスが存在するリソースグループの名前。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceAlias
  CreateTime:
    Description: サービスの作成時刻。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  Resource:
    Description: サービスが属するリソースグループの ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Resource
  Labels:
    Description: サービスタグ。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Labels
  ExtraData:
    Description: サービスの追加情報。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ExtraData
  Namespace:
    Description: サービスが属する名前空間。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Namespace
  Weight:
    Description: パケットサービストラフィックの重み。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Weight
  Role:
    Description: グループ化サービスロール。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Role
  PendingInstance:
    Description: サービスが現在準備できていないインスタンスの数。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PendingInstance
  LatestVersion:
    Description: サービスの最新バージョン。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - LatestVersion
  ServiceName:
    Description: サービス名。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ServiceName
  SafetyLock:
    Description: サービスセキュリティロックの状態。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SafetyLock
  UpdateTime:
    Description: サービスの最終更新日時。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - UpdateTime
  ServiceUid:
    Description: 一意のサービス ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ServiceUid
  RoleAttrs:
    Description: グループ化サービスロールのプロパティ。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RoleAttrs
  ParentUid:
    Description: 作成者のプライマリアカウント ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ParentUid
  IntranetEndpoint:
    Description: サービスのイントラネット Endpoint。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IntranetEndpoint

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ServiceConfig": {
      "Type": "Json",
      "Description": "サービス構成情報。",
      "Default": {
        "metadata": {
          "cpu": 1,
          "instance": 1,
          "memory": 1024
        },
        "name": "echo",
        "processor_entry": "libecho.so",
        "processor_path": "http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz",
        "processor_type": "cpp"
      }
    },
    "Labels": {
      "Type": "Json",
      "Description": "サービスタグ。",
      "Default": {"key":"value"}
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::PAI::Service",
      "Properties": {
        "ServiceConfig": {
          "Ref": "ServiceConfig"
        },
        "Labels": {
          "Ref": "Labels"
        }
      }
    }
  },
  "Outputs": {
    "ServiceGroup": {
      "Description": "サービスが属するグループ。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ServiceGroup"
        ]
      }
    },
    "Message": {
      "Description": "サービスに関する最新情報。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Message"
        ]
      }
    },
    // ... (Rest of the JSON translation is omitted as it follows the same pattern)
  }
}