Querying User Authorization Information
Function
This API is used to query the authorization information of a user and return the authorization status of a specified asset type.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/sdg/asset/authorization
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which is used to identify a specific project. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
Yes |
String |
Asset type, which is used to specify the type of authorization to be queried. The options are DASHBOARD, OBS, DATABASE, BIGDATA, MRS, LTS, and ALL. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
bigdata_authorization |
Boolean |
Authorization status of big data assets. |
|
dashboard_authorization |
Boolean |
Dashboard authorization status. |
|
database_authorization |
Boolean |
Database authorization status. |
|
lts_authorization |
Boolean |
Log Tank Service (LTS) authorization status. |
|
mrs_authorization |
Boolean |
MapReduce Service (MRS) authorization status. |
|
obs_authorization |
Boolean |
Object Storage Service (OBS) authorization status. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The user authorization is queried successfully. |
|
401 |
Unauthorized access. The request is rejected. |
|
403 |
Unauthorized operation. The request is rejected. |
|
404 |
The project does not exist. Query failed. |
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