ListTenantObjectBindingsByAsync
Queries resources bound to a project, or projects bound to a tenant resource. The server reads association details in parallel and returns the current page of results in a single call.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListTenantObjectBindings |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tenants/objectBindingsByAsync HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The MaxCompute tenant ID. If omitted, the tenant in the call context is used. |
123456 |
| regionId |
string |
No |
The MaxCompute region ID where the resource resides. If omitted, the region in the call context is used. |
cn-hangzhou |
| key |
string |
Yes |
The query dimension. A value of project indicates that resources bound to a specified project are queried. A value of tenant indicates that projects bound to a specified resource are queried. |
tenant |
| name |
string |
Yes |
The name of the bound object. If key is project, specify the project name. If key is tenant, specify the tenant resource name. |
example_quota |
| type |
string |
Yes |
The type of the resource to attach. Common valid values include QUOTA (quota), NETWORKLINK (network connectivity), SERVER (external data source), and IMAGE (image). |
QUOTA |
| marker |
string |
No |
The pagination cursor. This parameter can be omitted for the first query. To query the next page, pass the marker returned from the previous page. |
next-page-token |
| maxItem |
integer |
No |
The maximum number of records to query per page. Default value: 10. If a value greater than 10 is specified, it is processed as 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response, including the request status and binding query results. |
||
| requestId |
string |
The request ID, which can be used to locate server-side call logs. |
EFAB5AA9-394A-5B28-81FB-A32F03C4DD13 |
| httpCode |
integer |
The HTTP status code. |
400 |
| errorCode |
string |
The error code returned when the call fails. |
InvalidParameter |
| errorMsg |
string |
The error message returned when the call fails. |
The specified parameter is invalid. |
| data |
object |
The binding query results and pagination information. |
|
| values |
array<object> |
The list of bindings on the current page. |
|
|
array<object> |
A single binding relationship between a project and a tenant resource. |
||
| project |
string |
The name of the MaxCompute project bound to the resource. |
example_project |
| name |
string |
The name of the tenant resource bound to the project. |
example_quota |
| type |
string |
The type of the returned object. The specific meaning depends on the query dimension. When projects are queried by resource, the project type is returned. |
MANAGED |
| status |
string |
The current status of the bound project. A value of AVAILABLE indicates that the project is available. |
AVAILABLE |
| securityProperties |
object |
The security configurations of the bound project. This field may be returned when querying projects bound to a resource. |
|
| usingAcl |
boolean |
Indicates whether ACL authorization is enabled. A value of true indicates that it is enabled, and a value of false indicates that it is disabled. |
true |
| usingPolicy |
boolean |
Indicates whether policy authorization is enabled. A value of true indicates that it is enabled, and a value of false indicates that it is disabled. |
true |
| objectCreatorHasAccessPermission |
boolean |
Indicates whether the object creator has access permissions for the objects they create. |
true |
| objectCreatorHasGrantPermission |
boolean |
Indicates whether the object creator has grant permissions for the objects they create. |
true |
| labelSecurity |
boolean |
Indicates whether label-based access control is enabled. |
false |
| enableDownloadPrivilege |
boolean |
Indicates whether download permission control is enabled. |
true |
| projectProtection |
object |
The project protection configurations and exception policies. |
|
| exceptionPolicy |
string |
The exception policy for project protection, represented as a JSON string. |
{"Version":"1","Statement":[]} |
| protected |
boolean |
Indicates whether project protection is enabled. |
true |
| enableTenantResourceAccessControl |
boolean |
Indicates whether tenant resource access control is enabled. |
true |
| enableRAMResourceAccessControl |
boolean |
Indicates whether RAM resource-level access control is enabled. |
true |
| marker |
string |
The pagination cursor for the next page. This field is empty when no subsequent records exist. |
next-page-token |
| maxItem |
integer |
The actual number of bindings returned on the current page. |
1 |
Examples
Success response
JSON format
{
"requestId": "EFAB5AA9-394A-5B28-81FB-A32F03C4DD13",
"httpCode": 400,
"errorCode": "InvalidParameter",
"errorMsg": "The specified parameter is invalid.",
"data": {
"values": [
{
"project": "example_project",
"name": "example_quota",
"type": "MANAGED",
"status": "AVAILABLE",
"securityProperties": {
"usingAcl": true,
"usingPolicy": true,
"objectCreatorHasAccessPermission": true,
"objectCreatorHasGrantPermission": true,
"labelSecurity": false,
"enableDownloadPrivilege": true,
"projectProtection": {
"exceptionPolicy": "{\"Version\":\"1\",\"Statement\":[]}",
"protected": true
},
"enableTenantResourceAccessControl": true,
"enableRAMResourceAccessControl": true
}
}
],
"marker": "next-page-token",
"maxItem": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.