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

DisassociateResourceShare - 移除共享資源或資源使用者

為共享單元移除共享資源或資源使用者。

接口說明

  • 資源所有者可以調用本 API,移除共享資源或資源使用者。
  • 在資源目錄外共享資源時,對于已加入共享的資源使用者,可以調用本 API 主動退出共享單元。更多信息,請參見資源使用者退出共享單元

本文將提供一個示例,使用資源目錄管理賬號,在cn-hangzhou地域的共享單元rs-6GRmdD3X****中,移除資源使用者172050525300****,即停止對該資源使用者的共享。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

下表是API對應的授權信息,可以在RAM權限策略語句的Action元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:

  • 操作:是指具體的權限點。
  • 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
  • 資源類型:是指操作中支持授權的資源類型。具體說明如下:
    • 對于必選的資源類型,用背景高亮的方式表示。
    • 對于不支持資源級授權的操作,用全部資源表示。
  • 條件關鍵字:是指云產品自身定義的條件關鍵字。
  • 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作訪問級別資源類型條件關鍵字關聯操作
resourcesharing:DisassociateResourceShareWrite
  • 全部資源
    *

請求參數

名稱類型必填描述示例值
ResourceShareIdstring

共享單元 ID。

rs-6GRmdD3X****
Resourcesobject []

資源列表。

ResourceTypestring

共享資源類型。

N 的取值范圍:1~5,即每次最多移除 5 個共享資源。

支持共享的資源類型,請參見支持資源共享的云服務

說明 Resources.N.ResourceId 與 Resources.N.ResourceType 成對出現,需要同時設置。
VSwitch
ResourceIdstring

共享資源 ID。

N 的取值范圍:1~5,即每次最多移除 5 個共享資源。

說明 Resources.N.ResourceId 與 Resources.N.ResourceType 成對出現,需要同時設置。
vsw-bp183p93qs667muql****
Targetsarray

資源使用者。

string

資源使用者。

N 的取值范圍:1~5,即每次最多添加 5 個資源使用者。

172050525300****
ResourceOwnerstring

共享單元歸屬者。取值:

  • Self(默認值):共享單元歸屬于當前賬號。適用于資源目錄內共享時,資源所有者移除共享資源或資源使用者場景。
  • OtherAccounts:共享單元歸屬于其他賬號。適用于資源目錄外共享時,資源使用者主動退出共享單元場景。
Self

返回參數

名稱類型描述示例值
object

返回參數。

RequestIdstring

請求 ID。

95230BC9-A8E8-4493-96BD-4F0C758E37F8
ResourceShareAssociationsobject []

共享單元關聯的共享資源或資源使用者信息。

UpdateTimestring

取消關聯的更新時間。存在以下兩種情況:

  • 當關聯類型AssociationType為資源Resource時,該參數為移除資源的更新時間。
  • 當關聯類型AssociationType為資源使用者Target時,該參數為移除資源使用者的更新時間。
2020-12-04T09:40:45.556Z
EntityIdstring

關聯實體 ID。取值:

  • 當關聯類型AssociationType為資源Resource時,該參數為資源 ID。
  • 當關聯類型AssociationType為資源使用者Target時,該參數為資源目錄 ID、資源夾 ID 或成員 ID。
172050525300****
ResourceShareNamestring

共享單元名稱。

test
CreateTimestring

取消關聯的時間。存在以下兩種情況:

  • 當關聯類型AssociationType為資源Resource時,該參數為移除資源的時間。
  • 當關聯類型AssociationType為資源使用者Target時,該參數為移除資源使用者的時間。
2020-12-04T09:40:41.250Z
EntityTypestring

關聯實體類型。取值:

  • 當關聯實體為資源時,該參數為資源類型。更多信息,請參見支持資源共享的云服務
  • 當關聯實體為資源使用者時,該參數為 Account。
Account
ResourceShareIdstring

共享單元 ID。

rs-6GRmdD3X****
AssociationStatusMessagestring

取消關聯失敗的原因。

The Resources is invalid.
AssociationTypestring

關聯類型。取值:

  • Resource:資源。
  • Target:資源使用者。
Target
AssociationStatusstring

