android - Updating profiles of android management API
问题描述
I have managed to create an enterprise, policy and setup a device using the 'Android Management API - Quickstart' document.
1) But I am having trouble moving forward. I want to be able to change the policy and not sure how to go about it. Is there a setup need to be done to send the policy update request?
2) I tried to get the policy from the browser using
https://androidmanagement.googleapis.com/v1/enterprises/*/policies/*
which is from the References page of Android Management API https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
and the response that is
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
Any help will be appreciated
解决方案
您可以直接从“创建策略”部分的快速入门指南更新策略,创建和更新策略的方法相同。
推荐阅读
- sql-server - 在“-”之前按字符串分组/基于多行创建新列
- javascript - JavaScript 在实际定义时返回 undefined
- amazon-web-services - 使用“jhipster aws”部署 jhipster 应用程序时连接到 EC2 实例
- c++ - 将任意大小的大 Base-10 数读入位集中
- python - pandas groupby 使用字典值,应用 sum
- c# - 在 ASP.NET Core 2.1 中使用基于策略的授权检查其他权限
- android - 带有滚动视图的片段大小
- postscript - ghostscript hp8600 OfficeJet Pro
- vba - 将列转换为单列
- python - 在python中获取1到100万之间随机数的最快方法