日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

RefundInstance - 退訂實(shí)例

更新時(shí)間:

RefundInstance:調(diào)用本接口退訂不再需要的實(shí)例。

接口說(shuō)明

  1. 退訂只退還實(shí)付金額的部分,已使用的代金券不退還。
  2. 請(qǐng)仔細(xì)核對(duì)退訂資源的信息,并確認(rèn)退訂條款和退訂金額,資源一經(jīng)退訂無(wú)法恢復(fù)。
  3. 其他問(wèn)題請(qǐng)參照:退訂規(guī)則

調(diào)試

您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。

授權(quán)信息

下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語(yǔ)句的Action元素中使用,用來(lái)給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說(shuō)明如下:

  • 操作:是指具體的權(quán)限點(diǎn)。
  • 訪問(wèn)級(jí)別:是指每個(gè)操作的訪問(wèn)級(jí)別,取值為寫(xiě)入(Write)、讀取(Read)或列出(List)。
  • 資源類(lèi)型:是指操作中支持授權(quán)的資源類(lèi)型。具體說(shuō)明如下:
    • 對(duì)于必選的資源類(lèi)型,用背景高亮的方式表示。
    • 對(duì)于不支持資源級(jí)授權(quán)的操作,用全部資源表示。
  • 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
  • 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作訪問(wèn)級(jí)別資源類(lèi)型條件關(guān)鍵字關(guān)聯(lián)操作
bss:RefundBatchRemainRefundWrite
  • 全部資源
    *
    無(wú)
無(wú)

請(qǐng)求參數(shù)

名稱(chēng)類(lèi)型必填描述示例值
ClientTokenstring

需要冪等場(chǎng)景必填。UUID 生成的字符串。此字段用于冪等,多次調(diào)用傳入同樣的值,會(huì)返回第一次的結(jié)果。調(diào)用后如果返回了結(jié)果,可以解析到退款訂單編號(hào),代表調(diào)用成功。

793F021C-B589-1225-82A9-99232AEBE494
ImmediatelyReleasestring

退訂場(chǎng)景必填。1:標(biāo)識(shí)立即釋放。0:標(biāo)識(shí)先停機(jī),根據(jù)停機(jī)策略停機(jī)。僅部分商品支持。默認(rèn)都是立即釋放。

1
ProductCodestring

退訂場(chǎng)景必填,產(chǎn)品 code。如果調(diào)用后錯(cuò)誤碼提示產(chǎn)品不支持,可提交工單申請(qǐng)?jiān)飘a(chǎn)品允許開(kāi)通此功能。

ecs
InstanceIdstring

退訂場(chǎng)景必填,實(shí)例 id,非自定義名稱(chēng)。

i-bp1etb69sqxgl4*******
ProductTypestring

退訂場(chǎng)景必填,產(chǎn)品類(lèi)型,無(wú)特殊說(shuō)明傳入空字符串。在調(diào)試工具上,無(wú)需手動(dòng)輸入,鼠標(biāo)放到輸入框上,會(huì)彈出"輸入空字符串"的按鈕,點(diǎn)擊此按鈕即可。通過(guò)代碼發(fā)起退訂時(shí),傳入英文字符下的空字符串 ""。

空字符串

返回參數(shù)

名稱(chēng)類(lèi)型描述示例值
object

result

Messagestring

執(zhí)行結(jié)果說(shuō)明

success
RequestIdstring

執(zhí)行鏈路追蹤字符串,排查問(wèn)題時(shí),可以提供給平臺(tái)。

UUID
Dataobject

data

HostIdstring

執(zhí)行主機(jī)所在站點(diǎn)

cn
OrderIdlong

退訂成功的情況下,返回退款訂單 id

2100000000***
Codestring

響應(yīng)碼

ResourceNotExists
Successboolean

success=true 代表調(diào)用執(zhí)行完成。success=false 代表執(zhí)行出現(xiàn)錯(cuò)誤。

false

示例

正常返回示例

JSON格式

{
  "Message": "success",
  "RequestId": "UUID",
  "Data": {
    "HostId": "cn",
    "OrderId": 0
  },
  "Code": "ResourceNotExists",
  "Success": false
}

錯(cuò)誤碼

HTTP status code錯(cuò)誤碼錯(cuò)誤信息描述
400ResourceNotExistsThe specific resource is not exists.-
400ResourceStatusErrorThe resource status error.-
400InvalidOwnerThe specified owner does not belong to caller.指定的所有者不屬于調(diào)用方。
400InvalidParameterThe specified request contains invalid parameters.請(qǐng)求中包含無(wú)效參數(shù)。
400MissingParameterThe specified request lacks essential parameters.該請(qǐng)求缺少必要參數(shù)。
400NotApplicableThe specified API is not applicable for the user.此API不適用于調(diào)用方。
400NotAuthorizedThe user is not authorized for the specified API.此API未對(duì)該調(diào)用者進(jìn)行授權(quán)。
400BindMirrorInstanceErrorCharged images that are related to ECS.-
400ExceedRefundQuotaErrorThe number of unsubscription times has reached the upper limit.-
400ExistUnPaidOrderErrorThe instance has an unsettled order.-
400ExistRefundingOrderErrorThe instance ID is invalid: the instance may have expired, been refunded, or been released.-
400NoRestValueErrorThe refund amount is 0.-
400AmbassadorOrderLimitErrorThe instance has an ambassador order that may raise risks.-
400ActivityForbiddenErrorPromotional orders do not support refunds.-
400ProductCheckErrorThe cloud service failed SPI preflight verification.-
400CommodityNotSupportedThe specified commodity is not supported.商品code無(wú)效
500InternalErrorAn error occurred in the internal server.-

訪問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。

變更歷史

變更時(shí)間變更內(nèi)容概要操作
暫無(wú)變更歷史

針對(duì)部分業(yè)務(wù)規(guī)則攔截返回的錯(cuò)誤碼的解釋

  • ResourceNotExists:實(shí)例不存在
  • ResourceStatusError:實(shí)例狀態(tài)不對(duì)
  • BindMirrorInstanceError:ecs 有關(guān)聯(lián)的收費(fèi)鏡像
  • ExceedRefundQuotaError:退訂次數(shù)超過(guò) quota 配額上限
  • ExistUnPaidOrderError:實(shí)例下存在未支付訂單
  • ExistRefundingOrderError:無(wú)效實(shí)例 ID(實(shí)例已到期或已退款或已釋放)
  • NoRestValueError:退款金額為 0
  • AmbassadorOrderLimitError:實(shí)例下有云大使訂單
  • ActivityForbiddenError:活動(dòng)訂單禁止退款
  • ProductCheckError:云產(chǎn)品規(guī)則預(yù)校驗(yàn)未通過(guò)