Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::VPC::IpamPoolAllocation

Última atualização: Aug 25, 2026

O recurso ALIYUN::VPC::IpamPoolAllocation cria um segmento de rede reservado personalizado a partir de um pool IPAM.

Sintaxe

{
  "Type": "ALIYUN::VPC::IpamPoolAllocation",
  "Properties": {
    "IpamPoolId": String,
    "Cidr": String,
    "CidrMask": Integer,
    "IpamPoolAllocationDescription": String,
    "IpamPoolAllocationName": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualização permitida

Descrição

Restrição

IpamPoolId

String

Sim

Não

ID do pool IPAM.

Nenhuma

Cidr

String

Não

Não

Bloco CIDR alocado.

Nota

Especifique pelo menos um dos parâmetros: Cidr ou CidrMask.

CidrMask

Integer

Não

Não

Comprimento da máscara do bloco CIDR a ser alocado do pool IPAM.

Nota

Especifique pelo menos um dos parâmetros: Cidr ou CidrMask.

IpamPoolAllocationDescription

String

Não

Sim

Descrição da alocação do pool IPAM.

A descrição deve ter de 1 a 256 caracteres. Deve começar com uma letra ou caractere chinês e não pode iniciar com http:// ou https://. Se não for especificada, o valor padrão será uma string vazia.

IpamPoolAllocationName

String

Não

Sim

Nome da alocação do pool IPAM.

O nome deve ter de 1 a 128 caracteres e não pode começar com http:// ou https://.

Valores de retorno

Fn::GetAtt

  • IpamPoolAllocationDescription: descrição da alocação do pool IPAM.

  • Cidr: bloco CIDR alocado.

  • SourceCidr: bloco CIDR source.

  • IpamPoolId: ID do pool IPAM.

  • CreateTime: hora em que a instância foi criada.

  • ResourceType: tipo do recurso.

  • IpamPoolAllocationId: ID da alocação do pool IPAM.

  • ResourceOwnerId: ID da conta Alibaba Cloud (conta primária) proprietária do recurso.

  • IpamPoolAllocationName: nome da alocação do pool IPAM.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Cidr:
    Description:
      en: The allocated CIDR block.
    Required: false
    Type: String
  CidrMask:
    Description:
      en: 'The mask length of the CIDR block to allocate from the IPAM pool.

        > You must specify at least one of **Cidr** or **CidrMask**.'
    Required: false
    Type: Number
  IpamPoolAllocationDescription:
    Description:
      en: 'The description of the IPAM pool allocation. It must be 1 to 256 characters
        in length and start with a letter or a Chinese character, but cannot start
        with http:// or https://. If this parameter is not specified, the value is an
        empty string.'
    Required: false
    Type: String
  IpamPoolAllocationName:
    Description:
      en: 'The name of the IPAM pool allocation. It must be 1 to 128 characters in
        length and cannot start with http:// or https://.'
    Required: false
    Type: String
  IpamPoolId:
    Description:
      en: The ID of the IPAM pool.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      Cidr:
        Ref: Cidr
      CidrMask:
        Ref: CidrMask
      IpamPoolAllocationDescription:
        Ref: IpamPoolAllocationDescription
      IpamPoolAllocationName:
        Ref: IpamPoolAllocationName
      IpamPoolId:
        Ref: IpamPoolId
    Type: ALIYUN::VPC::IpamPoolAllocation
Outputs:
  Cidr:
    Description: The allocated CIDR block.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Cidr
  CreateTime:
    Description: The time when the instance was created.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  IpamPoolAllocationDescription:
    Description: The description of the IPAM pool allocation.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamPoolAllocationDescription
  IpamPoolAllocationId:
    Description: The ID of the IPAM pool allocation.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamPoolAllocationId
  IpamPoolAllocationName:
    Description: The name of the IPAM pool allocation.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamPoolAllocationName
  IpamPoolId:
    Description: The ID of the IPAM pool.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamPoolId
  ResourceOwnerId:
    Description: The ID of the Alibaba Cloud account (primary account) that owns the
      resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceOwnerId
  ResourceType:
    Description: The resource type.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceType
  SourceCidr:
    Description: The source CIDR block.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SourceCidr
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Cidr": {
      "Type": "String",
      "Description": {
        "en": "The allocated CIDR block."
      },
      "Required": false
    },
    "IpamPoolAllocationDescription": {
      "Type": "String",
      "Description": {
        "en": "The description of the IPAM pool allocation. It must be 1 to 256 characters in length and start with a letter or a Chinese character, but cannot start with http:// or https://. If this parameter is not specified, the value is an empty string."
      },
      "Required": false
    },
    "IpamPoolId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the IPAM pool."
      },
      "Required": true
    },
    "CidrMask": {
      "Type": "Number",
      "Description": {
        "en": "The mask length of the CIDR block to allocate from the IPAM pool.\n> You must specify at least one of **Cidr** or **CidrMask**."
      },
      "Required": false
    },
    "IpamPoolAllocationName": {
      "Type": "String",
      "Description": {
        "en": "The name of the IPAM pool allocation. It must be 1 to 128 characters in length and cannot start with http:// or https://."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::VPC::IpamPoolAllocation",
      "Properties": {
        "Cidr": {
          "Ref": "Cidr"
        },
        "IpamPoolAllocationDescription": {
          "Ref": "IpamPoolAllocationDescription"
        },
        "IpamPoolId": {
          "Ref": "IpamPoolId"
        },
        "CidrMask": {
          "Ref": "CidrMask"
        },
        "IpamPoolAllocationName": {
          "Ref": "IpamPoolAllocationName"
        }
      }
    }
  },
  "Outputs": {
    "IpamPoolAllocationDescription": {
      "Description": "The description of the IPAM pool allocation.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamPoolAllocationDescription"
        ]
      }
    },
    "Cidr": {
      "Description": "The allocated CIDR block.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Cidr"
        ]
      }
    },
    "SourceCidr": {
      "Description": "The source CIDR block.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SourceCidr"
        ]
      }
    },
    "IpamPoolId": {
      "Description": "The ID of the IPAM pool.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamPoolId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the instance was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "ResourceType": {
      "Description": "The resource type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceType"
        ]
      }
    },
    "IpamPoolAllocationId": {
      "Description": "The ID of the IPAM pool allocation.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamPoolAllocationId"
        ]
      }
    },
    "ResourceOwnerId": {
      "Description": "The ID of the Alibaba Cloud account (primary account) that owns the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceOwnerId"
        ]
      }
    },
    "IpamPoolAllocationName": {
      "Description": "The name of the IPAM pool allocation.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamPoolAllocationName"
        ]
      }
    }
  }
}