Updated on 2025-08-06 GMT+08:00

Disassociating Principals or Resources

Function

This API is used to disassociate specified principals or resources from a specified resource share. The principals can choose to leave the specified resource share.

URI

POST https://{endpoint}/v1/resource-shares/{resource_share_id}/disassociate

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

resource_share_id

Yes

String

ID of the resource share.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Security-Token

No

String

Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

principals

No

Array of strings

List of one or more principals associated with the resource share.

resource_urns

No

Array of strings

List of URNs of one or more resources associated with the resource share.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

resource_share_associations

Array of ResourceShareAssociation objects

Details about the principals or resources associated with a resource share.

Table 5 ResourceShareAssociation

Parameter

Type

Description

associated_entity

String

Associated entity. It can be the resource URN, account ID, URN of the root OU, or URN of another OU.

association_type

String

Entity type in the association.

created_at

String

Time when the association was created.

updated_at

String

Time when the association was last updated.

external

Boolean

Whether the principle is in the same organization as the resource owner.

resource_share_id

String

ID of the resource share.

resource_share_name

String

Name of the resource share.

status

String

Status of the association.

status_message

String

Description of the status to the association.

Example Requests

Disassociating specified principals or resources from a resource share

POST https://{endpoint}/v1/resource-shares/{resource_share_id}/disassociate

{
  "principals" : [ "string" ],
  "resource_urns" : [ "string" ]
}

Example Responses

Status code: 200

Request succeeded.

{
  "resource_share_associations" : [ {
    "associated_entity" : "string",
    "association_type" : "string",
    "created_at" : "2022-08-22T11:53:04.912Z",
    "updated_at" : "2022-08-22T11:53:04.912Z",
    "external" : true,
    "resource_share_id" : "string",
    "resource_share_name" : "string",
    "status" : "string",
    "status_message" : "string"
  } ]
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

See Error Codes.