绑定API
<p>签名密钥只有绑定API后,才会对指定的API生效。本文主要介绍如何绑定签名密钥到指定的API。</p>
<p><span style="font-size:18px"><strong>前提条件</strong></span></p>
<p>1. 您已成功创建签名密钥,可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.Signatured_Key.Create_Signatured_Key" target="_blank">创建签名密钥</a>。</p>
<p>2. 需要绑定的API已经发布,可参考<a href="https://pinganyun.com/ssr/help/middleware/APIGateway/Instance_Management.Publishing_API.API_Management.Publish_API" target="_blank">发布API</a>。</p>
<p><span style="font-size:18px"><strong>操作步骤</strong></span></p>
<p>1. 登录<a href="https://pinganyun.com/console/apiGateway" target="_blank">API网关管理控制台</a>。</p>
<p>2. 单击左侧导航栏<strong>开放</strong><strong>API</strong> ><strong> </strong><strong>签名密钥</strong>,进入<strong>签名密钥</strong>页面。</p>
<p>3. 选择目标地域。</p>
<p>4. 单击目标签名密钥<strong>操作</strong>列的<strong>绑定</strong><strong>API</strong>,进入<strong>绑定</strong><strong>API</strong>页面。</p>
<p>5. 选择<strong>目标分组</strong>及<strong>目标发布环境</strong>。</p>
<p><!--[if gte mso 9]><xml>
<o:OLEObject Type="Embed" ProgID="PBrush" ShapeID="_x0000_i1025"
DrawAspect="Content" ObjectID="_1633951419">
</o:OLEObject>
</xml><![endif]--><img src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20193010141429-1ae287399596.png" style="height:26px; margin:0px; width:65px" />:您也可以通过目标API的名称进行搜索。</p>
<p><img src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20193010141437-1767ee1f9289.png" style="height:84px; width:749px" /></p>
<p>6. 在左侧<strong>请选择要添加的</strong><strong>API</strong>的列表中选择目标API,单击<img src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20193010141519-17d1e0489a79.png" style="height:21px; margin:0px; width:23px" />。</p>
<p><!--[if gte mso 9]><xml>
<o:OLEObject Type="Embed" ProgID="PBrush" ShapeID="_x0000_i1026"
DrawAspect="Content" ObjectID="_1633951420">
</o:OLEObject>
</xml><![endif]--><img src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20193010141429-1ae287399596.png" style="height:26px; margin:0px; width:65px" />:若目标API已经绑定了签名密钥,则新的签名密钥会覆盖之前已经绑定的签名密钥。</p>
<p>7. 单击<strong>确认</strong>。</p>
<p><span style="font-size:18px"><strong>执行结果</strong></span></p>
<p><strong>方法一</strong></p>
<p>在<strong>签名密钥</strong>页面的底部显示<strong>绑定成功</strong>。</p>
<p><strong>方法二</strong></p>
<p>1. 在<strong>签名密钥</strong>页面,单击目标签名密钥的名称,进入<strong>签名密钥详情</strong>页面。</p>
<p>2. 在<strong>已绑定</strong><strong>API</strong><strong>列表</strong>区域,可查看已经绑定的API。</p>
<p><img src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20193010141444-1a8583c296e4.png" style="height:235px; width:1623px" /></p>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!