Mastodon
  • 什么是 Mastodon?
  • 使用 Mastodon
    • 注册帐户
    • 设置你的个人资料
    • 在你的账户发布内容
    • 使用网络功能
    • 处理不想看到的内容
    • 推广你和他人
    • 进行偏好设置
    • 更多设置
    • 在站点外使用 Mastodon
    • 迁移或离开账户
    • 运行你自己的站点
  • 运营 Mastodon
    • 准备你的服务器
    • 从源代码安装
    • 配置你的环境
    • 安装可选功能
      • 对象存储
      • 洋葱服务
      • 验证码
      • 单点登录
    • 配置全文搜索
    • 设置你的新实例
    • 使用管理 CLI
    • 升级到新版本
    • 备份你的服务器
    • 迁移到新机器
    • 扩大你的站点规模
    • 审核操作
    • 故障排除
      • 数据库索引损坏
    • 用户组
  • 开发 Mastodon 应用
    • API 入门指南
    • 使用公开数据
    • 获取客户端应用访问权限
    • 使用帐户登录
    • 库与实现
  • 向 Mastodon 项目做贡献
    • 技术概览
    • 设置开发环境
    • 代码结构
    • 路由
    • 漏洞赏金与责任披露
  • 遵循的标准
    • ActivityPub
    • WebFinger
    • 安全性
    • Microformats
    • OAuth
    • Bearcaps
  • REST API
    • Datetime 格式
    • 指南与最佳实践
    • OAuth 令牌
    • OAuth 作用域
    • 速率限制
  • API 方法
    • apps
      • oauth
      • emails
    • accounts
      • bookmarks
      • favourites
      • mutes
      • blocks
      • domain_blocks
      • filters
      • reports
      • follow_requests
      • endorsements
      • featured_tags
      • preferences
      • followed_tags
      • suggestions
      • tags
    • profile
    • statuses
      • media
      • polls
      • scheduled_statuses
    • timelines
      • conversations
      • lists
      • markers
      • streaming
    • grouped notifications
    • notifications
      • push
    • search
    • instance
      • trends
      • directory
      • custom_emojis
      • announcements
    • admin
      • accounts
      • canonical_email_blocks
      • dimensions
      • domain_allows
      • domain_blocks
      • email_domain_blocks
      • ip_blocks
      • measures
      • reports
      • retention
      • trends
    • proofs
    • oembed
  • API 实体
    • Account
    • AccountWarning
    • Admin::Account
    • Admin::CanonicalEmailBlock
    • Admin::Cohort
    • Admin::Dimension
    • Admin::DomainAllow
    • Admin::DomainBlock
    • Admin::EmailDomainBlock
    • Admin::Ip
    • Admin::IpBlock
    • Admin::Measure
    • Admin::Report
    • Announcement
    • Appeal
    • Application
    • Context
    • Conversation
    • CustomEmoji
    • DomainBlock
    • Error
    • ExtendedDescription
    • FamiliarFollowers
    • FeaturedTag
    • Filter
    • FilterKeyword
    • FilterResult
    • FilterStatus
    • IdentityProof
    • Instance
    • List
    • Marker
    • MediaAttachment
    • Notification
    • NotificationPolicy
    • NotificationRequest
    • Poll
    • Preferences
    • PreviewCard
    • PreviewCardAuthor
    • PrivacyPolicy
    • Reaction
    • Relationship
    • RelationshipSeveranceEvent
    • Report
    • Role
    • Rule
    • ScheduledStatus
    • Search
    • Status
    • StatusEdit
    • StatusSource
    • Suggestion
    • Tag
    • TermsOfService
    • Token
    • Translation
    • V1::Filter
    • V1::Instance
    • V1::NotificationPolicy
    • WebPushSubscription

Admin::Account

给定账户在管理视图下的信息。

    • 示例
    • 属性
      • id
      • username
      • domain
      • created_at
      • email
      • ip
      • ips
      • locale
      • invite_request
      • role
      • confirmed
      • approved
      • disabled
      • silenced
      • suspended
      • account
      • created_by_application_id 可选
      • invited_by_account_id 可选
    • 另请参考

示例

