Searching for Distinct Shared Resources
Function
This API is used to search for distinct resources that you share or are shared with you.
Request 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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Maximum number of entries that can be displayed on a page. |
marker |
No |
String |
Page marker. |
resource_ids |
No |
Array of strings |
Resource ID. |
principal |
No |
String |
Principal associated with the resource share. |
resource_region |
No |
String |
Region where the resource is located. |
resource_urns |
No |
Array of strings |
List of resource URNs. |
resource_owner |
Yes |
String |
Resource owner (self or other-accounts) of the resource share. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
distinct_shared_resources |
Array of DistinctSharedResource objects |
List of distinct resources. |
page_info |
PageInfo object |
Pagination details. |
Example Requests
Searching for distinct resources that you share or are shared with you
POST https://{endpoint}/v1/shared-resources/search-distinct-resource { "limit" : 2000, "marker" : "string", "resource_ids" : [ "string" ], "principal" : "string", "resource_region" : "string", "resource_urns" : [ "string" ], "resource_owner" : "self" }
Example Responses
Status code: 200
Request succeeded.
{ "distinct_shared_resources" : [ { "resource_urn" : "string", "resource_type" : "string", "updated_at" : "2022-09-19T02:32:48.943Z" } ], "page_info" : { "previous_marker" : "string", "next_marker" : "string", "current_count" : 2000 } }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot