gws-admin
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseadmin (directory_v1)
admin (directory_v1)
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
bash
gws admin <resource> <method> [flags]前置要求: 请阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md生成它。gws generate-skills
bash
gws admin <resource> <method> [flags]API Resources
API资源
asps
asps
- — Deletes an ASP issued by a user.
delete- — Gets information about an ASP issued by a user.
get - — Lists the ASPs issued by a user.
list
- — 删除用户签发的ASP。
delete- — 获取用户签发的ASP相关信息。
get - — 列出用户签发的所有ASP。
list
channels
channels
- — Stops watching resources through this channel.
stop
- — 停止通过该通道监控资源。
stop
chromeosdevices
chromeosdevices
- — Use BatchChangeChromeOsDeviceStatus instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. Warning: * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled.
action- — Retrieves a Chrome OS device's properties.
get - — Retrieves a paginated list of Chrome OS devices within an account.
list - — Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.
moveDevicesToOu - — Updates a device's updatable properties, such as
patch,annotatedUser,annotatedLocation,notes, ororgUnitPath. This method supports patch semantics.annotatedAssetId - — Updates a device's updatable properties, such as
update,annotatedUser,annotatedLocation,notes, ororgUnitPath.annotatedAssetId
- — 请改用BatchChangeChromeOsDeviceStatus。执行影响Chrome OS设备的操作,包括取消配置、禁用和重新启用设备。警告: 取消设备配置将停止设备策略同步并移除设备级打印机。设备取消配置后,必须先擦除才能重新注册。
action- — 获取Chrome OS设备的属性信息。
get - — 获取账号内Chrome OS设备的分页列表。
list - — 将多台Chrome OS设备移动或添加到组织单元,单次最多可移动50台设备。
moveDevicesToOu - — 更新设备的可修改属性,例如
patch、annotatedUser、annotatedLocation、notes或orgUnitPath。该方法支持补丁语义。annotatedAssetId - — 更新设备的可修改属性,例如
update、annotatedUser、annotatedLocation、notes或orgUnitPath。annotatedAssetId
customer
customer
- — Operations on the 'devices' resource
devices
- — 对'devices'资源的操作
devices
customers
customers
- — Retrieves a customer.
get- — Patches a customer.
patch - — Updates a customer.
update - — Operations on the 'chrome' resource
chrome
- — 获取客户信息。
get- — 补丁更新客户信息。
patch - — 更新客户信息。
update - — 对'chrome'资源的操作
chrome
domainAliases
domainAliases
- — Deletes a domain Alias of the customer.
delete- — Retrieves a domain alias of the customer.
get - — Inserts a domain alias of the customer.
insert - — Lists the domain aliases of the customer.
list
- — 删除客户的域名别名。
delete- — 获取客户的域名别名信息。
get - — 添加客户的域名别名。
insert - — 列出客户的所有域名别名。
list
domains
domains
- — Deletes a domain of the customer.
delete- — Retrieves a domain of the customer.
get - — Inserts a domain of the customer.
insert - — Lists the domains of the customer.
list
- — 删除客户的域名。
delete- — 获取客户的域名信息。
get - — 添加客户的域名。
insert - — 列出客户的所有域名。
list
groups
groups
- — Deletes a group.
delete- — Retrieves a group's properties.
get - — Creates a group.
insert - — Retrieves all groups of a domain or of a user given a userKey (paginated).
list - — Updates a group's properties. This method supports patch semantics.
patch - — Updates a group's properties.
update - — Operations on the 'aliases' resource
aliases
- — 删除群组。
delete- — 获取群组的属性信息。
get - — 创建群组。
insert - — 获取某个域名或某个用户(通过userKey指定)的所有群组分页列表。
list - — 更新群组的属性信息。该方法支持补丁语义。
patch - — 更新群组的属性信息。
update - — 对'aliases'资源的操作
aliases
members
members
- — Removes a member from a group.
delete- — Retrieves a group member's properties.
get - — Checks whether the given user is a member of the group. Membership can be direct or nested, but if nested, the
hasMemberandmemberKeymust be entities in the same domain or angroupKeyerror is returned. To check for nested memberships that include entities outside of the group's domain, use theInvalid inputmethod in the Cloud Identity Groups API.checkTransitiveMembership() - — Adds a user to the specified group.
insert - — Retrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see Troubleshoot error codes.
list - — Updates the membership properties of a user in the specified group. This method supports patch semantics.
patch - — Updates the membership of a user in the specified group.
update
- — 将成员从群组中移除。
delete- — 获取群组成员的属性信息。
get - — 检查指定用户是否为群组成员,成员关系可以是直接或嵌套的,但如果是嵌套关系,
hasMember和memberKey必须属于同一域名,否则会返回“Invalid input”错误。要检查包含群组域名外实体的嵌套成员关系,请使用Cloud Identity Groups API中的groupKey方法。checkTransitiveMembership() - — 将用户添加到指定群组。
insert - — 获取群组内所有成员的分页列表。该方法会在60分钟后超时,更多信息请参见错误代码排查。
list - — 更新指定群组内用户的成员属性。该方法支持补丁语义。
patch - — 更新指定群组内用户的成员关系。
update
mobiledevices
mobiledevices
- — Takes an action that affects a mobile device. For example, remotely wiping a device.
action- — Removes a mobile device.
delete - — Retrieves a mobile device's properties.
get - — Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity Devices API instead. This method times out after 60 minutes. For more information, see Troubleshoot error codes.
list
orgunits
orgunits
- — Removes an organizational unit.
delete- — Retrieves an organizational unit.
get - — Adds an organizational unit.
insert - — Retrieves a list of all organizational units for an account.
list - — Updates an organizational unit. This method supports patch semantics
patch - — Updates an organizational unit.
update
- — 移除组织单元。
delete- — 获取组织单元信息。
get - — 添加组织单元。
insert - — 获取账号内所有组织单元的列表。
list - — 更新组织单元信息。该方法支持补丁语义
patch - — 更新组织单元信息。
update
privileges
privileges
- — Retrieves a paginated list of all privileges for a customer.
list
- — 获取客户所有权限的分页列表。
list
resources
resources
- — Operations on the 'buildings' resource
buildings- — Operations on the 'calendars' resource
calendars - — Operations on the 'features' resource
features
- — 对'buildings'资源的操作
buildings- — 对'calendars'资源的操作
calendars - — 对'features'资源的操作
features
roleAssignments
roleAssignments
- — Deletes a role assignment.
delete- — Retrieves a role assignment.
get - — Creates a role assignment.
insert - — Retrieves a paginated list of all roleAssignments.
list
- — 删除角色分配。
delete- — 获取角色分配信息。
get - — 创建角色分配。
insert - — 获取所有角色分配的分页列表。
list
roles
roles
- — Deletes a role.
delete- — Retrieves a role.
get - — Creates a role.
insert - — Retrieves a paginated list of all the roles in a domain.
list - — Patches a role.
patch - — Updates a role.
update
- — 删除角色。
delete- — 获取角色信息。
get - — 创建角色。
insert - — 获取域名内所有角色的分页列表。
list - — 补丁更新角色信息。
patch - — 更新角色信息。
update
schemas
schemas
- — Deletes a schema.
delete- — Retrieves a schema.
get - — Creates a schema.
insert - — Retrieves all schemas for a customer.
list - — Patches a schema.
patch - — Updates a schema.
update
- — 删除架构。
delete- — 获取架构信息。
get - — 创建架构。
insert - — 获取客户的所有架构。
list - — 补丁更新架构信息。
patch - — 更新架构信息。
update
tokens
tokens
- — Deletes all access tokens issued by a user for an application.
delete- — Gets information about an access token issued by a user.
get - — Returns the set of tokens specified user has issued to 3rd party applications.
list
- — 删除用户为某应用签发的所有访问令牌。
delete- — 获取用户签发的访问令牌信息。
get - — 返回指定用户向第三方应用签发的所有令牌集合。
list
twoStepVerification
twoStepVerification
- — Turns off 2-Step Verification for user.
turnOff
- — 关闭用户的两步验证。
turnOff
users
users
- — Create a guest user with access to a subset of Workspace capabilities. This feature is currently in Alpha. Please reach out to support if you are interested in trying this feature.
createGuest- — Deletes a user.
delete - — Retrieves a user.
get - — Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the "User creation is not complete" message to see if this is the case. Retrying the calls after some time can help in this case. If
insertis set toresolveConflictAccount, atrueresponse code means that a conflicting unmanaged account exists and was invited to join the organization.202 - — Retrieves a paginated list of either deleted users or all users in a domain.
list - — Makes a user a super administrator.
makeAdmin - — Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external identity to a Google identity, use the
patchmethod instead of theupdatemethod. This method is unable to clear fields that contain repeated objects (patch,addresses, etc). Use the update method instead.phones - — Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.
signOut - — Undeletes a deleted user.
undelete - — Updates a user. This method supports patch semantics, meaning that you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to
updatewill be cleared. For repeating fields that contain arrays, individual items in the array can't be patched piecemeal; they must be supplied in the request body with the desired values for all items.null - — Watches for changes in users list.
watch - — Operations on the 'aliases' resource
aliases - — Operations on the 'photos' resource
photos
- — 创建访客用户,可访问部分Workspace功能。该功能目前处于Alpha测试阶段。如果您有兴趣试用,请联系支持人员。
createGuest- — 删除用户。
delete - — 获取用户信息。
get - — 创建用户。用户创建后立即执行的修改调用有时可能会失败,这是因为后端传播延迟导致用户尚未完全创建。如果错误详情中包含“User creation is not complete”消息,则属于这种情况。等待一段时间后重试调用即可解决。如果
insert设置为resolveConflictAccount,返回true状态码表示存在冲突的非托管账号,且已邀请该账号加入组织。202 - — 获取已删除用户或域名内所有用户的分页列表。
list - — 将用户设为超级管理员。
makeAdmin - — 使用补丁语义更新用户信息。建议改用update方法,因为它也支持补丁语义且性能更好。如果您要将外部身份映射到Google身份,请使用
patch方法而非update方法。该方法无法清除包含重复对象的字段(如patch、addresses等),请改用update方法。phones - — 让用户退出所有网页和设备会话,并重置其登录Cookie。用户需要重新认证才能登录。
signOut - — 恢复已删除的用户。
undelete - — 更新用户信息。该方法支持补丁语义,即您只需包含想要更新的字段。请求中未包含的字段将保留原值,设置为
update的字段将被清除。对于包含数组的重复字段,无法单独修补数组中的单个项;必须在请求正文中提供所有项的所需值。null - — 监控用户列表的变化。
watch - — 对'aliases'资源的操作
aliases - — 对'photos'资源的操作
photos
verificationCodes
verificationCodes
- — Generates new backup verification codes for the user.
generate- — Invalidates the current backup verification codes for the user.
invalidate - — Returns the current set of valid backup verification codes for the specified user.
list
- — 为用户生成新的备份验证码。
generate- — 作废用户当前的备份验证码。
invalidate - — 返回指定用户当前有效的所有备份验证码集合。
list
Discovering Commands
命令探索
Before calling any API method, inspect it:
bash
undefined调用任何API方法前,请先查看其详情:
bash
undefinedBrowse resources and methods
浏览资源和方法
gws admin --help
gws admin --help
Inspect a method's required params, types, and defaults
查看方法的必填参数、类型和默认值
gws schema admin.<resource>.<method>
Use `gws schema` output to build your `--params` and `--json` flags.gws schema admin.<resource>.<method>
使用`gws schema`的输出来构建您的`--params`和`--json`标志。