Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::PAI::Service

Última atualização: Jun 27, 2026

Consulta os detalhes de um serviço no Elastic Algorithm Service (EAS).

Sintaxe

{
  "Type": "DATASOURCE::PAI::Service",
  "Properties": {
    "ServiceName": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ServiceName

String

Sim

Sim

Nome do serviço do EAS.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da source de dados durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da source de dados durante a atualização da pilha.

  • Always: atualiza os recursos da source de dados durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • ServiceGroup: grupo ao qual o serviço pertence.

  • Message: resumo do serviço.

  • Memory: memória alocada para cada instância.

  • CurrentVersion: versão atual do modelo.

  • RunningInstance: quantidade de instâncias em execução.

  • Cpu: CPU alocada para cada instância.

  • Image: imagem de dados do serviço.

  • Gpu: GPU alocada para cada instância.

  • CallerUid: ID do usuário da conta usada para crie o serviço.

  • Reason: motivo do estado atual do serviço.

  • TotalInstance: número total de instâncias do serviço.

  • ServiceConfig: configuração do serviço.

  • AccessToken: token de solicitação do serviço.

  • InternetEndpoint: endpoint público do serviço.

  • ResourceAlias: alias do grupo de recursos ao qual o serviço pertence.

  • CreateTime: hora de criação do serviço.

  • Resource: grupo de recursos ao qual o serviço pertence.

  • Labels: tags do serviço.

  • ExtraData: informações adicionais sobre o serviço.

  • Namespace: namespace ao qual o serviço pertence.

  • Weight: peso da liberação canário do serviço.

  • Role: função do serviço.

  • PendingInstance: quantidade de instâncias do serviço suspenso.

  • LatestVersion: versão mais recente do serviço.

  • ServiceName: nome do serviço.

  • SafetyLock: bloqueio de segurança do serviço.

  • UpdateTime: hora da última atualização do serviço.

  • ServiceUid: ID do serviço. Este valor é idêntico ao da propriedade ServiceId.

  • RoleAttrs: atributos adicionais da função do serviço.

  • ParentUid: ID do usuário da conta Alibaba Cloud usada para crie o serviço.

  • IntranetEndpoint: endpoint interno do serviço.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ServiceName:
    Type: String
    Description:
      en: The name of the service.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::PAI::Service
    Properties:
      ServiceName:
        Ref: ServiceName
Outputs:
  ServiceGroup:
    Description: The group to which the service belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceGroup
  Message:
    Description: The summary of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Message
  Memory:
    Description: The memory that you applied for each instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Memory
  CurrentVersion:
    Description: The current version of the model.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CurrentVersion
  RunningInstance:
    Description: The number of instances for the running service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RunningInstance
  Cpu:
    Description: The CPU that you applied for each instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Cpu
  Image:
    Description: The data image of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Image
  Gpu:
    Description: The GPU that you applied for each instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Gpu
  CallerUid:
    Description: The user ID of the account that is used to create the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CallerUid
  Reason:
    Description: The reason why the service is in the current state.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Reason
  TotalInstance:
    Description: The total number of instances of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TotalInstance
  ServiceConfig:
    Description: The configurations of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceConfig
  AccessToken:
    Description: The request token of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AccessToken
  InternetEndpoint:
    Description: The public endpoint of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InternetEndpoint
  ResourceAlias:
    Description: The alias of the resource group to which the service belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceAlias
  CreateTime:
    Description: The time when the service was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  Resource:
    Description: The resource group to which the service belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Resource
  Labels:
    Description: The tags of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Labels
  ExtraData:
    Description: The additional information about the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ExtraData
  Namespace:
    Description: The namespace of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Namespace
  Weight:
    Description: The weight of the canary release for the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Weight
  Role:
    Description: The role of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Role
  PendingInstance:
    Description: The number of instances for the suspended service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PendingInstance
  LatestVersion:
    Description: The latest version of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LatestVersion
  ServiceName:
    Description: The name of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceName
  SafetyLock:
    Description: The security lock of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SafetyLock
  UpdateTime:
    Description: The time when the service was updated.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - UpdateTime
  ServiceUid:
    Description: The ID of the service. The value of this property is the same as the value of ServiceId.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceUid
  RoleAttrs:
    Description: The additional attributes of the service role.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RoleAttrs
  ParentUid:
    Description: The user ID of the Alibaba Cloud account that is used to create the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ParentUid
  IntranetEndpoint:
    Description: The internal endpoint of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - IntranetEndpoint
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ServiceName": {
      "Type": "String",
      "Description": {
        "en": "The name of the service."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::PAI::Service",
      "Properties": {
        "ServiceName": {
          "Ref": "ServiceName"
        }
      }
    }
  },
  "Outputs": {
    "ServiceGroup": {
      "Description": "The group to which the service belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceGroup"
        ]
      }
    },
    "Message": {
      "Description": "The summary of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Message"
        ]
      }
    },
    "Memory": {
      "Description": "The memory that you applied for each instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Memory"
        ]
      }
    },
    "CurrentVersion": {
      "Description": "The current version of the model.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CurrentVersion"
        ]
      }
    },
    "RunningInstance": {
      "Description": "The number of instances for the running service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RunningInstance"
        ]
      }
    },
    "Cpu": {
      "Description": "The CPU that you applied for each instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Cpu"
        ]
      }
    },
    "Image": {
      "Description": "The data image of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Image"
        ]
      }
    },
    "Gpu": {
      "Description": "The GPU that you applied for each instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Gpu"
        ]
      }
    },
    "CallerUid": {
      "Description": "The user ID of the account that is used to create the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CallerUid"
        ]
      }
    },
    "Reason": {
      "Description": "The reason why the service is in the current state.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Reason"
        ]
      }
    },
    "TotalInstance": {
      "Description": "The total number of instances of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TotalInstance"
        ]
      }
    },
    "ServiceConfig": {
      "Description": "The configurations of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceConfig"
        ]
      }
    },
    "AccessToken": {
      "Description": "The request token of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AccessToken"
        ]
      }
    },
    "InternetEndpoint": {
      "Description": "The public endpoint of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InternetEndpoint"
        ]
      }
    },
    "ResourceAlias": {
      "Description": "The alias of the resource group to which the service belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceAlias"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the service was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "Resource": {
      "Description": "The resource group to which the service belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Resource"
        ]
      }
    },
    "Labels": {
      "Description": "The tags of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Labels"
        ]
      }
    },
    "ExtraData": {
      "Description": "The additional information about the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExtraData"
        ]
      }
    },
    "Namespace": {
      "Description": "The namespace of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Namespace"
        ]
      }
    },
    "Weight": {
      "Description": "The weight of the canary release for the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Weight"
        ]
      }
    },
    "Role": {
      "Description": "The role of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Role"
        ]
      }
    },
    "PendingInstance": {
      "Description": "The number of instances for the suspended service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PendingInstance"
        ]
      }
    },
    "LatestVersion": {
      "Description": "The latest version of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LatestVersion"
        ]
      }
    },
    "ServiceName": {
      "Description": "The name of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceName"
        ]
      }
    },
    "SafetyLock": {
      "Description": "The security lock of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SafetyLock"
        ]
      }
    },
    "UpdateTime": {
      "Description": "The time when the service was updated.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UpdateTime"
        ]
      }
    },
    "ServiceUid": {
      "Description": "The ID of the service. The value of this property is the same as the value of ServiceId.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceUid"
        ]
      }
    },
    "RoleAttrs": {
      "Description": "The additional attributes of the service role.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RoleAttrs"
        ]
      }
    },
    "ParentUid": {
      "Description": "The user ID of the Alibaba Cloud account that is used to create the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ParentUid"
        ]
      }
    },
    "IntranetEndpoint": {
      "Description": "The internal endpoint of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IntranetEndpoint"
        ]
      }
    }
  }
}