調用ModifyImageSharePermission共用鏡像或不共用鏡像。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:ModifyImageSharePermission |
update |
*Image
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ImageId |
string |
是 |
鏡像 ID,僅支援傳單個 ID。支援自訂鏡像和公用鏡像。 |
m-5s7qotzavwbrnzaqh4unm**** |
| AddAccounts |
string |
否 |
授權共用鏡像的阿里雲帳號 ID,多個帳號以半形逗號(,)隔開。 |
1122334455** |
| RemoveAccounts |
string |
否 |
刪除鏡像共用的阿里雲帳號 ID。僅支援刪除單個。 |
113355** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
701B3BB9-9190-544D-90D1-328B0527380C |
樣本
正常返回樣本
JSON格式
{
"RequestId": "701B3BB9-9190-544D-90D1-328B0527380C"
}
錯誤碼
|
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 | 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. | 指定的鏡像暫不支援共用和匯出操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。