All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::RouteTable

Last Updated:Mar 28, 2026

Gunakan ALIYUN::VPC::RouteTable untuk membuat tabel rute kustom.

Anda tidak dapat membuat tabel rute di wilayah berikut:

  • China (Beijing)

  • China (Shenzhen)

  • China (Hangzhou)

Sintaks

{
  "Type": "ALIYUN::VPC::RouteTable",
  "Properties": {
    "RouteTableName": String,
    "VpcId": String,
    "Description": String,
    "AssociateType": String,
    "Tags": List
  }
}

Properti

Parameter

Type

Required

Updatable

Description

Constraints

VpcId

String

Yes

No

ID VPC tempat tabel rute kustom berada.

None

RouteTableName

String

No

Yes

Nama tabel rute.

Nama harus terdiri dari 2 hingga 128 karakter. Nama harus dimulai dengan huruf atau karakter Tionghoa dan tidak boleh dimulai dengan http:// atau https://. Nama dapat berisi huruf, karakter Tionghoa, angka, titik (.), garis bawah (_), dan tanda hubung (-).

Description

String

No

Yes

Deskripsi tabel rute.

Deskripsi harus terdiri dari 2 hingga 256 karakter. Deskripsi harus dimulai dengan huruf atau karakter Tionghoa dan tidak boleh dimulai dengan http:// atau https://.

AssociateType

String

No

No

Jenis tabel rute.

Nilai yang valid:

  • VSwitch (default): tabel rute VSwitch.

  • Gateway: tabel rute gateway.

Tags

List

No

No

Daftar tag yang diterapkan pada tabel rute.

Anda dapat menambahkan hingga 20 tag. Setiap tag terdiri dari pasangan kunci-nilai. Nilai tag dapat kosong.

Untuk informasi selengkapnya, lihat Properti tag.

Sintaks tag

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]  

Properti tag

Parameter

Type

Required

Updatable

Description

Constraints

Key

String

Yes

No

Kunci tag.

Kunci harus terdiri dari 1 hingga 128 karakter. Kunci tidak boleh dimulai dengan aliyun atau acs: dan tidak boleh mengandung http:// atau https://.

Value

String

No

No

Nilai tag.

Nilai harus terdiri dari 0 hingga 128 karakter. Nilai tidak boleh dimulai dengan aliyun atau acs: dan tidak boleh mengandung http:// atau https://.

Nilai kembalian

Fn::GetAtt

  • RouteTableId: ID tabel rute.

  • VpcId: ID VPC yang berisi tabel rute kustom.

  • RouteTableName: Nama tabel rute.

  • RouteTableType: Jenis tabel rute.

  • VSwitchIds: ID VSwitch dalam VPC.

Contoh

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RouteTableName:
    Type: String
    Description: Nama tabel rute. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus dimulai dengan huruf atau karakter Tionghoa dan tidak boleh dimulai dengan http:// atau https://. Nama dapat berisi huruf, karakter Tionghoa, angka, titik (.), garis bawah (_), dan tanda hubung (-).
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
Resources:
  RouteTable:
    Type: ALIYUN::VPC::RouteTable
    Properties:
      RouteTableName: TestRouteTable
      VpcId:
        Ref: VpcId
Outputs:
  RouteTableId:
    Description: ID tabel rute.
    Value:
      Fn::GetAtt:
        - RouteTable
        - RouteTableId
  VpcId:
    Description: ID VPC yang berisi tabel rute.
    Value:
      Fn::GetAtt:
        - RouteTable
        - VpcId
  RouteTableType:
    Description: Jenis tabel rute.
    Value:
      Fn::GetAtt:
        - RouteTable
        - RouteTableType
  VSwitchIds:
    Description: ID VSwitch dalam VPC.
    Value:
      Fn::GetAtt:
        - RouteTable
        - VSwitchIds
  RouteTableName:
    Description: Nama tabel rute.
    Value:
      Fn::GetAtt:
        - RouteTable
        - RouteTableName            
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RouteTableName": {
      "Type": "String",
      "Description": "Nama tabel rute. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus dimulai dengan huruf atau karakter Tionghoa dan tidak boleh dimulai dengan http:// atau https://. Nama dapat berisi huruf, karakter Tionghoa, angka, titik (.), garis bawah (_), dan tanda hubung (-)."
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    }
  },
  "Resources": {
    "RouteTable": {
      "Type": "ALIYUN::VPC::RouteTable",
      "Properties": {
        "RouteTableName": "TestRouteTable",
        "VpcId": {
          "Ref": "VpcId"
        }
      }
    }
  },
  "Outputs": {
    "RouteTableId": {
      "Description": "ID tabel rute.",
      "Value": {
        "Fn::GetAtt": [
          "RouteTable",
          "RouteTableId"
        ]
      }
    },
    "VpcId": {
      "Description": "ID VPC yang berisi tabel rute.",
      "Value": {
        "Fn::GetAtt": [
          "RouteTable",
          "VpcId"
        ]
      }
    },
    "RouteTableType": {
      "Description": "Jenis tabel rute.",
      "Value": {
        "Fn::GetAtt": [
          "RouteTable",
          "RouteTableType"
        ]
      }
    },
    "VSwitchIds": {
      "Description": "ID VSwitch dalam VPC.",
      "Value": {
        "Fn::GetAtt": [
          "RouteTable",
          "VSwitchIds"
        ]
      }
    },
    "RouteTableName": {
      "Description": "Nama tabel rute.",
      "Value": {
        "Fn::GetAtt": [
          "RouteTable",
          "RouteTableName"
        ]
      }
    }
  }
}