Create groupPolicyUploadedDefinitionFile
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Create a new groupPolicyUploadedDefinitionFile object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | DeviceManagementConfiguration.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
POST /deviceManagement/groupPolicyUploadedDefinitionFiles
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Accept | application/json |
Request body
In the request body, supply a JSON representation for the groupPolicyUploadedDefinitionFile object.
The following table shows the properties that are required when you create the groupPolicyUploadedDefinitionFile.
Property | Type | Description |
---|---|---|
displayName | String | The localized friendly name of the ADMX file. Inherited from groupPolicyDefinitionFile |
description | String | The localized description of the policy settings in the ADMX file. The default value is empty. Inherited from groupPolicyDefinitionFile |
languageCodes | String collection | The supported language codes for the ADMX file. Inherited from groupPolicyDefinitionFile |
targetPrefix | String | Specifies the logical name that refers to the namespace within the ADMX file. Inherited from groupPolicyDefinitionFile |
targetNamespace | String | Specifies the URI used to identify the namespace within the ADMX file. Inherited from groupPolicyDefinitionFile |
policyType | groupPolicyType | Specifies the type of group policy. Inherited from groupPolicyDefinitionFile. Possible values are: admxBacked , admxIngested . |
revision | String | The revision version associated with the file. Inherited from groupPolicyDefinitionFile |
fileName | String | The file name of the ADMX file without the path. For example: edge.admx Inherited from groupPolicyDefinitionFile |
id | String | Key of the entity. Inherited from groupPolicyDefinitionFile |
lastModifiedDateTime | DateTimeOffset | The date and time the entity was last modified. Inherited from groupPolicyDefinitionFile |
status | groupPolicyUploadedDefinitionFileStatus | The upload status of the uploaded ADMX file. Possible values are: none , uploadInProgress , available , assigned , removalInProgress , uploadFailed , removalFailed . |
content | Binary | The contents of the uploaded ADMX file. |
uploadDateTime | DateTimeOffset | The uploaded time of the uploaded ADMX file. |
defaultLanguageCode | String | The default language of the uploaded ADMX file. |
groupPolicyUploadedLanguageFiles | groupPolicyUploadedLanguageFile collection | The list of ADML files associated with the uploaded ADMX file. |
Response
If successful, this method returns a 201 Created
response code and a groupPolicyUploadedDefinitionFile object in the response body.
Example
Request
Here is an example of the request.
POST https://graph.microsoft.com/beta/deviceManagement/groupPolicyUploadedDefinitionFiles
Content-type: application/json
Content-length: 922
{
"@odata.type": "#microsoft.graph.groupPolicyUploadedDefinitionFile",
"displayName": "Display Name value",
"description": "Description value",
"languageCodes": [
"Language Codes value"
],
"targetPrefix": "Target Prefix value",
"targetNamespace": "Target Namespace value",
"policyType": "admxIngested",
"revision": "Revision value",
"fileName": "File Name value",
"status": "uploadInProgress",
"content": "Y29udGVudA==",
"uploadDateTime": "2016-12-31T23:58:46.5747426-08:00",
"defaultLanguageCode": "Default Language Code value",
"groupPolicyUploadedLanguageFiles": [
{
"@odata.type": "microsoft.graph.groupPolicyUploadedLanguageFile",
"fileName": "File Name value",
"languageCode": "Language Code value",
"content": "Y29udGVudA==",
"id": "Id value",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00"
}
]
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1035
{
"@odata.type": "#microsoft.graph.groupPolicyUploadedDefinitionFile",
"displayName": "Display Name value",
"description": "Description value",
"languageCodes": [
"Language Codes value"
],
"targetPrefix": "Target Prefix value",
"targetNamespace": "Target Namespace value",
"policyType": "admxIngested",
"revision": "Revision value",
"fileName": "File Name value",
"id": "0ce1a8cf-a8cf-0ce1-cfa8-e10ccfa8e10c",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"status": "uploadInProgress",
"content": "Y29udGVudA==",
"uploadDateTime": "2016-12-31T23:58:46.5747426-08:00",
"defaultLanguageCode": "Default Language Code value",
"groupPolicyUploadedLanguageFiles": [
{
"@odata.type": "microsoft.graph.groupPolicyUploadedLanguageFile",
"fileName": "File Name value",
"languageCode": "Language Code value",
"content": "Y29udGVudA==",
"id": "Id value",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00"
}
]
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for