Method: debug.datasources.items.checkAccess
检查指定正文是否可以访问某项。正文必须是用户;群组和网域值不受支持。
注意:此 API 需要管理员帐号才能执行。
HTTP 请求
POST https://cloudsearch.googleapis.com/v1/debug/{name=datasources/*/items/*}:checkAccess
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
商品名称,格式:datasources/{source_id}/items/{itemId}
|
查询参数
参数 |
debugOptions |
object (DebugOptions )
常见的调试选项。
|
请求正文
请求正文包含一个 Principal
实例。
响应正文
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"hasAccess": boolean
} |
字段 |
hasAccess |
boolean
如果正文具有访问权限,则返回 true。否则,返回 false。
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud_search.debug
https://www.googleapis.com/auth/cloud_search
有关详情,请参阅 OAuth 2.0 概览。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]