Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::DNS::CustomLine

Última atualização: Jun 27, 2026

Crie uma linha personalizada para um nome de domínio.

Sintaxe

{
  "Type": "ALIYUN::DNS::CustomLine",
  "Properties": {
    "DomainName": String,
    "IpSegment": List,
    "LineName": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrições

DomainName

String

Sim

Não

Nome de domínio associado à linha personalizada.

Nenhuma

IpSegment

List

Sim

Não

Lista de segmentos de IP da linha personalizada.

Valores válidos: 1 a 500 segmentos de IP. Propriedades de IpSegment.

LineName

String

Sim

Sim

Nome da linha personalizada.

Nenhuma

Sintaxe de IpSegment

"IpSegment": [
  {
    "StartIp": String,
    "EndIp": String
  }
]

Propriedades de IpSegment

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrições

EndIp

String

Não

Não

Endereço IP final do segmento de IP.

Nenhuma

StartIp

String

Não

Não

Endereço IP inicial do segmento de IP.

Nenhuma

Valores de retorno

Fn::GetAtt

LineId: ID da linha personalizada.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Type: String
    Description: The domain name associated with the custom line.
    Required: true
  IpSegment:
    AssociationPropertyMetadata:
      Parameters:
        StartIp:
          Type: String
          Description: The start IP address of the IP segment.
          Required: false
        EndIp:
          Type: String
          Description: The end IP address of the IP segment.
          Required: false
    AssociationProperty: List[Parameters]
    Type: Json
    Description: The list of IP segments for the custom line.
    Required: true
    MinLength: 1
    MaxLength: 500
  LineName:
    Type: String
    Description: The name of the custom line.
    Required: true
Resources:
  CustomLine:
    Type: ALIYUN::DNS::CustomLine
    Properties:
      DomainName:
        Ref: DomainName
      IpSegment:
        Ref: IpSegment
      LineName:
        Ref: LineName
Outputs:
  LineId:
    Description: The ID of the custom line.
    Value:
      Fn::GetAtt:
        - CustomLine
        - LineId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "Description": "The domain name associated with the custom line.",
      "Required": true
    },
    "IpSegment": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "StartIp": {
            "Type": "String",
            "Description": "The start IP address of the IP segment.",
            "Required": false
          },
          "EndIp": {
            "Type": "String",
            "Description": "The end IP address of the IP segment.",
            "Required": false
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": "The list of IP segments for the custom line.",
      "Required": true,
      "MinLength": 1,
      "MaxLength": 500
    },
    "LineName": {
      "Type": "String",
      "Description": "The name of the custom line.",
      "Required": true
    }
  },
  "Resources": {
    "CustomLine": {
      "Type": "ALIYUN::DNS::CustomLine",
      "Properties": {
        "DomainName": {
          "Ref": "DomainName"
        },
        "IpSegment": {
          "Ref": "IpSegment"
        },
        "LineName": {
          "Ref": "LineName"
        }
      }
    }
  },
  "Outputs": {
    "LineId": {
      "Description": "The ID of the custom line.",
      "Value": {
        "Fn::GetAtt": [
          "CustomLine",
          "LineId"
        ]
      }
    }
  }
}