QingCloud 文档 – 镜像 - kaiyun官方网站下载手机网页 /development_docs/api/command_list/image/ Recent content in 镜像 on QingCloud 文档 Hugo -- gohugo.io Development_docs: CaptureImageFromSnapshot /development_docs/api/command_list/image/capture_image_from_snapshot/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/capture_image_from_snapshot/ <p>将指定备份导出为镜像。请注意,此备份点可以为云服务器或特定类型的硬盘(不支持企业级分布式 SAN (NeonSAN) 硬盘)的备份点才能导出为镜像。如果用硬盘的备份点导出镜像,请务必保证硬盘中的文件系统是完好的,可以启动的。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>snapshot</td> <td>String</td> <td>备份 ID</td> <td>Yes</td> </tr> <tr> <td>image_name</td> <td>String</td> <td>镜像名称</td> <td>No</td> </tr> <tr> <td>description</td> <td>String</td> <td>镜像的描述信息</td> <td>No</td> </tr> <tr> <td>base_image</td> <td>String</td> <td>使用快照制作镜像时,新生成镜像的很多参数使用镜像 base_image 的;当 snapshot_id 是硬盘时,此参数是必须的</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>job_id</td> <td>String</td> <td>Job ID</td> </tr> <tr> <td>image_id</td> <td>String</td> <td>新的镜像 ID</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em></p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=CaptureImageFromSnapshot &amp;snapshot=ss-yp2b9l7v &amp;image_name=image_from_snapshot &amp;base_image=xenialx64b &amp;zone=gd2 &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;CaptureImageFromSnapshotResponse&#34;, &#34;image_id&#34;:&#34;img-rd7siwov&#34;, &#34;job_id&#34;:&#34;j-2h1syb70&#34;, &#34;ret_code&#34;:0 } </code></pre> Development_docs: CaptureInstance /development_docs/api/command_list/image/capture_instance/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/capture_instance/ <p>将某个已关闭的云服务器制作成模板(或称“自有镜像”),之后便可将其用于创建新的云服务器。 被捕获的云服务器必须是已关闭( stopped )状态,否则会返回错误。</p> <p>由云服务器制成的自有镜像,会保留云服务器中安装的软件、配置及数据, 因此基于这个自有镜像创建的云服务器,就直接获得了相同的系统环境。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>instance</td> <td>String</td> <td>要被制作为模板的云服务器</td> <td>Yes</td> </tr> <tr> <td>image_name</td> <td>String</td> <td>镜像名称</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> <tr> <td>target_user</td> <td>String</td> <td>目标用户 ID ,可用于主账号为其子账号创建资源。</td> <td>No</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>job_id</td> <td>String</td> <td>执行任务的 Job ID</td> </tr> <tr> <td>image_id</td> <td>String</td> <td>新创建的镜像 ID</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=CaptureInstance &amp;instance=i-n3nju2rh &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;CaptureInstanceResponse&#34;, &#34;job_id&#34;:&#34;j-bm6ym3r8&#34;, &#34;image_id&#34;:&#34;img-j38f2h3h&#34; &#34;ret_code&#34;:0 } </code></pre> Development_docs: CloneImages /development_docs/api/command_list/image/clone-images/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/clone-images/ <p>从一个镜像克隆多个镜像。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>String</td> <td>需要克隆的原始镜像 ID</td> <td>Yes</td> </tr> <tr> <td>count</td> <td>Integer</td> <td>克隆镜像的数量,默认是1</td> <td>No</td> </tr> <tr> <td>image_name</td> <td>String</td> <td>镜像名称<br/>注解<br/>如果不指定,则和原始镜像名称一致</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=CloneImages &amp;image=img-rtyv0968 &amp;count=1 &amp;image_name=clone &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;CloneImagesResponse&#34;, &#34;images&#34;:[ &#34;img-0qdcwle5&#34; ], &#34;job_id&#34;:&#34;j-vrh2lpwt&#34;, &#34;ret_code&#34;:0 } </code></pre> Development_docs: DeleteImages /development_docs/api/command_list/image/delete_images/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/delete_images/ <p>删除一个或多个自有镜像。镜像须在可用( available ) 状态下才能被删除。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>images.n</td> <td>String</td> <td>镜像 ID</td> <td>Yes</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>job_id</td> <td>String</td> <td>执行任务的 Job ID</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=DeleteImages &amp;images.1=img-uydrnlax &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;DeleteImagesResponse&#34;, &#34;job_id&#34;:&#34;j-bm6ym3r8&#34;, &#34;ret_code&#34;:0 } </code></pre> Development_docs: DescribeImages /development_docs/api/command_list/image/describe_images/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/describe_images/ <p>获取一个或多个镜像。</p> <p>可根据镜像ID,状态,镜像名称、操作系统平台作过滤条件,来获取镜像列表。 如果不指定任何过滤条件,默认返回你所拥有的所有镜像。 如果指定不存在的镜像ID,或非法状态值,则会返回错误信息。</p> <h3 id="request-parameters">Request Parameters</h3> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>images.n</td> <td>String</td> <td>镜像ID</td> <td>No</td> </tr> <tr> <td>processor_type</td> <td>String</td> <td>镜像支持的处理器类型,有效值为 64bit 和 32bit</td> <td>No</td> </tr> <tr> <td>os_family</td> <td>String</td> <td>镜像操作系统发行版,有效值为 centos,ubuntu,debian,fedora 和 windows 等</td> <td>No</td> </tr> <tr> <td>visibility</td> <td>String</td> <td>镜像的可见范围,有效值为 public 和 private</td> <td>No</td> </tr> <tr> <td>provider</td> <td>String</td> <td>镜像提供者。初始开·云app官方版下载系统会提供一系列默认镜像,其 provider 为 system 。 当用户捕获云服务器后,被捕获的“自有”镜像的 provider 为 self 。<br/>参见<br/><a href="../capture_instance/"><em>CaptureInstance</em></a></td> <td>No</td> </tr> <tr> <td>status.n</td> <td>String</td> <td>镜像状态: pending, available, deprecated, suspended, deleted, ceased</td> <td>No</td> </tr> <tr> <td>search_word</td> <td>String</td> <td>搜索关键词,支持镜像ID,镜像名称</td> <td>No</td> </tr> <tr> <td>verbose</td> <td>Integer</td> <td>是否返回冗长的信息,目前 verbose 只支持为 0。</td> <td>No</td> </tr> <tr> <td>offset</td> <td>Integer</td> <td>数据偏移量,默认为0</td> <td>No</td> </tr> <tr> <td>limit</td> <td>Integer</td> <td>返回数据长度,默认为20,最大100</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <h3 id="response-elements">Response Elements</h3> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>image_set</td> <td>Array</td> <td>JSON 格式的镜像数据列表,每项参数可见下面 <a href="#response-item">Response Item</a></td> </tr> <tr> <td>total_count</td> <td>Integer</td> <td>根据过滤条件得到的镜像总数</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <h4 id="response-item">Response Item</h4> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image_id</td> <td>String</td> <td>镜像ID</td> </tr> <tr> <td>image_name</td> <td>String</td> <td>镜像名称</td> </tr> <tr> <td>description</td> <td>String</td> <td>镜像描述</td> </tr> <tr> <td>size</td> <td>Integer</td> <td>镜像空间大小,单位为 GB</td> </tr> <tr> <td>processor_type</td> <td>String</td> <td>镜像支持的处理器类型,有效值为 64位 ( 64bit ) 和 32位 ( 32bit )</td> </tr> <tr> <td>platform</td> <td>String</td> <td>镜像操作系统平台,有效值为 linux 和 windows</td> </tr> <tr> <td>os_family</td> <td>String</td> <td>镜像操作系统发行版,有效值为 centos,ubuntu,debian,fedora 和 windows 等</td> </tr> <tr> <td>visibility</td> <td>String</td> <td>镜像的可见范围,有效值为 public 和 private<br/>public: 对所有人可见,例如系统提供的镜像<br/>private: 只对镜像所有者可见,例如用户的自有镜像</td> </tr> <tr> <td>provider</td> <td>String</td> <td>镜像提供者,有效值为 system 和 self<br/>system: 镜像提供者为开·云app官方版下载系统<br/>self: 镜像提供者为用户自己</td> </tr> <tr> <td>owner</td> <td>String</td> <td>镜像提供者ID</td> </tr> <tr> <td>recommended_type</td> <td>String</td> <td>运行该镜像的推荐云服务器配置</td> </tr> <tr> <td>status</td> <td>String</td> <td>镜像状态,有效值为pending, available, deprecated, suspended, deleted, ceased。<br/>pending: 等待被创建<br/>available: 可用状态,此时可以基于该镜像创建云服务器。<br/>deprecated: 已被弃用,此时不再可以基于该镜像创建新的云服务器,但不影响已有云服务器的正常使用。<br/>suspended: 由于欠费,已被暂停使用<br/>deleted: 已被删除,但处于此状态的镜像在2小时之内仍可以被恢复为 available 状态<br/>ceased: 已被彻底删除,处于此状态的镜像无法恢复</td> </tr> <tr> <td>transition_status</td> <td>String</td> <td>镜像过渡状态,有效值为creating, suspending,resuming,deleting,recovering。<br/>creating: 创建中,由 pending 状态变成 available 状态<br/>suspending: 欠费暂停中,由 available 状态变成 suspended 状态<br/>resuming: 恢复中,由 suspended 状态变成 available 状态<br/>deleting: 删除中,由 available/suspended 状态变成 deleted 状态<br/>recovering: 恢复中,由 deleted 状态变成 available 状态</td> </tr> <tr> <td>create_time</td> <td>TimeStamp</td> <td>镜像创建时间,为UTC时间,格式可参见 <a href="http://www.w3.org/TR/NOTE-datetime">ISO8601</a>.</td> </tr> <tr> <td>status_time</td> <td>TimeStamp</td> <td>镜像最近一次状态变更时间,为UTC时间,格式可参见 <a href="http://www.w3.org/TR/NOTE-datetime">ISO8601</a>.</td> </tr> <tr> <td>tags</td> <td>String</td> <td><ul><li>color:String 类型,标签颜色</li><li>tag_id:String 类型,标签 id</li><li>tag_value:String 类型,标签值</li><li>tag_name:String 类型,标签名</li><li>owner:String 类型,标签的所有者</li><li>tag_key:String 类型,标签键</li></ul></td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=DescribeImages &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;DescribeImagesResponse&#34;, &#34;total_count&#34;:9, &#34;image_set&#34;:[ { &#34;status&#34;:&#34;ceased&#34;, &#34;processor_type&#34;:&#34;64bit&#34;, &#34;image_id&#34;:&#34;img-37amqany&#34;, &#34;sub_code&#34;:1, &#34;transition_status&#34;:&#34;&#34;, &#34;recommended_type&#34;:&#34;small_b&#34;, &#34;image_name&#34;:&#34;&#34;, &#34;visibility&#34;:&#34;private&#34;, &#34;platform&#34;:&#34;linux&#34;, &#34;create_time&#34;:&#34;2013-08-07T18:16:32Z&#34;, &#34;os_family&#34;:&#34;centos&#34;, &#34;provider&#34;:&#34;self&#34;, &#34;owner&#34;:&#34;usr-1234abcd&#34;, &#34;status_time&#34;:&#34;2013-08-17T08:16:33Z&#34;, &#34;tags&#34;:[ { &#34;color&#34;:&#34;#c096e0&#34;, &#34;tag_id&#34;:&#34;tag-rj6nhkn1&#34;, &#34;tag_value&#34;:&#34;test-tag&#34;, &#34;tag_name&#34;:&#34;test-tag&#34;, &#34;owner&#34;:&#34;admin&#34;, &#34;tag_key&#34;:&#34;test-tag&#34; } ], &#34;size&#34;:20, &#34;description&#34;:null } ], &#34;ret_code&#34;:0 } </code></pre> Development_docs: DescribeImageUsers /development_docs/api/command_list/image/describe-image-users/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/describe-image-users/ <p>可根据镜像ID, 查询该镜像分享给的用户的列表</p> <p>如果指定不存在的镜像ID,或非法状态值,则会返回错误信息。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>image_id</td> <td>String</td> <td>镜像ID</td> <td>Yes</td> </tr> <tr> <td>offset</td> <td>Integer</td> <td>数据偏移量,默认为0</td> <td>No</td> </tr> <tr> <td>limit</td> <td>Integer</td> <td>返回数据长度,默认为20</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>image_user_set</td> <td>Array</td> <td>JSON 格式的镜像数据列表,每项参数可见下面 <a href="#response-item">Response Item</a></td> </tr> <tr> <td>total_count</td> <td>Integer</td> <td>根据过滤条件得到的总数</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Response Item</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image_id</td> <td>String</td> <td>镜像ID</td> </tr> <tr> <td>user</td> <td>Dict</td> <td>用户的信息<br/>email: 用户的邮箱<br/>user_id: 用户的ID</td> </tr> <tr> <td>create_time</td> <td>TimeStamp</td> <td>创建时间,为UTC时间,格式可参见 <a href="http://www.w3.org/TR/NOTE-datetime">ISO8601</a>.</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=DescribeImageUsers&amp;image_id=img-c5hx2ay5 &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;DescribeImageUsersResponse&#34;, &#34;image_user_set&#34;:[ { &#34;image_id&#34;:&#34;img-c5hx2ay5&#34;, &#34;create_time&#34;:&#34;2015-12-10T07:02:52Z&#34;, &#34;user&#34;:{ &#34;user_id&#34;:&#34;usr-kXg2pqJb&#34;, &#34;email&#34;:&#34;steven@gmail.com&#34; } }, { &#34;image_id&#34;:&#34;img-c5hx2ay5&#34;, &#34;create_time&#34;:&#34;2015-12-10T07:14:12Z&#34;, &#34;user&#34;:{ &#34;user_id&#34;:&#34;usr-V9iGGGQB&#34;, &#34;email&#34;:&#34;steven@foxmail.com&#34; } } ], &#34;ret_code&#34;:0, &#34;total_count&#34;:2 } </code></pre> Development_docs: GrantImageToUsers /development_docs/api/command_list/image/grant-image-to-users/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/grant-image-to-users/ <p>共享镜像给指定的用户。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>String</td> <td>镜像 ID</td> <td>Yes</td> </tr> <tr> <td>users.n</td> <td>String</td> <td>用户id</td> <td>Yes</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=GrantImageToUsers &amp;image=img-rtyv0968 &amp;user.1=user-1234 &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;GrantImageToUsersResponse&#34;, &#34;ret_code&#34;:0 } </code></pre> Development_docs: ModifyImageAttributes /development_docs/api/command_list/image/modify_image_attributes/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/modify_image_attributes/ <p>修改镜像的名称和描述。</p> <p>修改时不受镜像状态限制。</p> <p>一次只能修改一个镜像。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>String</td> <td>镜像 ID</td> <td>Yes</td> </tr> <tr> <td>image_name</td> <td>String</td> <td>镜像名称</td> <td>No</td> </tr> <tr> <td>description</td> <td>String</td> <td>镜像描述</td> <td>No</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=ModifyImageAttributes &amp;image=img-rtyv0968 &amp;image_name=sample &amp;description=staging_env &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;ModifyImageAttributesResponse&#34;, &#34;ret_code&#34;:0 } </code></pre> Development_docs: RevokeImageFromUsers /development_docs/api/command_list/image/revoke-image-from-users/ Mon, 01 Jan 0001 00:00:00 +0000 /development_docs/api/command_list/image/revoke-image-from-users/ <p>撤销共享给用户。</p> <p><strong>Request Parameters</strong></p> <table> <thead> <tr> <th>Parameter name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>String</td> <td>镜像 ID</td> <td>Yes</td> </tr> <tr> <td>users.n</td> <td>String</td> <td>用户id</td> <td>Yes</td> </tr> <tr> <td>zone</td> <td>String</td> <td>区域 ID,注意要小写</td> <td>Yes</td> </tr> </tbody> </table> <p><a href="../../../parameters/"><em>公共参数</em></a></p> <p><strong>Response Elements</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>action</td> <td>String</td> <td>响应动作</td> </tr> <tr> <td>ret_code</td> <td>Integer</td> <td>执行成功与否,0 表示成功,其他值则为错误代码</td> </tr> </tbody> </table> <p><strong>Example</strong></p> <p><em>Example Request</em>:</p> <pre tabindex="0"><code>https://api.qingcloud.com/iaas/?action=RevokeImageFromUsers &amp;image=img-rtyv0968 &amp;user.1=user-1234 &amp;zone=pek3a &amp;COMMON_PARAMS </code></pre><p><em>Example Response</em>:</p> <pre tabindex="0"><code>{ &#34;action&#34;:&#34;RevokeImageFromUsersResponse&#34;, &#34;ret_code&#34;:0 } </code></pre>