Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::PAI::Run

Última atualização: Jun 27, 2026

Cria uma execução em um experimento. A execução pode associar-se a uma carga de trabalho específica ou representar uma execução de código independente.

Sintaxe

{
  "Type": "ALIYUN::PAI::Run",
  "Properties": {
    "ExperimentId": String,
    "RunName": String,
    "SourceId": String,
    "SourceType": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

ExperimentId

String

Sim

Não

ID do experimento a associar à execução.

Nenhuma.

RunName

String

Não

Sim

Nome da execução.

Regras aplicáveis:

  • O nome deve começar com uma letra.

  • Pode conter letras, dígitos, sublinhados (_) e hifens (-).

  • Deve ter entre 1 e 63 caracteres.

Se esta propriedade estiver vazia, o servidor gera um ID aleatório (RunID) como nome.

SourceId

String

Não

Não

ID da carga de trabalho do Platform for AI

(PAI) a associar à execução.

Nenhuma.

SourceType

String

Não

Não

Tipo de origem da carga de trabalho do PAI a associar à execução.

Valores válidos: TrainingService e DLC. Vazio por padrão.

Valores de retorno

Fn::GetAtt

  • Accessibility: tipo de acesso.

  • SourceType: tipo de origem da carga de trabalho do PAI associada à execução.

  • SourceId: ID da carga de trabalho do PAI associada à execução.

  • CreateTime: hora de criação da execução.

  • WorkspaceId: ID da carga de trabalho do PAI.

  • Params: parâmetros da execução.

  • Labels: tags adicionadas à execução.

  • GmtModifiedTime: hora da última atualização da execução.

  • RunName: nome da execução.

  • Metrics: métricas da execução.

  • OwnerId: ID da conta Alibaba Cloud da execução.

  • UserId: ID do criador da execução.

  • ExperimentId: ID do experimento associado à execução.

  • RunId: ID da execução.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ExperimentId:
    Type: String
    Description:
      en: Resource attribute field of the experiment ID to which Run belongs.
    Required: true
  RunName:
    Type: String
    Description:
      en: The name of the Run.
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::PAI::Run
    Properties:
      ExperimentId:
        Ref: ExperimentId
      RunName:
        Ref: RunName
Outputs:
  Accessibility:
    Description: Resource attribute fields representing visibility.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Accessibility
  SourceType:
    Description: Run attribute fields representing the source type.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SourceType
  SourceId:
    Description: Attribute Resource field representing the source task ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SourceId
  CreateTime:
    Description: The creation time of the Run.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  WorkspaceId:
    Description: Resource attribute field of the workspace ID to which Run belongs.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WorkspaceId
  Params:
    Description: Resource attribute field representing the run parameter.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Params
  Labels:
    Description: Run attribute field representing the run tag.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Labels
  GmtModifiedTime:
    Description: Resource attribute fields representing edit time.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GmtModifiedTime
  RunName:
    Description: The name of the Run.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RunName
  Metrics:
    Description: Resource attribute field representing the run metric.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Metrics
  OwnerId:
    Description: Resource attribute field representing owner.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OwnerId
  UserId:
    Description: Run attribute field representing creator ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - UserId
  ExperimentId:
    Description: Resource attribute field of the experiment ID to which Run belongs.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ExperimentId
  RunId:
    Description: The ID of the Run.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RunId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ExperimentId": {
      "Type": "String",
      "Description": {
        "en": "Resource attribute field of the experiment ID to which Run belongs."
      },
      "Required": true
    },
    "RunName": {
      "Type": "String",
      "Description": {
        "en": "The name of the Run."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::PAI::Run",
      "Properties": {
        "ExperimentId": {
          "Ref": "ExperimentId"
        },
        "RunName": {
          "Ref": "RunName"
        }
      }
    }
  },
  "Outputs": {
    "Accessibility": {
      "Description": "Resource attribute fields representing visibility.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Accessibility"
        ]
      }
    },
    "SourceType": {
      "Description": "Run attribute fields representing the source type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SourceType"
        ]
      }
    },
    "SourceId": {
      "Description": "Attribute Resource field representing the source task ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SourceId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the Run.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "WorkspaceId": {
      "Description": "Resource attribute field of the workspace ID to which Run belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WorkspaceId"
        ]
      }
    },
    "Params": {
      "Description": "Resource attribute field representing the run parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Params"
        ]
      }
    },
    "Labels": {
      "Description": "Run attribute field representing the run tag.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Labels"
        ]
      }
    },
    "GmtModifiedTime": {
      "Description": "Resource attribute fields representing edit time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GmtModifiedTime"
        ]
      }
    },
    "RunName": {
      "Description": "The name of the Run.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RunName"
        ]
      }
    },
    "Metrics": {
      "Description": "Resource attribute field representing the run metric.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Metrics"
        ]
      }
    },
    "OwnerId": {
      "Description": "Resource attribute field representing owner.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OwnerId"
        ]
      }
    },
    "UserId": {
      "Description": "Run attribute field representing creator ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "UserId"
        ]
      }
    },
    "ExperimentId": {
      "Description": "Resource attribute field of the experiment ID to which Run belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ExperimentId"
        ]
      }
    },
    "RunId": {
      "Description": "The ID of the Run.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RunId"
        ]
      }
    }
  }
}