检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
更新静态路由 功能介绍 更新静态路由 接口约束 当is_blackhole设置为false时,必须传入attachment_id参数;当is_blackhole设置为true时,禁止传入attachment_id参数。 调用方法 请参见如何调用API。 URI PUT /v3/{
创建静态路由。静态路由为手动创建的路由,有效路由为优选后的路由。 接口约束 当is_blackhole设置为false时,必须传入attachment_id参数;当is_blackhole设置为true时,禁止传入attachment_id参数。 调用方法 请参见如何调用API。 URI
ListVpcAttachmentsRequest request = new ListVpcAttachmentsRequest(); request.withVpcId(); request.withLimit(<limit>); request.withMarker("<marker>");
ListRouteTablesRequest request = new ListRouteTablesRequest(); request.withState(); request.withIsDefaultPropagationTab
request.state = request.id = request.resource_id = request.owned_by_self = <OwnedBySelf> request.sort_key
est request = new ListStaticRoutesRequest(); request.withLimit(<limit>); request.withMarker("<marker>"); request.withDestination();
); request.withResourceId(); request.withLimit(<limit>); request.withMarker("<marker>"); request.withSortKey();
ListAttachmentsRequest request = new ListAttachmentsRequest(); request.withLimit(<limit>); request.withMarker("<marker>"); request.withState();
est request = new ListPropagationsRequest(); request.withLimit(<limit>); request.withMarker("<marker>"); request.withAttachmentId();
request.withBody(body); try { CreateVpcAttachmentResponse response = client.createVpcAttachment(request);
响应Body参数 参数 参数类型 描述 vpc_attachment VpcAttachmentDetails object VPC类型连接 request_id String 请求id 表3 VpcAttachmentDetails 参数 参数类型 描述 id String VPC连接ID
request = ShowQuotasRequest() request.type = request.er_id = request.route_table_id = request.vpc_id
响应Body参数 参数 参数类型 描述 vpc_attachment VpcAttachmentDetails object VPC类型连接 request_id String 请求id 表5 VpcAttachmentDetails 参数 参数类型 描述 id String VPC连接ID
build(); ListAvailabilityZoneRequest request = new ListAvailabilityZoneRequest(); request.withInstanceId("<instance_id>");
request.withBody(body); try { DisablePropagationResponse response = client.disablePropagation(request);
request.withBody(body); try { DisassociateRouteTableResponse response = client.disassociateRouteTable(request);
request.withBody(body); try { BatchCreateResourceTagsResponse response = client.batchCreateResourceTags(request);
); request.withBody(body); try { UpdateAttachmentResponse response = client.updateAttachment(request);
); request.withBody(body); try { UpdateRouteTableResponse response = client.updateRouteTable(request);
request.withBody(body); try { AssociateRouteTableResponse response = client.associateRouteTable(request);