创建组策略定义值

发布于 2025-01-17 06:11:21 字数 1845 浏览 4 评论 0原文

我想基于此 文档

但这不起作用:

https://graph.microsoft。 com/beta/deviceManagement/groupPolicyConfigurations/{groupPolicyConfigurationID}/definitionValues

{
    "@odata.type": "#microsoft.graph.groupPolicyDefinitionValue",
    "enabled": true,
    "configurationType": "policy",
    "[email protected]": "https://graph.microsoft.com/beta/deviceManagement/groupPolicyDefinitions('{groupPolicyDefinitionID}')"
}

有谁知道我如何创建一个定义值?

编辑: 这就是我得到的错误:

{
    "error": {
        "code": "ResourceNotFound",
        "message": "{  \"_version\": 3,  \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: dae9a903-29fe-6dd7-bb27-e02f375f816a - Url: https://fef.msub06.manage.microsoft.com/GroupPolicy/GroupPolicyAdminService/b15c97ad-ffff-4805-0302-032414203983/deviceManagement/groupPolicyConfigurations%28%276c39baa2-f47a-4d9f-a7cb-327ea6b60fc0%27%29/definitionValues?api-version=5018-11-06\",  \"CustomApiErrorPhrase\": \"\",  \"RetryAfter\": null,  \"ErrorSourceService\": \"\",  \"HttpHeaders\": \"{}\"}",
        "innerError": {
            "date": "2022-03-28T08:26:26",
            "request-id": "0a9df5c8-ec3f-42e3-be57-0db8d193672a",
            "client-request-id": "dae9a903-29fe-6dd7-bb27-e02f375f816a"
        }
    }
}

I want to Create a DefinitionValue based on this documentation.

But this doesn't work:

https://graph.microsoft.com/beta/deviceManagement/groupPolicyConfigurations/{groupPolicyConfigurationID}/definitionValues

{
    "@odata.type": "#microsoft.graph.groupPolicyDefinitionValue",
    "enabled": true,
    "configurationType": "policy",
    "[email protected]": "https://graph.microsoft.com/beta/deviceManagement/groupPolicyDefinitions('{groupPolicyDefinitionID}')"
}

Does anyone know, how I'm able to create a Definition Value?

Edit:
Thats the Error I get:

{
    "error": {
        "code": "ResourceNotFound",
        "message": "{  \"_version\": 3,  \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: dae9a903-29fe-6dd7-bb27-e02f375f816a - Url: https://fef.msub06.manage.microsoft.com/GroupPolicy/GroupPolicyAdminService/b15c97ad-ffff-4805-0302-032414203983/deviceManagement/groupPolicyConfigurations%28%276c39baa2-f47a-4d9f-a7cb-327ea6b60fc0%27%29/definitionValues?api-version=5018-11-06\",  \"CustomApiErrorPhrase\": \"\",  \"RetryAfter\": null,  \"ErrorSourceService\": \"\",  \"HttpHeaders\": \"{}\"}",
        "innerError": {
            "date": "2022-03-28T08:26:26",
            "request-id": "0a9df5c8-ec3f-42e3-be57-0db8d193672a",
            "client-request-id": "dae9a903-29fe-6dd7-bb27-e02f375f816a"
        }
    }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文