Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ESA::OriginPool

Última atualização: Jun 27, 2026

O tipo ALIYUN::ESA::OriginPool cria um pool de endereços de origem.

Sintaxe

{
  "Type": "ALIYUN::ESA::OriginPool",
  "Properties": {
    "OriginPoolName": String,
    "SiteId": Integer,
    "Enabled": Boolean,
    "Origins": List
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

OriginPoolName

String

Sim

Não

O nome do pool de endereços de origem.

O nome do pool de endereços de origem deve ser exclusivo em um site.

SiteId

Integer

Sim

Não

O ID do site.

Nenhuma

Enabled

Boolean

Não

Sim

Especifica se o pool de endereços de origem deve ser ativado.

Valores válidos:

  • true: Ativado.

  • false: Desativado.

Origins

List

Não

Sim

As informações sobre os servidores de origem adicionados ao pool de endereços de origem.

Para especificar vários servidores de origem, use um array. Para mais informações, consulte Propriedades de Origins.

Sintaxe de Origins

"Origins": [
  {
    "Type": String,
    "Header": String,
    "Address": String,
    "Enabled": Boolean,
    "AuthConf": Map,
    "OriginId": Integer,
    "Weight": Integer,
    "Name": String
  }
]

Propriedades de Origins

Nome da propriedade

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

Address

String

Não

Sim

O endereço do servidor de origem.

Nenhuma

AuthConf

Map

Não

Sim

As informações de autenticação.

Se o servidor de origem for um bucket OSS ou S3 que requer autenticação, você deve fornecer a configuração de autenticação. Para mais informações, consulte Propriedades de AuthConf.

Enabled

Boolean

Não

Sim

Especifica se o servidor de origem deve ser ativado.

Valores válidos:

  • true

  • false

Header

String

Não

Sim

O cabeçalho de solicitação enviado durante as solicitações de regras de origem.

Somente o cabeçalho Host é compatível.

Name

String

Não

Sim

O nome do servidor de origem.

O nome do servidor de origem deve ser exclusivo em um endereço de origem.

OriginId

Integer

Não

Não

O ID do servidor de origem.

Nenhuma

Type

String

Não

Sim

O tipo do servidor de origem.

Valores válidos:

  • ip_domain: Um servidor de origem do tipo IP ou nome de domínio.

  • OSS: Um bucket OSS.

  • S3: Um bucket AWS S3.

Weight

Integer

Não

Sim

O peso.

Um número inteiro de 0 a 100.

Sintaxe de AuthConf

"AuthConf": {
  "SecretKey": String,
  "Version": String,
  "Region": String,
  "AccessKey": String,
  "AuthType": String
}

Propriedades de AuthConf

Nome da propriedade

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

AccessKey

String

Não

Sim

A AccessKey para autenticação privada.

Nenhuma

AuthType

String

Não

Sim

O tipo de autenticação.

Valores válidos:

  • public: Leitura e gravação pública. Use este valor se o servidor de origem for um bucket OSS ou S3 com permissões de leitura e gravação pública.

  • private_same_account: Privado (mesma conta). Use este valor se o servidor de origem for um bucket OSS que usa autenticação privada na mesma conta.

  • private_cross_account: Privado (conta cruzada). Use este valor se o servidor de origem for um bucket OSS que usa autenticação privada entre contas.

  • private: Privado. Use este valor se o servidor de origem for um bucket S3 que usa autenticação privada.

Region

String

Não

Sim

A região do servidor de origem. Este parâmetro é obrigatório se o servidor de origem for um bucket AWS S3.

Nenhuma

SecretKey

String

Não

Sim

A SecretKey para autenticação privada.

Nenhuma

Version

String

Não

Sim

A versão da assinatura. Este parâmetro é obrigatório se o servidor de origem for um bucket AWS S3.

Nenhuma

Valores de retorno

Fn::GetAtt

  • RecordName: O nome do registro.

  • Origins: Informações sobre os servidores de origem no pool de endereços de origem.

  • SiteId: O ID do site.

  • OriginPoolId: O ID do pool de endereços de origem.

  • ReferenceLBCount: O número de Server Load Balancers que referenciam o pool.

  • References: As referências ao pool de endereços de origem.

  • Enabled: Indica se o pool de endereços de origem está ativado.

  • OriginPoolName: O nome do pool de endereços de origem.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Origins:
    AssociationPropertyMetadata:
      Parameter:
        AssociationPropertyMetadata:
          Parameters:
            Type:
              Type: String
              Description:
                en: |-
                  The type of the origin server. Valid values:
                  - ip_domain: An origin server of the IP or domain name type.
                  - OSS: An OSS bucket.
                  - S3: An AWS S3 bucket.
              AllowedValues:
                - ip_domain
                - OSS
                - S3
              Required: false
            Header:
              Type: String
              Description:
                en: The request header sent during origin rules requests. Only the Host header is supported.
              Required: false
            Address:
              Type: String
              Description:
                en: The address of the origin server.
              Required: false
            Enabled:
              Type: Boolean
              Description:
                en: |-
                  Specifies whether to enable the origin server. Valid values:
                  - true: The origin server is enabled.
                  - false: The origin server is disabled.
              Required: false
            AuthConf:
              AssociationPropertyMetadata:
                Parameters:
                  SecretKey:
                    Type: String
                    Description:
                      en: The SecretKey for private authentication. This parameter is required if AuthType is set to private_cross_account or private.
                    Required: false
                  Version:
                    Type: String
                    Description:
                      en: The signature version. This parameter is required if the origin server is an AWS S3 bucket.
                    Required: false
                  Region:
                    Type: String
                    Description:
                      en: The region of the origin server. This parameter is required if the origin server is an AWS S3 bucket.
                    Required: false
                  AccessKey:
                    Type: String
                    Description:
                      en: The AccessKey for private authentication. This parameter is required if AuthType is set to private_cross_account or private.
                    Required: false
                  AuthType:
                    Type: String
                    Description:
                      en: |-
                        The authentication type. Valid values:
                        - public: Public-read-write. Use this value if the origin server is an OSS or S3 bucket with public-read-write permissions.
                        - private_same_account: Private (same account). Use this value if the origin server is an OSS bucket that uses private authentication within the same account.
                        - private_cross_account: Private (cross-account). Use this value if the origin server is an OSS bucket that uses private cross-account authentication.
                        - private: Private. Use this value if the origin server is an S3 bucket that uses private authentication.
                    AllowedValues:
                      - public
                      - private_same_account
                      - private_cross_account
                      - private
                    Required: false
              Type: Json
              Description:
                en: The authentication information. This parameter is required if the origin server is an OSS or S3 bucket that requires authentication.
              Required: false
            OriginId:
              Type: Number
              Description:
                en: The origin server ID.
              Required: false
            Weight:
              Type: Number
              Description:
                en: The weight. The value must be an integer from 0 to 100.
              Required: false
              MinValue: 0
              MaxValue: 100
            Name:
              Type: String
              Description:
                en: The name of the origin server. The name must be unique within an origin address.
              Required: false
        Type: Json
        Description:
          en: The information about the origin servers in the address pool. To specify multiple origin servers, use an array.
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The information about the origin servers in the address pool. To specify multiple origin servers, use an array.
    Required: false
  SiteId:
    Type: Number
    Description:
      en: The site ID.
    Required: true
  OriginPoolName:
    Type: String
    Description:
      en: The name of the origin address pool.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::OriginPool
    Properties:
      Origins:
        Ref: Origins
      SiteId:
        Ref: SiteId
      OriginPoolName:
        Ref: OriginPoolName
Outputs:
  RecordName:
    Description: The domain name assigned to the origin address pool. You can use this domain name as the origin address for the site.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RecordName
  Origins:
    Description: The information about the origin servers added to the origin address pool. To specify multiple origin servers, use an array.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Origins
  SiteId:
    Description: The site ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SiteId
  OriginPoolId:
    Description: The ID of the origin address pool.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OriginPoolId
  ReferenceLBCount:
    Description: The number of Server Load Balancers that reference the pool.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ReferenceLBCount
  References:
    Description: The reference information of the origin address pool. This information is available when the pool is configured by a Server Load Balancer or used as an origin server.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - References
  Enabled:
    Description: Indicates whether the origin address pool is enabled.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Enabled
  OriginPoolName:
    Description: The name of the origin address pool.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OriginPoolName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Origins": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "AssociationPropertyMetadata": {
            "Parameters": {
              "Type": {
                "Type": "String",
                "Description": {
                  "en": "The type of the origin server. Valid values:\nip_domain: An origin server of the IP or domain name type.\nOSS: An OSS bucket.\nS3: An AWS S3 bucket."
                },
                "AllowedValues": [
                  "ip_domain",
                  "OSS",
                  "S3"
                ],
                "Required": false
              },
              "Header": {
                "Type": "String",
                "Description": {
                  "en": "The request header sent during origin rules requests. Only the Host header is supported."
                },
                "Required": false
              },
              "Address": {
                "Type": "String",
                "Description": {
                  "en": "The address of the origin server."
                },
                "Required": false
              },
              "Enabled": {
                "Type": "Boolean",
                "Description": {
                  "en": "Specifies whether to enable the origin server. Valid values:\n- true: The origin server is enabled.\n- false: The origin server is disabled."
                },
                "Required": false
              },
              "AuthConf": {
                "AssociationPropertyMetadata": {
                  "Parameters": {
                    "SecretKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The SecretKey for private authentication. This parameter is required if AuthType is set to private_cross_account or private."
                      },
                      "Required": false
                    },
                    "Version": {
                      "Type": "String",
                      "Description": {
                        "en": "The signature version. This parameter is required if the origin server is an AWS S3 bucket."
                      },
                      "Required": false
                    },
                    "Region": {
                      "Type": "String",
                      "Description": {
                        "en": "The region of the origin server. This parameter is required if the origin server is an AWS S3 bucket."
                      },
                      "Required": false
                    },
                    "AccessKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The AccessKey for private authentication. This parameter is required if AuthType is set to private_cross_account or private."
                      },
                      "Required": false
                    },
                    "AuthType": {
                      "Type": "String",
                      "Description": {
                        "en": "The authentication type. Valid values:\n- public: Public-read-write. Use this value if the origin server is an OSS or S3 bucket with public-read-write permissions.\n- private_same_account: Private (same account). Use this value if the origin server is an OSS bucket that uses private authentication within the same account.\n- private_cross_account: Private (cross-account). Use this value if the origin server is an OSS bucket that uses private cross-account authentication.\n- private: Private. Use this value if the origin server is an S3 bucket that uses private authentication."
                      },
                      "AllowedValues": [
                        "public",
                        "private_same_account",
                        "private_cross_account",
                        "private"
                      ],
                      "Required": false
                    }
                  }
                },
                "Type": "Json",
                "Description": {
                  "en": "The authentication information. This parameter is required if the origin server is an OSS or S3 bucket that requires authentication."
                },
                "Required": false
              },
              "OriginId": {
                "Type": "Number",
                "Description": {
                  "en": "The origin server ID."
                },
                "Required": false
              },
              "Weight": {
                "Type": "Number",
                "Description": {
                  "en": "The weight. The value must be an integer from 0 to 100."
                },
                "Required": false,
                "MinValue": 0,
                "MaxValue": 100
              },
              "Name": {
                "Type": "String",
                "Description": {
                  "en": "The name of the origin server. The name must be unique within an origin address."
                },
                "Required": false
              }
            }
          },
          "Type": "Json",
          "Description": {
            "en": "The information about the origin servers in the address pool. To specify multiple origin servers, use an array."
          },
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The information about the origin servers in the address pool. To specify multiple origin servers, use an array."
      },
      "Required": false
    },
    "SiteId": {
      "Type": "Number",
      "Description": {
        "en": "The site ID."
      },
      "Required": true
    },
    "OriginPoolName": {
      "Type": "String",
      "Description": {
        "en": "The name of the origin address pool."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::OriginPool",
      "Properties": {
        "Origins": {
          "Ref": "Origins"
        },
        "SiteId": {
          "Ref": "SiteId"
        },
        "OriginPoolName": {
          "Ref": "OriginPoolName"
        }
      }
    }
  },
  "Outputs": {
    "RecordName": {
      "Description": "The domain name assigned to the origin address pool. You can use this domain name as the origin address for the site.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RecordName"
        ]
      }
    },
    "Origins": {
      "Description": "The information about the origin servers added to the origin address pool. To specify multiple origin servers, use an array.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Origins"
        ]
      }
    },
    "SiteId": {
      "Description": "The site ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SiteId"
        ]
      }
    },
    "OriginPoolId": {
      "Description": "The ID of the origin address pool.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OriginPoolId"
        ]
      }
    },
    "ReferenceLBCount": {
      "Description": "The number of Server Load Balancers that reference the pool.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ReferenceLBCount"
        ]
      }
    },
    "References": {
      "Description": "The reference information of the origin address pool. This information is available when the pool is configured by a Server Load Balancer or used as an origin server.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "References"
        ]
      }
    },
    "Enabled": {
      "Description": "Indicates whether the origin address pool is enabled.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Enabled"
        ]
      }
    },
    "OriginPoolName": {
      "Description": "The name of the origin address pool.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OriginPoolName"
        ]
      }
    }
  }
}