diff --git a/docs/er/api-ref/ALL_META.TXT.json b/docs/er/api-ref/ALL_META.TXT.json new file mode 100644 index 000000000..b8b015cca --- /dev/null +++ b/docs/er/api-ref/ALL_META.TXT.json @@ -0,0 +1,1446 @@ +[ + { + "dockw":"API Reference" + }, + { + "uri":"er_02_0001.html", + "node_id":"er_02_0001.xml", + "product_code":"er", + "code":"1", + "des":"Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform ", + "doc_type":"api", + "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"API Usage Guidelines", + "githuburl":"" + }, + { + "uri":"er_02_0014.html", + "node_id":"er_02_0014.xml", + "product_code":"er", + "code":"2", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"APIs", + "githuburl":"" + }, + { + "uri":"EnterpriseRouterInstance.html", + "node_id":"enterpriserouterinstance.xml", + "product_code":"er", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Enterprise Routers", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Enterprise Routers", + "githuburl":"" + }, + { + "uri":"CreateEnterpriseRouter.html", + "node_id":"createenterpriserouter.xml", + "product_code":"er", + "code":"4", + "des":"This API is used to create an enterprise router. If both Default Route Table Association and Default Route Table Propagation are enabled, the system will create a route t", + "doc_type":"api", + "kw":"Creating an Enterprise Router,Enterprise Routers,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating an Enterprise Router", + "githuburl":"" + }, + { + "uri":"UpdateEnterpriseRouter.html", + "node_id":"updateenterpriserouter.xml", + "product_code":"er", + "code":"5", + "des":"This API is used to update basic information about the enterprise router.Information (except name and description) can be updated only when the enterprise router is in th", + "doc_type":"api", + "kw":"Updating an Enterprise Router,Enterprise Routers,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating an Enterprise Router", + "githuburl":"" + }, + { + "uri":"ShowEnterpriseRouter.html", + "node_id":"showenterpriserouter.xml", + "product_code":"er", + "code":"6", + "des":"This API is used to query details about an enterprise router.GET /v3/{project_id}/enterprise-router/instances/{er_id}NoneStatus code: 200Querying details about an enterpr", + "doc_type":"api", + "kw":"Querying Details About an Enterprise Router,Enterprise Routers,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About an Enterprise Router", + "githuburl":"" + }, + { + "uri":"ListEnterpriseRouters.html", + "node_id":"listenterpriserouters.xml", + "product_code":"er", + "code":"7", + "des":"This API is used to query enterprise routers.Parameters marker and limit are used for pagination query. The two parameters take effect only when they are used together. O", + "doc_type":"api", + "kw":"Querying Enterprise Routers,Enterprise Routers,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Enterprise Routers", + "githuburl":"" + }, + { + "uri":"DeleteEnterpriseRouter.html", + "node_id":"deleteenterpriserouter.xml", + "product_code":"er", + "code":"8", + "des":"This API is used to delete an enterprise router.DELETE /v3/{project_id}/enterprise-router/instances/{er_id}NoneNoneDeleting an enterprise routerNoneSee Error Codes.", + "doc_type":"api", + "kw":"Deleting an Enterprise Router,Enterprise Routers,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting an Enterprise Router", + "githuburl":"" + }, + { + "uri":"VPCAttachment.html", + "node_id":"vpcattachment.xml", + "product_code":"er", + "code":"9", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"VPC Attachments", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"VPC Attachments", + "githuburl":"" + }, + { + "uri":"CreateVpcAttachment.html", + "node_id":"createvpcattachment.xml", + "product_code":"er", + "code":"10", + "des":"This API is used to create a VPC attachment for an enterprise router.POST /v3/{project_id}/enterprise-router/{er_id}/vpc-attachmentsStatus code: 202Creating a VPC attachm", + "doc_type":"api", + "kw":"Creating a VPC Attachment,VPC Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a VPC Attachment", + "githuburl":"" + }, + { + "uri":"UpdateVpcAttachment.html", + "node_id":"updatevpcattachment.xml", + "product_code":"er", + "code":"11", + "des":"This API is used to update basic information about a VPC attachment.PUT /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}Status code: 200Upda", + "doc_type":"api", + "kw":"Updating a VPC Attachment,VPC Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating a VPC Attachment", + "githuburl":"" + }, + { + "uri":"ShowVpcAttachment.html", + "node_id":"showvpcattachment.xml", + "product_code":"er", + "code":"12", + "des":"This API is used to query details about a VPC attachment.GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}NoneStatus code: 200Querying de", + "doc_type":"api", + "kw":"Querying Details About a VPC Attachment,VPC Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About a VPC Attachment", + "githuburl":"" + }, + { + "uri":"ListVpcAttachments.html", + "node_id":"listvpcattachments.xml", + "product_code":"er", + "code":"13", + "des":"This API is used to query the VPC attachments of the enterprise router.VPC attachments can be queried in the following methods:Filtering query is supported. You can query", + "doc_type":"api", + "kw":"Querying VPC Attachments,VPC Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying VPC Attachments", + "githuburl":"" + }, + { + "uri":"DeleteVpcAttachment.html", + "node_id":"deletevpcattachment.xml", + "product_code":"er", + "code":"14", + "des":"This API is used to delete a VPC attachment.A VPC attachment can be deleted only when it is in the available, deleting, or failed state.DELETE /v3/{project_id}/enterprise", + "doc_type":"api", + "kw":"Deleting a VPC Attachment,VPC Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a VPC Attachment", + "githuburl":"" + }, + { + "uri":"Attachments.html", + "node_id":"attachments.xml", + "product_code":"er", + "code":"15", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Attachments", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Attachments", + "githuburl":"" + }, + { + "uri":"UpdateAttachment.html", + "node_id":"updateattachment.xml", + "product_code":"er", + "code":"16", + "des":"This API is used to update basic information about an attachment.PUT /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}Status code: 200Updating an att", + "doc_type":"api", + "kw":"Updating an Attachment,Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating an Attachment", + "githuburl":"" + }, + { + "uri":"ShowAttachment.html", + "node_id":"showattachment.xml", + "product_code":"er", + "code":"17", + "des":"This API is used to query details about an attachment.GET /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}NoneStatus code: 200Querying details about", + "doc_type":"api", + "kw":"Querying Details About an Attachment,Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About an Attachment", + "githuburl":"" + }, + { + "uri":"ListAttachments.html", + "node_id":"listattachments.xml", + "product_code":"er", + "code":"18", + "des":"This API is used to query the attachments of the enterprise router.Filtering query is supported. The filtering criteria include state, resource_type, and resource_id. You", + "doc_type":"api", + "kw":"Querying Attachments,Attachments,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Attachments", + "githuburl":"" + }, + { + "uri":"RouteTable.html", + "node_id":"routetable.xml", + "product_code":"er", + "code":"19", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Route Tables", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Route Tables", + "githuburl":"" + }, + { + "uri":"CreateRouteTable.html", + "node_id":"createroutetable.xml", + "product_code":"er", + "code":"20", + "des":"This API is used to create a route table. A route table is the basis for an enterprise router to send and receive packets. It contains attachment associations, propagatio", + "doc_type":"api", + "kw":"Creating a Route Table,Route Tables,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a Route Table", + "githuburl":"" + }, + { + "uri":"UpdateRouteTable.html", + "node_id":"updateroutetable.xml", + "product_code":"er", + "code":"21", + "des":"This API is used to update basic information about a route table, such as the name and description.PUT /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_tabl", + "doc_type":"api", + "kw":"Updating Route Table Information,Route Tables,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating Route Table Information", + "githuburl":"" + }, + { + "uri":"ShowRouteTable.html", + "node_id":"showroutetable.xml", + "product_code":"er", + "code":"22", + "des":"This API is used to query details about a route table.GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}NoneStatus code: 200Querying details abo", + "doc_type":"api", + "kw":"Querying Details About a Route Table,Route Tables,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About a Route Table", + "githuburl":"" + }, + { + "uri":"ListRouteTables.html", + "node_id":"listroutetables.xml", + "product_code":"er", + "code":"23", + "des":"This API is used to query route tables.Pagination query is supported. The supported query criteria are state, is_default_propagation_route_table, and is_default_associati", + "doc_type":"api", + "kw":"Querying Route Tables,Route Tables,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Route Tables", + "githuburl":"" + }, + { + "uri":"DeleteRouteTable.html", + "node_id":"deleteroutetable.xml", + "product_code":"er", + "code":"24", + "des":"This API is used to delete a route table.DELETE /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}NoneNoneNoneSee Error Codes.", + "doc_type":"api", + "kw":"Deleting a Route Table,Route Tables,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a Route Table", + "githuburl":"" + }, + { + "uri":"Association.html", + "node_id":"association.xml", + "product_code":"er", + "code":"25", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Associations", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Associations", + "githuburl":"" + }, + { + "uri":"AssociateRouteTable.html", + "node_id":"associateroutetable.xml", + "product_code":"er", + "code":"26", + "des":"This API is used to create a route association. Each attachment only can be associated with one route table of its enterprise router for packet forwarding.POST /v3/{proje", + "doc_type":"api", + "kw":"Creating a Route Association,Associations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a Route Association", + "githuburl":"" + }, + { + "uri":"ListAssociations.html", + "node_id":"listassociations.xml", + "product_code":"er", + "code":"27", + "des":"This API is used to query route associations.Pagination query is supported. You can query by state, resource type, or attachment ID. Only sorting by a single field (id, c", + "doc_type":"api", + "kw":"Querying Route Associations,Associations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Route Associations", + "githuburl":"" + }, + { + "uri":"DisassociateRouteTable.html", + "node_id":"disassociateroutetable.xml", + "product_code":"er", + "code":"28", + "des":"This API is used to delete an association from the route table of an enterprise router for an attachment.POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{rou", + "doc_type":"api", + "kw":"Deleting a Route Association,Associations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a Route Association", + "githuburl":"" + }, + { + "uri":"Propagation.html", + "node_id":"propagation.xml", + "product_code":"er", + "code":"29", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Propagations", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Propagations", + "githuburl":"" + }, + { + "uri":"EnablePropagation.html", + "node_id":"enablepropagation.xml", + "product_code":"er", + "code":"30", + "des":"This API is used to create a route propagation. A propagation can be created for each attachment to propagate routes to one or more route tables on an enterprise router.P", + "doc_type":"api", + "kw":"Creating a Route Propagation,Propagations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a Route Propagation", + "githuburl":"" + }, + { + "uri":"ListPropagations.html", + "node_id":"listpropagations.xml", + "product_code":"er", + "code":"31", + "des":"This API is used to query route propagations.Pagination query is supported. You can query by state, resource type, or attachment ID. Only sorting by a single field (id, c", + "doc_type":"api", + "kw":"Querying Route Propagations,Propagations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Route Propagations", + "githuburl":"" + }, + { + "uri":"DisablePropagation.html", + "node_id":"disablepropagation.xml", + "product_code":"er", + "code":"32", + "des":"This API is used to delete a propagation from the route table of an enterprise router for an attachment.POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{rout", + "doc_type":"api", + "kw":"Deleting a Route Propagation,Propagations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a Route Propagation", + "githuburl":"" + }, + { + "uri":"Route.html", + "node_id":"route.xml", + "product_code":"er", + "code":"33", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Routes", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Routes", + "githuburl":"" + }, + { + "uri":"CreateStaticRoute.html", + "node_id":"createstaticroute.xml", + "product_code":"er", + "code":"34", + "des":"This API is used to create a static route. Static routes are manually created, and effective routes are preferred routes.If is_blackhole is set to false, the attachment_i", + "doc_type":"api", + "kw":"Creating a Static Route,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a Static Route", + "githuburl":"" + }, + { + "uri":"UpdateStaticRoute.html", + "node_id":"updatestaticroute.xml", + "product_code":"er", + "code":"35", + "des":"This API is used to update a static route.If is_blackhole is set to false, the attachment_id parameter must be carried. If is_blackhole is set to true, the attachment_id ", + "doc_type":"api", + "kw":"Updating a Static Route,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating a Static Route", + "githuburl":"" + }, + { + "uri":"ShowStaticRoute.html", + "node_id":"showstaticroute.xml", + "product_code":"er", + "code":"36", + "des":"This API is used to query details about a static route.GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id}NoneStatus code: 200St", + "doc_type":"api", + "kw":"Querying Details About a Static Route,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About a Static Route", + "githuburl":"" + }, + { + "uri":"ListStaticRoutes.html", + "node_id":"liststaticroutes.xml", + "product_code":"er", + "code":"37", + "des":"This API is used to query static routes.Pagination query is supported. The supported query criteria are destination, attachment_id, resource_type, and type.Pagination que", + "doc_type":"api", + "kw":"Querying Static Routes,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Static Routes", + "githuburl":"" + }, + { + "uri":"ListEffectiveRoutes.html", + "node_id":"listeffectiveroutes.xml", + "product_code":"er", + "code":"38", + "des":"This API is used to query effective routes. Pagination query is supported. Effective routes are preferred routes.GET /v3/{project_id}/enterprise-router/route-tables/{rout", + "doc_type":"api", + "kw":"Querying Effective Routes,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Effective Routes", + "githuburl":"" + }, + { + "uri":"DeleteStaticRoute.html", + "node_id":"deletestaticroute.xml", + "product_code":"er", + "code":"39", + "des":"This API is used to delete a static route.DELETE /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id}NoneNoneNoneSee Error Codes.", + "doc_type":"api", + "kw":"Deleting a Static Route,Routes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a Static Route", + "githuburl":"" + }, + { + "uri":"Tags.html", + "node_id":"tags.xml", + "product_code":"er", + "code":"40", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tags", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Tags", + "githuburl":"" + }, + { + "uri":"ListProjectTags.html", + "node_id":"listprojecttags.xml", + "product_code":"er", + "code":"41", + "des":"This API is used to query tags of resources of a specific type.GET /v3/{project_id}/{resource_type}/tagsNoneStatus code: 200Querying tags of an enterprise routerStatus co", + "doc_type":"api", + "kw":"Querying Project Tags,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Project Tags", + "githuburl":"" + }, + { + "uri":"ShowResourceTag.html", + "node_id":"showresourcetag.xml", + "product_code":"er", + "code":"42", + "des":"This API is used to query tags of resources of a specific type.GET /v3/{project_id}/{resource_type}/{resource_id}/tagsNoneStatus code: 200Querying tags of an enterprise r", + "doc_type":"api", + "kw":"Querying Resource Tags,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Resource Tags", + "githuburl":"" + }, + { + "uri":"CreateResourceTag.html", + "node_id":"createresourcetag.xml", + "product_code":"er", + "code":"43", + "des":"This API is used to create tags for resources of a specific type.A resource can have up to 20 tags.A resource can have up to 20 tags.This API is idempotent.This API is id", + "doc_type":"api", + "kw":"Creating Resource Tags,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating Resource Tags", + "githuburl":"" + }, + { + "uri":"DeleteResourceTag.html", + "node_id":"deleteresourcetag.xml", + "product_code":"er", + "code":"44", + "des":"This API is used to delete tags for resources of a specific type.This API is idempotent. The key cannot be left blank or be an empty string.DELETE /v3/{project_id}/{resou", + "doc_type":"api", + "kw":"Deleting Resource Tags,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting Resource Tags", + "githuburl":"" + }, + { + "uri":"QuotaManager.html", + "node_id":"quotamanager.xml", + "product_code":"er", + "code":"45", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Quota Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Quota Management", + "githuburl":"" + }, + { + "uri":"ShowQuotas.html", + "node_id":"showquotas.xml", + "product_code":"er", + "code":"46", + "des":"This API is used to query the used quotas of resources, such as enterprise routers and VPC attachments.GET /v3/{project_id}/enterprise-router/quotasNoneStatus code: 200Qu", + "doc_type":"api", + "kw":"Querying Quotas,Quota Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Quotas", + "githuburl":"" + }, + { + "uri":"AvailableZone.html", + "node_id":"availablezone.xml", + "product_code":"er", + "code":"47", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"AZs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"AZs", + "githuburl":"" + }, + { + "uri":"ListAvailabilityZone.html", + "node_id":"listavailabilityzone.xml", + "product_code":"er", + "code":"48", + "des":"This API is used to query AZs where enterprise routers can be created. An enterprise router can be created only when an AZ is in the available state.GET /v3/{project_id}/", + "doc_type":"api", + "kw":"Querying AZs,AZs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying AZs", + "githuburl":"" + }, + { + "uri":"FlowLog.html", + "node_id":"flowlog.xml", + "product_code":"er", + "code":"49", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Flow Logs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Flow Logs", + "githuburl":"" + }, + { + "uri":"CreateFlowLog.html", + "node_id":"createflowlog.xml", + "product_code":"er", + "code":"50", + "des":"This API is used to create a flow log for an enterprise router.POST /v3/{project_id}/enterprise-router/{er_id}/flow-logsStatus code: 202Creating a flow logStatus code: 20", + "doc_type":"api", + "kw":"Creating a Flow Log,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Creating a Flow Log", + "githuburl":"" + }, + { + "uri":"ListFlowLogs.html", + "node_id":"listflowlogs.xml", + "product_code":"er", + "code":"51", + "des":"This API is used to query the flow log list.Filtering query is supported. You can use resource_type, resource_id, and enterprise_project_id for query. You can query multi", + "doc_type":"api", + "kw":"Querying Flow Logs,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Flow Logs", + "githuburl":"" + }, + { + "uri":"ShowFlowLog.html", + "node_id":"showflowlog.xml", + "product_code":"er", + "code":"52", + "des":"This API is used to query details about a flow log.GET /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}NoneStatus code: 200Querying flow logsStatus code", + "doc_type":"api", + "kw":"Querying Details About a Flow Log,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Querying Details About a Flow Log", + "githuburl":"" + }, + { + "uri":"UpdateFlowLog.html", + "node_id":"updateflowlog.xml", + "product_code":"er", + "code":"53", + "des":"This API is used to update a flow log.PUT /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}Status code: 200Updating a flow logStatus code: 200OKSee Error", + "doc_type":"api", + "kw":"Updating a Flow Log,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Updating a Flow Log", + "githuburl":"" + }, + { + "uri":"DeleteFlowLog.html", + "node_id":"deleteflowlog.xml", + "product_code":"er", + "code":"54", + "des":"This API is used to delete a flow log.A flow log can be deleted only when it is in the available, deleting, or failed state.DELETE /v3/{project_id}/enterprise-router/{er_", + "doc_type":"api", + "kw":"Deleting a Flow Log,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Deleting a Flow Log", + "githuburl":"" + }, + { + "uri":"EnableFlowLog.html", + "node_id":"enableflowlog.xml", + "product_code":"er", + "code":"55", + "des":"This API is used to enable flow logs.POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/enableNoneStatus code: 202Enabling flow logsStatus code: 202A", + "doc_type":"api", + "kw":"Enabling Flow Logs,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Enabling Flow Logs", + "githuburl":"" + }, + { + "uri":"DisableFlowLog.html", + "node_id":"disableflowlog.xml", + "product_code":"er", + "code":"56", + "des":"This API is used to disable flow logs.POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/disableNoneStatus code: 202Disabling flow logsStatus code: 2", + "doc_type":"api", + "kw":"Disabling Flow Logs,Flow Logs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "operation_id":"UpdateVpcAttachment", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Disabling Flow Logs", + "githuburl":"" + }, + { + "uri":"er_02_0035.html", + "node_id":"er_02_0035.xml", + "product_code":"er", + "code":"57", + "des":"You can share an enterprise router in your account with other accounts.You are the owner of the enterprise router.Other accounts are the users of the enterprise router.Yo", + "doc_type":"api", + "kw":"Sharing,APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Sharing", + "githuburl":"" + }, + { + "uri":"er_02_0015.html", + "node_id":"er_02_0015.xml", + "product_code":"er", + "code":"58", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Permissions Policies and Supported Actions", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Permissions Policies and Supported Actions", + "githuburl":"" + }, + { + "uri":"er_02_0016.html", + "node_id":"er_02_0016.xml", + "product_code":"er", + "code":"59", + "des":"This section describes fine-grained permissions management for your Enterprise Router resources. If your account does not need individual IAM users, you may skip this sec", + "doc_type":"api", + "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Introduction", + "githuburl":"" + }, + { + "uri":"er_02_0017.html", + "node_id":"er_02_0017.xml", + "product_code":"er", + "code":"60", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Enterprise Routers,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Enterprise Routers", + "githuburl":"" + }, + { + "uri":"er_02_0018.html", + "node_id":"er_02_0018.xml", + "product_code":"er", + "code":"61", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"VPC Attachments,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"VPC Attachments", + "githuburl":"" + }, + { + "uri":"er_02_0019.html", + "node_id":"er_02_0019.xml", + "product_code":"er", + "code":"62", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Attachments,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Attachments", + "githuburl":"" + }, + { + "uri":"er_02_0020.html", + "node_id":"er_02_0020.xml", + "product_code":"er", + "code":"63", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Route Tables,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Route Tables", + "githuburl":"" + }, + { + "uri":"er_02_0021.html", + "node_id":"er_02_0021.xml", + "product_code":"er", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Associations,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Associations", + "githuburl":"" + }, + { + "uri":"er_02_0022.html", + "node_id":"er_02_0022.xml", + "product_code":"er", + "code":"65", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Propagations,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Propagations", + "githuburl":"" + }, + { + "uri":"er_02_0023.html", + "node_id":"er_02_0023.xml", + "product_code":"er", + "code":"66", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Routes,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Routes", + "githuburl":"" + }, + { + "uri":"er_02_0024.html", + "node_id":"er_02_0024.xml", + "product_code":"er", + "code":"67", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Flow Logs,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Flow Logs", + "githuburl":"" + }, + { + "uri":"er_02_0033.html", + "node_id":"er_02_0033.xml", + "product_code":"er", + "code":"68", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tags,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Tags", + "githuburl":"" + }, + { + "uri":"er_02_0034.html", + "node_id":"er_02_0034.xml", + "product_code":"er", + "code":"69", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Quota Management,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Quota Management", + "githuburl":"" + }, + { + "uri":"er_02_appendix.html", + "node_id":"er_02_appendix.xml", + "product_code":"er", + "code":"70", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Appendixes", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Appendixes", + "githuburl":"" + }, + { + "uri":"StateCode.html", + "node_id":"statecode.xml", + "product_code":"er", + "code":"71", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Status Codes,Appendixes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Status Codes", + "githuburl":"" + }, + { + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"er", + "code":"72", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Error Codes,Appendixes,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Error Codes", + "githuburl":"" + }, + { + "uri":"APIChangeHistory.html", + "node_id":"apichangehistory.xml", + "product_code":"er", + "code":"73", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"er", + "opensource":"true" + } + ], + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/er/api-ref/APIChangeHistory.html b/docs/er/api-ref/APIChangeHistory.html new file mode 100644 index 000000000..9f9f605d7 --- /dev/null +++ b/docs/er/api-ref/APIChangeHistory.html @@ -0,0 +1,50 @@ + + +
Released On + |
+Description + |
+
|---|---|
2023-12-06 + |
+This release incorporates the following changes: +
|
+
2023-11-17 + |
+This release incorporates the following changes: +
|
+
2023-11-01 + |
+This release incorporates the following changes: +
|
+
2023-10-09 + |
+This release incorporates the following changes: +
|
+
2023-09-22 + |
+This release incorporates the following changes: +
|
+
2023-04-07 + |
+This issue is the first official release. + |
+
This API is used to create a route association. Each attachment only can be associated with one route table of its enterprise router for packet forwarding.
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/associate
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
attachment_id + |
+No + |
+String + |
+Unique ID of the attachment +Maximum: 36 + |
+
route_policy + |
+No + |
+ExportRoutePolicy object + |
+Route that controls outbound traffic. Note that this is not currently supported. This parameter is not supported for now. + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
association + |
+Association object + |
+Association details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Unique association ID +Maximum: 36 + |
+
route_table_id + |
+String + |
+Unique ID of the route table +Maximum: 36 + |
+
attachment_id + |
+String + |
+Unique ID of the attachment +Maximum: 36 + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_id + |
+String + |
+Unique ID of the attachment + |
+
state + |
+String + |
+Status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
created_at + |
+String + |
+Creation time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
updated_at + |
+String + |
+Update time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
route_policy + |
+ExportRoutePolicy object + |
+Route that controls outbound traffic. Note that this is not currently supported. This parameter is not supported for now. + |
+
Creating a route table association
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f8/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/associate
+
+{
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64"
+}
+Status code: 202
+Accepted
+{
+ "association" : {
+ "id" : "915a14a6-867b-4af7-83d1-70efceb146f9",
+ "route_table_id" : "91c013e2-d65a-474e-9177-c3e1799ca726",
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64",
+ "resource_type" : "vpc",
+ "resource_id" : "4e5fe97c-82bc-432e-87d8-06d7e157dffa",
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31",
+ "updated_at" : "2020-03-11T15:13:31",
+ "route_policy" : {
+ "export_policy_id" : ""
+ }
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f8"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
++
+
+
This API is used to create an enterprise router. If both Default Route Table Association and Default Route Table Propagation are enabled, the system will create a route table as both the default association route table and the default propagation route table.
+POST /v3/{project_id}/enterprise-router/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
instance + |
+Yes + |
+CreateEnterpriseRouter object + |
+Enterprise router + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Enterprise router name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Supplementary information about an enterprise router +Minimum: 0 +Maximum: 255 + |
+
asn + |
+Yes + |
+Long + |
+Enterprise router BGP ASN + |
+
enterprise_project_id + |
+No + |
+String + |
+Enterprise project ID + |
+
charge_mode + |
+No + |
+String + |
+Default: postPaid + |
+
tags + |
+No + |
+Array of Tag objects + |
+Tag information + |
+
enable_default_propagation + |
+No + |
+Boolean + |
+Whether to enable the Default Route Table Propagation function. The default value is false, indicating that the function is disabled. +Default: false + |
+
enable_default_association + |
+No + |
+Boolean + |
+Whether to enable the Default Route Table Association function. The default value is false, indicating that the function is disabled. +Default: false + |
+
availability_zone_ids + |
+Yes + |
+Array of strings + |
+AZs where the enterprise router is located +Minimum: 0 +Maximum: 128 + |
+
auto_accept_shared_attachments + |
+No + |
+Boolean + |
+Whether to enable Auto Accept Shared Attachments. The default value is false, indicating that the function is disabled. +Default: false + |
+
cidr_blocks + |
+No + |
+Array of strings + |
+Enterprise router CIDR block. This parameter is not supported for now. +Minimum: 1 +Maximum: 64 +Array Length: 0 - 100 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+No + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
instance + |
+EnterpriseRouter object + |
+Enterprise router + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Enterprise router ID + |
+
name + |
+String + |
+Enterprise router name + |
+
description + |
+String + |
+Supplementary information about an enterprise router + |
+
state + |
+String + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
charge_mode + |
+String + |
+Default: postPaid + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
enterprise_project_id + |
+String + |
+Enterprise project ID + |
+
project_id + |
+String + |
+Project ID + |
+
asn + |
+Long + |
+Enterprise router BGP ASN + |
+
enable_default_propagation + |
+Boolean + |
+Whether to enable the Default Route Table Propagation function. The default value is false, indicating that the function is disabled. + |
+
enable_default_association + |
+Boolean + |
+Whether to enable the Default Route Table Association function. The default value is false, indicating that the function is disabled. + |
+
default_propagation_route_table_id + |
+String + |
+Default propagation route table ID + |
+
default_association_route_table_id + |
+String + |
+Default association route table ID + |
+
availability_zone_ids + |
+Array of strings + |
+AZs where the enterprise router is located + |
+
auto_accept_shared_attachments + |
+Boolean + |
+Whether to automatically accept shared attachments. The default value is false, indicating that the function is disabled. + |
+
cidr_blocks + |
+Array of strings + |
+Enterprise router CIDR block. This parameter is not supported for now. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Creating an enterprise router
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances
+
+{
+ "instance" : {
+ "name" : "my_er",
+ "description" : "this is my first enterprise router",
+ "asn" : 64512,
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "tags" : [ {
+ "key" : "key1",
+ "value" : "value1"
+ } ],
+ "availability_zone_ids" : [ "az1", "az2" ]
+ }
+}
+Status code: 202
+Accepted
+{
+ "instance" : {
+ "id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "name" : "my_er",
+ "description" : "this is my first enterprise router",
+ "asn" : 64512,
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "default_association_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "default_propagation_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "auto_accept_shared_attachments" : false,
+ "created_at" : "2019-09-06 02:11:13Z",
+ "updated_at" : "2019-09-06 02:11:13Z",
+ "tags" : [ {
+ "key" : "key1",
+ "value" : "value1"
+ } ],
+ "enterprise_project_id" : 0,
+ "availability_zone_ids" : [ "az1", "az2" ]
+ },
+ "request_id" : "14c2b814-99dc-939a-e811-ae84c61ea3f4"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to create a flow log for an enterprise router.
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
flow_log + |
+Yes + |
+FlowLogRequest object + |
+Request body for creating a flow log + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Flow log name +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Flow log description +Minimum: 0 +Maximum: 255 + |
+
resource_type + |
+Yes + |
+String + |
+Type of resource whose flow logs are collected. +
|
+
resource_id + |
+Yes + |
+String + |
+Resource ID + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. Obtain the log group ID by referring to the Log Tank Service User Guide. + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. Obtain the log stream ID by referring to the Log Tank Service User Guide. + |
+
log_store_type + |
+Yes + |
+String + |
+Flow log storage type. +LTS: Logs are stored on LTS servers. + |
+
log_store_name + |
+No + |
+String + |
+Flow log storage name. This parameter is not supported for now. +Minimum: 1 +Maximum: 255 + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_log + |
+FlowLog object + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Creating a flow log
+POST https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/a43c55e9-4911-4030-90e1-5c2bf6ae6fe2/flow-logs
+
+{
+ "flow_log" : {
+ "name" : "flow-log",
+ "description" : "flow log test",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS"
+ }
+}
+Status code: 202
+Accepted
+{
+ "flow_log" : {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "Flow Logs"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to create tags for resources of a specific type.
+A resource can have up to 20 tags.
+This API is idempotent.
+If a tag to be created has the same key as an existing tag, the tag will be created and overwrite the existing one.
+POST /v3/{project_id}/{resource_type}/{resource_id}/tags
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
resource_id + |
+Yes + |
+String + |
+Resource ID + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
tag + |
+Yes + |
+Tag object + |
+Resource tag + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+No + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
None
+Creating tags for a resource
+POST https://{erouter-endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/3320166e-b937-40cc-a35c-02cd3f2b3ee2/tags
+
+{
+ "tag" : {
+ "key" : "key1",
+ "value" : "value1"
+ }
+}
+None
+Status Code + |
+Description + |
+
|---|---|
204 + |
+No Content + |
+
See Error Codes.
+This API is used to create a route table. A route table is the basis for an enterprise router to send and receive packets. It contains attachment associations, propagations, and routes.
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
route_table + |
+No + |
+CreateRouteTable object + |
+Route table + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Route table name.The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Supplementary information about the route table +Minimum: 0 +Maximum: 255 + |
+
bgp_options + |
+No + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
tags + |
+No + |
+Array of Tag objects + |
+Tag information + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
load_balancing_as_path_ignore + |
+No + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+No + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+No + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route_table + |
+RouteTable object + |
+Route table + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route table ID + |
+
name + |
+String + |
+Route table name + |
+
description + |
+String + |
+Supplementary information + |
+
is_default_association + |
+Boolean + |
+Whether the route table is the default association route table. +Default: false + |
+
is_default_propagation + |
+Boolean + |
+Whether the route table is the default propagation route table. + |
+
state + |
+String + |
+Route table status. The value can be pending, available, deleting, deleted, or failed. + |
+
tags + |
+Array of Tag objects + |
+Tag + |
+
bgp_options + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
load_balancing_as_path_ignore + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
Creating a route table
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f0/route-tables
+
+{
+ "route_table" : {
+ "name" : "my-route-table",
+ "tags" : [ {
+ "key" : "key",
+ "value" : "value"
+ } ]
+ }
+}
+Status code: 202
+Accepted
+{
+ "route_table" : {
+ "id" : "4ab54142-7c92-48ad-8288-77727a231052",
+ "name" : "my-route-table",
+ "is_default_association" : false,
+ "is_default_propagation" : false,
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z",
+ "tags" : [ {
+ "key" : "key",
+ "value" : "value"
+ } ]
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to create a static route. Static routes are manually created, and effective routes are preferred routes.
+If is_blackhole is set to false, the attachment_id parameter must be carried. If is_blackhole is set to true, the attachment_id parameter cannot be passed.
+POST /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
route + |
+Yes + |
+CreateRoute object + |
+Request body for creating a route + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
destination + |
+Yes + |
+String + |
+Destination address of the route +Minimum: 0 +Maximum: 256 + |
+
attachment_id + |
+No + |
+String + |
+ID of the attachment that the next hop of the route points to + |
+
is_blackhole + |
+No + |
+Boolean + |
+Whether the route is a blackhole route. The default value is false. + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route + |
+Route object + |
+Route + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route ID + |
+
type + |
+String + |
+Route type. The value is static. + |
+
state + |
+String + |
+Route status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
is_blackhole + |
+Boolean + |
+Whether the route is a blackhole route + |
+
destination + |
+String + |
+Destination address of the route + |
+
attachments + |
+Array of RouteAttachment objects + |
+Next hops + |
+
route_table_id + |
+String + |
+Route table ID + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Creating a static route
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/0d1748a0-5188-11e5-b86f-a51b5f125b84/static-routes
+
+{
+ "route" : {
+ "destination" : "192.168.0.0/16",
+ "is_blackhole" : false,
+ "attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
+ }
+}
+Status code: 202
+Accepted
+{
+ "route" : {
+ "id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289",
+ "type" : "static",
+ "destination" : "192.168.0.0/16",
+ "attachments" : [ {
+ "resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
+ "resource_type" : "vpc",
+ "attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
+ } ],
+ "route_table_id" : "0d1748a0-5188-11e5-b86f-a51b5f125b84",
+ "is_blackhole" : false,
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to create a VPC attachment for an enterprise router.
+POST /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
vpc_attachment + |
+Yes + |
+VpcAttachmentCreateRequest object + |
+VPC attachment + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
vpc_id + |
+Yes + |
+String + |
+VPC ID. The value contains a maximum of 36 characters in UUID format with hyphens (-). + |
+
name + |
+Yes + |
+String + |
+VPC attachment name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
virsubnet_id + |
+Yes + |
+String + |
+VPC subnet ID. The value contains a maximum of 36 characters in UUID format with hyphens (-). + |
+
description + |
+No + |
+String + |
+Supplementary information. The value can contain no more than 255 characters and cannot contain angle brackets (< or >). +Minimum: 0 +Maximum: 255 + |
+
auto_create_vpc_routes + |
+No + |
+Boolean + |
+The default value is false. If the value is set to true, a route with the enterprise router as the next hop will be automatically added to the route tables of the VPC. +Default: false + |
+
ipv6_enable + |
+No + |
+Boolean + |
+The default value is false. If the value is true, IPv6 is enabled for the VPC attachment. This parameter is not supported for now. +Default: false + |
+
tags + |
+No + |
+Array of Tag objects + |
+Tag information + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+No + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
vpc_attachment + |
+VpcAttachmentDetails object + |
+VPC attachment + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+VPC attachment ID + |
+
name + |
+String + |
+VPC attachment name + |
+
vpc_id + |
+String + |
+VPC id + |
+
virsubnet_id + |
+String + |
+VPC subnet ID + |
+
auto_create_vpc_routes + |
+Boolean + |
+The default value is false. If this parameter is set to true, routes with this enterprise router as the next hop and 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as the destinations will be automatically added to the route tables of the VPC. +Default: false + |
+
state + |
+String + |
+VPC attachment status. Value options: pending, available, modifying, deleting, deleted, failed, initiating_request, rejected, and pending_acceptance + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
description + |
+String + |
+Supplementary information about the VPC attachment + |
+
project_id + |
+String + |
+Project ID + |
+
vpc_project_id + |
+String + |
+ID of the project that the VPC belongs to + |
+
ipv6_enable + |
+Boolean + |
+The default value is false. If the value is true, IPv6 is enabled for the VPC attachment. This parameter is not supported for now. +Default: false + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Creating a VPC attachment named vpc-atta
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/4ab54142-7c92-48ad-8288-77727a231052/vpc-attachments
+
+{
+ "vpc_attachment" : {
+ "name" : "vpc-atta",
+ "vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "virsubnet_id" : "aacdc21d-90f9-45ef-ab48-80ec1bbe15b8"
+ }
+}
+Status code: 202
+Accepted
+{
+ "vpc_attachment" : {
+ "id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "name" : "vpc-atta",
+ "vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "virsubnet_id" : "aacdc21d-90f9-45ef-ab48-80ec1bbe15b8",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "ipv6_enable" : false,
+ "state" : "pending",
+ "auto_create_vpc_routes" : false,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete an enterprise router.
+DELETE /v3/{project_id}/enterprise-router/instances/{er_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
None
+None
+Deleting an enterprise router
+DELETE https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances/94c2b814-99dc-939a-e811-ae84c61ea3ff
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete a flow log.
+A flow log can be deleted only when it is in the available, deleting, or failed state.
+DELETE /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
flow_log_id + |
+Yes + |
+String + |
+Flow log ID + |
+
None
+None
+Deleting a flow log
+DELETE https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/6f83b848-8331-4271-ac0c-ef94b7686402/flow_logs/b216bc1d-5963-41a7-89f9-779a5128c5ac
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete tags for resources of a specific type.
+This API is idempotent. The key cannot be left blank or be an empty string.
+DELETE /v3/{project_id}/{resource_type}/{resource_id}/tags/{key}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key + |
+
project_id + |
+Yes + |
+String + |
+Project ID + |
+
resource_id + |
+Yes + |
+String + |
+Resource ID + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. +
|
+
None
+None
+DELETE https://{erouter-endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/3320166e-b937-40cc-a35c-02cd3f2b3ee2/tags/key1
+None
+Status Code + |
+Description + |
+
|---|---|
204 + |
+No Content + |
+
See Error Codes.
+This API is used to delete a route table.
+DELETE /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
None
+None
+DELETE https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/4ab54142-7c92-48ad-8288-77727a231056/route-tables/4ab54142-7c92-48ad-8288-77727a231052
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete a static route.
+DELETE /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
route_id + |
+Yes + |
+String + |
+Route ID + |
+
None
+None
+DELETE https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/3ddb4dc2-174e-4d43-9328-b805d5c0c774/static-routes/19d334b7-78c1-4e0e-ba29-b797e641e23c
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete a VPC attachment.
+A VPC attachment can be deleted only when it is in the available, deleting, or failed state.
+DELETE /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
vpc_attachment_id + |
+Yes + |
+String + |
+VPC attachment ID + |
+
None
+None
+Deleting a VPC attachment
+DELETE https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/4ba931b6-5273-4ed9-8eeb-484d16a4786f/vpc-attachments/b70aee08-c671-4cad-9fd5-7381d163bcc8
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to disable flow logs.
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/disable
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
flow_log_id + |
+Yes + |
+String + |
+Flow log ID + |
+
None
+Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_log + |
+FlowLog object + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Disabling flow logs
+POST https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/a43c55e9-4911-4030-90e1-5c2bf6ae6fe2/flow-logs/b216bc1d-5963-41a7-89f9-779a5128c5ac/disable
+Status code: 202
+Accepted
+{
+ "flow_log" : {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log_update",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "Flow Logs"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete a propagation from the route table of an enterprise router for an attachment.
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/disable-propagations
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
attachment_id + |
+No + |
+String + |
+Unique ID of the attachment + |
+
route_policy + |
+No + |
+ImportRoutePolicy object + |
+Route that controls inbound traffic. This parameter is not supported for now. + |
+
None
+Deleting a route table propagation
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/ad838a5e-dbef-22cc-b1d9-cb46bef77ae8/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/disable-propagations
+
+{
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64"
+}
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to delete an association from the route table of an enterprise router for an attachment.
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/disassociate
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
attachment_id + |
+No + |
+String + |
+Unique ID of the attachment +Maximum: 36 + |
+
route_policy + |
+No + |
+ExportRoutePolicy object + |
+Route that controls outbound traffic. Note that this is not currently supported. This parameter is not supported for now. + |
+
None
+Deleting a route table association
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f8/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/disassociate
+
+{
+ "attachment_id" : "2609ec92-ac19-4467-a527-7f9e690e7836"
+}
+None
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to enable flow logs.
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/enable
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
flow_log_id + |
+Yes + |
+String + |
+Flow log ID + |
+
None
+Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_log + |
+FlowLog object + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Enabling flow logs
+POST https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/a43c55e9-4911-4030-90e1-5c2bf6ae6fe2/flow-logs/b216bc1d-5963-41a7-89f9-779a5128c5ac/enable
+Status code: 202
+Accepted
+{
+ "flow_log" : {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log_update",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "Flow Logs"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to create a route propagation. A propagation can be created for each attachment to propagate routes to one or more route tables on an enterprise router.
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/enable-propagations
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Client-Token + |
+No + |
+String + |
+Idempotence identifier +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
attachment_id + |
+No + |
+String + |
+Unique ID of the attachment + |
+
route_policy + |
+No + |
+ImportRoutePolicy object + |
+Route that controls inbound traffic. This parameter is not supported for now. + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
X-Client-Token + |
+- + |
+Idempotence identifier + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
propagation + |
+Propagation object + |
+Propagation details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Unique association ID + |
+
project_id + |
+String + |
+Project ID + |
+
er_id + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+String + |
+Unique ID of the route table + |
+
attachment_id + |
+String + |
+Unique ID of the attachment + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_id + |
+String + |
+Unique ID of the attachment + |
+
route_policy + |
+ImportRoutePolicy object + |
+Route that controls inbound traffic. This parameter is not supported for now. + |
+
state + |
+String + |
+Status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
created_at + |
+String + |
+Creation time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
updated_at + |
+String + |
+Update time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
Creating a route propagation
+POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/ad838a5e-dbef-22cc-b1d9-cb46bef77ae8/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/enable-propagations
+
+{
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64"
+}
+Status code: 202
+Accepted
+{
+ "propagation" : {
+ "id" : "915a14a6-867b-4af7-83d1-70efceb146f9",
+ "route_table_id" : "91c013e2-d65a-474e-9177-c3e1799ca726",
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64",
+ "resource_type" : "vpc",
+ "resource_id" : "4e5fe97c-82bc-432e-87d8-06d7e157dffa",
+ "route_policy" : {
+ "import_policy_id" : ""
+ },
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
++
Status Code + |
+Error Codes + |
+Error Message + |
+Description + |
+Solution + |
+
|---|---|---|---|---|
400 + |
+ER.04001003 + |
+The enterprise router is unavailable or is being operated. + |
+The enterprise router is unavailable or is being operated. + |
+Check whether the enterprise router is available and try again. + |
+
400 + |
+ER.04001104 + |
+The default route table association function is not enabled. + |
+The default route table association function is not enabled. + |
+Enable the default route table association function and try again. + |
+
400 + |
+ER.04001105 + |
+The default route table propagation function is not enabled. + |
+The default route table propagation function is not enabled. + |
+Enable the default route table propagation function and try again. + |
+
400 + |
+ER.04001106 + |
+Invalid ASN. + |
+Invalid ASN. + |
+Enter a valid ASN. + |
+
400 + |
+ER.04002002 + |
+The association already exists. + |
+The association already exists. + |
+Check the association and try again. + |
+
400 + |
+ER.04002003 + |
+An operation is being performed on this association. + |
+An operation is being performed on this association. + |
+Try again after the association status changes to Normal. + |
+
400 + |
+ER.04003002 + |
+The propagation already exists. + |
+The propagation already exists. + |
+Check the propagation and try again. + |
+
400 + |
+ER.04003003 + |
+An operation is being performed on this propagation. + |
+An operation is being performed on this propagation. + |
+Try again after the propagation status changes to Normal. + |
+
400 + |
+ER.04004002 + |
+This attachment is being used by other resources. + |
+This attachment is being used by other resources. + |
+Check whether the attachment is being used by other resources. If there are such resources, delete them and try again. + |
+
400 + |
+ER.04004003 + |
+This attachment is unavailable or is being operated. + |
+This attachment is unavailable or is being operated. + |
+Check whether the attachment is available and try again. + |
+
400 + |
+ER.04004004 + |
+This resource is being used by another attachment. + |
+This resource is being used by another attachment. + |
+Check whether an attachment has been created for the resource. + |
+
400 + |
+ER.04004101 + |
+This route already exists in the VPC route table. + |
+This route already exists in the VPC route table. + |
+Disable the Auto Add Routes function and try again. + |
+
400 + |
+ER.04004102 + |
+Failed to add the route to the VPC route table. + |
+Failed to add the route to the VPC route table. + |
+Check whether a route with the same destination already exists in the VPC route table. + |
+
400 + |
+ER.04005003 + |
+This route table is unavailable or is being operated. + |
+This route table is unavailable or is being operated. + |
+Check whether the route table is available and try again. + |
+
400 + |
+ER.04006002 + |
+The destination of the route already exists. + |
+The destination of the route already exists. + |
+Check the destination in the route. + |
+
400 + |
+ER.04006103 + |
+The destination of the route is invalid. + |
+The destination of the route is invalid. + |
+Check the destination in the route. + |
+
400 + |
+ER.04006104 + |
+The destination cannot be 127.0.0.0/8, 169.254.0.0/16, 224.0.0.0/4, or any of their subnets. + |
+The destination cannot be 127.0.0.0/8, 169.254.0.0/16, 224.0.0.0/4, or any of their subnets. + |
+Do not add a route with destination set to 127.0.0.0/8, 169.254.0.0/16, 224.0.0.0/4, or any of their subnets. + |
+
400 + |
+ER.04006105 + |
+The network instance type of the next hop is not supported. + |
+The network instance type of the next hop is not supported. + |
+Use another type of network instance. + |
+
400 + |
+ER.04006106 + |
+A blackhole route cannot have a next hop. A non-blackhole route must have a next hop. + |
+Invalid route. + |
+Check the route. + |
+
400 + |
+ER.04008500 + |
+Flow logs are not supported by the resource type. + |
+Flow logs are not supported by the resource type. + |
+Check the resource type. + |
+
400 + |
+ER.04008501 + |
+The flow log task does not exist. + |
+The flow log task does not exist. + |
+Check the flow log ID. + |
+
400 + |
+ER.04008502 + |
+The flow log task is being operated. + |
+The flow log task is being operated. + |
+Check the flow log task status and try again later. + |
+
400 + |
+ER.04008503 + |
+The flow log task already exists. + |
+The flow log task already exists. + |
+Check the flow log task. + |
+
400 + |
+ER.04009005 + |
+Invalid parameters. + |
+Invalid parameters. + |
+Check the parameters. + |
+
400 + |
+ER.04009008 + |
+Insufficient quota. + |
+Insufficient quota. + |
+Submit a service ticket to apply for quota increase. + |
+
400 + |
+ER.04009009 + |
+The quota type does not exist. + |
+The quota type does not exist. + |
+Check the parameters. + |
+
400 + |
+ER.04009011 + |
+The resource is frozen. + |
+The resource is frozen. + |
+Unfreeze the resource and try again. + |
+
400 + |
+ER.04009012 + |
+This account is frozen or restricted. + |
+This account is frozen or restricted. + |
+Contact customer service. + |
+
400 + |
+ER.04009013 + |
+This enterprise router has frozen attachments. + |
+This enterprise router has frozen attachments. + |
+Contact customer service. + |
+
400 + |
+ER.04009019 + |
+This feature is not available yet. + |
+This feature is not available yet. + |
+Contact customer service. + |
+
404 + |
+ER.04041001 + |
+This enterprise router does not exist. + |
+This enterprise router does not exist. + |
+Check the parameters. + |
+
404 + |
+ER.04042001 + |
+This association does not exist. + |
+This association does not exist. + |
+Check the parameters. + |
+
404 + |
+ER.04043001 + |
+This propagation does not exist. + |
+This propagation does not exist. + |
+Check the parameters. + |
+
404 + |
+ER.04044001 + |
+This attachment does not exist. + |
+This attachment does not exist. + |
+Check the parameters. + |
+
404 + |
+ER.04045001 + |
+This route table does not exist. + |
+This route table does not exist. + |
+Check the parameters. + |
+
404 + |
+ER.04046001 + |
+This route does not exist. + |
+This route does not exist. + |
+Check the parameters. + |
+
409 + |
+ER.04091002 + |
+This enterprise router is being used by other resources. + |
+This enterprise router is being used by other resources. + |
+Delete the resources and try again. + |
+
409 + |
+ER.04095002 + |
+This route table is being used by other resources. + |
+This route table is being used by other resources. + |
+Delete the resources and try again. + |
+
409 + |
+ER.04095104 + |
+The default association route table cannot be deleted. + |
+The default association route table cannot be deleted. + |
+Disable the Default Route Table Association function. + |
+
409 + |
+ER.04095105 + |
+The default propagation route table cannot be deleted. + |
+The default propagation route table cannot be deleted. + |
+Disable the Default Route Table Propagation function. + |
+
503 + |
+ER.05039006 + |
+This service is temporarily unavailable. + |
+This service is temporarily unavailable. + |
+Contact customer service or try again later. + |
+
+
This API is used to query route associations.
+Pagination query is supported. You can query by state, resource type, or attachment ID. Only sorting by a single field (id, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/associations
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
attachment_id + |
+No + |
+Array + |
+Attachment ID + |
+
resource_type + |
+No + |
+Array + |
+Attachment type. +
|
+
state + |
+No + |
+Array + |
+Status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
associations + |
+Array of Association objects + |
+Route table associations +Array Length: 0 - 2000 + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Unique association ID +Maximum: 36 + |
+
route_table_id + |
+String + |
+Unique ID of the route table +Maximum: 36 + |
+
attachment_id + |
+String + |
+Unique ID of the attachment +Maximum: 36 + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_id + |
+String + |
+Unique ID of the attachment + |
+
state + |
+String + |
+Status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
created_at + |
+String + |
+Creation time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
updated_at + |
+String + |
+Update time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
route_policy + |
+ExportRoutePolicy object + |
+Route that controls outbound traffic. Note that this is not currently supported. This parameter is not supported for now. + |
+
Querying route table associations
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f5/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/associations
+Status code: 200
+OK
+{
+ "associations" : [ {
+ "id" : "915a14a6-867b-4af7-83d1-70efceb146f9",
+ "route_table_id" : "91c013e2-d65a-474e-9177-c3e1799ca726",
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64",
+ "resource_type" : "vpc",
+ "resource_id" : "4e5fe97c-82bc-432e-87d8-06d7e157dffa",
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31",
+ "updated_at" : "2020-03-11T15:13:31",
+ "route_policy" : {
+ "export_policy_id" : ""
+ }
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 1
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query the attachments of the enterprise router.
+Filtering query is supported. The filtering criteria include state, resource_type, and resource_id. You can query multiple resources at a time or use combined criteria to query resources.
+Pagination query is supported. You can use limit and marker together for pagination query.
+Only sorting by a single field (id, name, description, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/attachments
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
state + |
+No + |
+Array + |
+Attachment status. Value options: pending, available, modifying, deleting, deleted, failed, pending_acceptance, rejected, and initiating_request + |
+
resource_type + |
+No + |
+Array + |
+Attachment type. +
|
+
resource_id + |
+No + |
+Array + |
+Attachment resource IDs + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
attachments + |
+Array of AttachmentDetails objects + |
+Attachments + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Attachment ID + |
+
name + |
+String + |
+Attachment name + |
+
description + |
+String + |
+Attachment description + |
+
state + |
+String + |
+Attachment status. Value options: pending, available, modifying, deleting, deleted, failed, pending_acceptance, rejected, and initiating_request + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Enterprise router tags + |
+
project_id + |
+String + |
+Project ID + |
+
er_id + |
+String + |
+er id + |
+
resource_id + |
+String + |
+Attached resource ID on its own service console + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_project_id + |
+String + |
+ID of the project that the resource belongs to + |
+
associated + |
+Boolean + |
+Whether the attachment is associated. + |
+
route_table_id + |
+String + |
+Association route table ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying attachments
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/4ab54142-7c92-48ad-8288-77727a231052/attachments
+Status code: 200
+OK
+{
+ "attachments" : [ {
+ "id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "name" : "vpc-001",
+ "description" : "vpc attachment",
+ "resource_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "resource_type" : "vpc",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ }, {
+ "id" : "6f83b848-8331-4271-ac0c-ef94b7686403",
+ "name" : "vpc-002",
+ "description" : "for test",
+ "resource_id" : "4b8567f6-358f-4a7f-8cd3-3cbb82c0b25f",
+ "resource_type" : "vpc",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 2
+ },
+ "request_id" : "b715e131-3371-4e17-a2de-4f669e24439a"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query AZs where enterprise routers can be created. An enterprise router can be created only when an AZ is in the available state.
+GET /v3/{project_id}/enterprise-router/availability-zones
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
instance_id + |
+No + |
+String + |
+Enterprise router ID + |
+
bandwidth_size + |
+No + |
+Integer + |
+Bandwidth size, in Mbit/s +Minimum: -1 + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
availability_zones + |
+Array of AvailableZone objects + |
+AZ list + |
+
request_id + |
+String + |
+Request ID + |
+
Querying AZs
+GET https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/availability-zones
+Status code: 200
+OK
+{
+ "availability_zones" : [ {
+ "code" : "az1",
+ "state" : "available"
+ }, {
+ "code" : "az2",
+ "state" : "unavailable"
+ } ]
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query effective routes. Pagination query is supported. Effective routes are preferred routes.
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/routes
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last route on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
destination + |
+No + |
+Array + |
+Destination address of the route + |
+
resource_type + |
+No + |
+Array + |
+Attachment type. +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
routes + |
+Array of EffectiveRoute objects + |
+Routes + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route_id + |
+String + |
+Route ID + |
+
destination + |
+String + |
+Destination address of the route + |
+
next_hops + |
+Array of RouteAttachment objects + |
+Next hops of the routes + |
+
is_blackhole + |
+Boolean + |
+Whether the route is a blackhole route + |
+
route_type + |
+String + |
+Route type. Value options: static and propagation + |
+
address_group_id + |
+String + |
+IP address group ID. This parameter is not supported for now. + |
+
Querying effective routes
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/915a14a6-867b-4af7-83d1-70efceb146f9/routes
+Status code: 200
+OK
+{
+ "routes" : [ {
+ "route_id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289",
+ "destination" : "192.168.0.0/16",
+ "next_hops" : [ {
+ "resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
+ "resource_type" : "vpc",
+ "attachment_id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289"
+ } ],
+ "is_blackhole" : false,
+ "route_type" : "static"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 1
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query enterprise routers.
+Parameters marker and limit are used for pagination query. The two parameters take effect only when they are used together. Only sorting by a single field (id, name, description, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
enterprise_project_id + |
+No + |
+Array + |
+Enterprise project ID + |
+
state + |
+No + |
+Array + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, failed and freezed + |
+
id + |
+No + |
+Array + |
+Query by resource ID. Multiple resources can be queried at a time. + |
+
resource_id + |
+No + |
+Array + |
+Attachment resource IDs + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
instances + |
+Array of EnterpriseRouter objects + |
+Enterprise routers + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Enterprise router ID + |
+
name + |
+String + |
+Enterprise router name + |
+
description + |
+String + |
+Supplementary information about an enterprise router + |
+
state + |
+String + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
charge_mode + |
+String + |
+Default: postPaid + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
enterprise_project_id + |
+String + |
+Enterprise project ID + |
+
project_id + |
+String + |
+Project ID + |
+
asn + |
+Long + |
+Enterprise router BGP ASN + |
+
enable_default_propagation + |
+Boolean + |
+Whether to enable the Default Route Table Propagation function. The default value is false, indicating that the function is disabled. + |
+
enable_default_association + |
+Boolean + |
+Whether to enable the Default Route Table Association function. The default value is false, indicating that the function is disabled. + |
+
default_propagation_route_table_id + |
+String + |
+Default propagation route table ID + |
+
default_association_route_table_id + |
+String + |
+Default association route table ID + |
+
availability_zone_ids + |
+Array of strings + |
+AZs where the enterprise router is located + |
+
auto_accept_shared_attachments + |
+Boolean + |
+Whether to automatically accept shared attachments. The default value is false, indicating that the function is disabled. + |
+
cidr_blocks + |
+Array of strings + |
+Enterprise router CIDR block. This parameter is not supported for now. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying two records in pagination
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances?limit=2&marker=1
+Querying all enterprise routers
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances
+Status code: 200
+OK
+{
+ "instances" : [ {
+ "id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "name" : "my_er",
+ "description" : "this is my first enterprise router",
+ "asn" : 64512,
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "default_association_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "default_propagation_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "auto_accept_shared_attachments" : false,
+ "created_at" : "2019-09-06 02:11:13Z",
+ "updated_at" : "2019-09-06 02:11:13Z",
+ "tags" : [ {
+ "key" : "key",
+ "value" : "value"
+ } ],
+ "enterprise_project_id" : 0,
+ "availability_zone_ids" : [ "az1", "az2" ]
+ } ],
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9",
+ "page_info" : {
+ "next_marker" : "2",
+ "current_count" : 1
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query the flow log list.
+Filtering query is supported. You can use resource_type, resource_id, and enterprise_project_id for query. You can query multiple resources at a time or use combined criteria to query resources.
+Pagination query is supported. You can use limit and marker together for query.
+Sorting by a single field. You can use id, name, or state to sort resources. Sorting by multiple fields is not supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/flow-logs
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_type + |
+No + |
+String + |
+Resource type + |
+
resource_id + |
+No + |
+Array + |
+Attachment resource IDs + |
+
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_logs + |
+Array of FlowLog objects + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Querying flow logs
+GET https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/a43c55e9-4911-4030-90e1-5c2bf6ae6fe2/flow-logs
+Status code: 200
+OK
+{
+ "flow_logs" : [ {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "Flow Logs"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 1
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query tags of resources of a specific type.
+GET /v3/{project_id}/{resource_type}/tags
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
tags + |
+Array of Tags objects + |
+Tags + |
+
Querying tags of an enterprise router
+https://{erouter_endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/tags
+Status code: 200
+OK
+{
+ "tags" : [ {
+ "key" : "keys",
+ "values" : [ "value" ]
+ }, {
+ "key" : "key3",
+ "values" : [ "value3", "value33" ]
+ }, {
+ "key" : "key1",
+ "values" : [ "value1" ]
+ }, {
+ "key" : "key2",
+ "values" : [ "value2", "value22" ]
+ } ]
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query route propagations.
+Pagination query is supported. You can query by state, resource type, or attachment ID. Only sorting by a single field (id, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/propagations
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
attachment_id + |
+No + |
+Array + |
+Attachment ID + |
+
resource_type + |
+No + |
+Array + |
+Attachment type. +
|
+
state + |
+No + |
+Array + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, failed and freezed + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
propagations + |
+Array of Propagation objects + |
+Route propagations +Array Length: 0 - 2000 + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Unique association ID + |
+
project_id + |
+String + |
+Project ID + |
+
er_id + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+String + |
+Unique ID of the route table + |
+
attachment_id + |
+String + |
+Unique ID of the attachment + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_id + |
+String + |
+Unique ID of the attachment + |
+
route_policy + |
+ImportRoutePolicy object + |
+Route that controls inbound traffic. This parameter is not supported for now. + |
+
state + |
+String + |
+Status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
created_at + |
+String + |
+Creation time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
updated_at + |
+String + |
+Update time. It is UTC time in the format of YYYY-MM-DDTHH:mm:ss.sssZ. + |
+
Querying route table propagations
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/7dec531a-7714-11eb-9439-0242ac130002/route-tables/91c013e2-d65a-474e-9177-c3e1799ca726/propagations
+Status code: 200
+OK
+{
+ "propagations" : [ {
+ "id" : "915a14a6-867b-4af7-83d1-70efceb146f9",
+ "er_id" : "7dec531a-7714-11eb-9439-0242ac130002",
+ "route_table_id" : "91c013e2-d65a-474e-9177-c3e1799ca726",
+ "attachment_id" : "a5b7d209-dc02-4c46-a51f-805eadd3de64",
+ "resource_type" : "vpc",
+ "resource_id" : "4e5fe97c-82bc-432e-87d8-06d7e157dffa",
+ "route_policy" : {
+ "import_policy_id" : ""
+ },
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 1
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query route tables.
+Pagination query is supported. The supported query criteria are state, is_default_propagation_route_table, and is_default_association_route_table.
+Only sorting by a single field (id, name, description, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
state + |
+No + |
+Array + |
+Status + |
+
is_default_propagation_table + |
+No + |
+Boolean + |
+Whether the route table is the default propagation route table + |
+
is_default_association_table + |
+No + |
+Boolean + |
+Whether the route table is the default association route table + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route_tables + |
+Array of RouteTable objects + |
+Route tables + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route table ID + |
+
name + |
+String + |
+Route table name + |
+
description + |
+String + |
+Supplementary information + |
+
is_default_association + |
+Boolean + |
+Whether the route table is the default association route table. +Default: false + |
+
is_default_propagation + |
+Boolean + |
+Whether the route table is the default propagation route table. + |
+
state + |
+String + |
+Route table status. The value can be pending, available, deleting, deleted, or failed. + |
+
tags + |
+Array of Tag objects + |
+Tag + |
+
bgp_options + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
load_balancing_as_path_ignore + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f5/route-tables
+Status code: 200
+OK
+{
+ "route_tables" : [ {
+ "id" : "4ab54142-7c92-48ad-8288-77727a231052",
+ "is_default_association" : false,
+ "is_default_propagation" : false,
+ "name" : "my-router-table1",
+ "description" : "rtb-for-a",
+ "state" : "available",
+ "tags" : [ {
+ "key" : "key",
+ "value" : "value"
+ } ]
+ }, {
+ "id" : "4ab54142-7c92-48ad-8288-77727a231053",
+ "is_default_association" : false,
+ "is_default_propagation" : false,
+ "name" : "my-router-table2",
+ "description" : "rtb-for-b",
+ "state" : "available",
+ "tags" : [ {
+ "key" : "key",
+ "value" : "value"
+ } ]
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 2
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query static routes.
+Pagination query is supported. The supported query criteria are destination, attachment_id, resource_type, and type.
+Only sorting by a single field (id, destination, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
destination + |
+No + |
+Array + |
+Destination address of the route + |
+
attachment_id + |
+No + |
+Array + |
+Attachment ID + |
+
resource_type + |
+No + |
+Array + |
+Attachment type. +
|
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
routes + |
+Array of Route objects + |
+Routes + |
+
request_id + |
+String + |
+Request ID + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route ID + |
+
type + |
+String + |
+Route type. The value is static. + |
+
state + |
+String + |
+Route status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
is_blackhole + |
+Boolean + |
+Whether the route is a blackhole route + |
+
destination + |
+String + |
+Destination address of the route + |
+
attachments + |
+Array of RouteAttachment objects + |
+Next hops + |
+
route_table_id + |
+String + |
+Route table ID + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Querying static routes
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/915a14a6-867b-4af7-83d1-70efceb146f5/static-routes
+Status code: 200
+OK
+{
+ "routes" : [ {
+ "id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289",
+ "type" : "static",
+ "destination" : "192.168.0.0/16",
+ "attachments" : [ {
+ "resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
+ "resource_type" : "vpc",
+ "attachment_id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289"
+ } ],
+ "route_table_id" : "19d334b7-78c1-4e0e-ba29-b797e641e23c",
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 1
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query the VPC attachments of the enterprise router.
+VPC attachments can be queried in the following methods:
+Filtering query is supported. You can query by ID, state, enterprise project ID, and VPC ID. You can query multiple resources at a time or use combined criteria to query resources.
+Pagination query is supported. You can use limit and marker together for pagination query.
+Only sorting by a single field (id, name, description, created_at, or updated_at) is supported.
+GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records on each page. Value range: 0 to 2000 +Minimum: 0 +Maximum: 2000 + |
+
marker + |
+No + |
+String + |
+ID of the last enterprise router on the previous page. If this parameter is left blank, the first page is queried. This parameter must be used together with limit. +Minimum: 1 +Maximum: 128 + |
+
state + |
+No + |
+Array + |
+Attachment status. Value options: pending, available, modifying, deleting, deleted, failed, pending_acceptance, rejected, and initiating_request + |
+
id + |
+No + |
+Array + |
+Query by resource ID. Multiple resources can be queried at a time. + |
+
sort_key + |
+No + |
+Array + |
+Keyword for sorting. The keyword can be id, name, or state. By default, id is used. + |
+
sort_dir + |
+No + |
+Array + |
+Sorting order. There are two value options: asc (ascending order) and desc (descending order). The default value is asc. + |
+
vpc_id + |
+No + |
+Array + |
+VPC id + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
vpc_attachments + |
+Array of VpcAttachmentDetails objects + |
+VPC attachments + |
+
page_info + |
+PageInfo object + |
+Pagination query information + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+VPC attachment ID + |
+
name + |
+String + |
+VPC attachment name + |
+
vpc_id + |
+String + |
+VPC id + |
+
virsubnet_id + |
+String + |
+VPC subnet ID + |
+
auto_create_vpc_routes + |
+Boolean + |
+The default value is false. If this parameter is set to true, routes with this enterprise router as the next hop and 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as the destinations will be automatically added to the route tables of the VPC. +Default: false + |
+
state + |
+String + |
+VPC attachment status. Value options: pending, available, modifying, deleting, deleted, failed, initiating_request, rejected, and pending_acceptance + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
description + |
+String + |
+Supplementary information about the VPC attachment + |
+
project_id + |
+String + |
+Project ID + |
+
vpc_project_id + |
+String + |
+ID of the project that the VPC belongs to + |
+
ipv6_enable + |
+Boolean + |
+The default value is false. If the value is true, IPv6 is enabled for the VPC attachment. This parameter is not supported for now. +Default: false + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying all VPC attachments in pagination
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/vpc-attachments?limit=10
+Querying all VPC attachments
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/vpc-attachments
+Status code: 200
+OK
+{
+ "vpc_attachments" : [ {
+ "id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "name" : "vpc-attach-01",
+ "vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "virsubnet_id" : "aacdc21d-90f9-45ef-ab48-80ec1bbe15b8",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "ipv6_enable" : false,
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ }, {
+ "id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "name" : "vpc-attach-01",
+ "vpc_id" : "4b8567f6-358f-4a7f-8cd3-3cbb82c0b25f",
+ "virsubnet_id" : "2b55f334-a15e-43a9-ab11-b34c2dbb6fac",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "ipv6_enable" : false,
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ } ],
+ "page_info" : {
+ "next_marker" : "1",
+ "current_count" : 2
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
++
+
+
+
This API is used to query details about an attachment.
+GET /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
attachment_id + |
+Yes + |
+String + |
+Attachment ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
attachment + |
+AttachmentResponse object + |
+Attachment basic information + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Attachment name + |
+
id + |
+String + |
+Attachment ID + |
+
description + |
+String + |
+Supplementary information + |
+
state + |
+String + |
+Attachment status. Value options: pending, available, modifying, deleting, deleted, failed, pending_acceptance, rejected, and initiating_request + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Enterprise router tags + |
+
project_id + |
+String + |
+Project ID + |
+
resource_id + |
+String + |
+Attached resource ID on its own service console + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_project_id + |
+String + |
+ID of the project that the resource belongs to + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying details about an attachment
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/212d3f0b-8496-472d-bc99-05a7c96d6655/attachments/b70aee08-c671-4cad-9fd5-7381d163bcc8
+Status code: 200
+OK
+{
+ "attachment" : {
+ "id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8",
+ "name" : "vpc attachment",
+ "description" : "vpc prod",
+ "state" : "avaliable",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "resource_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "resource_type" : "vpc"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query details about an enterprise router.
+GET /v3/{project_id}/enterprise-router/instances/{er_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
instance + |
+EnterpriseRouter object + |
+Enterprise router + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Enterprise router ID + |
+
name + |
+String + |
+Enterprise router name + |
+
description + |
+String + |
+Supplementary information about an enterprise router + |
+
state + |
+String + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
charge_mode + |
+String + |
+Default: postPaid + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
enterprise_project_id + |
+String + |
+Enterprise project ID + |
+
project_id + |
+String + |
+Project ID + |
+
asn + |
+Long + |
+Enterprise router BGP ASN + |
+
enable_default_propagation + |
+Boolean + |
+Whether to enable the Default Route Table Propagation function. The default value is false, indicating that the function is disabled. + |
+
enable_default_association + |
+Boolean + |
+Whether to enable the Default Route Table Association function. The default value is false, indicating that the function is disabled. + |
+
default_propagation_route_table_id + |
+String + |
+Default propagation route table ID + |
+
default_association_route_table_id + |
+String + |
+Default association route table ID + |
+
availability_zone_ids + |
+Array of strings + |
+AZs where the enterprise router is located + |
+
auto_accept_shared_attachments + |
+Boolean + |
+Whether to automatically accept shared attachments. The default value is false, indicating that the function is disabled. + |
+
cidr_blocks + |
+Array of strings + |
+Enterprise router CIDR block. This parameter is not supported for now. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying details about an enterprise router with a specified ID
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances/08d5a9564a704afda6039ae2babbef3c
+Status code: 200
+OK
+{
+ "instance" : {
+ "id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "name" : "my_er",
+ "description" : "this is my first enterprise router",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "state" : "pending",
+ "asn" : 64512,
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "default_association_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "default_propagation_route_table_id" : "7f7f738f-453c-40b1-be26-28e7b9e390c1",
+ "auto_accept_shared_attachments" : false,
+ "availability_zone_ids" : [ "az1" ],
+ "created_at" : "2019-09-06 02:11:13Z",
+ "updated_at" : "2019-09-06 02:11:13Z"
+ },
+ "request_id" : "14c2b814-99dc-939b-e81c-ae84c61ea3f7"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query details about a flow log.
+GET /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
flow_log_id + |
+Yes + |
+String + |
+Flow log ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_log + |
+FlowLog object + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Querying flow logs
+GET https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/a43c55e9-4911-4030-90e1-5c2bf6ae6fe2/flow-logs/b216bc1d-5963-41a7-89f9-779a5128c5ac
+Status code: 200
+OK
+{
+ "flow_log" : {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "Flow Logs"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query the used quotas of resources, such as enterprise routers and VPC attachments.
+GET /v3/{project_id}/enterprise-router/quotas
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
type + |
+No + |
+Array + |
+You can query the quotas of the following resources: +
|
+
erId + |
+No + |
+Object + |
+Enterprise router ID + |
+
routeTableId + |
+No + |
+Object + |
+Route table ID + |
+
vpcId + |
+No + |
+Object + |
+VPC ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
quotas + |
+Array of Quota objects + |
+Used quota details + |
+
Querying the resource quotas
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/quotas
+Status code: 200
+OK
+{
+ "quotas" : [ {
+ "quota_key" : "er_instance",
+ "quota_limit" : 1,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "dc_attachment",
+ "quota_limit" : 2,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "route_table",
+ "quota_limit" : 20,
+ "used" : 5,
+ "unit" : "count"
+ }, {
+ "quota_key" : "static_route",
+ "quota_limit" : 500,
+ "used" : 2,
+ "unit" : "count"
+ }, {
+ "quota_key" : "can_attachment",
+ "quota_limit" : 10,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "connect_attachment",
+ "quota_limit" : 20,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "peering_attachment",
+ "quota_limit" : 10,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "vpn_attachment",
+ "quota_limit" : 10,
+ "used" : 0,
+ "unit" : "count"
+ }, {
+ "quota_key" : "flow_log",
+ "quota_limit" : 20,
+ "used" : 4,
+ "unit" : "count"
+ } ]
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query tags of resources of a specific type.
+GET /v3/{project_id}/{resource_type}/{resource_id}/tags
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
resource_id + |
+Yes + |
+String + |
+Resource ID + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
tags + |
+Array of Tag objects + |
+Tags + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying tags of an enterprise router
+https://{erouter_endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/f1a28dfd-186f-4625-b6b1-f05e5e8609c0/tags
+Status code: 200
+OK
+{
+ "tags" : [ {
+ "key" : "key2",
+ "value" : "value2"
+ }, {
+ "key" : "key1",
+ "value" : "value1"
+ }, {
+ "key" : "key3",
+ "value" : "value3"
+ } ]
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query details about a route table.
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route_table + |
+RouteTable object + |
+Route table + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route table ID + |
+
name + |
+String + |
+Route table name + |
+
description + |
+String + |
+Supplementary information + |
+
is_default_association + |
+Boolean + |
+Whether the route table is the default association route table. +Default: false + |
+
is_default_propagation + |
+Boolean + |
+Whether the route table is the default propagation route table. + |
+
state + |
+String + |
+Route table status. The value can be pending, available, deleting, deleted, or failed. + |
+
tags + |
+Array of Tag objects + |
+Tag + |
+
bgp_options + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
load_balancing_as_path_ignore + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
Querying details about a route table
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f6/route-tables/4ab54142-7c92-48ad-8288-77727a231052
+Status code: 200
+OK
+{
+ "route_table" : {
+ "id" : "4ab54142-7c92-48ad-8288-77727a231052",
+ "name" : "my-route-table",
+ "description" : "rtb-for-a",
+ "is_default_association" : false,
+ "is_default_propagation" : false,
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query details about a static route.
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
route_id + |
+Yes + |
+String + |
+Route ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route + |
+Route object + |
+Route + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route ID + |
+
type + |
+String + |
+Route type. The value is static. + |
+
state + |
+String + |
+Route status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
is_blackhole + |
+Boolean + |
+Whether the route is a blackhole route + |
+
destination + |
+String + |
+Destination address of the route + |
+
attachments + |
+Array of RouteAttachment objects + |
+Next hops + |
+
route_table_id + |
+String + |
+Route table ID + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/19d334b7-78c1-4e0e-ba29-b797e641e23c/static-routes/19d334b7-78c1-4e0e-ba29-b797e641e23c
+Status code: 200
+OK
+{
+ "route" : {
+ "id" : "19d334b7-78c1-4e0e-ba29-b797e641e23c",
+ "type" : "static",
+ "destination" : "192.168.0.0/16",
+ "attachments" : [ {
+ "resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
+ "resource_type" : "VPC",
+ "attachment_id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289"
+ } ],
+ "route_table_id" : "19d334b7-78c1-4e0e-ba29-b797e641e23c",
+ "is_blackhole" : false,
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31",
+ "updated_at" : "2020-03-11T15:13:31"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to query details about a VPC attachment.
+GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
vpc_attachment_id + |
+Yes + |
+String + |
+VPC attachment ID + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
vpc_attachment + |
+VpcAttachmentDetails object + |
+VPC attachment + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+VPC attachment ID + |
+
name + |
+String + |
+VPC attachment name + |
+
vpc_id + |
+String + |
+VPC id + |
+
virsubnet_id + |
+String + |
+VPC subnet ID + |
+
auto_create_vpc_routes + |
+Boolean + |
+The default value is false. If this parameter is set to true, routes with this enterprise router as the next hop and 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as the destinations will be automatically added to the route tables of the VPC. +Default: false + |
+
state + |
+String + |
+VPC attachment status. Value options: pending, available, modifying, deleting, deleted, failed, initiating_request, rejected, and pending_acceptance + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
description + |
+String + |
+Supplementary information about the VPC attachment + |
+
project_id + |
+String + |
+Project ID + |
+
vpc_project_id + |
+String + |
+ID of the project that the VPC belongs to + |
+
ipv6_enable + |
+Boolean + |
+The default value is false. If the value is true, IPv6 is enabled for the VPC attachment. This parameter is not supported for now. +Default: false + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Querying details about a VPC attachment
+GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/212d3f0b-8496-472d-bc99-05a7c96d6655/vpc-attachments/b70aee08-c671-4cad-9fd5-7381d163bcc8
+Status code: 200
+OK
+{
+ "vpc_attachment" : {
+ "id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8",
+ "name" : "vpc-attach",
+ "vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "virsubnet_id" : "aacdc21d-90f9-45ef-ab48-80ec1bbe15b8",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "ipv6_enable" : false,
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+Status Code + |
+Message + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Normal response code for the GET, PUT, and POST operations + |
+
201 + |
+Created + |
+Normal response code for POST operations + |
+
202 + |
+Accepted + |
+Operations that take a long time to process. +The request has been accepted but the processing is not complete. + |
+
204 + |
+No Content + |
+Normal response code for DELETE operations + |
+
Status Code + |
+Message + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+You must enter a username and the password to access the requested page. + |
+
403 + |
+Forbidden + |
+Access to the requested page is forbidden. + |
+
404 + |
+Not Found + |
+The requested page was not found. + |
+
405 + |
+Method Not Allowed + |
+The request method is not allowed. + |
+
406 + |
+Not Acceptable + |
+Response generated by the server is not acceptable to the client. + |
+
407 + |
+Proxy Authentication Required + |
+You must use the proxy server for authentication. Then, the request can be processed. + |
+
408 + |
+Request Timeout + |
+The request timed out. + |
+
409 + |
+Conflict + |
+The request could not be processed due to a conflict. + |
+
500 + |
+Internal Server Error + |
+The request is not completed because an exception occurs. + |
+
501 + |
+Not Implemented + |
+The request is not completed because the server does not support the requested function. + |
+
502 + |
+Bad Gateway + |
+The request is not completed because the server receives an invalid response from the upstream server. + |
+
503 + |
+Service Unavailable + |
+The request is not completed because the system is temporarily abnormal. + |
+
504 + |
+Gateway Timeout + |
+The gateway timed out. + |
+
+
This API is used to update basic information about an attachment.
+PUT /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
attachment_id + |
+Yes + |
+String + |
+Attachment ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
attachment + |
+No + |
+UpdateAttachmentBody object + |
+Change basic information about the attachment. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
description + |
+No + |
+String + |
+Supplementary information about the attachment. The value contains a maximum of 36 characters in UUID format with hyphens (-). +Minimum: 0 +Maximum: 255 + |
+
name + |
+No + |
+String + |
+Attachment name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
attachment + |
+AttachmentResponse object + |
+Attachment basic information + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Attachment name + |
+
id + |
+String + |
+Attachment ID + |
+
description + |
+String + |
+Supplementary information + |
+
state + |
+String + |
+Attachment status. Value options: pending, available, modifying, deleting, deleted, failed, pending_acceptance, rejected, and initiating_request + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Enterprise router tags + |
+
project_id + |
+String + |
+Project ID + |
+
resource_id + |
+String + |
+Attached resource ID on its own service console + |
+
resource_type + |
+String + |
+Attachment type. +
|
+
resource_project_id + |
+String + |
+ID of the project that the resource belongs to + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Updating an attachment (not a VPC attachment)
+PUT https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/212d3f0b-8496-472d-bc99-05a7c96d6655/attachments/b70aee08-c671-4cad-9fd5-7381d163bcc8
+
+{
+ "attachment" : {
+ "name" : "attachment",
+ "description" : "attachment"
+ }
+}
+Status code: 200
+OK
+{
+ "attachment" : {
+ "id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8",
+ "name" : "attachment",
+ "description" : "attachment",
+ "state" : "avaliable",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "resource_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "resource_type" : "vpc",
+ "resource_project_id" : "0605767a9980d5762fbcc00b3537e757"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to update basic information about the enterprise router.
+Information (except name and description) can be updated only when the enterprise router is in the available state.
+PUT /v3/{project_id}/enterprise-router/instances/{er_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
instance + |
+No + |
+UpdateEnterpriseRouter object + |
+Request body for updating an enterprise router + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+No + |
+String + |
+Enterprise router name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Supplementary information about an enterprise router +Minimum: 0 +Maximum: 255 + |
+
enable_default_propagation + |
+No + |
+Boolean + |
+Whether to enable Default Route Table Propagation. + |
+
enable_default_association + |
+No + |
+Boolean + |
+Whether to enable Default Route Table Association. + |
+
default_propagation_route_table_id + |
+No + |
+String + |
+Default propagation route table ID + |
+
default_association_route_table_id + |
+No + |
+String + |
+Default association route table ID + |
+
auto_accept_shared_attachments + |
+No + |
+Boolean + |
+Whether to automatically accept shared attachments. The default value is false, indicating that the function is disabled. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
instance + |
+EnterpriseRouter object + |
+Enterprise router + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Enterprise router ID + |
+
name + |
+String + |
+Enterprise router name + |
+
description + |
+String + |
+Supplementary information about an enterprise router + |
+
state + |
+String + |
+Enterprise router status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
charge_mode + |
+String + |
+Default: postPaid + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
enterprise_project_id + |
+String + |
+Enterprise project ID + |
+
project_id + |
+String + |
+Project ID + |
+
asn + |
+Long + |
+Enterprise router BGP ASN + |
+
enable_default_propagation + |
+Boolean + |
+Whether to enable the Default Route Table Propagation function. The default value is false, indicating that the function is disabled. + |
+
enable_default_association + |
+Boolean + |
+Whether to enable the Default Route Table Association function. The default value is false, indicating that the function is disabled. + |
+
default_propagation_route_table_id + |
+String + |
+Default propagation route table ID + |
+
default_association_route_table_id + |
+String + |
+Default association route table ID + |
+
availability_zone_ids + |
+Array of strings + |
+AZs where the enterprise router is located + |
+
auto_accept_shared_attachments + |
+Boolean + |
+Whether to automatically accept shared attachments. The default value is false, indicating that the function is disabled. + |
+
cidr_blocks + |
+Array of strings + |
+Enterprise router CIDR block. This parameter is not supported for now. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Updating an enterprise router to enable Default Route Table Association and Default Route Table Propagation and specify route table
+PUT https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/instances/94c2b814-99dc-939a-e811-ae84c61ea3ff
+
+{
+ "instance" : {
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "default_propagation_route_table_id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "default_association_route_table_id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff"
+ }
+}
+Status code: 200
+OK
+{
+ "instance" : {
+ "id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "name" : "my_er",
+ "description" : "this is my first enterprise router",
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "state" : "pending",
+ "asn" : 64512,
+ "enable_default_association" : true,
+ "enable_default_propagation" : true,
+ "default_propagation_route_table_id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "default_association_route_table_id" : "94c2b814-99dc-939a-e811-ae84c61ea3ff",
+ "auto_accept_shared_attachments" : false,
+ "availability_zone_ids" : [ "az1" ],
+ "created_at" : "2019-09-06 02:11:13Z",
+ "updated_at" : "2019-09-06 02:11:13Z"
+ },
+ "request_id" : "14c2b814-99dc-939b-e81c-ae84c61ea3f7"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to update a flow log.
+PUT /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
flow_log_id + |
+Yes + |
+String + |
+Flow log ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+No + |
+String + |
+Flow log name +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Minimum: 0 +Maximum: 255 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flow_log + |
+FlowLog object + |
+Flow log details + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Flow log ID + |
+
name + |
+String + |
+Flow log name + |
+
description + |
+String + |
+Flow log description + |
+
project_id + |
+String + |
+Project ID of the flow log task creator + |
+
resource_type + |
+String + |
+Resource type. The value is attachment. + |
+
resource_id + |
+String + |
+Resource ID + |
+
log_group_id + |
+String + |
+Log group ID + |
+
log_stream_id + |
+String + |
+Log stream ID + |
+
log_store_type + |
+String + |
+Flow log storage type. LTS is used for log storage. + |
+
log_store_name + |
+String + |
+Flow log storage name. This parameter is not supported for now. + |
+
log_aggregation_interval + |
+Integer + |
+Log aggregation time, in seconds. The value ranges from 60 to 600. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
state + |
+String + |
+Flow log status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
enabled + |
+Boolean + |
+Whether to enable flow logs. The value can be true or false. + |
+
Updating a flow log
+PUT https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/6f83b848-8331-4271-ac0c-ef94b7686402/flow_logs/b216bc1d-5963-41a7-89f9-779a5128c5ac
+
+{
+ "name" : "flow_log_update",
+ "description" : "flow log update test"
+}
+Status code: 200
+OK
+{
+ "flow_log" : {
+ "id" : "b216bc1d-5963-41a7-89f9-779a5128c5ac",
+ "name" : "flow_log_update",
+ "project_id" : "0605767a9980d5762fbcc00b3537e757",
+ "resource_type" : "attachment",
+ "resource_id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
+ "log_group_id" : "0139393c-eeb2-49f0-bbd4-c5faec6b1497",
+ "log_stream_id" : "d22c3b44-2f71-470f-83f3-96a8af6956ad",
+ "log_store_type" : "LTS",
+ "log_aggregation_interval" : 600,
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2022-03-11T15:13:31Z",
+ "state" : "available",
+ "enabled" : true,
+ "description" : "flow log update test"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to update basic information about a route table, such as the name and description.
+PUT /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
route_table + |
+No + |
+UpdateRouteTable object + |
+Request body for updating a route table + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+No + |
+String + |
+Route table name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
description + |
+No + |
+String + |
+Supplementary information about the route table +Minimum: 0 +Maximum: 255 + |
+
bgp_options + |
+No + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
load_balancing_as_path_ignore + |
+No + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+No + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route_table + |
+RouteTable object + |
+Route table + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route table ID + |
+
name + |
+String + |
+Route table name + |
+
description + |
+String + |
+Supplementary information + |
+
is_default_association + |
+Boolean + |
+Whether the route table is the default association route table. +Default: false + |
+
is_default_propagation + |
+Boolean + |
+Whether the route table is the default propagation route table. + |
+
state + |
+String + |
+Route table status. The value can be pending, available, deleting, deleted, or failed. + |
+
tags + |
+Array of Tag objects + |
+Tag + |
+
bgp_options + |
+BgpOptions object + |
+BGP route selection parameters. This parameter is not supported for now. + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
load_balancing_as_path_ignore + |
+Boolean + |
+BGP option to specify that AS-Path attributes are not compared during load balancing. This parameter is not supported for now. + |
+
load_balancing_as_path_relax + |
+Boolean + |
+BGP option to specify that AS-Path attributes with the same length are not compared during load balancing. This parameter is not supported for now. + |
+
Changing the name of a route table of an enterprise router to new-rtb
+PUT https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/915a14a6-867b-4af7-83d1-70efceb146f5/route-tables/4ab54142-7c92-48ad-8288-77727a231052
+
+{
+ "route_table" : {
+ "name" : "new-rtb"
+ }
+}
+Status code: 200
+OK
+{
+ "route_table" : {
+ "id" : "4ab54142-7c92-48ad-8288-77727a231052",
+ "name" : "new-rtb",
+ "is_default_association" : false,
+ "is_default_propagation" : false,
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
+This API is used to update a static route.
+If is_blackhole is set to false, the attachment_id parameter must be carried. If is_blackhole is set to true, the attachment_id parameter cannot be passed.
+PUT /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
route_table_id + |
+Yes + |
+String + |
+Route table ID + |
+
route_id + |
+Yes + |
+String + |
+Route ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
route + |
+Yes + |
+UpdateRoute object + |
+Route + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
route + |
+Route object + |
+Route + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Route ID + |
+
type + |
+String + |
+Route type. The value is static. + |
+
state + |
+String + |
+Route status. Value options: pending, available, modifying, deleting, deleted, and failed + |
+
is_blackhole + |
+Boolean + |
+Whether the route is a blackhole route + |
+
destination + |
+String + |
+Destination address of the route + |
+
attachments + |
+Array of RouteAttachment objects + |
+Next hops + |
+
route_table_id + |
+String + |
+Route table ID + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
Modifying a static route
+PUT https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/19d334b7-78c1-4e0e-ba29-b797e641e23c/static-routes/9b3b38a9-1c9d-4f01-9429-81af6b545289
+
+{
+ "route" : {
+ "is_blackhole" : false,
+ "attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
+ }
+}
+Status code: 202
+Accepted
+{
+ "route" : {
+ "id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289",
+ "type" : "static",
+ "destination" : "192.168.0.0/16",
+ "attachments" : [ {
+ "resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
+ "resource_type" : "vpc",
+ "attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
+ } ],
+ "route_table_id" : "19d334b7-78c1-4e0e-ba29-b797e641e23c",
+ "is_blackhole" : false,
+ "state" : "pending",
+ "created_at" : "2020-03-11T15:13:31",
+ "updated_at" : "2020-03-11T15:13:31"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
202 + |
+Accepted + |
+
See Error Codes.
+This API is used to update basic information about a VPC attachment.
+PUT /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
er_id + |
+Yes + |
+String + |
+Enterprise router ID + |
+
vpc_attachment_id + |
+Yes + |
+String + |
+VPC attachment ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
vpc_attachment + |
+No + |
+UpdateVpcAttachmentBody object + |
+Request body for updating VPC information + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
description + |
+No + |
+String + |
+Supplementary information about the VPC attachment. The value contains a maximum of 36 characters in UUID format with hyphens (-). +Minimum: 0 +Maximum: 255 + |
+
name + |
+No + |
+String + |
+VPC attachment name. The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.). +Minimum: 1 +Maximum: 64 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
vpc_attachment + |
+VpcAttachmentDetails object + |
+VPC attachment + |
+
request_id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+VPC attachment ID + |
+
name + |
+String + |
+VPC attachment name + |
+
vpc_id + |
+String + |
+VPC id + |
+
virsubnet_id + |
+String + |
+VPC subnet ID + |
+
auto_create_vpc_routes + |
+Boolean + |
+The default value is false. If this parameter is set to true, routes with this enterprise router as the next hop and 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as the destinations will be automatically added to the route tables of the VPC. +Default: false + |
+
state + |
+String + |
+VPC attachment status. Value options: pending, available, modifying, deleting, deleted, failed, initiating_request, rejected, and pending_acceptance + |
+
created_at + |
+String + |
+Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
updated_at + |
+String + |
+Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ + |
+
tags + |
+Array of Tag objects + |
+Tag information + |
+
description + |
+String + |
+Supplementary information about the VPC attachment + |
+
project_id + |
+String + |
+Project ID + |
+
vpc_project_id + |
+String + |
+ID of the project that the VPC belongs to + |
+
ipv6_enable + |
+Boolean + |
+The default value is false. If the value is true, IPv6 is enabled for the VPC attachment. This parameter is not supported for now. +Default: false + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 1 +Maximum: 128 + |
+
value + |
+String + |
+Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@). +Minimum: 0 +Maximum: 128 + |
+
Updating a VPC attachment (changing its name to new-vpc-attach)
+PUT https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/f1a28dfd-186f-4625-b6b1-f05e5e8609c0/vpc-attachments/3b9724e9-49ec-4d21-9191-3d703133b910
+
+{
+ "vpc_attachment" : {
+ "name" : "new-vpc-attach"
+ }
+}
+Status code: 200
+OK
+{
+ "vpc_attachment" : {
+ "id" : "3b9724e9-49ec-4d21-9191-3d703133b910",
+ "name" : "new-vpc-attach",
+ "vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
+ "virsubnet_id" : "aacdc21d-90f9-45ef-ab48-80ec1bbe15b8",
+ "auto_create_vpc_routes" : false,
+ "project_id" : "08d5a9564a704afda6039ae2babbef3c",
+ "ipv6_enable" : false,
+ "state" : "available",
+ "created_at" : "2020-03-11T15:13:31Z",
+ "updated_at" : "2020-03-11T15:13:31Z"
+ },
+ "request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+OK + |
+
See Error Codes.
++
Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.
+Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by application/json.
+For details about how to use APIs, see API Usage Guidelines.
+
Attachment Type + |
+Network Instance + |
+Creating an Attachment + |
+Querying Attachment Details + |
+Deleting an Attachment + |
+
|---|---|---|---|---|
VPC attachment + |
+VPC + |
++ | ++ | ++ | +
Virtual gateway attachment + |
+Virtual gateway of Direct Connect + |
+Create a virtual gateway by referring to Creating a Virtual Gateway and then attach it to an enterprise router. + |
++ | ++ | +
This section describes fine-grained permissions management for your Enterprise Router resources. If your account does not need individual IAM users, you may skip this section.
+By default, new IAM users do not have any permissions assigned. You need to add a user to one or more groups, and assign policies or roles to these groups. The user then inherits permissions from the groups. After authorization, the user can perform specified operations on cloud services based on the permissions.
+An account has all of the permissions required to call all APIs, but IAM users must be assigned the required permissions. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions can call the API successfully. For example, if an IAM user wants to query enterprise routers using an API, the user must have been granted permissions that allow the er:instances:list action.
+IAM provides system-defined policies that can be directly used. You can also create custom policies to work with system-defined policies for more refined access control. Actions supported by policies are specific to APIs. Common concepts related to policies include:
+Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating an enterprise router + |
+POST /v3/{project_id}/enterprise-router/instances + |
+er:instances:create + |
+√ + |
+√ + |
+
Updating an enterprise router + |
+PUT /v3/{project_id}/enterprise-router/instances/{enterprise_router_id} + |
+er:instances:update + |
+√ + |
+√ + |
+
Querying details about an enterprise router + |
+GET /v3/{project_id}/enterprise-router/instances/{enterprise_router_id} + |
+er:instances:get + |
+√ + |
+√ + |
+
Querying the enterprise router list + |
+GET /v3/{project_id}/enterprise-router/instances + |
+er:instances:list + |
+√ + |
+√ + |
+
Deleting an enterprise router + |
+DELETE /v3/{project_id}/enterprise-router/instances/{enterprise_router_id} + |
+er:instances:delete + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating a VPC attachment + |
+POST /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments + |
+er:attachments:create + |
+√ + |
+√ + |
+
Updating a VPC attachment + |
+PUT /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id} + |
+er:attachments:update + |
+√ + |
+√ + |
+
Querying details about a VPC attachment + |
+GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id} + |
+er:attachments:get + |
+√ + |
+√ + |
+
Querying the VPC attachment list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments + |
+er:attachments:list + |
+√ + |
+√ + |
+
Deleting a VPC attachment + |
+DELETE /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id} + |
+er:attachments:delete + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Updating an attachment + |
+PUT /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id} + |
+er:attachments:update + |
+√ + |
+√ + |
+
Querying details about an attachment + |
+GET /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id} + |
+er:attachments:get + |
+√ + |
+√ + |
+
Querying the attachment list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/attachments + |
+er:attachments:list + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating a route table + |
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables + |
+er:routeTables:create + |
+√ + |
+√ + |
+
Updating a route table + |
+PUT /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id} + |
+er:routeTables:update + |
+√ + |
+√ + |
+
Querying details about a route table + |
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id} + |
+er:routeTables:get + |
+√ + |
+√ + |
+
Querying the route table list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables + |
+er:routeTables:list + |
+√ + |
+√ + |
+
Deleting a route table + |
+DELETE /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id} + |
+er:routeTables:delete + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating an association + |
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/associate + |
+er:associations:associate + |
+√ + |
+√ + |
+
Querying the association list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/associations + |
+er:associations:list + |
+√ + |
+√ + |
+
Deleting an association + |
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/disassociate + |
+er:associations:disassociate + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating a propagation + |
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/enable-propagations + |
+er:propagations:enable + |
+√ + |
+√ + |
+
Querying the propagation list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/propagations + |
+er:propagations:list + |
+√ + |
+√ + |
+
Deleting a propagation + |
+POST /v3/{project_id}/enterprise-router/{er_id}/route-tables/{route_table_id}/disable-propagations + |
+er:propagations:disable + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating a static route + |
+POST /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes + |
+er:routes:create + |
+√ + |
+√ + |
+
Updating a static route + |
+PUT /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id} + |
+er:routes:update + |
+√ + |
+√ + |
+
Querying details about a static route + |
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id} + |
+er:routes:get + |
+√ + |
+√ + |
+
Querying static routes + |
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes + |
+er:routes:list + |
+√ + |
+√ + |
+
Querying effective routes + |
+GET /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/routes + |
+er:routes:list + |
+√ + |
+√ + |
+
Deleting a static route + |
+DELETE /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes/{route_id} + |
+er:routes:delete + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Creating a flow log + |
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs + |
+er:flowlogs:create + |
+√ + |
+√ + |
+
Querying the flow log list + |
+GET /v3/{project_id}/enterprise-router/{er_id}/flow-logs + |
+er:flowlogs:list + |
+√ + |
+√ + |
+
Querying details about a flow log + |
+GET /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id} + |
+er:flowlogs:show + |
+√ + |
+√ + |
+
Updating a flow log + |
+PUT /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id} + |
+er:flowlogs:update + |
+√ + |
+√ + |
+
Deleting a flow log + |
+DELETE /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id} + |
+er:flowlogs:delete + |
+√ + |
+√ + |
+
Enabling flow logging + |
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/enable + |
+er:flowlogs:enable + |
+√ + |
+√ + |
+
Disabling flow logging + |
+POST /v3/{project_id}/enterprise-router/{er_id}/flow-logs/{flow_log_id}/disable + |
+er:flowlogs:disable + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Querying tags by resource type + |
+GET /v3/{project_id}/{resource_type}/tags + |
+er:tags:list + |
+√ + |
+√ + |
+
Querying resource tags + |
+GET /v3/{project_id}/{resource_type}/{resource_id}/tags + |
+er:tags:get + |
+√ + |
+√ + |
+
Creating a resource tag + |
+POST /v3/{project_id}/{resource_type}/{resource_id}/tags + |
+er:tags:create + |
+√ + |
+√ + |
+
Adding or deleting resource tags in batches + |
+POST /v3/{project_id}/{resource_type}/{resource_id}/tags/action + |
+er:tags:create + |
+√ + |
+√ + |
+
Deleting a resource tag + |
+POST /v3/{project_id}/{resource_type}/{resource_id}/tags/{key} + |
+er:tags:delete + |
+√ + |
+√ + |
+
Permission + |
+API + |
+Action + |
+IAM Project + |
+Enterprise Project + |
+
|---|---|---|---|---|
Querying quotas + |
+GET /v3/{project_id}/enterprise-router/quotas + |
+er:quotas:list + |
+√ + |
+√ + |
+
After you share your enterprise router with other accounts, these other users can attach their network instances to your enterprise router, so that their network instances can access your enterprise router.
+
Enterprise routers cannot be shared through APIs. You can only use this function on the management console. For details, see section "Sharing Overview" in the Enterprise Router User Guide.
+