Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::DEVOPS::Pipeline

Última atualização: Jun 27, 2026

Cria um pipeline. Pipelines baseados em YAML são suportados.

Sintaxe

{
  "Type": "ALIYUN::DEVOPS::Pipeline",
  "Properties": {
    "Content": String,
    "OrganizationId": String,
    "Name": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Content

String

Sim

Sim

Descrição do pipeline baseado em YAML.

Nenhuma.

OrganizationId

String

Sim

Não

ID da empresa.

Obtenha o ID da empresa no endpoint do Apsara DevOps. Exemplo:

https://devops.aliyun.com/organization/[OrganizationId]

Name

String

Sim

Sim

Nome do pipeline.

Nenhuma.

Valores de retorno

Fn::GetAtt

PipelineId: ID do pipeline.

Exemplos

  • YAML formato

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Content:
        Description:
          en: Pipeline description in YAML format.
        Type: String
      Name:
        Description:
          en: Pipeline name.
        Type: String
      OrganizationId:
        Description:
          en: Corporate identity, also known as enterprise id, can obtain in cloud effect
            access links.
        Type: String
    Resources:
      Pipeline:
        Properties:
          Content:
            Ref: Content
          Name:
            Ref: Name
          OrganizationId:
            Ref: OrganizationId
        Type: ALIYUN::DEVOPS::Pipeline
    Outputs:
      PipelineId:
        Description: Pipeline id.
        Value:
          Fn::GetAtt:
          - Pipeline
          - PipelineId
                            
  • JSON formato

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Content": {
          "Type": "String",
          "Description": {
            "en": "Pipeline description in YAML format."
          }
        },
        "OrganizationId": {
          "Type": "String",
          "Description": {
            "en": "Corporate identity, also known as enterprise id, can obtain in cloud effect access links."
          }
        },
        "Name": {
          "Type": "String",
          "Description": {
            "en": "Pipeline name."
          }
        }
      },
      "Resources": {
        "Pipeline": {
          "Type": "ALIYUN::DEVOPS::Pipeline",
          "Properties": {
            "Content": {
              "Ref": "Content"
            },
            "OrganizationId": {
              "Ref": "OrganizationId"
            },
            "Name": {
              "Ref": "Name"
            }
          }
        }
      },
      "Outputs": {
        "PipelineId": {
          "Description": "Pipeline id.",
          "Value": {
            "Fn::GetAtt": [
              "Pipeline",
              "PipelineId"
            ]
          }
        }
      }
    }