Obtaining Resource Attribute Values
Function
This API is used to retrieve detailed information about specified resources such as data sources, datasets, dashboards, and large screens.
URI
GET /v1/{project_id}/authorization/cooperate-authorization/properties
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain the project ID, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
resource_id |
Yes |
String |
Resource ID. |
resource_type |
Yes |
String |
Explanation Enumerated value of the resource type, which is used to specify the type of the authorized object. For example, datasource indicates that the type of the authorized object is a data source. Constraints N/A Value range The enumerated values are:
Default value N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Workspace-Id |
Yes |
String |
Workspace ID. For how to obtain it, see Obtaining a Workspace ID. |
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's API. X-Subject-Token in the response header is the desired user token. For how to obtain a token, see Authentication. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
auth_switch_config |
Map<String,Boolean> |
Switch for permissions. It can be set to true or false to indicate whether the corresponding switch is turned on.
|
create_date |
Long |
Resource creation time. |
create_user |
String |
ID of the user who creates the resource. |
create_user_name |
String |
Name of the resource creator. |
id |
String |
ID of the resource collaboration authorization attribute table. |
owner |
String |
Resource owner ID. |
project_id |
String |
Project ID. |
resource_id |
String |
Resource ID. |
resource_type |
String |
Explanation Enumerated value of the resource type, which is used to specify the type of the authorized object. For example, datasource indicates that the type of the authorized object is a data source. Constraints N/A Value range The enumerated values are:
Default value N/A |
update_date |
Long |
Modification time. |
update_user |
String |
Modifier ID. |
update_user_name |
String |
Modifier name. |
workspace_id |
String |
Workspace ID. |
Example Request
Obtains resource attribute values.
GET https://{endpoint}/v1/9c3043axxxac4055888643b331a0bxxx/authorization/cooperate-authorization/properties?resource_type=dataset&resource_id=xxxx406b-8662-4adb-a028-a55cxxxx1166
Example Response
Status code: 200
OK.
{ "create_date" : 1682576908274, "create_user" : "aoeusth", "create_user_name" : "xxxx", "update_date" : 1683343425273, "update_user" : "aeousth", "update_user_name" : "xxxx", "id" : "xxxxx1f0-dea2-472c-aa9c-25928f74xxxx", "resource_type" : "dataset", "resource_id" : "xxxx406b-8662-4adb-a028-a55cxxxx1166", "auth_switch_config" : { "edit" : false, "read" : true }, "owner" : "xxxxx4a863a94b0ba2887b80dcxxxx3", "project_id" : "9c3043axxxac4055888643b331a0bxxx", "workspace_id" : "66a2c96809ad4f62ba09e6b6eeaa2146" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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