绑定API

<p>VPC通道只有绑定API后,才会对指定的API生效。本文主要介绍如何绑定VPC通道到指定的API。</p> <p><span style="font-size:18px"><strong>前提条件</strong></span></p> <p>您已成功创建VPC通道,可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.VPC_Connection.Create_VPC_Connection" target="_blank">创建VPC通道</a>。</p> <p><span style="font-size:18px"><strong>操作步骤</strong></span></p> <p>1.&nbsp; 登录<a href="https://pinganyun.com/console/apiGateway" target="_blank">API网关管理控制台</a>。</p> <p>2.&nbsp; 单击左侧导航栏<strong>开放</strong><strong>API</strong> &gt;<strong> API</strong><strong>管理</strong>,进入<strong>API</strong><strong>管理</strong>页面。</p> <p>3.&nbsp; 选择目标地域。</p> <p>4.&nbsp; 单击页面右上角的<strong>创建</strong>,进入<strong>创建</strong><strong>API</strong>页面。</p> <p>5.&nbsp; 创建API的<strong>基本信息</strong>、<strong>定义</strong><strong>API</strong><strong>请求</strong>可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.API_Management.Create_API" target="_blank">创建API</a>。</p> <p>6.&nbsp; &nbsp;配置<strong>定义后端服务</strong>时,<strong>后端服务类型</strong>请选择<strong>VPC</strong><strong>通道。</strong></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20193010154558-17c26deb9eb7.png" style="height:180px; width:457px" /></p> <p>7.&nbsp; 其他参数的配置可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.API_Management.Create_API" target="_blank">创建API</a>。</p> <p>8.&nbsp; 单击<strong>完成</strong>。</p> <p><span style="font-size:18px"><strong>执行结果</strong></span></p> <p>系统打印提示信息。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20193010154544-1d39520d925b.png" style="height:221px; width:524px" /></p> <ul> <li>单击<strong>发布</strong><strong>API</strong>,进入<strong>发布</strong><strong>API</strong>页面,进行API发布的配置,可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.API_Management.Publish_API" target="_blank">发布API</a>。</li> <li>单击<strong>API</strong><strong>详情</strong>,进入<strong>API</strong><strong>详情</strong>页面,查看API的详细信息,可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.API_Management.View_API" target="_blank">查看API</a>。</li> <li>单击<strong>确认</strong>,可在<strong>API</strong><strong>管理</strong>页面的目标地域下,看到刚刚创建的API。&nbsp;</li> </ul> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20193010154820-1c2b803395d4.png" style="height:88px; width:830px" /></p>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询 - 7x24 小时

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

7x24 小时,急速解答

工单支持

解决云产品相关技术问题