Help Center> Resource Access Manager> API Reference> APIs> Resource Sharing Invitations> Searching for a Resource Sharing Invitation
Updated on 2024-03-15 GMT+08:00

Searching for a Resource Sharing Invitation

Function

This API is used to search for a resource sharing invitation based on certain search criteria.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

POST /v1/resource-share-invitations/search

Request Parameters

Table 1 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 2 Request body parameters

Parameter

Mandatory

Type

Description

resource_share_ids

No

Array of strings

List of resource share IDs.

Minimum: 0

Maximum: 36

Array Length: 0 - 100

resource_share_invitation_ids

No

Array of strings

List of resource sharing invitation IDs.

Minimum: 0

Maximum: 36

Array Length: 0 - 100

status

No

String

Status of the resource sharing invitation.

Minimum: 0

Maximum: 64

limit

No

Integer

Maximum number of entries that can be displayed on a page.

Minimum: 1

Maximum: 2000

Default: 50

marker

No

String

Paging location marker. The query starts from the next piece of data indexed by this parameter. You do not need to specify this parameter when you query resources on the first page. When you query resources on subsequent pages, set this parameter to the location returned in the response body for the previous query.

Minimum: 1

Maximum: 64

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

resource_share_invitations

Array of ResourceShareInvitation objects

Details about the resource sharing invitation.

Array Length: 0 - 2000

page_info

PageInfo object

Pagination details.

Table 4 ResourceShareInvitation

Parameter

Type

Description

receiver_account_id

String

ID of the account that receives the resource sharing invitation.

Minimum: 0

Maximum: 36

resource_share_id

String

ID of the resource share.

Minimum: 0

Maximum: 36

resource_share_name

String

Name of the resource share.

Minimum: 0

Maximum: 64

resource_share_invitation_id

String

ID of the resource sharing invitation.

Minimum: 0

Maximum: 36

sender_account_id

String

ID of the account that sends a resource sharing invitation.

Minimum: 0

Maximum: 36

status

String

Status of the resource sharing invitation.

Minimum: 0

Maximum: 64

created_at

String

Time when the invitation was created.

updated_at

String

Time when the invitation was last updated.

Table 5 PageInfo

Parameter

Type

Description

previous_marker

String

Marker of the previous page.

Minimum: 1

Maximum: 64

next_marker

String

Marker of the next page.

Minimum: 1

Maximum: 64

current_count

Integer

Page size.

Minimum: 1

Maximum: 2000

Example Requests

Searching for resource sharing invitations based on certain search criteria

POST https://{hostname}/v1/resource-share-invitations/search

{
  "resource_share_ids" : [ "string" ],
  "resource_share_invitation_ids" : [ "string" ],
  "status" : "string",
  "limit" : 2000,
  "marker" : "string"
}

Example Responses

Status code: 200

Request succeeded.

{
  "resource_share_invitations" : [ {
    "receiver_account_id" : "string",
    "resource_share_id" : "string",
    "resource_share_name" : "string",
    "resource_share_invitation_id" : "string",
    "sender_account_id" : "string",
    "status" : "string",
    "created_at" : "2022-09-23T06:43:43.999Z",
    "updated_at" : "2022-09-23T06:43:43.999Z"
  } ],
  "page_info" : {
    "previous_marker" : "string",
    "next_marker" : "string",
    "current_count" : 2000
  }
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

See Error Codes.