Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::DEVOPS::PipelineRelations

Última atualização: Jun 27, 2026

Associa recursos a um pipeline no Apsara Devops.

Sintaxe

{
  "Type": "ALIYUN::DEVOPS::PipelineRelations",
  "Properties": {
    "RelObjectType": String,
    "RelObjectIds": List,
    "PipelineId": Number,
    "OrganizationId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

RelObjectType

String

Sim

Não

Tipo de recurso.

Defina o valor como VARIABLE_GROUP.

RelObjectIds

List

Sim

Não

IDs dos recursos para associação.

Somente IDs de grupos de variáveis são suportados.

PipelineId

Number

Sim

Não

ID do pipeline.

Obtenha o ID do pipeline na URL correspondente. Exemplo de URL: https://flow.aliyun.com/pipelines/[PipelineId]/current.

OrganizationId

String

Sim

Não

ID do workspace da organização.

Valor do tipo String. Consulte o ID do workspace da organização na URL do Apsara Devops. Exemplo de URL: https:// devops.aliyun.com/organization/[OrgId].

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      OrganizationId:
        Description:
          en: Corporate identity, also known as enterprise id, can obtain in cloud effect
            access links.
        Type: String
      PipelineId:
        Description:
          en: The pipeline ID, which can be obtained from the pipeline link.
        Type: Number
      RelObjectIds:
        AssociationProperty: List[Parameter]
        AssociationPropertyMetadata:
          Parameter:
            Type: Number
        Description:
          en: Ids of the associated resource. For now, only variable group ids are supported.
        Type: Json
      RelObjectType:
        Description:
          en: 'Associated resource type. Valid values:
    
            - VARIABLE_GROUP
    
            - OOS_APP_ID
    
            For now, only VARIABLE GROUP is supported. '
        Type: String
    Resources:
      PipelineRelations:
        Properties:
          OrganizationId:
            Ref: OrganizationId
          PipelineId:
            Ref: PipelineId
          RelObjectIds:
            Ref: RelObjectIds
          RelObjectType:
            Ref: RelObjectType
        Type: ALIYUN::DEVOPS::PipelineRelations
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RelObjectType": {
          "Type": "String",
          "Description": {
            "en": "Associated resource type. Valid values:\n- VARIABLE_GROUP\n- OOS_APP_ID\nFor now, only VARIABLE GROUP is supported. "
          }
        },
        "RelObjectIds": {
          "AssociationPropertyMetadata": {
            "Parameter": {
              "Type": "Number"
            }
          },
          "AssociationProperty": "List[Parameter]",
          "Type": "Json",
          "Description": {
            "en": "Ids of the associated resource. For now, only variable group ids are supported."
          }
        },
        "PipelineId": {
          "Type": "Number",
          "Description": {
            "en": "The pipeline ID, which can be obtained from the pipeline link."
          }
        },
        "OrganizationId": {
          "Type": "String",
          "Description": {
            "en": "Corporate identity, also known as enterprise id, can obtain in cloud effect access links."
          }
        }
      },
      "Resources": {
        "PipelineRelations": {
          "Type": "ALIYUN::DEVOPS::PipelineRelations",
          "Properties": {
            "RelObjectType": {
              "Ref": "RelObjectType"
            },
            "RelObjectIds": {
              "Ref": "RelObjectIds"
            },
            "PipelineId": {
              "Ref": "PipelineId"
            },
            "OrganizationId": {
              "Ref": "OrganizationId"
            }
          }
        }
      }
    }