IntuneResourceManagementClient
Microsoft
COMMUNITYNO AUTH0 INSTALLS
OpenAPI Specificationv3.0
{
"swagger": "2.0",
"schemes": [
"https"
],
"host": "management.azure.com",
"info": {
"description": "Microsoft.Intune Resource provider Api features in the swagger-2.0 specification",
"title": "IntuneResourceManagementClient",
"version": "2015-01-14-privatepreview",
"x-apisguru-categories": [
"cloud"
],
"x-logo": {
"url": "https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png"
},
"x-origin": [
{
"format": "swagger",
"url": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/intune/resource-manager/Microsoft.Intune/preview/2015-01-14-privatepreview/intune.json",
"version": "2.0"
}
],
"x-preferred": true,
"x-providerName": "azure.com",
"x-serviceName": "intune",
"x-tags": [
"Azure",
"Microsoft"
]
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": {
"ApiVersionParameter": {
"description": "Service Api Version.",
"in": "query",
"name": "api-version",
"required": true,
"type": "string"
}
},
"paths": {
"/providers/Microsoft.Intune/locations": {
"get": {
"description": "Returns location for user tenant.",
"operationId": "GetLocations",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "location response as a collection",
"schema": {
"$ref": "#/definitions/LocationCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/hostName": {
"get": {
"description": "Returns location for given tenant.",
"operationId": "GetLocationByHostName",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "single location response",
"schema": {
"$ref": "#/definitions/Location"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyName}/apps": {
"get": {
"description": "Get apps for an AndroidMAMPolicy.",
"operationId": "Android_GetAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/ApplicationCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": {
"get": {
"description": "Returns Intune Android policies.",
"operationId": "Android_GetMAMPolicies",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "android Policies response",
"schema": {
"$ref": "#/definitions/AndroidMAMPolicyCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}": {
"delete": {
"description": "Delete Android Policy",
"operationId": "Android_DeleteMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"get": {
"description": "Returns AndroidMAMPolicy with given name.",
"operationId": "Android_GetMAMPolicyByName",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "iOSMAMPolicy entity.",
"schema": {
"$ref": "#/definitions/AndroidMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"patch": {
"description": "Patch AndroidMAMPolicy.",
"operationId": "Android_PatchMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/AndroidMAMPolicy"
}
}
],
"responses": {
"200": {
"description": "android entity.",
"schema": {
"$ref": "#/definitions/AndroidMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Creates or updates AndroidMAMPolicy.",
"operationId": "Android_CreateOrUpdateMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/AndroidMAMPolicy"
}
}
],
"responses": {
"200": {
"description": "android entity.",
"schema": {
"$ref": "#/definitions/AndroidMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/apps/{appName}": {
"delete": {
"description": "Delete App for Android Policy",
"operationId": "Android_DeleteAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "appName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Add app to an AndroidMAMPolicy.",
"operationId": "Android_AddAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "appName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update app to an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload"
}
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups": {
"get": {
"description": "Returns groups for a given AndroidMAMPolicy.",
"operationId": "Android_GetGroupsForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "policy name for the tenant",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "groups as collection response",
"schema": {
"$ref": "#/definitions/GroupsCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups/{groupId}": {
"delete": {
"description": "Delete Group for Android Policy",
"operationId": "Android_DeleteGroupForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "groupId",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Add group to an AndroidMAMPolicy.",
"operationId": "Android_AddGroupForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "group Id",
"in": "path",
"name": "groupId",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update app to an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload"
}
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/apps": {
"get": {
"description": "Returns Intune Manageable apps.",
"operationId": "GetApps",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/ApplicationCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/flaggedUsers": {
"get": {
"description": "Returns Intune flagged user collection",
"operationId": "GetMAMFlaggedUsers",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Flagged users as collection response",
"schema": {
"$ref": "#/definitions/FlaggedUserCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/flaggedUsers/{userName}": {
"get": {
"description": "Returns Intune flagged user details",
"operationId": "GetMAMFlaggedUserByName",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Flagged userName",
"in": "path",
"name": "userName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Flagged user details in response",
"schema": {
"$ref": "#/definitions/FlaggedUser"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/flaggedUsers/{userName}/flaggedEnrolledApps": {
"get": {
"description": "Returns Intune flagged enrolled app collection for the User",
"operationId": "GetMAMUserFlaggedEnrolledApps",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "User name for the tenant",
"in": "path",
"name": "userName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Flagged enrolled Apps as collection response",
"schema": {
"$ref": "#/definitions/FlaggedEnrolledAppCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": {
"get": {
"description": "Returns Intune iOSPolicies.",
"operationId": "Ios_GetMAMPolicies",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/IOSMAMPolicyCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}": {
"delete": {
"description": "Delete Ios Policy",
"operationId": "Ios_DeleteMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"get": {
"description": "Returns Intune iOS policies.",
"operationId": "Ios_GetMAMPolicyByName",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "iOSMAMPolicy entity.",
"schema": {
"$ref": "#/definitions/iOSMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"patch": {
"description": " patch an iOSMAMPolicy.",
"operationId": "Ios_PatchMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/iOSMAMPolicy"
}
}
],
"responses": {
"200": {
"description": "iOSMAMPolicy entity.",
"schema": {
"$ref": "#/definitions/iOSMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Creates or updates iOSMAMPolicy.",
"operationId": "Ios_CreateOrUpdateMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/iOSMAMPolicy"
}
}
],
"responses": {
"200": {
"description": "iOSMAMPolicy entity.",
"schema": {
"$ref": "#/definitions/iOSMAMPolicy"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/apps": {
"get": {
"description": "Get apps for an iOSMAMPolicy.",
"operationId": "Ios_GetAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/ApplicationCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/apps/{appName}": {
"delete": {
"description": "Delete App for Ios Policy",
"operationId": "Ios_DeleteAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "appName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Add app to an iOSMAMPolicy.",
"operationId": "Ios_AddAppForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "appName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to add an app to an ios policy.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload"
}
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/groups": {
"get": {
"description": "Returns groups for a given iOSMAMPolicy.",
"operationId": "Ios_GetGroupsForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "policy name for the tenant",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "groups as collection response",
"schema": {
"$ref": "#/definitions/GroupsCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/groups/{groupId}": {
"delete": {
"description": "Delete Group for iOS Policy",
"operationId": "Ios_DeleteGroupForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "application unique Name",
"in": "path",
"name": "groupId",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"description": "Add group to an iOSMAMPolicy.",
"operationId": "Ios_AddGroupForMAMPolicy",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "Unique name for the policy",
"in": "path",
"name": "policyName",
"required": true,
"type": "string"
},
{
"description": "group Id",
"in": "path",
"name": "groupId",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "Parameters supplied to the Create or update app to an android policy operation.",
"in": "body",
"name": "parameters",
"required": true,
"schema": {
"$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload"
}
}
],
"responses": {
"200": {
"description": "No-Content."
},
"204": {
"description": "No-Content."
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/operationResults": {
"get": {
"description": "Returns operationResults.",
"operationId": "GetOperationResults",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/OperationResultCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/statuses/default": {
"get": {
"description": "Returns Intune Tenant level statuses.",
"operationId": "GetMAMStatuses",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "applications as collection response",
"schema": {
"$ref": "#/definitions/StatusesDefault"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices": {
"get": {
"description": "Get devices for a user.",
"operationId": "GetMAMUserDevices",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "user unique Name",
"in": "path",
"name": "userName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "The filter to apply on the operation.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string"
},
{
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "devices as collection response",
"schema": {
"$ref": "#/definitions/DeviceCollection"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextlink"
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices/{deviceName}": {
"get": {
"description": "Get a unique device for a user.",
"operationId": "GetMAMUserDeviceByDeviceName",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "unique user name",
"in": "path",
"name": "userName",
"required": true,
"type": "string"
},
{
"description": "device name",
"in": "path",
"name": "deviceName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"description": "select specific fields in entity.",
"in": "query",
"name": "$select",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Device entity.",
"schema": {
"$ref": "#/definitions/Device"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices/{deviceName}/wipe": {
"post": {
"description": "Wipe a device for a user.",
"operationId": "WipeMAMUserDevice",
"parameters": [
{
"description": "Location hostName for the tenant",
"in": "path",
"name": "hostName",
"required": true,
"type": "string"
},
{
"description": "unique user name",
"in": "path",
"name": "userName",
"required": true,
"type": "string"
},
{
"description": "device name",
"in": "path",
"name": "deviceName",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Wipe operation result.",
"schema": {
"$ref": "#/definitions/WipeDeviceOperationResult"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"definitions": {
"AndroidMAMPolicy": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Android Policy entity for Intune MAM.",
"properties": {
"properties": {
"$ref": "#/definitions/AndroidMAMPolicyProperties",
"x-ms-client-flatten": true
}
}
},
"AndroidMAMPolicyCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/AndroidMAMPolicy"
},
"type": "array"
}
},
"required": [
"value"
]
},
"AndroidMAMPolicyProperties": {
"allOf": [
{
"$ref": "#/definitions/MAMPolicyProperties"
}
],
"description": "Intune MAM iOS Policy Properties.",
"properties": {
"fileEncryption": {
"default": "required",
"enum": [
"required",
"notRequired"
],
"type": "string"
},
"screenCapture": {
"default": "allow",
"enum": [
"allow",
"block"
],
"type": "string"
}
}
},
"Application": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Application entity for Intune MAM.",
"properties": {
"properties": {
"$ref": "#/definitions/ApplicationProperties",
"x-ms-client-flatten": true
}
}
},
"ApplicationCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/Application"
},
"type": "array"
}
},
"required": [
"value"
]
},
"ApplicationProperties": {
"properties": {
"appId": {
"type": "string"
},
"friendlyName": {
"type": "string"
},
"platform": {
"default": "ios",
"enum": [
"ios",
"android",
"windows"
],
"type": "string"
}
},
"required": [
"friendlyName",
"platform"
]
},
"Device": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Device entity for Intune.",
"properties": {
"properties": {
"$ref": "#/definitions/DeviceProperties",
"x-ms-client-flatten": true
}
}
},
"DeviceCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/Device"
},
"type": "array"
}
},
"required": [
"value"
]
},
"DeviceProperties": {
"properties": {
"deviceType": {
"type": "string"
},
"friendlyName": {
"type": "string"
},
"platform": {
"type": "string"
},
"platformVersion": {
"type": "string"
},
"userId": {
"type": "string"
}
},
"required": [
"userId",
"friendlyName",
"platform",
"platformVersion",
"deviceType"
]
},
"Error": {
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
},
"FlaggedEnrolledApp": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Flagged Enrolled App for the given tenant.",
"properties": {
"properties": {
"$ref": "#/definitions/FlaggedEnrolledAppProperties",
"x-ms-client-flatten": true
}
}
},
"FlaggedEnrolledAppCollection": {
"description": "Flagged Enrolled App collection for the given tenant.",
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/FlaggedEnrolledApp"
},
"type": "array"
}
},
"required": [
"value"
]
},
"FlaggedEnrolledAppError": {
"properties": {
"errorCode": {
"readOnly": true,
"type": "string"
},
"severity": {
"readOnly": true,
"type": "string"
}
}
},
"FlaggedEnrolledAppProperties": {
"properties": {
"deviceType": {
"readOnly": true,
"type": "string"
},
"errors": {
"items": {
"$ref": "#/definitions/FlaggedEnrolledAppError"
},
"type": "array"
},
"friendlyName": {
"readOnly": true,
"type": "string"
},
"lastModifiedTime": {
"readOnly": true,
"type": "string"
},
"platform": {
"readOnly": true,
"type": "string"
}
}
},
"FlaggedUser": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Flagged user for the given tenant.",
"properties": {
"properties": {
"$ref": "#/definitions/FlaggedUserProperties",
"x-ms-client-flatten": true
}
}
},
"FlaggedUserCollection": {
"description": "Flagged user collection for the given tenant.",
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/FlaggedUser"
},
"type": "array"
}
},
"required": [
"value"
]
},
"FlaggedUserProperties": {
"properties": {
"errorCount": {
"readOnly": true,
"type": "integer"
},
"friendlyName": {
"readOnly": true,
"type": "string"
}
}
},
"GroupItem": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Group entity for Intune MAM.",
"properties": {
"properties": {
"$ref": "#/definitions/GroupProperties",
"x-ms-client-flatten": true
}
}
},
"GroupProperties": {
"properties": {
"friendlyName": {
"type": "string"
}
},
"required": [
"friendlyName"
]
},
"GroupsCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/GroupItem"
},
"type": "array"
}
},
"required": [
"value"
]
},
"IOSMAMPolicyCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/iOSMAMPolicy"
},
"type": "array"
}
},
"required": [
"value"
]
},
"Location": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Location entity for given tenant.",
"properties": {
"properties": {
"$ref": "#/definitions/LocationProperties",
"x-ms-client-flatten": true
}
}
},
"LocationCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/Location"
},
"type": "array"
}
},
"required": [
"value"
]
},
"LocationProperties": {
"properties": {
"hostName": {
"type": "string"
}
},
"required": [
"hostName"
]
},
"MAMPolicyAppIdOrGroupIdPayload": {
"description": "MAM Policy request body for properties Intune MAM.",
"properties": {
"properties": {
"$ref": "#/definitions/MAMPolicyAppOrGroupIdProperties"
}
}
},
"MAMPolicyAppOrGroupIdProperties": {
"description": "Android Policy request body for Intune MAM.",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
]
},
"MAMPolicyProperties": {
"properties": {
"accessRecheckOfflineTimeout": {
"format": "duration",
"type": "string"
},
"accessRecheckOnlineTimeout": {
"format": "duration",
"type": "string"
},
"appSharingFromLevel": {
"default": "none",
"enum": [
"none",
"policyManagedApps",
"allApps"
],
"type": "string"
},
"appSharingToLevel": {
"default": "none",
"enum": [
"none",
"policyManagedApps",
"allApps"
],
"type": "string"
},
"authentication": {
"default": "required",
"enum": [
"required",
"notRequired"
],
"type": "string"
},
"clipboardSharingLevel": {
"default": "blocked",
"enum": [
"blocked",
"policyManagedApps",
"policyManagedAppsWithPasteIn",
"allApps"
],
"type": "string"
},
"dataBackup": {
"default": "allow",
"enum": [
"allow",
"block"
],
"type": "string"
},
"description": {
"type": "string"
},
"deviceCompliance": {
"default": "enable",
"enum": [
"enable",
"disable"
],
"type": "string"
},
"fileSharingSaveAs": {
"default": "allow",
"enum": [
"allow",
"block"
],
"type": "string"
},
"friendlyName": {
"type": "string"
},
"groupStatus": {
"default": "notTargeted",
"enum": [
"notTargeted",
"targeted"
],
"readOnly": true,
"type": "string"
},
"lastModifiedTime": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"managedBrowser": {
"default": "required",
"enum": [
"required",
"notRequired"
],
"type": "string"
},
"numOfApps": {
"readOnly": true,
"type": "integer"
},
"offlineWipeTimeout": {
"format": "duration",
"type": "string"
},
"pin": {
"default": "required",
"enum": [
"required",
"notRequired"
],
"type": "string"
},
"pinNumRetry": {
"type": "integer"
}
},
"required": [
"friendlyName"
]
},
"OperationResult": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "OperationResult entity for Intune.",
"properties": {
"properties": {
"$ref": "#/definitions/OperationResultProperties",
"x-ms-client-flatten": true
}
}
},
"OperationResultCollection": {
"properties": {
"nextlink": {
"description": "Gets the URL to get the next set of results.",
"readOnly": true,
"type": "string"
},
"value": {
"items": {
"$ref": "#/definitions/OperationResult"
},
"type": "array"
}
},
"required": [
"value"
]
},
"OperationResultProperties": {
"properties": {
"category": {
"type": "string"
},
"friendlyName": {
"type": "string"
},
"lastModifiedTime": {
"type": "string"
},
"operationMetadata": {
"items": {
"$ref": "#/definitions/operationMetadataProperties"
},
"type": "array"
},
"state": {
"type": "string"
}
},
"required": [
"friendlyName",
"operationMetadata"
]
},
"Resource": {
"properties": {
"id": {
"description": "Resource Id",
"readOnly": true,
"type": "string"
},
"location": {
"description": "Resource Location",
"type": "string"
},
"name": {
"description": "Resource name",
"readOnly": true,
"type": "string"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource Tags",
"type": "object"
},
"type": {
"description": "Resource type",
"readOnly": true,
"type": "string"
}
},
"x-ms-azure-resource": true
},
"StatusesDefault": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Default Statuses entity for the given tenant.",
"properties": {
"properties": {
"$ref": "#/definitions/StatusesProperties",
"x-ms-client-flatten": true
}
}
},
"StatusesProperties": {
"properties": {
"deployedPolicies": {
"readOnly": true,
"type": "integer"
},
"enrolledUsers": {
"readOnly": true,
"type": "integer"
},
"flaggedUsers": {
"readOnly": true,
"type": "integer"
},
"lastModifiedTime": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"policyAppliedUsers": {
"readOnly": true,
"type": "integer"
},
"status": {
"readOnly": true,
"type": "string"
},
"wipeFailedApps": {
"readOnly": true,
"type": "integer"
},
"wipePendingApps": {
"readOnly": true,
"type": "integer"
},
"wipeSucceededApps": {
"readOnly": true,
"type": "integer"
}
}
},
"WipeDeviceOperationResult": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Device entity for Intune.",
"properties": {
"properties": {
"$ref": "#/definitions/WipeDeviceOperationResultProperties",
"x-ms-client-flatten": true
}
}
},
"WipeDeviceOperationResultProperties": {
"properties": {
"value": {
"type": "string"
}
},
"required": [
"value"
]
},
"iOSMAMPolicy": {
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "iOS Policy entity for Intune MAM.",
"properties": {
"properties": {
"$ref": "#/definitions/iOSMAMPolicyProperties",
"x-ms-client-flatten": true
}
}
},
"iOSMAMPolicyProperties": {
"allOf": [
{
"$ref": "#/definitions/MAMPolicyProperties"
}
],
"description": "Intune MAM iOS Policy Properties.",
"properties": {
"fileEncryptionLevel": {
"default": "deviceLocked",
"enum": [
"deviceLocked",
"deviceLockedExceptFilesOpen",
"afterDeviceRestart",
"useDeviceSettings"
],
"type": "string"
},
"touchId": {
"default": "enable",
"enum": [
"enable",
"disable"
],
"type": "string"
}
}
},
"operationMetadataProperties": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
]
}
}
}