{
  "id": "108965278956942133",
  "username": "admin",
  "domain": null,
  "created_at": "2022-09-08T23:03:26.762Z",
  "email": "admin@mastodon.local",
  "ip": "192.168.42.1",
  "role": {
    "id": 3,
    "name": "Owner",
    "color": "",
    "position": 1000,
    "permissions": 1,
    "highlighted": true,
    "created_at": "2022-09-08T22:48:07.983Z",
    "updated_at": "2022-09-08T22:48:07.983Z"
  },
  "confirmed": true,
  "suspended": false,
  "silenced": false,
  "disabled": false,
  "approved": true,
  "locale": null,
  "invite_request": null,
  "ips": [
    {
      "ip": "192.168.42.1",
      "used_at": "2022-09-15T01:38:58.851Z"
    }
  ],
  "account": {
    "id": "108965278956942133",
    "username": "admin",
    "acct": "admin",
    "display_name": "",
    "locked": false,
    "bot": false,
    "discoverable": null,
    "group": false,
    "created_at": "2022-09-08T00:00:00.000Z",
    "note": "",
    "url": "http://mastodon.local/@admin",
    "avatar": "http://mastodon.local/avatars/original/missing.png",
    "avatar_static": "http://mastodon.local/avatars/original/missing.png",
    "header": "http://mastodon.local/headers/original/missing.png",
    "header_static": "http://mastodon.local/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "last_status_at": null,
    "emojis": [],
    "fields": []
  }
}

属性

id

描述: 数据库中账户的 ID。
类型: 字符串(从整数转换而来,但不保证一定为数字)
版本历史:
2.9.1 - 添加

username

描述: 账户的用户名。
类型: 字符串
版本历史:
2.9.1 - 添加

domain

描述: 外站账户的域名。
类型: nullable 字符串,对本站账户为 null
版本历史:
2.9.1 - 添加

created_at

描述: 账户首次被发现的时间。
类型: (Datetime) 字符串
版本历史:
2.9.1 - 添加

email

描述: 与账户关联的电子邮件地址。
类型: 字符串
版本历史:
2.9.1 - 添加

ip

描述: 最后一次登录此账户使用的 IP 地址。
类型: nullable 字符串
版本历史:
2.9.1 - 添加
3.5.0 - 由于一个错误,返回类型从 String 更改为 Admin::Ip
4.0.0 - 错误已修复,返回类型现在再次为 String

ips

描述: 与此账户关联的所有已知 IP 地址。
类型: Admin::Ip 数组
版本历史:
3.5.0 - 添加

locale

描述: 账户的语言设置。
类型: 字符串(ISO 639 Part 1 双字符语言代码)
版本历史:
2.9.1 - 添加

invite_request

描述: 请求邀请时给出的理由(对于需要手动批准注册的实例)
类型: nullable 字符串
版本历史:
2.9.1 - 添加

role

描述: 账户的当前用户组。
类型: Role
版本历史:
2.9.1 - 添加,返回一个 String (可枚举,user moderator admin 其中之一)
4.0.0 - 现在使用 Role 实体

confirmed

描述: 账户是否已确认其电子邮件地址。
类型: 布尔值
版本历史:
2.9.1 - 添加

approved

描述: 账户当前是否已批准。
类型: 布尔值
版本历史:
2.9.1 - 添加

disabled

描述: 账户当前是否已被禁用。
类型: 布尔值
版本历史:
2.9.1 - 添加

silenced

描述: 账户当前是否已被隐藏。 类型: 布尔值
版本历史:
2.9.1 - 添加

suspended

描述: 账户当前是否已被封禁。
类型: 布尔值
版本历史:
2.9.1 - 添加

account

描述: 关于账户的用户级信息。
类型: Account
版本历史:
2.9.1 - 添加

created_by_application_id 可选

描述: 创建此帐户的 Application 的 ID(如果适用)。
类型: 字符串(从整数转换而来,但不保证一定为数字)
版本历史:
2.9.1 - 添加

invited_by_account_id 可选

描述: 邀请此用户的 Account 的 ID(如果适用)。
类型: 字符串(从整数转换而来,但不保证一定为数字)
版本历史:
2.9.1 - 添加

另请参考

admin/accounts API 方法
app/serializers/rest/admin/account_serializer.rb

翻译状态: 本文是英文页面 Admin::Account 的翻译,最后翻译时间:2025-04-21,点击这里可以查看翻译后页面的改动。

最后更新于 April 21, 2025 · 改进此页面
也可在此找到: English

赞助商

Dotcom-Monitor LoadView Stephen Tures Swayable SponsorMotion

加入Mastodon · 博客 ·

查看源代码 · CC BY-SA 4.0 · 版权信息