资源:搜索
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
搜索用户的 Looker Studio 资源。
请求
HTTP 请求
GET https://datastudio.googleapis.com/v1/assets:search
参数
参数名称 |
类型 |
说明 |
assetTypes |
数组<AssetType> |
必需。要搜索的资产类型。必须指定一个素材资源类型。 |
title |
字符串 |
资源的标题。 |
includeTrashed |
布尔值 |
默认值为 false 。
- 如果将此参数设置为
true ,则仅包含回收站中的资源。 - 将此参数设置为
false 时,系统只会包含不在回收站中的资源。
|
所有者 |
字符串 |
资源所有者的电子邮件地址。 |
orderBy |
字符串 |
结果的顺序。您可以按以下字段进行排序:
title
last_viewed_by_me
create_time
last_accessed_time
id
|
pageSize |
数值 |
每页包含的结果数。默认值为 1000。 |
pageToken |
字符串 |
标识要返回的结果页面的令牌。如需分页显示结果,请使用其他请求中的 nextPageToken 值或 previousPageToken 值。 |
授权
此请求需要获得以下至少一个范围的授权:
范围 |
https://www.googleapis.com/auth/datastudio.readonly |
https://www.googleapis.com/auth/datastudio |
请求正文
使用此方法时请勿提供请求正文。
响应
如果成功,此方法将返回采用以下结构的响应正文:
{
"assets": [Asset],
"nextPageToken": string
}
属性名称 |
类型 |
说明 |
素材资源 |
数组<资源> |
资源列表。 |
nextPageToken |
字符串 |
用于检索下一页结果的令牌。只有当结果数量大于请求 pageSize 时,此属性才会出现。如果 nextPageToken 为空,则表示没有更多结果需返回。 |
previousPageToken |
字符串 |
用于检索上一页结果的令牌。空的 previousPageToken 表示结果集的开头。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-16。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-06-16。"],[[["Search for specific Looker Studio assets using parameters like asset type, title, owner, and more."],["Filter search results to include or exclude trashed assets."],["Order results by title and control the number of results per page using pagination."],["Requires authorization with specific scopes for data access."],["The API response includes a list of matching assets and a token for retrieving subsequent pages."]]],[]]