Queries the details of a permission application ticket.
Operation description
This operation applies to database-permission, table-permission, and sensitive column-permission.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetPermApplyOrderDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderId |
integer |
Yes |
The ticket ID. You can call the ListOrders operation to query the ticket ID. |
73**** |
| Tid |
integer |
No |
The tenant ID. Note
To view the tenant ID, hover over the profile picture in the upper-right corner of the DMS console. View information about the current tenant. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
A4C4499E-5AC2-4318-9FCF-03E426781A04 |
| Success |
boolean |
Whether the request succeeded. Valid values:
|
true |
| ErrorMessage |
string |
The error message if the request failed. |
UnknownError |
| ErrorCode |
string |
The error code if the request failed. |
UnknownError |
| PermApplyOrderDetail |
object |
The permission application ticket details. |
|
| Resources |
array<object> |
The list of resources. |
|
|
array<object> |
Resource details. |
||
| DatabaseInfo |
object |
Database details. |
|
| DbId |
integer |
The database ID. |
12345 |
| Logic |
boolean |
Whether the database is logical. Valid values:
|
false |
| DbType |
string |
The database engine type. |
MySQL |
| SearchName |
string |
The search name of the database. |
test@xxxx:3306[test] |
| OwnerIds |
array |
The database owner IDs. |
|
|
integer |
The database owner ID. |
12345 |
|
| OwnerNickNames |
array |
The database owner nicknames. |
|
|
string |
The database owner nickname. |
test_user |
|
| EnvType |
string |
The environment type of the instance. Change the environment type of an instance. |
product |
| TableInfo |
object |
Table details. |
|
| TableName |
string |
The name of the table. |
test_tb |
| ColumnInfo |
object |
Column details. |
|
| TableName |
string |
The name of the table. |
test_tb |
| ColumnName |
string |
The name of the column. |
test_col |
| InstanceInfo |
object |
Instance details. |
|
| InstanceId |
string |
The ID of the instance. |
12345 |
| SearchName |
string |
The search name of the instance. |
xxxx:3306 |
| DbType |
string |
The database engine type. |
MySQL |
| EnvType |
string |
The environment type of the instance. Change the environment type of an instance. |
product |
| Host |
string |
The endpoint of the instance. |
xxxx |
| Port |
integer |
The connection port of the instance. |
3306 |
| OwnerIds |
array |
The instance owner IDs. |
|
|
integer |
The instance owner ID. |
12345 |
|
| OwnerNickName |
array |
The instance owner nicknames. |
|
|
string |
The instance owner nickname. |
test_owner |
|
| DbaId |
integer |
The DBA ID of the instance. |
123**** |
| DbaNickName |
string |
The DBA nickname of the instance. |
test_dba |
| RowInfo |
object |
Row-level permission details. |
|
| DbId |
integer |
The database ID. Databases are physical or logical:
|
69256456 |
| Logic |
boolean |
Whether the database is logical. Valid values:
|
false |
| SchemaName |
string |
Database name. |
testdb003 |
| TableName |
string |
Table name. |
ods_qr_dms_vehicleorder_df |
| ColumnName |
string |
Field name. |
xrxs_xid |
| MatchMode |
string |
Matching mode. Valid values:
|
EQ |
| RowGroupId |
integer |
Row control group ID. |
123434 |
| RowValueInfo |
object |
Row value details. |
|
| RowValue |
string |
Row value. |
test_value |
| PermType |
integer |
The permission type. Valid values:
|
7 |
| Seconds |
integer |
The permission validity duration, in seconds. |
3600 |
| ApplyType |
string |
The object type for the permission application. Valid values:
|
DB |
Examples
Success response
JSON format
{
"RequestId": "A4C4499E-5AC2-4318-9FCF-03E426781A04",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"PermApplyOrderDetail": {
"Resources": [
{
"DatabaseInfo": {
"DbId": 12345,
"Logic": false,
"DbType": "MySQL",
"SearchName": "test@xxxx:3306[test]",
"OwnerIds": [
12345
],
"OwnerNickNames": [
"test_user"
],
"EnvType": "product"
},
"TableInfo": {
"TableName": "test_tb"
},
"ColumnInfo": {
"TableName": "test_tb",
"ColumnName": "test_col"
},
"InstanceInfo": {
"InstanceId": "12345",
"SearchName": "xxxx:3306",
"DbType": "MySQL",
"EnvType": "product",
"Host": "xxxx",
"Port": 3306,
"OwnerIds": [
12345
],
"OwnerNickName": [
"test_owner"
],
"DbaId": 0,
"DbaNickName": "test_dba"
},
"RowInfo": {
"DbId": 69256456,
"Logic": false,
"SchemaName": "testdb003",
"TableName": "ods_qr_dms_vehicleorder_df",
"ColumnName": "xrxs_xid",
"MatchMode": "EQ",
"RowGroupId": 123434
},
"RowValueInfo": {
"RowValue": "test_value"
}
}
],
"PermType": 7,
"Seconds": 3600,
"ApplyType": "DB"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.