虚拟私有云 VPC-创建路由表:请求示例

时间:2024-10-12 09:48:13

请求示例

  • 创建一个路由表,所在vpc id为60c809cb-6731-45d0-ace8-3bf5626421a9,命名为routetable-1234,包含一条ecs类型的路由。
    POST https://{Endpoint}/v1/6fbe9263116a4b68818cf1edce16bc4f/routetables
    
    {  
        "routetable": {  
            "name": "routetable-1234",
            "vpc_id": "60c809cb-6731-45d0-ace8-3bf5626421a9", 
            "routes":[
              {
                "type": "ecs", 
                "destination": "10.10.10.0/24",
                "nexthop":"7c50463d-d36c-4417-aa85-cc11fa10f341"
              }
           ],
            "description":"abc"
        } 
    }
support.huaweicloud.com/api-vpc/vpc_apiroutetab_0003.html