Method: projects.sites.list
bookmark_borderbookmark
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
列出与指定的父级 Firebase 项目关联的每个 Hosting Site
。
HTTP 请求
GET https://firebasehosting.googleapis.com/v1beta1/{parent=projects/*}/sites
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。要为其列出网站的 Firebase 项目,格式为:
projects/PROJECT_IDENTIFIER
请参阅 Site name 字段,详细了解 PROJECT_IDENTIFIER 值。
必须对指定的资源 parent 具有以下 IAM 权限才能进行授权:
firebasehosting.sites.list
|
查询参数
参数 |
pageToken |
string
可选。上一次调用 sites.list 得到的令牌,告知服务器在哪里恢复列表。
|
pageSize |
integer
可选。要返回的网站数量上限。 如果现有网站数少于此上限,服务可能会返回较小的数值。 如果未指定,则默认为 40。
|
响应正文
JSON 表示法 |
{
"sites": [
{
object (Site )
}
],
"nextPageToken": string
} |
字段 |
sites[] |
object (Site )
与指定 Firebase 项目关联的 Site 对象的列表。
|
nextPageToken |
string
除了此响应中的结果之外,还有更多结果存在时提供分页令牌。 在下次调用 sites.list 时添加此令牌。页面令牌在短期内有效,不应进行存储。
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/firebase.hosting.readonly
https://www.googleapis.com/auth/firebase.hosting
https://www.googleapis.com/auth/firebase.readonly
https://www.googleapis.com/auth/firebase
https://www.googleapis.com/auth/cloud-platform.read-only
https://www.googleapis.com/auth/cloud-platform
如需了解详情,请参阅身份验证概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-23。
[[["易于理解","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):2024-08-23。"],[],[]]