调用ExportImage导出一份自定义镜像到与该自定义镜像同一地域的OSS Bucket里。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ImageId | string | 是 | 镜像 ID。 | m-5ragaz3s74b7go8ks7jp9**** |
OSSBucket | string | 是 | 保存导出镜像的 OSS Bucket。 | whxyl**** |
OSSRegionId | string | 是 | 地域 ID。 | cn-beijing |
OSSPrefix | string | 否 | 您的 OSS Object 的前缀。可以由数字或者字母组成,字符长度为 1~30。 | dataCenter/972****/ |
RoleName | string | 否 | 授权角色名。 | AliyunMNSLoggingRole |
返回参数
示例
正常返回示例
JSON
格式
{
"ExportedImageURL": "http://oss.url",
"RequestId": "43A426AD-3F2E-5DD9-9C08-D4DBDCA48D85"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | - |
400 | NoPermission | Permission denied. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
400 | InvalidParameter | The errorMessage is %s. Please check it again. | - |
400 | InvalidSecurityGroupId.NotFound | The specified SecurityGroupId does not exist. | 指定的安全组ID不存在。 |
400 | SecurityGroupRuleConflict.Duplicated | The SecurityGroup rule already exists. | 安全组规则重复。 |
400 | AuthorizationLimitExceed | The limit of authorization records in the security group reaches. | 安全组规则数量超出限额。 |
400 | ens.interface.error | An error occurred while calling the API. | - |
400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
400 | InvalidImageType.NotSupported | The specified image type is not supported. | 指定的镜像暂不支持共享和导出操作。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-11-19 | OpenAPI 错误码发生变更 | 查看变更详情 |
2023-12-07 | OpenAPI 错误码发生变更 | 查看变更详情 |