Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::VPC::PrefixList

Última atualização: Jun 27, 2026

Consulta informações sobre uma lista de prefixos específica.

Sintaxe

{
  "Type": "DATASOURCE::VPC::PrefixList",
  "Properties": {
    "PrefixListId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

PrefixListId

String

Sim

Sim

ID da lista de prefixos a ser consultada.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de source de dados ao atualizar a pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos de source de dados durante a atualização da pilha.

  • Always: atualiza os recursos de source de dados durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • MaxEntries: número máximo de blocos CIDR na lista de prefixos.

  • ResourceGroupId: ID do grupo de recursos ao qual a lista de prefixos pertence.

  • OwnerId: ID da conta Alibaba Cloud à qual a lista de prefixos pertence.

  • PrefixListDescription: descrição da lista de prefixos.

  • IpVersion: versão IP da lista de prefixos.

  • PrefixListId: ID da lista de prefixos.

  • PrefixListName: nome da lista de prefixos.

  • CreateTime: hora de criação da lista de prefixos.

  • Entries: blocos CIDR na lista de prefixos.

  • Tags: tags associadas.

  • ShareType: tipo de compartilhamento da lista de prefixos.

Exemplos

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PrefixListId:
    Description:
      en: The ID of the query Prefix List.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      PrefixListId:
        Ref: PrefixListId
    Type: DATASOURCE::VPC::PrefixList
Outputs:
  CreateTime:
    Description: The time when the prefix list was created.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  Entries:
    Description: The CIDR address block list of the prefix list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Entries
  IpVersion:
    Description: The IP version of the prefix list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - IpVersion
  MaxEntries:
    Description: The maximum number of entries for CIDR address blocks in the prefix
      list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - MaxEntries
  OwnerId:
    Description: The Alibaba Cloud account (primary account) to which the prefix list
      belongs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - OwnerId
  PrefixListDescription:
    Description: The description of the prefix list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PrefixListDescription
  PrefixListId:
    Description: The ID of the query Prefix List.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PrefixListId
  PrefixListName:
    Description: The name of the prefix list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PrefixListName
  ResourceGroupId:
    Description: The ID of the resource group to which the VPC belongs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceGroupId
  ShareType:
    Description: The share type of the prefix list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ShareType
  Tags:
    Description: The tags of PrefixList.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Tags
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PrefixListId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the query Prefix List."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::PrefixList",
      "Properties": {
        "PrefixListId": {
          "Ref": "PrefixListId"
        }
      }
    }
  },
  "Outputs": {
    "MaxEntries": {
      "Description": "The maximum number of entries for CIDR address blocks in the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MaxEntries"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group to which the VPC belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "OwnerId": {
      "Description": "The Alibaba Cloud account (primary account) to which the prefix list belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "OwnerId"
        ]
      }
    },
    "PrefixListDescription": {
      "Description": "The description of the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrefixListDescription"
        ]
      }
    },
    "IpVersion": {
      "Description": "The IP version of the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IpVersion"
        ]
      }
    },
    "PrefixListId": {
      "Description": "The ID of the query Prefix List.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrefixListId"
        ]
      }
    },
    "PrefixListName": {
      "Description": "The name of the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrefixListName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the prefix list was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "Entries": {
      "Description": "The CIDR address block list of the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Entries"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of PrefixList.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "ShareType": {
      "Description": "The share type of the prefix list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ShareType"
        ]
      }
    }
  }
}