Method: enterprises.enrollmentTokens.get
HTTP 请求
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/enrollmentTokens/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。注册令牌的名称,格式为 enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId} 。
|
响应正文
如果成功,则响应正文包含一个 EnrollmentToken
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidmanagement
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[null,null,["最后更新时间 (UTC):2025-01-30。"],[[["Retrieves an active enrollment token with specific fields populated for management purposes."],["Uses a `GET` request with the enrollment token's name specified in the URL path."],["Requires an empty request body and returns an `EnrollmentToken` object on success."],["Needs the `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization."],["Recommends deleting active enrollment tokens when they are no longer needed for security."]]],["This describes retrieving an active, unexpired enrollment token via a `GET` HTTP request to a specified URL. The request requires a `name` parameter in the URL, formatted as `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}`, and an empty request body. The successful response provides a partial view of the `EnrollmentToken`, including fields like `name`, `expirationTimestamp`, and `value`. It needs OAuth scope `https://www.googleapis.com/auth/androidmanagement` and suggests deleting tokens after use.\n"]]