關聯狀態。取值:

  • Associating:關聯中。
  • Associated:已關聯。
  • Failed:關聯失敗。
  • Disassociating:分離中。
  • Disassociated:已分離。
說明 FailedDisassociated狀態的記錄,會在 48~96 小時內被系統自動刪除。
Disassociating
TargetPropertystring

資源使用者屬性。例如:資源共享的時間段。

說明 僅當資源使用者為阿里云服務時返回該參數。
{ "timeRange":{ "timeRangeType":"timeRange", "beginAtTime":"00:00", "timezone":"UTC+8", "endAtTime":"19:59" } }

示例

正常返回示例

JSON格式

{
  "RequestId": "95230BC9-A8E8-4493-96BD-4F0C758E37F8",
  "ResourceShareAssociations": [
    {
      "UpdateTime": "2020-12-04T09:40:45.556Z",
      "EntityId": "172050525300****",
      "ResourceShareName": "test",
      "CreateTime": "2020-12-04T09:40:41.250Z",
      "EntityType": "Account",
      "ResourceShareId": "rs-6GRmdD3X****",
      "AssociationStatusMessage": "The Resources is invalid.",
      "AssociationType": "Target",
      "AssociationStatus": "Disassociating",
      "TargetProperty": "{\n    \"timeRange\":{\n        \"timeRangeType\":\"timeRange\",\n        \"beginAtTime\":\"00:00\",\n        \"timezone\":\"UTC+8\",\n        \"endAtTime\":\"19:59\"\n    }\n}"
    }
  ]
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400MissingParameter.ResourceShareIdYou must specify ResourceShareId.ResourceShareId參數缺失。
400InvalidParameter.ResourceShareIdThe ResourceShareId is invalid.ResourceShareId參數錯誤。
400InvalidParameter.ResourcesThe Resources is invalid.選定的共享資源無效。
400InvalidParameter.Resources.DuplicateThe Resources contains duplicate values.選定的共享資源有重復項。
400InvalidParameter.Resources.LengthThe maximum number of Resources exceeds 5.選定的共享資源數量超限(最大5個)。
400InvalidParameter.TargetsThe Targets is invalid.資源使用者的參數不符合規則。
400InvalidParameter.Targets.DuplicateThe Targets contains duplicate values.資源使用者有重復項。
400InvalidParameter.Targets.LengthThe maximum number of Targets exceeds 5.資源使用者數量超限(最大5個)。
400ResourceAndTargetBothEmptyEither a resource or a shared target must be specified.必須指定一個資源或一個資源使用者。
400DisassociateInvalidYou can not disassociate unassociated resource or target.對象未關聯,不能取消關聯。
400InvalidParameterThe specified parameter is invalid.參數無效。
400InvalidParameter.ResourceTypeThe ResourceType is invalid.傳入的資源類型錯誤。
404EntityNotExists.ResourceShareThe resource share does not exist in the current account.共享單元不在當前賬號內。
409AccountNotInResourceDirectoryThe account is not a master or a member of a resource directory.資源使用者不在資源目錄內。
409ResourceShareStatusMismatchActionThe status of the resource share does not allow the specified operation.共享單元的狀態不支持當前操作。
409DisassociateConflictYou cannot perform the operation while association is already in progress.關聯中,不能操作關聯。
409LeavingFailed.AccountThe account was added to the resource share automatically by resoucre directory.當前賬號是通過組織內共享添加到共享單元中的賬號,不能主動退出共享單元。需聯系共享單元的所有者將當前賬號從共享單元中移除。
409LeavingFailed.ResourceTypeThe resource share contains resources of the resource types that dont support this action.共享單元中包含不支持主動退出的資源類型。需聯系共享單元的所有者將當前賬號從共享單元中移除。
409ExternalTargetWithdrawConflictExisting internal association task in resource directory when disassociating with resource share.當前賬號是通過組織內共享添加到共享單元中的賬號,不能主動退出共享單元。請聯系共享單元的所有者將當前賬號從共享單元中移除。

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
2024-01-03OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更看變更集
變更項變更內容
錯誤碼OpenAPI 錯誤碼發生變更
    刪除錯誤碼:400
    刪除錯誤碼:404
    刪除錯誤碼:409
出參OpenAPI 返回結構發生變更